@vantageos/mosaic-blocks 0.5.27-alpha → 0.5.29-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 +1026 -237
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +610 -7
- package/dist/index.d.ts +610 -7
- package/dist/index.js +1007 -238
- package/dist/index.js.map +1 -1
- package/package.json +2 -1
- package/registry.json +1265 -322
package/dist/index.js
CHANGED
|
@@ -29,7 +29,7 @@ import { AlertDialog } from '@base-ui/react/alert-dialog';
|
|
|
29
29
|
import { Popover } from '@base-ui/react/popover';
|
|
30
30
|
|
|
31
31
|
// src/version.ts
|
|
32
|
-
var version = "0.5.
|
|
32
|
+
var version = "0.5.29-alpha";
|
|
33
33
|
function Placeholder({ label = "mosaic-blocks placeholder" }) {
|
|
34
34
|
return /* @__PURE__ */ jsx("div", { "data-mosaic-block": "placeholder", children: label });
|
|
35
35
|
}
|
|
@@ -6764,6 +6764,90 @@ function MosaicMemoryCard(props) {
|
|
|
6764
6764
|
);
|
|
6765
6765
|
}
|
|
6766
6766
|
MosaicMemoryCard.displayName = "MosaicMemoryCard";
|
|
6767
|
+
var memoryDashboardViewToggleButtonVariants = cva(
|
|
6768
|
+
"flex items-center justify-center rounded-md border border-border px-3 py-1.5 text-sm transition-colors",
|
|
6769
|
+
{
|
|
6770
|
+
variants: {
|
|
6771
|
+
pressed: {
|
|
6772
|
+
true: "bg-foreground text-background",
|
|
6773
|
+
false: "bg-background text-muted-foreground hover:bg-muted"
|
|
6774
|
+
}
|
|
6775
|
+
},
|
|
6776
|
+
defaultVariants: {
|
|
6777
|
+
pressed: false
|
|
6778
|
+
}
|
|
6779
|
+
}
|
|
6780
|
+
);
|
|
6781
|
+
function cn58(...classes) {
|
|
6782
|
+
return classes.filter(Boolean).join(" ");
|
|
6783
|
+
}
|
|
6784
|
+
function MosaicMemoryDashboard({
|
|
6785
|
+
title,
|
|
6786
|
+
addLabel,
|
|
6787
|
+
onAdd,
|
|
6788
|
+
stats,
|
|
6789
|
+
searchSlot,
|
|
6790
|
+
viewMode,
|
|
6791
|
+
onViewModeChange,
|
|
6792
|
+
tilesViewLabel,
|
|
6793
|
+
rowsViewLabel,
|
|
6794
|
+
children,
|
|
6795
|
+
className
|
|
6796
|
+
}) {
|
|
6797
|
+
return /* @__PURE__ */ jsxs(
|
|
6798
|
+
"div",
|
|
6799
|
+
{
|
|
6800
|
+
"data-slot": "memory-dashboard",
|
|
6801
|
+
className: cn58(
|
|
6802
|
+
"flex flex-col gap-4 rounded-lg border border-border bg-background p-4",
|
|
6803
|
+
className
|
|
6804
|
+
),
|
|
6805
|
+
children: [
|
|
6806
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-3", children: [
|
|
6807
|
+
/* @__PURE__ */ jsx("h1", { className: "font-semibold text-foreground text-lg", children: title }),
|
|
6808
|
+
/* @__PURE__ */ jsx(MosaicButton, { type: "button", onClick: onAdd, children: addLabel })
|
|
6809
|
+
] }),
|
|
6810
|
+
stats.length > 0 && /* @__PURE__ */ jsx("div", { "data-slot": "memory-dashboard-stats", className: "grid grid-cols-2 gap-3 sm:grid-cols-4", children: stats.map((stat) => /* @__PURE__ */ jsxs(
|
|
6811
|
+
"div",
|
|
6812
|
+
{
|
|
6813
|
+
"data-slot": "memory-dashboard-stat",
|
|
6814
|
+
className: "flex flex-col rounded-md border border-border px-3 py-2",
|
|
6815
|
+
children: [
|
|
6816
|
+
/* @__PURE__ */ jsx("span", { className: "font-semibold text-foreground text-lg tabular-nums", children: stat.value }),
|
|
6817
|
+
/* @__PURE__ */ jsx("span", { className: "text-muted-foreground text-xs", children: stat.label })
|
|
6818
|
+
]
|
|
6819
|
+
},
|
|
6820
|
+
stat.label
|
|
6821
|
+
)) }),
|
|
6822
|
+
searchSlot && /* @__PURE__ */ jsx("div", { "data-slot": "memory-dashboard-search", className: "w-full", children: searchSlot }),
|
|
6823
|
+
/* @__PURE__ */ jsxs("div", { "data-slot": "memory-dashboard-view-toggle", className: "flex items-center gap-2 self-start", children: [
|
|
6824
|
+
/* @__PURE__ */ jsx(
|
|
6825
|
+
"button",
|
|
6826
|
+
{
|
|
6827
|
+
type: "button",
|
|
6828
|
+
"aria-pressed": viewMode === "tiles",
|
|
6829
|
+
onClick: () => onViewModeChange("tiles"),
|
|
6830
|
+
className: memoryDashboardViewToggleButtonVariants({ pressed: viewMode === "tiles" }),
|
|
6831
|
+
children: tilesViewLabel
|
|
6832
|
+
}
|
|
6833
|
+
),
|
|
6834
|
+
/* @__PURE__ */ jsx(
|
|
6835
|
+
"button",
|
|
6836
|
+
{
|
|
6837
|
+
type: "button",
|
|
6838
|
+
"aria-pressed": viewMode === "rows",
|
|
6839
|
+
onClick: () => onViewModeChange("rows"),
|
|
6840
|
+
className: memoryDashboardViewToggleButtonVariants({ pressed: viewMode === "rows" }),
|
|
6841
|
+
children: rowsViewLabel
|
|
6842
|
+
}
|
|
6843
|
+
)
|
|
6844
|
+
] }),
|
|
6845
|
+
/* @__PURE__ */ jsx("div", { "data-slot": "memory-dashboard-results", className: "flex flex-col gap-2", children })
|
|
6846
|
+
]
|
|
6847
|
+
}
|
|
6848
|
+
);
|
|
6849
|
+
}
|
|
6850
|
+
MosaicMemoryDashboard.displayName = "MosaicMemoryDashboard";
|
|
6767
6851
|
var templateAgentCardVariants = cva(
|
|
6768
6852
|
[
|
|
6769
6853
|
"rounded-lg border border-border bg-card text-card-foreground shadow-sm",
|
|
@@ -6787,7 +6871,7 @@ var templateAgentCardBadgeVariants = cva([
|
|
|
6787
6871
|
var templateAgentCardTagVariants = cva([
|
|
6788
6872
|
"inline-flex items-center rounded-full border border-border bg-muted px-2 py-0.5 text-xs text-muted-foreground"
|
|
6789
6873
|
]);
|
|
6790
|
-
function
|
|
6874
|
+
function cn59(...classes) {
|
|
6791
6875
|
return classes.filter(Boolean).join(" ");
|
|
6792
6876
|
}
|
|
6793
6877
|
var MAX_VISIBLE_TAGS2 = 3;
|
|
@@ -6856,7 +6940,7 @@ function MosaicTemplateAgentCard({
|
|
|
6856
6940
|
{
|
|
6857
6941
|
ref,
|
|
6858
6942
|
"data-slot": "template-agent-card",
|
|
6859
|
-
className:
|
|
6943
|
+
className: cn59(templateAgentCardVariants({ selected: isSelected }), "p-4", className),
|
|
6860
6944
|
children: [
|
|
6861
6945
|
/* @__PURE__ */ jsx("div", { className: "flex items-start justify-between gap-2", children: /* @__PURE__ */ jsxs(
|
|
6862
6946
|
"button",
|
|
@@ -6865,7 +6949,7 @@ function MosaicTemplateAgentCard({
|
|
|
6865
6949
|
onClick: () => onSelect(template),
|
|
6866
6950
|
"aria-label": selectAriaLabel,
|
|
6867
6951
|
"aria-pressed": isSelected,
|
|
6868
|
-
className:
|
|
6952
|
+
className: cn59(
|
|
6869
6953
|
"flex min-w-0 flex-1 items-start gap-2 rounded-md text-left",
|
|
6870
6954
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
6871
6955
|
),
|
|
@@ -6879,11 +6963,11 @@ function MosaicTemplateAgentCard({
|
|
|
6879
6963
|
}
|
|
6880
6964
|
) }),
|
|
6881
6965
|
/* @__PURE__ */ jsxs("div", { className: "mt-3 flex flex-wrap items-center gap-2", children: [
|
|
6882
|
-
template.category && /* @__PURE__ */ jsx("span", { className:
|
|
6883
|
-
/* @__PURE__ */ jsx("span", { className:
|
|
6884
|
-
formatUsageCount(template.usageCount) != null && /* @__PURE__ */ jsx("span", { className:
|
|
6885
|
-
visibleTags.map((tag) => /* @__PURE__ */ jsx("span", { className:
|
|
6886
|
-
hiddenTagCount > 0 && /* @__PURE__ */ jsx("span", { className:
|
|
6966
|
+
template.category && /* @__PURE__ */ jsx("span", { className: cn59(templateAgentCardBadgeVariants()), children: template.category }),
|
|
6967
|
+
/* @__PURE__ */ jsx("span", { className: cn59(templateAgentCardBadgeVariants()), children: agentCountLabel }),
|
|
6968
|
+
formatUsageCount(template.usageCount) != null && /* @__PURE__ */ jsx("span", { className: cn59(templateAgentCardBadgeVariants()), children: formatUsageCount(template.usageCount) }),
|
|
6969
|
+
visibleTags.map((tag) => /* @__PURE__ */ jsx("span", { className: cn59(templateAgentCardTagVariants()), children: tag }, tag)),
|
|
6970
|
+
hiddenTagCount > 0 && /* @__PURE__ */ jsx("span", { className: cn59(templateAgentCardTagVariants()), children: formatMoreTags(hiddenTagCount) })
|
|
6887
6971
|
] }),
|
|
6888
6972
|
(onPreview || onDuplicate) && /* @__PURE__ */ jsxs("div", { className: "mt-3 flex items-center gap-2 border-t border-border pt-2", children: [
|
|
6889
6973
|
onPreview && /* @__PURE__ */ jsxs(
|
|
@@ -6892,7 +6976,7 @@ function MosaicTemplateAgentCard({
|
|
|
6892
6976
|
type: "button",
|
|
6893
6977
|
onClick: () => onPreview(template),
|
|
6894
6978
|
"aria-label": previewAriaLabel,
|
|
6895
|
-
className:
|
|
6979
|
+
className: cn59(
|
|
6896
6980
|
"inline-flex h-8 flex-1 items-center justify-center gap-1.5 rounded-md text-xs font-medium",
|
|
6897
6981
|
"text-muted-foreground hover:bg-accent hover:text-accent-foreground",
|
|
6898
6982
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -6909,7 +6993,7 @@ function MosaicTemplateAgentCard({
|
|
|
6909
6993
|
type: "button",
|
|
6910
6994
|
onClick: () => onDuplicate(template),
|
|
6911
6995
|
"aria-label": duplicateAriaLabel,
|
|
6912
|
-
className:
|
|
6996
|
+
className: cn59(
|
|
6913
6997
|
"inline-flex h-8 flex-1 items-center justify-center gap-1.5 rounded-md text-xs font-medium",
|
|
6914
6998
|
"text-muted-foreground hover:bg-accent hover:text-accent-foreground",
|
|
6915
6999
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -6926,7 +7010,7 @@ function MosaicTemplateAgentCard({
|
|
|
6926
7010
|
);
|
|
6927
7011
|
}
|
|
6928
7012
|
MosaicTemplateAgentCard.displayName = "MosaicTemplateAgentCard";
|
|
6929
|
-
function
|
|
7013
|
+
function cn60(...classes) {
|
|
6930
7014
|
return classes.filter(Boolean).join(" ");
|
|
6931
7015
|
}
|
|
6932
7016
|
function SearchIcon() {
|
|
@@ -7027,7 +7111,7 @@ function MosaicSelectorModal({
|
|
|
7027
7111
|
value: query,
|
|
7028
7112
|
onChange: (e) => setQuery(e.target.value),
|
|
7029
7113
|
placeholder: searchPlaceholder,
|
|
7030
|
-
className:
|
|
7114
|
+
className: cn60(
|
|
7031
7115
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
7032
7116
|
"text-sm text-foreground placeholder:text-muted-foreground",
|
|
7033
7117
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -7041,7 +7125,7 @@ function MosaicSelectorModal({
|
|
|
7041
7125
|
{
|
|
7042
7126
|
type: "button",
|
|
7043
7127
|
onClick: () => setActiveCategory("all"),
|
|
7044
|
-
className:
|
|
7128
|
+
className: cn60(
|
|
7045
7129
|
"shrink-0 rounded-md px-3 py-1.5 text-sm font-medium transition-colors",
|
|
7046
7130
|
activeCategory === "all" ? "bg-primary text-primary-foreground" : "bg-muted text-muted-foreground hover:bg-accent hover:text-accent-foreground"
|
|
7047
7131
|
),
|
|
@@ -7053,7 +7137,7 @@ function MosaicSelectorModal({
|
|
|
7053
7137
|
{
|
|
7054
7138
|
type: "button",
|
|
7055
7139
|
onClick: () => setActiveCategory(cat.id),
|
|
7056
|
-
className:
|
|
7140
|
+
className: cn60(
|
|
7057
7141
|
"shrink-0 rounded-md px-3 py-1.5 text-sm font-medium transition-colors",
|
|
7058
7142
|
activeCategory === cat.id ? "bg-primary text-primary-foreground" : "bg-muted text-muted-foreground hover:bg-accent hover:text-accent-foreground"
|
|
7059
7143
|
),
|
|
@@ -7065,7 +7149,7 @@ function MosaicSelectorModal({
|
|
|
7065
7149
|
/* @__PURE__ */ jsxs(
|
|
7066
7150
|
"div",
|
|
7067
7151
|
{
|
|
7068
|
-
className:
|
|
7152
|
+
className: cn60(
|
|
7069
7153
|
"max-h-[50vh] overflow-y-auto",
|
|
7070
7154
|
columns === 2 ? "grid grid-cols-1 gap-3 sm:grid-cols-2" : "flex flex-col gap-3"
|
|
7071
7155
|
),
|
|
@@ -7077,7 +7161,7 @@ function MosaicSelectorModal({
|
|
|
7077
7161
|
{
|
|
7078
7162
|
type: "button",
|
|
7079
7163
|
onClick: () => setPendingId(item.id),
|
|
7080
|
-
className:
|
|
7164
|
+
className: cn60(
|
|
7081
7165
|
"group relative rounded-lg border p-4 text-left transition-all duration-150",
|
|
7082
7166
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
7083
7167
|
isSelected ? "border-primary bg-primary/5 ring-2 ring-primary" : "border-border bg-card hover:border-primary/50"
|
|
@@ -7115,7 +7199,7 @@ function MosaicSelectorModal({
|
|
|
7115
7199
|
{
|
|
7116
7200
|
type: "button",
|
|
7117
7201
|
onClick: onClose,
|
|
7118
|
-
className:
|
|
7202
|
+
className: cn60(
|
|
7119
7203
|
"inline-flex min-h-[44px] items-center justify-center rounded-md border border-border",
|
|
7120
7204
|
"bg-background px-4 py-2 text-sm font-medium text-foreground",
|
|
7121
7205
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -7130,7 +7214,7 @@ function MosaicSelectorModal({
|
|
|
7130
7214
|
type: "button",
|
|
7131
7215
|
onClick: handleConfirm,
|
|
7132
7216
|
disabled: !pendingItem,
|
|
7133
|
-
className:
|
|
7217
|
+
className: cn60(
|
|
7134
7218
|
"inline-flex min-h-[44px] items-center justify-center rounded-md",
|
|
7135
7219
|
"bg-primary px-4 py-2 text-sm font-medium text-primary-foreground",
|
|
7136
7220
|
"hover:bg-primary/90",
|
|
@@ -7146,7 +7230,7 @@ function MosaicSelectorModal({
|
|
|
7146
7230
|
);
|
|
7147
7231
|
}
|
|
7148
7232
|
MosaicSelectorModal.displayName = "MosaicSelectorModal";
|
|
7149
|
-
function
|
|
7233
|
+
function cn61(...classes) {
|
|
7150
7234
|
return classes.filter(Boolean).join(" ");
|
|
7151
7235
|
}
|
|
7152
7236
|
function relativeTime(ts) {
|
|
@@ -7344,6 +7428,10 @@ function MosaicMessageCard({
|
|
|
7344
7428
|
removeBookmarkLabel,
|
|
7345
7429
|
bookmarkLabel,
|
|
7346
7430
|
copyMessageLabel,
|
|
7431
|
+
aiSenderLabel,
|
|
7432
|
+
viewThreadLabel,
|
|
7433
|
+
likeAriaLabel,
|
|
7434
|
+
dislikeAriaLabel,
|
|
7347
7435
|
className
|
|
7348
7436
|
}) {
|
|
7349
7437
|
const [bookmarked, setBookmarked] = React30.useState(message.bookmarked ?? false);
|
|
@@ -7402,7 +7490,7 @@ function MosaicMessageCard({
|
|
|
7402
7490
|
"div",
|
|
7403
7491
|
{
|
|
7404
7492
|
"data-slot": "message-card",
|
|
7405
|
-
className:
|
|
7493
|
+
className: cn61(
|
|
7406
7494
|
"rounded-lg border border-border bg-card p-4 shadow-sm transition-shadow hover:shadow-md",
|
|
7407
7495
|
compact && "p-3",
|
|
7408
7496
|
message.sender.type === "user" && "bg-primary/5",
|
|
@@ -7412,7 +7500,7 @@ function MosaicMessageCard({
|
|
|
7412
7500
|
/* @__PURE__ */ jsx(
|
|
7413
7501
|
"span",
|
|
7414
7502
|
{
|
|
7415
|
-
className:
|
|
7503
|
+
className: cn61(
|
|
7416
7504
|
"inline-flex shrink-0 items-center justify-center rounded-full text-white font-semibold",
|
|
7417
7505
|
compact ? "h-8 w-8 text-xs" : "h-10 w-10 text-sm",
|
|
7418
7506
|
message.sender.accentColor ?? "bg-muted text-muted-foreground"
|
|
@@ -7430,15 +7518,15 @@ function MosaicMessageCard({
|
|
|
7430
7518
|
/* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1", children: [
|
|
7431
7519
|
/* @__PURE__ */ jsxs("div", { className: "mb-2 flex items-center justify-between gap-2", children: [
|
|
7432
7520
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
7433
|
-
/* @__PURE__ */ jsx("span", { className:
|
|
7434
|
-
message.sender.type === "ai" && /* @__PURE__ */ jsx("span", { className: "rounded-full bg-secondary px-2 py-0.5 text-xs font-medium text-secondary-foreground", children:
|
|
7521
|
+
/* @__PURE__ */ jsx("span", { className: cn61("font-medium", compact ? "text-sm" : "text-base"), children: message.sender.name }),
|
|
7522
|
+
message.sender.type === "ai" && aiSenderLabel && /* @__PURE__ */ jsx("span", { className: "rounded-full bg-secondary px-2 py-0.5 text-xs font-medium text-secondary-foreground", children: aiSenderLabel })
|
|
7435
7523
|
] }),
|
|
7436
7524
|
/* @__PURE__ */ jsx("span", { className: "shrink-0 text-xs text-muted-foreground", children: relativeTime(message.timestamp) })
|
|
7437
7525
|
] }),
|
|
7438
7526
|
/* @__PURE__ */ jsx(
|
|
7439
7527
|
"p",
|
|
7440
7528
|
{
|
|
7441
|
-
className:
|
|
7529
|
+
className: cn61(
|
|
7442
7530
|
"leading-relaxed text-foreground mb-3",
|
|
7443
7531
|
compact ? "text-sm" : "text-base"
|
|
7444
7532
|
),
|
|
@@ -7453,13 +7541,13 @@ function MosaicMessageCard({
|
|
|
7453
7541
|
{
|
|
7454
7542
|
type: "button",
|
|
7455
7543
|
onClick: handleLike,
|
|
7456
|
-
className:
|
|
7544
|
+
className: cn61(
|
|
7457
7545
|
"inline-flex h-8 items-center gap-1 rounded-md px-2 text-xs",
|
|
7458
7546
|
"hover:bg-accent hover:text-accent-foreground",
|
|
7459
7547
|
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
7460
7548
|
hasLiked && "text-primary"
|
|
7461
7549
|
),
|
|
7462
|
-
"aria-label":
|
|
7550
|
+
"aria-label": likeAriaLabel(likes),
|
|
7463
7551
|
children: [
|
|
7464
7552
|
icons.thumbUp,
|
|
7465
7553
|
/* @__PURE__ */ jsx("span", { children: likes })
|
|
@@ -7471,13 +7559,13 @@ function MosaicMessageCard({
|
|
|
7471
7559
|
{
|
|
7472
7560
|
type: "button",
|
|
7473
7561
|
onClick: handleDislike,
|
|
7474
|
-
className:
|
|
7562
|
+
className: cn61(
|
|
7475
7563
|
"inline-flex h-8 items-center gap-1 rounded-md px-2 text-xs",
|
|
7476
7564
|
"hover:bg-accent hover:text-accent-foreground",
|
|
7477
7565
|
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
7478
7566
|
hasDisliked && "text-destructive"
|
|
7479
7567
|
),
|
|
7480
|
-
"aria-label":
|
|
7568
|
+
"aria-label": dislikeAriaLabel(dislikes),
|
|
7481
7569
|
children: [
|
|
7482
7570
|
icons.thumbDown,
|
|
7483
7571
|
/* @__PURE__ */ jsx("span", { children: dislikes })
|
|
@@ -7516,7 +7604,7 @@ function MosaicMessageCard({
|
|
|
7516
7604
|
{
|
|
7517
7605
|
type: "button",
|
|
7518
7606
|
onClick: handleBookmark,
|
|
7519
|
-
className:
|
|
7607
|
+
className: cn61(
|
|
7520
7608
|
"inline-flex h-8 w-8 items-center justify-center rounded-md",
|
|
7521
7609
|
"hover:bg-accent hover:text-accent-foreground",
|
|
7522
7610
|
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
@@ -7607,7 +7695,7 @@ function MosaicMessageCard({
|
|
|
7607
7695
|
className: "inline-flex h-7 items-center gap-1 rounded-md text-xs text-muted-foreground hover:bg-accent hover:text-accent-foreground px-2",
|
|
7608
7696
|
children: [
|
|
7609
7697
|
icons.msgSquare,
|
|
7610
|
-
|
|
7698
|
+
viewThreadLabel
|
|
7611
7699
|
]
|
|
7612
7700
|
}
|
|
7613
7701
|
) })
|
|
@@ -7617,7 +7705,7 @@ function MosaicMessageCard({
|
|
|
7617
7705
|
);
|
|
7618
7706
|
}
|
|
7619
7707
|
MosaicMessageCard.displayName = "MosaicMessageCard";
|
|
7620
|
-
function
|
|
7708
|
+
function cn62(...classes) {
|
|
7621
7709
|
return classes.filter(Boolean).join(" ");
|
|
7622
7710
|
}
|
|
7623
7711
|
function SearchIcon2() {
|
|
@@ -7661,13 +7749,16 @@ function MessageListDesktop({
|
|
|
7661
7749
|
removeBookmarkLabel,
|
|
7662
7750
|
bookmarkLabel,
|
|
7663
7751
|
copyMessageLabel,
|
|
7752
|
+
viewThreadLabel,
|
|
7753
|
+
likeAriaLabel,
|
|
7754
|
+
dislikeAriaLabel,
|
|
7664
7755
|
className
|
|
7665
7756
|
}) {
|
|
7666
7757
|
const [query, setQuery] = React30.useState("");
|
|
7667
7758
|
const filtered = query ? messages.filter(
|
|
7668
7759
|
(m) => m.content.toLowerCase().includes(query.toLowerCase()) || m.sender.name.toLowerCase().includes(query.toLowerCase())
|
|
7669
7760
|
) : messages;
|
|
7670
|
-
return /* @__PURE__ */ jsxs("div", { "data-slot": "message-list-desktop", className:
|
|
7761
|
+
return /* @__PURE__ */ jsxs("div", { "data-slot": "message-list-desktop", className: cn62("flex h-full flex-col", className), children: [
|
|
7671
7762
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between border-b border-border px-6 py-4", children: [
|
|
7672
7763
|
title && /* @__PURE__ */ jsx("h2", { className: "text-lg font-semibold", children: title }),
|
|
7673
7764
|
/* @__PURE__ */ jsxs("div", { className: "relative ml-auto max-w-xs flex-1", children: [
|
|
@@ -7679,7 +7770,7 @@ function MessageListDesktop({
|
|
|
7679
7770
|
value: query,
|
|
7680
7771
|
onChange: (e) => setQuery(e.target.value),
|
|
7681
7772
|
placeholder: searchPlaceholder,
|
|
7682
|
-
className:
|
|
7773
|
+
className: cn62(
|
|
7683
7774
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
7684
7775
|
"text-sm placeholder:text-muted-foreground",
|
|
7685
7776
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -7704,7 +7795,10 @@ function MessageListDesktop({
|
|
|
7704
7795
|
bookmarkAriaLabel,
|
|
7705
7796
|
removeBookmarkLabel,
|
|
7706
7797
|
bookmarkLabel,
|
|
7707
|
-
copyMessageLabel
|
|
7798
|
+
copyMessageLabel,
|
|
7799
|
+
viewThreadLabel,
|
|
7800
|
+
likeAriaLabel,
|
|
7801
|
+
dislikeAriaLabel
|
|
7708
7802
|
},
|
|
7709
7803
|
message.id
|
|
7710
7804
|
)),
|
|
@@ -7715,7 +7809,7 @@ function MessageListDesktop({
|
|
|
7715
7809
|
{
|
|
7716
7810
|
type: "button",
|
|
7717
7811
|
onClick: onLoadMore,
|
|
7718
|
-
className:
|
|
7812
|
+
className: cn62(
|
|
7719
7813
|
"w-full rounded-md border border-border bg-background px-4 py-2 text-sm font-medium",
|
|
7720
7814
|
"hover:bg-accent hover:text-accent-foreground",
|
|
7721
7815
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -7744,9 +7838,12 @@ function MessageListMobile({
|
|
|
7744
7838
|
removeBookmarkLabel,
|
|
7745
7839
|
bookmarkLabel,
|
|
7746
7840
|
copyMessageLabel,
|
|
7841
|
+
viewThreadLabel,
|
|
7842
|
+
likeAriaLabel,
|
|
7843
|
+
dislikeAriaLabel,
|
|
7747
7844
|
className
|
|
7748
7845
|
}) {
|
|
7749
|
-
return /* @__PURE__ */ jsxs("div", { "data-slot": "message-list-mobile", className:
|
|
7846
|
+
return /* @__PURE__ */ jsxs("div", { "data-slot": "message-list-mobile", className: cn62("flex flex-col", className), children: [
|
|
7750
7847
|
title && /* @__PURE__ */ jsx("div", { className: "sticky top-0 z-10 border-b border-border bg-background px-4 py-3", children: /* @__PURE__ */ jsx("h2", { className: "text-base font-semibold", children: title }) }),
|
|
7751
7848
|
/* @__PURE__ */ jsxs("div", { className: "space-y-3 p-4", children: [
|
|
7752
7849
|
isLoading && /* @__PURE__ */ jsx("div", { className: "space-y-3", children: [0, 1, 2].map((i) => /* @__PURE__ */ jsx("div", { className: "h-20 animate-pulse rounded-lg bg-muted" }, i)) }),
|
|
@@ -7765,6 +7862,9 @@ function MessageListMobile({
|
|
|
7765
7862
|
removeBookmarkLabel,
|
|
7766
7863
|
bookmarkLabel,
|
|
7767
7864
|
copyMessageLabel,
|
|
7865
|
+
viewThreadLabel,
|
|
7866
|
+
likeAriaLabel,
|
|
7867
|
+
dislikeAriaLabel,
|
|
7768
7868
|
compact: true
|
|
7769
7869
|
},
|
|
7770
7870
|
message.id
|
|
@@ -7776,7 +7876,7 @@ function MessageListMobile({
|
|
|
7776
7876
|
{
|
|
7777
7877
|
type: "button",
|
|
7778
7878
|
onClick: onLoadMore,
|
|
7779
|
-
className:
|
|
7879
|
+
className: cn62(
|
|
7780
7880
|
"w-full min-h-[44px] rounded-md border border-border bg-background px-4 py-2 text-sm font-medium",
|
|
7781
7881
|
"hover:bg-accent hover:text-accent-foreground",
|
|
7782
7882
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -7791,7 +7891,7 @@ function MosaicMessageList(props) {
|
|
|
7791
7891
|
return isMobile ? /* @__PURE__ */ jsx(MessageListMobile, { ...props }) : /* @__PURE__ */ jsx(MessageListDesktop, { ...props });
|
|
7792
7892
|
}
|
|
7793
7893
|
MosaicMessageList.displayName = "MosaicMessageList";
|
|
7794
|
-
function
|
|
7894
|
+
function cn63(...classes) {
|
|
7795
7895
|
return classes.filter(Boolean).join(" ");
|
|
7796
7896
|
}
|
|
7797
7897
|
function ChevronLeftIcon2() {
|
|
@@ -7871,7 +7971,7 @@ function MosaicFilterSidebar({
|
|
|
7871
7971
|
{
|
|
7872
7972
|
"data-slot": "filter-sidebar",
|
|
7873
7973
|
style: { width, minWidth: isCollapsed && !isMobile ? "64px" : void 0 },
|
|
7874
|
-
className:
|
|
7974
|
+
className: cn63(
|
|
7875
7975
|
"relative flex flex-col border-r border-border bg-card",
|
|
7876
7976
|
"transition-[width] duration-200 ease-in-out",
|
|
7877
7977
|
"overflow-hidden",
|
|
@@ -7883,7 +7983,7 @@ function MosaicFilterSidebar({
|
|
|
7883
7983
|
{
|
|
7884
7984
|
type: "button",
|
|
7885
7985
|
onClick: onToggleCollapse,
|
|
7886
|
-
className:
|
|
7986
|
+
className: cn63(
|
|
7887
7987
|
"absolute -right-3 top-6 z-10 flex h-6 w-6 items-center justify-center rounded-full",
|
|
7888
7988
|
"border border-border bg-background shadow-sm",
|
|
7889
7989
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -7913,7 +8013,7 @@ function MosaicFilterSidebar({
|
|
|
7913
8013
|
{
|
|
7914
8014
|
type: "button",
|
|
7915
8015
|
onClick: () => onFilterChange(f.id),
|
|
7916
|
-
className:
|
|
8016
|
+
className: cn63(
|
|
7917
8017
|
"flex min-h-[40px] items-center justify-between rounded-md px-3 py-2 text-sm font-medium",
|
|
7918
8018
|
"transition-colors hover:bg-accent hover:text-accent-foreground",
|
|
7919
8019
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -7933,7 +8033,7 @@ function MosaicFilterSidebar({
|
|
|
7933
8033
|
{
|
|
7934
8034
|
type: "button",
|
|
7935
8035
|
onClick: () => onCategoryChange(cat.id),
|
|
7936
|
-
className:
|
|
8036
|
+
className: cn63(
|
|
7937
8037
|
"flex min-h-[36px] items-center justify-between rounded-md px-3 py-1.5 text-sm",
|
|
7938
8038
|
"transition-colors hover:bg-accent hover:text-accent-foreground",
|
|
7939
8039
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -7953,7 +8053,7 @@ function MosaicFilterSidebar({
|
|
|
7953
8053
|
);
|
|
7954
8054
|
}
|
|
7955
8055
|
MosaicFilterSidebar.displayName = "MosaicFilterSidebar";
|
|
7956
|
-
function
|
|
8056
|
+
function cn64(...classes) {
|
|
7957
8057
|
return classes.filter(Boolean).join(" ");
|
|
7958
8058
|
}
|
|
7959
8059
|
function SearchIcon3() {
|
|
@@ -8078,7 +8178,7 @@ function AgentListDesktop({
|
|
|
8078
8178
|
value: query,
|
|
8079
8179
|
onChange: (e) => setQuery(e.target.value),
|
|
8080
8180
|
placeholder: searchPlaceholder,
|
|
8081
|
-
className:
|
|
8181
|
+
className: cn64(
|
|
8082
8182
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
8083
8183
|
"text-sm placeholder:text-muted-foreground",
|
|
8084
8184
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -8091,7 +8191,7 @@ function AgentListDesktop({
|
|
|
8091
8191
|
{
|
|
8092
8192
|
type: "button",
|
|
8093
8193
|
onClick: onCreateAgent,
|
|
8094
|
-
className:
|
|
8194
|
+
className: cn64(
|
|
8095
8195
|
"inline-flex items-center gap-2 rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground",
|
|
8096
8196
|
"hover:bg-primary/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
8097
8197
|
),
|
|
@@ -8160,7 +8260,7 @@ function AgentListMobile({
|
|
|
8160
8260
|
{
|
|
8161
8261
|
type: "button",
|
|
8162
8262
|
onClick: () => setFilterOpen(true),
|
|
8163
|
-
className:
|
|
8263
|
+
className: cn64(
|
|
8164
8264
|
"inline-flex h-9 w-9 items-center justify-center rounded-md",
|
|
8165
8265
|
"border border-border bg-background text-foreground",
|
|
8166
8266
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -8175,7 +8275,7 @@ function AgentListMobile({
|
|
|
8175
8275
|
{
|
|
8176
8276
|
type: "button",
|
|
8177
8277
|
onClick: onCreateAgent,
|
|
8178
|
-
className:
|
|
8278
|
+
className: cn64(
|
|
8179
8279
|
"inline-flex h-9 items-center gap-1.5 rounded-md bg-primary px-3 text-sm font-medium text-primary-foreground",
|
|
8180
8280
|
"hover:bg-primary/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
8181
8281
|
),
|
|
@@ -8196,7 +8296,7 @@ function AgentListMobile({
|
|
|
8196
8296
|
value: query,
|
|
8197
8297
|
onChange: (e) => setQuery(e.target.value),
|
|
8198
8298
|
placeholder: searchPlaceholder,
|
|
8199
|
-
className:
|
|
8299
|
+
className: cn64(
|
|
8200
8300
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
8201
8301
|
"text-sm placeholder:text-muted-foreground",
|
|
8202
8302
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -8258,7 +8358,7 @@ function MosaicAgentList(props) {
|
|
|
8258
8358
|
return isMobile ? /* @__PURE__ */ jsx(AgentListMobile, { ...props }) : /* @__PURE__ */ jsx(AgentListDesktop, { ...props });
|
|
8259
8359
|
}
|
|
8260
8360
|
MosaicAgentList.displayName = "MosaicAgentList";
|
|
8261
|
-
function
|
|
8361
|
+
function cn65(...classes) {
|
|
8262
8362
|
return classes.filter(Boolean).join(" ");
|
|
8263
8363
|
}
|
|
8264
8364
|
function StarIcon({ filled }) {
|
|
@@ -8355,7 +8455,7 @@ function MarketplaceCard({
|
|
|
8355
8455
|
"div",
|
|
8356
8456
|
{
|
|
8357
8457
|
"data-slot": "marketplace-card",
|
|
8358
|
-
className:
|
|
8458
|
+
className: cn65(
|
|
8359
8459
|
"rounded-lg border border-border bg-card p-4 transition-shadow hover:shadow-md",
|
|
8360
8460
|
compact ? "flex items-center gap-3" : "flex flex-col gap-3"
|
|
8361
8461
|
),
|
|
@@ -8363,7 +8463,7 @@ function MarketplaceCard({
|
|
|
8363
8463
|
item.icon && /* @__PURE__ */ jsx(
|
|
8364
8464
|
"div",
|
|
8365
8465
|
{
|
|
8366
|
-
className:
|
|
8466
|
+
className: cn65(
|
|
8367
8467
|
"flex shrink-0 items-center justify-center rounded-lg",
|
|
8368
8468
|
compact ? "h-10 w-10" : "h-12 w-12",
|
|
8369
8469
|
item.accentClass ?? "bg-muted text-muted-foreground"
|
|
@@ -8374,7 +8474,7 @@ function MarketplaceCard({
|
|
|
8374
8474
|
/* @__PURE__ */ jsxs("div", { className: "flex-1 min-w-0", children: [
|
|
8375
8475
|
/* @__PURE__ */ jsxs("div", { className: "flex items-start justify-between gap-2", children: [
|
|
8376
8476
|
/* @__PURE__ */ jsxs("div", { className: "min-w-0", children: [
|
|
8377
|
-
/* @__PURE__ */ jsx("p", { className:
|
|
8477
|
+
/* @__PURE__ */ jsx("p", { className: cn65("font-semibold leading-tight", compact ? "text-sm" : "text-base"), children: item.title }),
|
|
8378
8478
|
item.description && !compact && /* @__PURE__ */ jsx("p", { className: "mt-1 text-sm text-muted-foreground line-clamp-2", children: item.description })
|
|
8379
8479
|
] }),
|
|
8380
8480
|
item.price && /* @__PURE__ */ jsx("span", { className: "shrink-0 rounded-full bg-muted px-2 py-0.5 text-xs font-medium text-muted-foreground", children: item.price })
|
|
@@ -8391,13 +8491,13 @@ function MarketplaceCard({
|
|
|
8391
8491
|
] })
|
|
8392
8492
|
] })
|
|
8393
8493
|
] }),
|
|
8394
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
8494
|
+
/* @__PURE__ */ jsxs("div", { className: cn65("flex gap-2", compact ? "shrink-0" : "mt-1"), children: [
|
|
8395
8495
|
onPreview && /* @__PURE__ */ jsx(
|
|
8396
8496
|
"button",
|
|
8397
8497
|
{
|
|
8398
8498
|
type: "button",
|
|
8399
8499
|
onClick: () => onPreview(item.id),
|
|
8400
|
-
className:
|
|
8500
|
+
className: cn65(
|
|
8401
8501
|
"inline-flex min-h-[36px] items-center justify-center rounded-md border border-border",
|
|
8402
8502
|
"bg-background px-3 text-xs font-medium text-foreground",
|
|
8403
8503
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -8411,7 +8511,7 @@ function MarketplaceCard({
|
|
|
8411
8511
|
{
|
|
8412
8512
|
type: "button",
|
|
8413
8513
|
onClick: () => onUninstall(item.id),
|
|
8414
|
-
className:
|
|
8514
|
+
className: cn65(
|
|
8415
8515
|
"inline-flex min-h-[36px] items-center justify-center rounded-md",
|
|
8416
8516
|
"bg-secondary px-3 text-xs font-medium text-secondary-foreground",
|
|
8417
8517
|
"hover:bg-secondary/80",
|
|
@@ -8424,7 +8524,7 @@ function MarketplaceCard({
|
|
|
8424
8524
|
{
|
|
8425
8525
|
type: "button",
|
|
8426
8526
|
onClick: () => onInstall(item.id),
|
|
8427
|
-
className:
|
|
8527
|
+
className: cn65(
|
|
8428
8528
|
"inline-flex min-h-[36px] items-center justify-center rounded-md",
|
|
8429
8529
|
"bg-primary px-3 text-xs font-medium text-primary-foreground",
|
|
8430
8530
|
"hover:bg-primary/90",
|
|
@@ -8496,7 +8596,7 @@ function MarketplaceListDesktop(props) {
|
|
|
8496
8596
|
value: query,
|
|
8497
8597
|
onChange: (e) => setQuery(e.target.value),
|
|
8498
8598
|
placeholder: searchPlaceholder,
|
|
8499
|
-
className:
|
|
8599
|
+
className: cn65(
|
|
8500
8600
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
8501
8601
|
"text-sm placeholder:text-muted-foreground",
|
|
8502
8602
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -8579,7 +8679,7 @@ function MarketplaceListMobile(props) {
|
|
|
8579
8679
|
value: query,
|
|
8580
8680
|
onChange: (e) => setQuery(e.target.value),
|
|
8581
8681
|
placeholder: searchPlaceholder,
|
|
8582
|
-
className:
|
|
8682
|
+
className: cn65(
|
|
8583
8683
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
8584
8684
|
"text-sm placeholder:text-muted-foreground",
|
|
8585
8685
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -8658,7 +8758,7 @@ var marketplaceCardVariants = cva(
|
|
|
8658
8758
|
}
|
|
8659
8759
|
}
|
|
8660
8760
|
);
|
|
8661
|
-
function
|
|
8761
|
+
function cn66(...classes) {
|
|
8662
8762
|
return classes.filter(Boolean).join(" ");
|
|
8663
8763
|
}
|
|
8664
8764
|
function MosaicMarketplaceCard({
|
|
@@ -8684,12 +8784,12 @@ function MosaicMarketplaceCard({
|
|
|
8684
8784
|
MosaicCard,
|
|
8685
8785
|
{
|
|
8686
8786
|
"data-slot": "marketplace-card",
|
|
8687
|
-
className:
|
|
8787
|
+
className: cn66(marketplaceCardVariants({ variant }), className),
|
|
8688
8788
|
children: [
|
|
8689
8789
|
icon && /* @__PURE__ */ jsx(
|
|
8690
8790
|
"div",
|
|
8691
8791
|
{
|
|
8692
|
-
className:
|
|
8792
|
+
className: cn66(
|
|
8693
8793
|
"flex shrink-0 items-center justify-center rounded-lg bg-muted text-muted-foreground",
|
|
8694
8794
|
compact ? "h-10 w-10" : "h-12 w-12"
|
|
8695
8795
|
),
|
|
@@ -8697,7 +8797,7 @@ function MosaicMarketplaceCard({
|
|
|
8697
8797
|
}
|
|
8698
8798
|
),
|
|
8699
8799
|
/* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1", children: [
|
|
8700
|
-
/* @__PURE__ */ jsx(MosaicCardTitle, { className:
|
|
8800
|
+
/* @__PURE__ */ jsx(MosaicCardTitle, { className: cn66("truncate", compact ? "text-sm" : "text-base"), children: name }),
|
|
8701
8801
|
description && /* @__PURE__ */ jsx(
|
|
8702
8802
|
MosaicCardDescription,
|
|
8703
8803
|
{
|
|
@@ -8719,13 +8819,13 @@ function MosaicMarketplaceCard({
|
|
|
8719
8819
|
}
|
|
8720
8820
|
)
|
|
8721
8821
|
] }),
|
|
8722
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
8822
|
+
/* @__PURE__ */ jsxs("div", { className: cn66("flex gap-2", compact ? "shrink-0" : "mt-1"), children: [
|
|
8723
8823
|
onPreview && /* @__PURE__ */ jsx(
|
|
8724
8824
|
"button",
|
|
8725
8825
|
{
|
|
8726
8826
|
type: "button",
|
|
8727
8827
|
onClick: () => onPreview(id),
|
|
8728
|
-
className:
|
|
8828
|
+
className: cn66(
|
|
8729
8829
|
"inline-flex min-h-[36px] items-center justify-center rounded-md border border-border",
|
|
8730
8830
|
"bg-background px-3 text-xs font-medium text-foreground",
|
|
8731
8831
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -8739,7 +8839,7 @@ function MosaicMarketplaceCard({
|
|
|
8739
8839
|
{
|
|
8740
8840
|
type: "button",
|
|
8741
8841
|
onClick: () => onUnadopt(id),
|
|
8742
|
-
className:
|
|
8842
|
+
className: cn66(
|
|
8743
8843
|
"inline-flex min-h-[36px] items-center justify-center rounded-md",
|
|
8744
8844
|
"bg-secondary px-3 text-xs font-medium text-secondary-foreground",
|
|
8745
8845
|
"hover:bg-secondary/80",
|
|
@@ -8752,7 +8852,7 @@ function MosaicMarketplaceCard({
|
|
|
8752
8852
|
{
|
|
8753
8853
|
type: "button",
|
|
8754
8854
|
onClick: () => onAdopt(id),
|
|
8755
|
-
className:
|
|
8855
|
+
className: cn66(
|
|
8756
8856
|
"inline-flex min-h-[36px] items-center justify-center rounded-md",
|
|
8757
8857
|
"bg-primary px-3 text-xs font-medium text-primary-foreground",
|
|
8758
8858
|
"hover:bg-primary/90",
|
|
@@ -8767,7 +8867,7 @@ function MosaicMarketplaceCard({
|
|
|
8767
8867
|
);
|
|
8768
8868
|
}
|
|
8769
8869
|
MosaicMarketplaceCard.displayName = "MosaicMarketplaceCard";
|
|
8770
|
-
function
|
|
8870
|
+
function cn67(...classes) {
|
|
8771
8871
|
return classes.filter(Boolean).join(" ");
|
|
8772
8872
|
}
|
|
8773
8873
|
function StarIcon2() {
|
|
@@ -8888,7 +8988,7 @@ function MosaicTemplateCard({
|
|
|
8888
8988
|
type: "button",
|
|
8889
8989
|
onClick: () => onSelect(template),
|
|
8890
8990
|
"data-slot": "template-card",
|
|
8891
|
-
className:
|
|
8991
|
+
className: cn67(
|
|
8892
8992
|
"w-full text-left rounded-lg border transition-all duration-200",
|
|
8893
8993
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
8894
8994
|
isSelected ? "border-primary bg-primary/5 ring-2 ring-primary" : "border-border bg-card hover:border-primary/50",
|
|
@@ -8989,7 +9089,7 @@ function MosaicTemplatePreview({
|
|
|
8989
9089
|
agent.accentColor && /* @__PURE__ */ jsx(
|
|
8990
9090
|
"span",
|
|
8991
9091
|
{
|
|
8992
|
-
className:
|
|
9092
|
+
className: cn67("h-2 w-2 rounded-full", agent.accentColor),
|
|
8993
9093
|
"aria-hidden": "true"
|
|
8994
9094
|
}
|
|
8995
9095
|
),
|
|
@@ -9049,7 +9149,7 @@ function MosaicAgentTeamPreview({ agents, label }) {
|
|
|
9049
9149
|
agent.accentColor && /* @__PURE__ */ jsx(
|
|
9050
9150
|
"span",
|
|
9051
9151
|
{
|
|
9052
|
-
className:
|
|
9152
|
+
className: cn67("h-2.5 w-2.5 rounded-full", agent.accentColor),
|
|
9053
9153
|
"aria-hidden": "true"
|
|
9054
9154
|
}
|
|
9055
9155
|
),
|
|
@@ -9073,7 +9173,7 @@ function MosaicQuickStartPanel({
|
|
|
9073
9173
|
scratchLabel,
|
|
9074
9174
|
className
|
|
9075
9175
|
}) {
|
|
9076
|
-
return /* @__PURE__ */ jsxs("div", { "data-slot": "quick-start-panel", className:
|
|
9176
|
+
return /* @__PURE__ */ jsxs("div", { "data-slot": "quick-start-panel", className: cn67("flex flex-col gap-6", className), children: [
|
|
9077
9177
|
scenarios.length > 0 && /* @__PURE__ */ jsxs("div", { children: [
|
|
9078
9178
|
/* @__PURE__ */ jsx("h3", { className: "mb-3 text-sm font-semibold text-foreground", children: scenariosTitle }),
|
|
9079
9179
|
/* @__PURE__ */ jsx("div", { className: "grid gap-3 sm:grid-cols-2", children: scenarios.map((scenario) => /* @__PURE__ */ jsxs(
|
|
@@ -9081,7 +9181,7 @@ function MosaicQuickStartPanel({
|
|
|
9081
9181
|
{
|
|
9082
9182
|
type: "button",
|
|
9083
9183
|
onClick: () => onSelectScenario(scenario),
|
|
9084
|
-
className:
|
|
9184
|
+
className: cn67(
|
|
9085
9185
|
"flex items-start gap-3 rounded-lg border border-border bg-card p-4 text-left",
|
|
9086
9186
|
"hover:border-primary/50 hover:bg-primary/5",
|
|
9087
9187
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -9113,7 +9213,7 @@ function MosaicQuickStartPanel({
|
|
|
9113
9213
|
{
|
|
9114
9214
|
type: "button",
|
|
9115
9215
|
onClick: () => onSelectPreset(preset),
|
|
9116
|
-
className:
|
|
9216
|
+
className: cn67(
|
|
9117
9217
|
"flex items-center justify-between gap-3 rounded-lg border border-border bg-card px-4 py-3 text-left",
|
|
9118
9218
|
"hover:border-primary/50",
|
|
9119
9219
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -9127,7 +9227,7 @@ function MosaicQuickStartPanel({
|
|
|
9127
9227
|
a.accentColor && /* @__PURE__ */ jsx(
|
|
9128
9228
|
"span",
|
|
9129
9229
|
{
|
|
9130
|
-
className:
|
|
9230
|
+
className: cn67("h-2 w-2 rounded-full", a.accentColor),
|
|
9131
9231
|
"aria-hidden": "true"
|
|
9132
9232
|
}
|
|
9133
9233
|
),
|
|
@@ -9145,7 +9245,7 @@ function MosaicQuickStartPanel({
|
|
|
9145
9245
|
{
|
|
9146
9246
|
type: "button",
|
|
9147
9247
|
onClick: onStartFromScratch,
|
|
9148
|
-
className:
|
|
9248
|
+
className: cn67(
|
|
9149
9249
|
"inline-flex min-h-[44px] w-full items-center justify-center rounded-md border border-border",
|
|
9150
9250
|
"bg-background px-4 text-sm font-medium text-foreground",
|
|
9151
9251
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -9239,7 +9339,7 @@ function TemplateGalleryContent({
|
|
|
9239
9339
|
value: query,
|
|
9240
9340
|
onChange: (e) => setQuery(e.target.value),
|
|
9241
9341
|
placeholder: searchPlaceholder,
|
|
9242
|
-
className:
|
|
9342
|
+
className: cn67(
|
|
9243
9343
|
"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"
|
|
9244
9344
|
)
|
|
9245
9345
|
}
|
|
@@ -9290,7 +9390,7 @@ function TemplateGalleryContent({
|
|
|
9290
9390
|
value: query,
|
|
9291
9391
|
onChange: (e) => setQuery(e.target.value),
|
|
9292
9392
|
placeholder: searchPlaceholder,
|
|
9293
|
-
className:
|
|
9393
|
+
className: cn67(
|
|
9294
9394
|
"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"
|
|
9295
9395
|
)
|
|
9296
9396
|
}
|
|
@@ -9322,7 +9422,7 @@ function MosaicTemplateGallery(props) {
|
|
|
9322
9422
|
return /* @__PURE__ */ jsx(TemplateGalleryContent, { ...props, isMobile });
|
|
9323
9423
|
}
|
|
9324
9424
|
MosaicTemplateGallery.displayName = "MosaicTemplateGallery";
|
|
9325
|
-
function
|
|
9425
|
+
function cn68(...classes) {
|
|
9326
9426
|
return classes.filter(Boolean).join(" ");
|
|
9327
9427
|
}
|
|
9328
9428
|
function PlusIcon5() {
|
|
@@ -9473,7 +9573,7 @@ function MosaicModuleForm(props) {
|
|
|
9473
9573
|
onChange: (e) => update("name", e.target.value),
|
|
9474
9574
|
placeholder: namePlaceholder,
|
|
9475
9575
|
required: true,
|
|
9476
|
-
className:
|
|
9576
|
+
className: cn68(
|
|
9477
9577
|
"w-full rounded-md border border-input bg-background px-3 py-2 min-h-[40px]",
|
|
9478
9578
|
"text-sm placeholder:text-muted-foreground",
|
|
9479
9579
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -9491,7 +9591,7 @@ function MosaicModuleForm(props) {
|
|
|
9491
9591
|
onChange: (e) => update("description", e.target.value),
|
|
9492
9592
|
placeholder: descriptionPlaceholder,
|
|
9493
9593
|
rows: 3,
|
|
9494
|
-
className:
|
|
9594
|
+
className: cn68(
|
|
9495
9595
|
"w-full rounded-md border border-input bg-background px-3 py-2",
|
|
9496
9596
|
"text-sm placeholder:text-muted-foreground resize-none",
|
|
9497
9597
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -9513,7 +9613,7 @@ function MosaicModuleForm(props) {
|
|
|
9513
9613
|
value: formData[field.id] ?? "",
|
|
9514
9614
|
onChange: (e) => update(field.id, e.target.value),
|
|
9515
9615
|
placeholder: field.placeholder,
|
|
9516
|
-
className:
|
|
9616
|
+
className: cn68(
|
|
9517
9617
|
"w-full rounded-md border border-input bg-background px-3 py-2 min-h-[40px]",
|
|
9518
9618
|
"text-sm placeholder:text-muted-foreground",
|
|
9519
9619
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -9528,7 +9628,7 @@ function MosaicModuleForm(props) {
|
|
|
9528
9628
|
onChange: (e) => update(field.id, e.target.value),
|
|
9529
9629
|
placeholder: field.placeholder,
|
|
9530
9630
|
rows: 3,
|
|
9531
|
-
className:
|
|
9631
|
+
className: cn68(
|
|
9532
9632
|
"w-full rounded-md border border-input bg-background px-3 py-2",
|
|
9533
9633
|
"text-sm placeholder:text-muted-foreground resize-none",
|
|
9534
9634
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -9544,7 +9644,7 @@ function MosaicModuleForm(props) {
|
|
|
9544
9644
|
onChange: (e) => update(field.id, e.target.value),
|
|
9545
9645
|
placeholder: field.placeholder ?? "\u{1F9E0}",
|
|
9546
9646
|
maxLength: 4,
|
|
9547
|
-
className:
|
|
9647
|
+
className: cn68(
|
|
9548
9648
|
"w-20 rounded-md border border-input bg-background px-3 py-2 text-2xl",
|
|
9549
9649
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
9550
9650
|
)
|
|
@@ -9565,7 +9665,7 @@ function MosaicModuleForm(props) {
|
|
|
9565
9665
|
}
|
|
9566
9666
|
},
|
|
9567
9667
|
placeholder: field.placeholder ?? tagListAddPlaceholder,
|
|
9568
|
-
className:
|
|
9668
|
+
className: cn68(
|
|
9569
9669
|
"flex-1 rounded-md border border-input bg-background px-3 py-2 min-h-[36px]",
|
|
9570
9670
|
"text-sm placeholder:text-muted-foreground",
|
|
9571
9671
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -9777,7 +9877,7 @@ function LibraryContent({
|
|
|
9777
9877
|
{
|
|
9778
9878
|
type: "button",
|
|
9779
9879
|
onClick: openCreate,
|
|
9780
|
-
className:
|
|
9880
|
+
className: cn68(
|
|
9781
9881
|
"inline-flex items-center gap-2 rounded-md bg-primary px-3 py-2 text-sm font-medium text-primary-foreground",
|
|
9782
9882
|
"hover:bg-primary/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
9783
9883
|
),
|
|
@@ -9797,7 +9897,7 @@ function LibraryContent({
|
|
|
9797
9897
|
value: query,
|
|
9798
9898
|
onChange: (e) => setQuery(e.target.value),
|
|
9799
9899
|
placeholder: searchPlaceholder,
|
|
9800
|
-
className:
|
|
9900
|
+
className: cn68(
|
|
9801
9901
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
9802
9902
|
"text-sm placeholder:text-muted-foreground",
|
|
9803
9903
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -9810,7 +9910,7 @@ function LibraryContent({
|
|
|
9810
9910
|
{
|
|
9811
9911
|
type: "button",
|
|
9812
9912
|
onClick: () => setActiveTab(tab.id),
|
|
9813
|
-
className:
|
|
9913
|
+
className: cn68(
|
|
9814
9914
|
"rounded-md px-3 py-1.5 text-sm font-medium transition-colors",
|
|
9815
9915
|
activeTab === tab.id ? "bg-primary text-primary-foreground" : "bg-muted text-muted-foreground hover:bg-accent hover:text-accent-foreground"
|
|
9816
9916
|
),
|
|
@@ -9862,7 +9962,7 @@ function MosaicModuleLibrary(props) {
|
|
|
9862
9962
|
return /* @__PURE__ */ jsx(LibraryContent, { ...props });
|
|
9863
9963
|
}
|
|
9864
9964
|
MosaicModuleLibrary.displayName = "MosaicModuleLibrary";
|
|
9865
|
-
function
|
|
9965
|
+
function cn69(...classes) {
|
|
9866
9966
|
return classes.filter(Boolean).join(" ");
|
|
9867
9967
|
}
|
|
9868
9968
|
var roleConfig = {
|
|
@@ -9889,7 +9989,7 @@ function MosaicOrgRoleBadge({ role, className }) {
|
|
|
9889
9989
|
{
|
|
9890
9990
|
"data-slot": "org-role-badge",
|
|
9891
9991
|
title: config.description,
|
|
9892
|
-
className:
|
|
9992
|
+
className: cn69(
|
|
9893
9993
|
"inline-flex items-center rounded-full px-2 py-0.5 text-xs font-medium",
|
|
9894
9994
|
config.className,
|
|
9895
9995
|
className
|
|
@@ -9906,13 +10006,13 @@ function MosaicMultiOrgIndicator({
|
|
|
9906
10006
|
className
|
|
9907
10007
|
}) {
|
|
9908
10008
|
if (orgCount <= 1) return null;
|
|
9909
|
-
return /* @__PURE__ */ jsxs("div", { "data-slot": "multi-org-indicator", className:
|
|
10009
|
+
return /* @__PURE__ */ jsxs("div", { "data-slot": "multi-org-indicator", className: cn69("flex items-center gap-2", className), children: [
|
|
9910
10010
|
onSwitchOrg ? /* @__PURE__ */ jsxs(
|
|
9911
10011
|
"button",
|
|
9912
10012
|
{
|
|
9913
10013
|
type: "button",
|
|
9914
10014
|
onClick: onSwitchOrg,
|
|
9915
|
-
className:
|
|
10015
|
+
className: cn69(
|
|
9916
10016
|
"inline-flex items-center gap-1.5 rounded-full bg-secondary px-2.5 py-1 text-xs font-medium text-secondary-foreground",
|
|
9917
10017
|
"hover:bg-secondary/80",
|
|
9918
10018
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -9959,6 +10059,7 @@ function MosaicCreateOrgDialog({
|
|
|
9959
10059
|
orgNameFieldLabel,
|
|
9960
10060
|
orgNamePlaceholder,
|
|
9961
10061
|
slugFieldLabel,
|
|
10062
|
+
slugPlaceholder,
|
|
9962
10063
|
descriptionFieldLabel,
|
|
9963
10064
|
descriptionPlaceholder,
|
|
9964
10065
|
cancelLabel,
|
|
@@ -10026,7 +10127,7 @@ function MosaicCreateOrgDialog({
|
|
|
10026
10127
|
onChange: (e) => setName(e.target.value),
|
|
10027
10128
|
placeholder: orgNamePlaceholder,
|
|
10028
10129
|
required: true,
|
|
10029
|
-
className:
|
|
10130
|
+
className: cn69(
|
|
10030
10131
|
"w-full rounded-md border bg-background px-3 py-2 min-h-[40px] text-sm placeholder:text-muted-foreground",
|
|
10031
10132
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
10032
10133
|
errors.name ? "border-destructive" : "border-input"
|
|
@@ -10044,9 +10145,9 @@ function MosaicCreateOrgDialog({
|
|
|
10044
10145
|
type: "text",
|
|
10045
10146
|
value: slug,
|
|
10046
10147
|
onChange: (e) => setSlug(e.target.value),
|
|
10047
|
-
placeholder:
|
|
10148
|
+
placeholder: slugPlaceholder,
|
|
10048
10149
|
required: true,
|
|
10049
|
-
className:
|
|
10150
|
+
className: cn69(
|
|
10050
10151
|
"w-full rounded-md border bg-background px-3 py-2 min-h-[40px] text-sm placeholder:text-muted-foreground",
|
|
10051
10152
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
10052
10153
|
errors.slug ? "border-destructive" : "border-input"
|
|
@@ -10159,7 +10260,7 @@ function MosaicInviteMemberDialog({
|
|
|
10159
10260
|
onChange: (e) => setEmail(e.target.value),
|
|
10160
10261
|
placeholder: emailPlaceholder,
|
|
10161
10262
|
required: true,
|
|
10162
|
-
className:
|
|
10263
|
+
className: cn69(
|
|
10163
10264
|
"w-full rounded-md border bg-background px-3 py-2 min-h-[40px] text-sm placeholder:text-muted-foreground",
|
|
10164
10265
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
10165
10266
|
errors.email ? "border-destructive" : "border-input"
|
|
@@ -10346,7 +10447,7 @@ function MosaicMemberList({
|
|
|
10346
10447
|
const filtered = members.filter(
|
|
10347
10448
|
(m) => !query || m.name.toLowerCase().includes(query.toLowerCase()) || m.email.toLowerCase().includes(query.toLowerCase())
|
|
10348
10449
|
);
|
|
10349
|
-
return /* @__PURE__ */ jsxs("div", { "data-slot": "member-list", className:
|
|
10450
|
+
return /* @__PURE__ */ jsxs("div", { "data-slot": "member-list", className: cn69("flex flex-col gap-4", className), children: [
|
|
10350
10451
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
10351
10452
|
/* @__PURE__ */ jsxs("div", { className: "relative flex-1", children: [
|
|
10352
10453
|
/* @__PURE__ */ jsx("span", { className: "absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground", children: /* @__PURE__ */ jsxs(
|
|
@@ -10442,7 +10543,7 @@ function MosaicOrgPanel({
|
|
|
10442
10543
|
const { isMobile } = useDevice();
|
|
10443
10544
|
const [activeTab, setActiveTab] = React30.useState(defaultTab ?? tabs[0]?.id ?? "");
|
|
10444
10545
|
const activeContent = tabs.find((t) => t.id === activeTab)?.content;
|
|
10445
|
-
return /* @__PURE__ */ jsxs("div", { "data-slot": "org-panel", className:
|
|
10546
|
+
return /* @__PURE__ */ jsxs("div", { "data-slot": "org-panel", className: cn69("flex h-full flex-col", className), children: [
|
|
10446
10547
|
/* @__PURE__ */ jsxs("div", { className: "border-b border-border px-4 py-4 md:px-6", children: [
|
|
10447
10548
|
/* @__PURE__ */ jsxs("div", { className: "flex items-start justify-between gap-4", children: [
|
|
10448
10549
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
@@ -10464,12 +10565,12 @@ function MosaicOrgPanel({
|
|
|
10464
10565
|
] }),
|
|
10465
10566
|
headerActions
|
|
10466
10567
|
] }),
|
|
10467
|
-
tabs.length > 0 && /* @__PURE__ */ jsx("div", { className:
|
|
10568
|
+
tabs.length > 0 && /* @__PURE__ */ jsx("div", { className: cn69("mt-4 flex gap-1", isMobile && "overflow-x-auto"), children: tabs.map((tab) => /* @__PURE__ */ jsx(
|
|
10468
10569
|
"button",
|
|
10469
10570
|
{
|
|
10470
10571
|
type: "button",
|
|
10471
10572
|
onClick: () => setActiveTab(tab.id),
|
|
10472
|
-
className:
|
|
10573
|
+
className: cn69(
|
|
10473
10574
|
"shrink-0 rounded-md px-3 py-1.5 text-sm font-medium transition-colors",
|
|
10474
10575
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
10475
10576
|
activeTab === tab.id ? "bg-primary text-primary-foreground" : "bg-muted text-muted-foreground hover:bg-accent hover:text-accent-foreground"
|
|
@@ -10483,7 +10584,7 @@ function MosaicOrgPanel({
|
|
|
10483
10584
|
] });
|
|
10484
10585
|
}
|
|
10485
10586
|
MosaicOrgPanel.displayName = "MosaicOrgPanel";
|
|
10486
|
-
function
|
|
10587
|
+
function cn70(...classes) {
|
|
10487
10588
|
return classes.filter(Boolean).join(" ");
|
|
10488
10589
|
}
|
|
10489
10590
|
var ANIM_ID8 = "mosaic-dashboard-content-kf";
|
|
@@ -10509,6 +10610,7 @@ function injectStyles8() {
|
|
|
10509
10610
|
function MosaicDashboardContent({
|
|
10510
10611
|
views,
|
|
10511
10612
|
currentView,
|
|
10613
|
+
viewNotFoundLabel,
|
|
10512
10614
|
className
|
|
10513
10615
|
}) {
|
|
10514
10616
|
const { isMobile } = useDevice();
|
|
@@ -10520,16 +10622,16 @@ function MosaicDashboardContent({
|
|
|
10520
10622
|
"div",
|
|
10521
10623
|
{
|
|
10522
10624
|
"data-slot": "dashboard-content",
|
|
10523
|
-
className:
|
|
10625
|
+
className: cn70("h-full overflow-auto", isMobile ? "p-4" : "p-6", className),
|
|
10524
10626
|
children: activeView ? /* @__PURE__ */ jsx("div", { className: "mosaic-content-view space-y-6", children: activeView.content }, currentView) : /* @__PURE__ */ jsxs("p", { className: "py-12 text-center text-sm text-muted-foreground", children: [
|
|
10525
|
-
|
|
10627
|
+
viewNotFoundLabel,
|
|
10526
10628
|
currentView
|
|
10527
10629
|
] })
|
|
10528
10630
|
}
|
|
10529
10631
|
);
|
|
10530
10632
|
}
|
|
10531
10633
|
MosaicDashboardContent.displayName = "MosaicDashboardContent";
|
|
10532
|
-
function
|
|
10634
|
+
function cn71(...classes) {
|
|
10533
10635
|
return classes.filter(Boolean).join(" ");
|
|
10534
10636
|
}
|
|
10535
10637
|
var ANIM_ID9 = "mosaic-dashboard-header2-kf";
|
|
@@ -10641,16 +10743,16 @@ function MosaicDashboardHeader({
|
|
|
10641
10743
|
"header",
|
|
10642
10744
|
{
|
|
10643
10745
|
"data-slot": "dashboard-header",
|
|
10644
|
-
className:
|
|
10746
|
+
className: cn71(
|
|
10645
10747
|
"mosaic-dashboard-header2",
|
|
10646
10748
|
"sticky top-0 z-40 border-b border-border/50 bg-background/80 backdrop-blur-sm",
|
|
10647
10749
|
className
|
|
10648
10750
|
),
|
|
10649
|
-
children: /* @__PURE__ */ jsx("div", { className:
|
|
10751
|
+
children: /* @__PURE__ */ jsx("div", { className: cn71(isMobile ? "px-4 py-3" : "container mx-auto px-4 py-4"), children: /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-4", children: [
|
|
10650
10752
|
/* @__PURE__ */ jsx("div", { className: "flex min-w-0 flex-1 items-center gap-2 md:gap-4", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
10651
10753
|
logoSlot ?? /* @__PURE__ */ jsx(SparklesIcon4, {}),
|
|
10652
10754
|
/* @__PURE__ */ jsxs("div", { className: "min-w-0", children: [
|
|
10653
|
-
/* @__PURE__ */ jsx("h1", { className:
|
|
10755
|
+
/* @__PURE__ */ jsx("h1", { className: cn71("font-semibold truncate", isMobile ? "text-lg" : "text-xl"), children: title }),
|
|
10654
10756
|
subtitle && !isMobile && /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground truncate", children: subtitle })
|
|
10655
10757
|
] })
|
|
10656
10758
|
] }) }),
|
|
@@ -10663,7 +10765,7 @@ function MosaicDashboardHeader({
|
|
|
10663
10765
|
value: searchQuery,
|
|
10664
10766
|
onChange: handleSearch,
|
|
10665
10767
|
placeholder: searchPlaceholder,
|
|
10666
|
-
className:
|
|
10768
|
+
className: cn71(
|
|
10667
10769
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
10668
10770
|
"text-sm placeholder:text-muted-foreground",
|
|
10669
10771
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -10703,7 +10805,7 @@ function MosaicDashboardHeader({
|
|
|
10703
10805
|
);
|
|
10704
10806
|
}
|
|
10705
10807
|
MosaicDashboardHeader.displayName = "MosaicDashboardHeader";
|
|
10706
|
-
function
|
|
10808
|
+
function cn72(...classes) {
|
|
10707
10809
|
return classes.filter(Boolean).join(" ");
|
|
10708
10810
|
}
|
|
10709
10811
|
function ChevronDownIcon4() {
|
|
@@ -10786,13 +10888,13 @@ function MosaicOrgSwitcher({
|
|
|
10786
10888
|
}, [open]);
|
|
10787
10889
|
if (!currentOrg && organizations.length === 0 && !onCreateOrg) return null;
|
|
10788
10890
|
const initials = currentOrg?.name.split(" ").map((n) => n[0]).filter(Boolean).slice(0, 2).join("").toUpperCase() ?? "?";
|
|
10789
|
-
return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "org-switcher", className:
|
|
10891
|
+
return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "org-switcher", className: cn72("relative", className), children: [
|
|
10790
10892
|
/* @__PURE__ */ jsxs(
|
|
10791
10893
|
"button",
|
|
10792
10894
|
{
|
|
10793
10895
|
type: "button",
|
|
10794
10896
|
onClick: () => setOpen((v) => !v),
|
|
10795
|
-
className:
|
|
10897
|
+
className: cn72(
|
|
10796
10898
|
"inline-flex items-center gap-2 rounded-md border border-border bg-background px-3 py-1.5",
|
|
10797
10899
|
"text-sm font-medium text-foreground",
|
|
10798
10900
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -10819,7 +10921,7 @@ function MosaicOrgSwitcher({
|
|
|
10819
10921
|
{
|
|
10820
10922
|
role: "menu",
|
|
10821
10923
|
"aria-label": triggerAriaLabel,
|
|
10822
|
-
className:
|
|
10924
|
+
className: cn72(
|
|
10823
10925
|
"absolute left-0 top-full z-50 mt-1 min-w-[200px] rounded-md border border-border",
|
|
10824
10926
|
"bg-popover py-1 shadow-md"
|
|
10825
10927
|
),
|
|
@@ -10834,7 +10936,7 @@ function MosaicOrgSwitcher({
|
|
|
10834
10936
|
onSelectOrg?.(org.id);
|
|
10835
10937
|
setOpen(false);
|
|
10836
10938
|
},
|
|
10837
|
-
className:
|
|
10939
|
+
className: cn72(
|
|
10838
10940
|
"flex w-full items-center gap-2.5 px-3 py-2 text-sm text-foreground",
|
|
10839
10941
|
"hover:bg-accent hover:text-accent-foreground",
|
|
10840
10942
|
org.id === currentOrgId && "bg-primary/10 text-primary"
|
|
@@ -10871,7 +10973,7 @@ function MosaicOrgSwitcher({
|
|
|
10871
10973
|
] });
|
|
10872
10974
|
}
|
|
10873
10975
|
MosaicOrgSwitcher.displayName = "MosaicOrgSwitcher";
|
|
10874
|
-
function
|
|
10976
|
+
function cn73(...classes) {
|
|
10875
10977
|
return classes.filter(Boolean).join(" ");
|
|
10876
10978
|
}
|
|
10877
10979
|
function PlusIcon7() {
|
|
@@ -10916,19 +11018,19 @@ function MosaicQuickActionsMenu({
|
|
|
10916
11018
|
document.addEventListener("mousedown", h);
|
|
10917
11019
|
return () => document.removeEventListener("mousedown", h);
|
|
10918
11020
|
}, [open]);
|
|
10919
|
-
const itemClass =
|
|
11021
|
+
const itemClass = cn73(
|
|
10920
11022
|
"flex w-full items-center gap-2 px-3 py-2 text-sm text-foreground",
|
|
10921
11023
|
"hover:bg-accent hover:text-accent-foreground",
|
|
10922
11024
|
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
10923
11025
|
"min-h-[44px]"
|
|
10924
11026
|
);
|
|
10925
|
-
return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "quick-actions-menu", className:
|
|
11027
|
+
return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "quick-actions-menu", className: cn73("relative", className), children: [
|
|
10926
11028
|
/* @__PURE__ */ jsxs(
|
|
10927
11029
|
"button",
|
|
10928
11030
|
{
|
|
10929
11031
|
type: "button",
|
|
10930
11032
|
onClick: () => setOpen((v) => !v),
|
|
10931
|
-
className:
|
|
11033
|
+
className: cn73(
|
|
10932
11034
|
"inline-flex items-center justify-center gap-2 rounded-md border border-border bg-background",
|
|
10933
11035
|
"min-h-[44px] min-w-[44px] px-3 py-2 text-sm font-medium text-foreground",
|
|
10934
11036
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -10939,7 +11041,7 @@ function MosaicQuickActionsMenu({
|
|
|
10939
11041
|
"aria-label": label,
|
|
10940
11042
|
children: [
|
|
10941
11043
|
triggerIcon ?? /* @__PURE__ */ jsx(PlusIcon7, {}),
|
|
10942
|
-
/* @__PURE__ */ jsx("span", { className:
|
|
11044
|
+
/* @__PURE__ */ jsx("span", { className: cn73("hidden md:inline"), children: label })
|
|
10943
11045
|
]
|
|
10944
11046
|
}
|
|
10945
11047
|
),
|
|
@@ -10948,13 +11050,13 @@ function MosaicQuickActionsMenu({
|
|
|
10948
11050
|
{
|
|
10949
11051
|
role: "menu",
|
|
10950
11052
|
"aria-label": menuTitle,
|
|
10951
|
-
className:
|
|
11053
|
+
className: cn73(
|
|
10952
11054
|
"absolute right-0 top-full z-50 mt-1 rounded-md border border-border bg-popover py-1 shadow-md",
|
|
10953
11055
|
isMobile ? "w-[min(90vw,280px)]" : "w-56"
|
|
10954
11056
|
),
|
|
10955
11057
|
children: [
|
|
10956
11058
|
menuTitle && /* @__PURE__ */ jsx("div", { className: "px-3 py-1.5", children: /* @__PURE__ */ jsx("p", { className: "text-xs font-semibold text-muted-foreground uppercase tracking-wide", children: menuTitle }) }),
|
|
10957
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
11059
|
+
/* @__PURE__ */ jsx("div", { className: cn73(menuTitle && "border-t border-border") }),
|
|
10958
11060
|
actions.map((action) => /* @__PURE__ */ jsxs(React30.Fragment, { children: [
|
|
10959
11061
|
action.separator && /* @__PURE__ */ jsx("div", { className: "my-1 border-t border-border" }),
|
|
10960
11062
|
action.href && renderLink ? renderLink(
|
|
@@ -11259,7 +11361,7 @@ function MosaicOrgProfilePage({
|
|
|
11259
11361
|
);
|
|
11260
11362
|
}
|
|
11261
11363
|
MosaicOrgProfilePage.displayName = "MosaicOrgProfilePage";
|
|
11262
|
-
function
|
|
11364
|
+
function cn74(...classes) {
|
|
11263
11365
|
return classes.filter(Boolean).join(" ");
|
|
11264
11366
|
}
|
|
11265
11367
|
function defaultCompare(a, b) {
|
|
@@ -11322,7 +11424,7 @@ function MosaicDataTable({
|
|
|
11322
11424
|
{
|
|
11323
11425
|
ref,
|
|
11324
11426
|
"data-slot": "data-table",
|
|
11325
|
-
className:
|
|
11427
|
+
className: cn74("w-full border-collapse text-sm", className),
|
|
11326
11428
|
children: [
|
|
11327
11429
|
/* @__PURE__ */ jsx("thead", { "data-slot": "data-table-header", children: /* @__PURE__ */ jsx("tr", { "data-slot": "data-table-header-row", className: "border-b border-border bg-muted", children: columns.map((col, colIndex) => {
|
|
11328
11430
|
const isSortable = masterSortable && col.sortable;
|
|
@@ -11340,7 +11442,7 @@ function MosaicDataTable({
|
|
|
11340
11442
|
handleHeaderClick(col);
|
|
11341
11443
|
}
|
|
11342
11444
|
} : void 0,
|
|
11343
|
-
className:
|
|
11445
|
+
className: cn74(
|
|
11344
11446
|
"px-4 py-3 font-medium text-muted-foreground",
|
|
11345
11447
|
alignClass(col.align),
|
|
11346
11448
|
col.className,
|
|
@@ -11376,7 +11478,7 @@ function MosaicDataTable({
|
|
|
11376
11478
|
"td",
|
|
11377
11479
|
{
|
|
11378
11480
|
"data-slot": "data-table-td",
|
|
11379
|
-
className:
|
|
11481
|
+
className: cn74(
|
|
11380
11482
|
"px-4 py-3 text-foreground",
|
|
11381
11483
|
alignClass(col.align),
|
|
11382
11484
|
col.className
|
|
@@ -11515,7 +11617,7 @@ var stepSegmentVariants = cva(["h-1.5 flex-1 min-w-2 rounded-full transition-col
|
|
|
11515
11617
|
filled: false
|
|
11516
11618
|
}
|
|
11517
11619
|
});
|
|
11518
|
-
function
|
|
11620
|
+
function cn75(...classes) {
|
|
11519
11621
|
return classes.filter(Boolean).join(" ");
|
|
11520
11622
|
}
|
|
11521
11623
|
function resolveStatus(step, index, currentIndex) {
|
|
@@ -11556,7 +11658,7 @@ function MosaicStepPipelineSegments({
|
|
|
11556
11658
|
"aria-valuemax": total,
|
|
11557
11659
|
"aria-valuenow": current,
|
|
11558
11660
|
"aria-valuetext": progressLabel ? progressLabel(current, total) : void 0,
|
|
11559
|
-
className:
|
|
11661
|
+
className: cn75(stepSegmentBarVariants(), className),
|
|
11560
11662
|
children: steps.map((step, index) => {
|
|
11561
11663
|
const status = resolveStatus(step, index, currentIndex);
|
|
11562
11664
|
const filled = status !== "upcoming";
|
|
@@ -11568,7 +11670,7 @@ function MosaicStepPipelineSegments({
|
|
|
11568
11670
|
"data-status": status,
|
|
11569
11671
|
"data-filled": filled,
|
|
11570
11672
|
"aria-hidden": "true",
|
|
11571
|
-
className:
|
|
11673
|
+
className: cn75(stepSegmentVariants({ filled }))
|
|
11572
11674
|
},
|
|
11573
11675
|
key
|
|
11574
11676
|
);
|
|
@@ -11589,7 +11691,7 @@ function MosaicStepPipelineDots({
|
|
|
11589
11691
|
{
|
|
11590
11692
|
ref,
|
|
11591
11693
|
"data-slot": "step-pipeline",
|
|
11592
|
-
className:
|
|
11694
|
+
className: cn75(stepPipelineVariants({ orientation }), className),
|
|
11593
11695
|
children: steps.map((step, index) => {
|
|
11594
11696
|
const status = resolveStatus(step, index, currentIndex);
|
|
11595
11697
|
const isCurrent = status === "current";
|
|
@@ -11601,7 +11703,7 @@ function MosaicStepPipelineDots({
|
|
|
11601
11703
|
"data-slot": "step",
|
|
11602
11704
|
"data-status": status,
|
|
11603
11705
|
"aria-current": isCurrent ? "step" : void 0,
|
|
11604
|
-
className:
|
|
11706
|
+
className: cn75(
|
|
11605
11707
|
"flex shrink-0",
|
|
11606
11708
|
orientation === "horizontal" ? "flex-col items-center gap-2" : "flex-row items-start gap-3",
|
|
11607
11709
|
orientation === "horizontal" && !isLast && "flex-1"
|
|
@@ -11612,14 +11714,14 @@ function MosaicStepPipelineDots({
|
|
|
11612
11714
|
"div",
|
|
11613
11715
|
{
|
|
11614
11716
|
"data-slot": "step-connector",
|
|
11615
|
-
className:
|
|
11717
|
+
className: cn75(stepConnectorVariants({ status, orientation }))
|
|
11616
11718
|
}
|
|
11617
11719
|
),
|
|
11618
11720
|
/* @__PURE__ */ jsx(
|
|
11619
11721
|
"div",
|
|
11620
11722
|
{
|
|
11621
11723
|
"data-slot": "step-indicator",
|
|
11622
|
-
className:
|
|
11724
|
+
className: cn75(stepIndicatorVariants({ status, orientation })),
|
|
11623
11725
|
"aria-hidden": "true",
|
|
11624
11726
|
children: status === "done" ? "\u2713" : /* @__PURE__ */ jsx("span", { children: index + 1 })
|
|
11625
11727
|
}
|
|
@@ -11628,7 +11730,7 @@ function MosaicStepPipelineDots({
|
|
|
11628
11730
|
"div",
|
|
11629
11731
|
{
|
|
11630
11732
|
"data-slot": "step-connector",
|
|
11631
|
-
className:
|
|
11733
|
+
className: cn75(
|
|
11632
11734
|
stepConnectorVariants({
|
|
11633
11735
|
// connector after current step is still upcoming
|
|
11634
11736
|
status: status === "done" ? "done" : "upcoming",
|
|
@@ -11639,12 +11741,12 @@ function MosaicStepPipelineDots({
|
|
|
11639
11741
|
)
|
|
11640
11742
|
] }),
|
|
11641
11743
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center gap-0.5 text-center px-1", children: [
|
|
11642
|
-
/* @__PURE__ */ jsx("span", { "data-slot": "step-label", className:
|
|
11744
|
+
/* @__PURE__ */ jsx("span", { "data-slot": "step-label", className: cn75(stepLabelVariants({ status })), children: step.label }),
|
|
11643
11745
|
step.description !== void 0 && /* @__PURE__ */ jsx(
|
|
11644
11746
|
"span",
|
|
11645
11747
|
{
|
|
11646
11748
|
"data-slot": "step-description",
|
|
11647
|
-
className:
|
|
11749
|
+
className: cn75(stepDescriptionVariants({ status })),
|
|
11648
11750
|
children: step.description
|
|
11649
11751
|
}
|
|
11650
11752
|
)
|
|
@@ -11655,7 +11757,7 @@ function MosaicStepPipelineDots({
|
|
|
11655
11757
|
"div",
|
|
11656
11758
|
{
|
|
11657
11759
|
"data-slot": "step-indicator",
|
|
11658
|
-
className:
|
|
11760
|
+
className: cn75(stepIndicatorVariants({ status, orientation })),
|
|
11659
11761
|
"aria-hidden": "true",
|
|
11660
11762
|
children: status === "done" ? "\u2713" : /* @__PURE__ */ jsx("span", { children: index + 1 })
|
|
11661
11763
|
}
|
|
@@ -11664,7 +11766,7 @@ function MosaicStepPipelineDots({
|
|
|
11664
11766
|
"div",
|
|
11665
11767
|
{
|
|
11666
11768
|
"data-slot": "step-connector",
|
|
11667
|
-
className:
|
|
11769
|
+
className: cn75(
|
|
11668
11770
|
stepConnectorVariants({
|
|
11669
11771
|
status: status === "done" ? "done" : "upcoming",
|
|
11670
11772
|
orientation
|
|
@@ -11674,12 +11776,12 @@ function MosaicStepPipelineDots({
|
|
|
11674
11776
|
)
|
|
11675
11777
|
] }),
|
|
11676
11778
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-0.5 pt-1 pb-4", children: [
|
|
11677
|
-
/* @__PURE__ */ jsx("span", { "data-slot": "step-label", className:
|
|
11779
|
+
/* @__PURE__ */ jsx("span", { "data-slot": "step-label", className: cn75(stepLabelVariants({ status })), children: step.label }),
|
|
11678
11780
|
step.description !== void 0 && /* @__PURE__ */ jsx(
|
|
11679
11781
|
"span",
|
|
11680
11782
|
{
|
|
11681
11783
|
"data-slot": "step-description",
|
|
11682
|
-
className:
|
|
11784
|
+
className: cn75(stepDescriptionVariants({ status })),
|
|
11683
11785
|
children: step.description
|
|
11684
11786
|
}
|
|
11685
11787
|
)
|
|
@@ -11693,7 +11795,7 @@ function MosaicStepPipelineDots({
|
|
|
11693
11795
|
);
|
|
11694
11796
|
}
|
|
11695
11797
|
MosaicStepPipelineDots.displayName = "MosaicStepPipelineDots";
|
|
11696
|
-
function
|
|
11798
|
+
function cn76(...classes) {
|
|
11697
11799
|
return classes.filter(Boolean).join(" ");
|
|
11698
11800
|
}
|
|
11699
11801
|
function MosaicKanbanBoard({ children, className, ref, ...props }) {
|
|
@@ -11702,7 +11804,7 @@ function MosaicKanbanBoard({ children, className, ref, ...props }) {
|
|
|
11702
11804
|
{
|
|
11703
11805
|
ref,
|
|
11704
11806
|
"data-slot": "kanban-board",
|
|
11705
|
-
className:
|
|
11807
|
+
className: cn76(
|
|
11706
11808
|
"flex gap-4 overflow-x-auto pb-4",
|
|
11707
11809
|
"min-h-0",
|
|
11708
11810
|
// Smooth momentum scrolling on iOS
|
|
@@ -11715,7 +11817,7 @@ function MosaicKanbanBoard({ children, className, ref, ...props }) {
|
|
|
11715
11817
|
);
|
|
11716
11818
|
}
|
|
11717
11819
|
MosaicKanbanBoard.displayName = "MosaicKanbanBoard";
|
|
11718
|
-
function
|
|
11820
|
+
function cn77(...classes) {
|
|
11719
11821
|
return classes.filter(Boolean).join(" ");
|
|
11720
11822
|
}
|
|
11721
11823
|
function MosaicKanbanColumn({
|
|
@@ -11733,7 +11835,7 @@ function MosaicKanbanColumn({
|
|
|
11733
11835
|
{
|
|
11734
11836
|
ref,
|
|
11735
11837
|
"data-slot": "kanban-column",
|
|
11736
|
-
className:
|
|
11838
|
+
className: cn77(
|
|
11737
11839
|
// Fixed column width, never shrink so board stays scrollable
|
|
11738
11840
|
"flex flex-col w-72 shrink-0",
|
|
11739
11841
|
// Surface
|
|
@@ -11754,7 +11856,7 @@ function MosaicKanbanColumn({
|
|
|
11754
11856
|
{
|
|
11755
11857
|
"data-slot": "kanban-column-count",
|
|
11756
11858
|
"aria-label": countLabel(count),
|
|
11757
|
-
className:
|
|
11859
|
+
className: cn77(
|
|
11758
11860
|
"inline-flex items-center justify-center",
|
|
11759
11861
|
"min-w-[1.25rem] h-5 px-1.5 rounded-full",
|
|
11760
11862
|
"bg-muted text-muted-foreground",
|
|
@@ -11976,7 +12078,7 @@ var documentUploadProgressFillVariants = cva(
|
|
|
11976
12078
|
defaultVariants: {}
|
|
11977
12079
|
}
|
|
11978
12080
|
);
|
|
11979
|
-
function
|
|
12081
|
+
function cn78(...classes) {
|
|
11980
12082
|
return classes.filter(Boolean).join(" ");
|
|
11981
12083
|
}
|
|
11982
12084
|
function MosaicDocumentUpload({
|
|
@@ -12017,7 +12119,7 @@ function MosaicDocumentUpload({
|
|
|
12017
12119
|
if (selected.length > 0) onFilesSelected(selected);
|
|
12018
12120
|
event.target.value = "";
|
|
12019
12121
|
}
|
|
12020
|
-
return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "document-upload", className:
|
|
12122
|
+
return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "document-upload", className: cn78("flex flex-col gap-4", className), children: [
|
|
12021
12123
|
/* @__PURE__ */ jsxs(
|
|
12022
12124
|
"div",
|
|
12023
12125
|
{
|
|
@@ -12082,7 +12184,7 @@ function MosaicDocumentUpload({
|
|
|
12082
12184
|
"aria-valuemin": 0,
|
|
12083
12185
|
"aria-valuemax": 100,
|
|
12084
12186
|
"aria-valuenow": file.progress ?? 0,
|
|
12085
|
-
className:
|
|
12187
|
+
className: cn78(documentUploadProgressTrackVariants(), "mt-2"),
|
|
12086
12188
|
children: /* @__PURE__ */ jsx(
|
|
12087
12189
|
"div",
|
|
12088
12190
|
{
|
|
@@ -12159,7 +12261,7 @@ var urlScraperCardVariants = cva(["flex flex-col gap-2 rounded-lg border p-4"],
|
|
|
12159
12261
|
tone: "neutral"
|
|
12160
12262
|
}
|
|
12161
12263
|
});
|
|
12162
|
-
function
|
|
12264
|
+
function cn79(...classes) {
|
|
12163
12265
|
return classes.filter(Boolean).join(" ");
|
|
12164
12266
|
}
|
|
12165
12267
|
function isSyntacticallyValidUrl(candidate) {
|
|
@@ -12198,7 +12300,7 @@ function MosaicUrlScraper(props) {
|
|
|
12198
12300
|
setIsLocallyInvalid(false);
|
|
12199
12301
|
onUrlChange(event.target.value);
|
|
12200
12302
|
}
|
|
12201
|
-
return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "url-scraper", className:
|
|
12303
|
+
return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "url-scraper", className: cn79("flex flex-col gap-4", className), children: [
|
|
12202
12304
|
/* @__PURE__ */ jsxs(
|
|
12203
12305
|
"form",
|
|
12204
12306
|
{
|
|
@@ -12334,7 +12436,7 @@ var chatThreadScrollButtonVariants = cva([
|
|
|
12334
12436
|
"items-center justify-center rounded-full border border-border bg-card text-foreground shadow-sm",
|
|
12335
12437
|
"transition-colors hover:bg-accent/50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
12336
12438
|
]);
|
|
12337
|
-
function
|
|
12439
|
+
function cn80(...classes) {
|
|
12338
12440
|
return classes.filter(Boolean).join(" ");
|
|
12339
12441
|
}
|
|
12340
12442
|
var BOTTOM_THRESHOLD_PX = 24;
|
|
@@ -12418,7 +12520,7 @@ function MosaicChatThread({
|
|
|
12418
12520
|
role: "log",
|
|
12419
12521
|
onScroll: handleScroll,
|
|
12420
12522
|
onKeyDown: handleKeyDown,
|
|
12421
|
-
className:
|
|
12523
|
+
className: cn80(chatThreadRootVariants(), className),
|
|
12422
12524
|
children: [
|
|
12423
12525
|
/* @__PURE__ */ jsx("div", { "data-slot": "chat-thread-content", className: chatThreadContentVariants(), children }),
|
|
12424
12526
|
!isAtBottom && /* @__PURE__ */ jsx(
|
|
@@ -12459,7 +12561,7 @@ var chatComposerActionButtonVariants = cva(
|
|
|
12459
12561
|
}
|
|
12460
12562
|
}
|
|
12461
12563
|
);
|
|
12462
|
-
function
|
|
12564
|
+
function cn81(...classes) {
|
|
12463
12565
|
return classes.filter(Boolean).join(" ");
|
|
12464
12566
|
}
|
|
12465
12567
|
function MosaicChatComposer(props) {
|
|
@@ -12514,7 +12616,7 @@ function MosaicChatComposer(props) {
|
|
|
12514
12616
|
{
|
|
12515
12617
|
ref,
|
|
12516
12618
|
"data-slot": "chat-composer",
|
|
12517
|
-
className:
|
|
12619
|
+
className: cn81(chatComposerRootVariants(), className),
|
|
12518
12620
|
onSubmit: handleSubmit,
|
|
12519
12621
|
children: [
|
|
12520
12622
|
/* @__PURE__ */ jsx(
|
|
@@ -12630,7 +12732,7 @@ var markdownTableCellVariants = cva(["border border-border px-3 py-1.5"], {
|
|
|
12630
12732
|
align: "left"
|
|
12631
12733
|
}
|
|
12632
12734
|
});
|
|
12633
|
-
function
|
|
12735
|
+
function cn82(...classes) {
|
|
12634
12736
|
return classes.filter(Boolean).join(" ");
|
|
12635
12737
|
}
|
|
12636
12738
|
function sanitizeHref(rawHref) {
|
|
@@ -12825,7 +12927,7 @@ function parseBlocks(content) {
|
|
|
12825
12927
|
function MosaicMarkdown({ content, renderCodeBlock, className, ref }) {
|
|
12826
12928
|
const blocks = parseBlocks(content);
|
|
12827
12929
|
const ids = makeIdSource();
|
|
12828
|
-
return /* @__PURE__ */ jsx("div", { ref, "data-slot": "markdown", className:
|
|
12930
|
+
return /* @__PURE__ */ jsx("div", { ref, "data-slot": "markdown", className: cn82(markdownRootVariants(), className), children: blocks.map((block) => {
|
|
12829
12931
|
if (block.kind === "heading") {
|
|
12830
12932
|
const HeadingTag = `h${block.level}`;
|
|
12831
12933
|
return /* @__PURE__ */ jsx(HeadingTag, { className: markdownHeadingVariants({ level: block.level }), children: parseInline(block.text, ids) }, block.id);
|
|
@@ -12903,7 +13005,7 @@ var chatMessageToolStatusVariants = cva(["text-xs font-medium"], {
|
|
|
12903
13005
|
status: "running"
|
|
12904
13006
|
}
|
|
12905
13007
|
});
|
|
12906
|
-
function
|
|
13008
|
+
function cn83(...classes) {
|
|
12907
13009
|
return classes.filter(Boolean).join(" ");
|
|
12908
13010
|
}
|
|
12909
13011
|
function partKey(part, index) {
|
|
@@ -13069,7 +13171,7 @@ function MosaicChatMessage({
|
|
|
13069
13171
|
ref,
|
|
13070
13172
|
"data-slot": "chat-message",
|
|
13071
13173
|
"data-role": messageRole,
|
|
13072
|
-
className:
|
|
13174
|
+
className: cn83(chatMessageContainerVariants({ align: isUser ? "end" : "start" }), className),
|
|
13073
13175
|
children: /* @__PURE__ */ jsx("div", { className: chatMessageBubbleVariants({ role: messageRole }), children: parts.map((part, index) => /* @__PURE__ */ jsx(
|
|
13074
13176
|
ChatMessagePartView,
|
|
13075
13177
|
{
|
|
@@ -13124,7 +13226,7 @@ var approvalPromptButtonVariants = cva(
|
|
|
13124
13226
|
}
|
|
13125
13227
|
}
|
|
13126
13228
|
);
|
|
13127
|
-
function
|
|
13229
|
+
function cn84(...classes) {
|
|
13128
13230
|
return classes.filter(Boolean).join(" ");
|
|
13129
13231
|
}
|
|
13130
13232
|
function MosaicApprovalPrompt(props) {
|
|
@@ -13136,7 +13238,7 @@ function MosaicApprovalPrompt(props) {
|
|
|
13136
13238
|
ref,
|
|
13137
13239
|
"data-slot": "approval-prompt",
|
|
13138
13240
|
"aria-label": promptTitle,
|
|
13139
|
-
className:
|
|
13241
|
+
className: cn84("border-0 p-0 m-0", approvalPromptCardVariants({ tone }), className),
|
|
13140
13242
|
children: [
|
|
13141
13243
|
/* @__PURE__ */ jsx("legend", { "data-slot": "approval-prompt-title", className: "text-base font-semibold md:text-lg", children: promptTitle }),
|
|
13142
13244
|
/* @__PURE__ */ jsxs("div", { "data-slot": "approval-prompt-tool", className: "flex flex-col gap-1", children: [
|
|
@@ -13213,7 +13315,7 @@ var toolToggleListRowVariants = cva(
|
|
|
13213
13315
|
}
|
|
13214
13316
|
}
|
|
13215
13317
|
);
|
|
13216
|
-
function
|
|
13318
|
+
function cn85(...classes) {
|
|
13217
13319
|
return classes.filter(Boolean).join(" ");
|
|
13218
13320
|
}
|
|
13219
13321
|
function MosaicToolToggleList({
|
|
@@ -13229,7 +13331,7 @@ function MosaicToolToggleList({
|
|
|
13229
13331
|
}) {
|
|
13230
13332
|
const toolsById = new Map(tools.map((tool) => [tool.id, tool]));
|
|
13231
13333
|
const approvalLabelById = new Map(approvalLevels.map((level) => [level.id, level.label]));
|
|
13232
|
-
return /* @__PURE__ */ jsx("div", { ref, "data-slot": "tool-toggle-list", className:
|
|
13334
|
+
return /* @__PURE__ */ jsx("div", { ref, "data-slot": "tool-toggle-list", className: cn85("flex flex-col gap-6", className), children: sections.map((section) => /* @__PURE__ */ jsxs(
|
|
13233
13335
|
"div",
|
|
13234
13336
|
{
|
|
13235
13337
|
"data-slot": "tool-toggle-list-section",
|
|
@@ -13260,7 +13362,7 @@ function MosaicToolToggleList({
|
|
|
13260
13362
|
onCheckedChange: (checked) => onToggleTool(tool.id, checked),
|
|
13261
13363
|
"aria-label": toggleAriaLabel(tool.name),
|
|
13262
13364
|
"data-slot": "tool-toggle-list-switch",
|
|
13263
|
-
className:
|
|
13365
|
+
className: cn85(
|
|
13264
13366
|
"relative inline-flex h-6 w-10 shrink-0 cursor-pointer items-center",
|
|
13265
13367
|
"rounded-full border-2 border-transparent outline-none",
|
|
13266
13368
|
"bg-muted transition-colors",
|
|
@@ -13271,7 +13373,7 @@ function MosaicToolToggleList({
|
|
|
13271
13373
|
Switch.Thumb,
|
|
13272
13374
|
{
|
|
13273
13375
|
"data-slot": "tool-toggle-list-switch-thumb",
|
|
13274
|
-
className:
|
|
13376
|
+
className: cn85(
|
|
13275
13377
|
"pointer-events-none block h-4 w-4 rounded-full",
|
|
13276
13378
|
"bg-background shadow-sm",
|
|
13277
13379
|
"translate-x-0 transition-transform",
|
|
@@ -13313,7 +13415,7 @@ function MosaicToolToggleList({
|
|
|
13313
13415
|
{
|
|
13314
13416
|
"aria-label": approvalSelectAriaLabel(tool.name),
|
|
13315
13417
|
"data-slot": "tool-toggle-list-approval-trigger",
|
|
13316
|
-
className:
|
|
13418
|
+
className: cn85(
|
|
13317
13419
|
"inline-flex h-9 min-w-[10rem] items-center justify-between gap-2",
|
|
13318
13420
|
"rounded-md border border-border bg-background px-3 py-2",
|
|
13319
13421
|
"text-sm text-foreground shadow-xs outline-none",
|
|
@@ -13331,7 +13433,7 @@ function MosaicToolToggleList({
|
|
|
13331
13433
|
Select.Popup,
|
|
13332
13434
|
{
|
|
13333
13435
|
"data-slot": "tool-toggle-list-approval-popup",
|
|
13334
|
-
className:
|
|
13436
|
+
className: cn85(
|
|
13335
13437
|
"z-50 min-w-[10rem] overflow-hidden rounded-md border border-border",
|
|
13336
13438
|
"bg-popover p-1 text-popover-foreground shadow-md",
|
|
13337
13439
|
"origin-[var(--transform-origin)]",
|
|
@@ -13344,7 +13446,7 @@ function MosaicToolToggleList({
|
|
|
13344
13446
|
Select.Item,
|
|
13345
13447
|
{
|
|
13346
13448
|
value: level.id,
|
|
13347
|
-
className:
|
|
13449
|
+
className: cn85(
|
|
13348
13450
|
"relative flex cursor-pointer select-none items-center rounded-sm px-2 py-1.5",
|
|
13349
13451
|
"text-sm text-popover-foreground outline-none",
|
|
13350
13452
|
"data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground",
|
|
@@ -13452,7 +13554,7 @@ var apiKeyPanelMessageVariants = cva(["text-sm"], {
|
|
|
13452
13554
|
tone: "muted"
|
|
13453
13555
|
}
|
|
13454
13556
|
});
|
|
13455
|
-
function
|
|
13557
|
+
function cn86(...classes) {
|
|
13456
13558
|
return classes.filter(Boolean).join(" ");
|
|
13457
13559
|
}
|
|
13458
13560
|
function MosaicApiKeyPanel(props) {
|
|
@@ -13480,7 +13582,7 @@ function MosaicApiKeyPanel(props) {
|
|
|
13480
13582
|
function handleKeyChange(event) {
|
|
13481
13583
|
onKeyChange(event.target.value);
|
|
13482
13584
|
}
|
|
13483
|
-
return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "api-key-panel", className:
|
|
13585
|
+
return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "api-key-panel", className: cn86("flex flex-col gap-3", className), children: [
|
|
13484
13586
|
/* @__PURE__ */ jsx(
|
|
13485
13587
|
"div",
|
|
13486
13588
|
{
|
|
@@ -13575,7 +13677,7 @@ MosaicApiKeyPanel.displayName = "MosaicApiKeyPanel";
|
|
|
13575
13677
|
var agentChatRootVariants = cva([
|
|
13576
13678
|
"flex min-h-0 w-full flex-1 flex-col gap-2 overflow-hidden rounded-lg border border-border bg-card"
|
|
13577
13679
|
]);
|
|
13578
|
-
function
|
|
13680
|
+
function cn87(...classes) {
|
|
13579
13681
|
return classes.filter(Boolean).join(" ");
|
|
13580
13682
|
}
|
|
13581
13683
|
function formatPayload2(value) {
|
|
@@ -13711,7 +13813,7 @@ function MosaicAgentChat(props) {
|
|
|
13711
13813
|
setDecisions((previous) => ({ ...previous, [payload.requestId]: decision }));
|
|
13712
13814
|
onApprovalResponse(payload);
|
|
13713
13815
|
}
|
|
13714
|
-
return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "agent-chat", className:
|
|
13816
|
+
return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "agent-chat", className: cn87(agentChatRootVariants(), className), children: [
|
|
13715
13817
|
/* @__PURE__ */ jsx(MosaicChatThread, { scrollToBottomLabel, children: messages.map((message) => /* @__PURE__ */ jsx(
|
|
13716
13818
|
MosaicChatMessage,
|
|
13717
13819
|
{
|
|
@@ -13800,7 +13902,7 @@ var toastProviderPositionVariants = cva(
|
|
|
13800
13902
|
}
|
|
13801
13903
|
}
|
|
13802
13904
|
);
|
|
13803
|
-
function
|
|
13905
|
+
function cn88(...classes) {
|
|
13804
13906
|
return classes.filter(Boolean).join(" ");
|
|
13805
13907
|
}
|
|
13806
13908
|
function MosaicToast({
|
|
@@ -13826,7 +13928,7 @@ function MosaicToast({
|
|
|
13826
13928
|
ref,
|
|
13827
13929
|
"data-slot": "toast",
|
|
13828
13930
|
role,
|
|
13829
|
-
className:
|
|
13931
|
+
className: cn88(toastCardVariants({ variant }), className),
|
|
13830
13932
|
children: [
|
|
13831
13933
|
/* @__PURE__ */ jsxs("div", { "data-slot": "toast-body", className: "flex min-w-0 flex-1 flex-col gap-1", children: [
|
|
13832
13934
|
/* @__PURE__ */ jsx("p", { "data-slot": "toast-title", className: toastTitleVariants({ variant }), children: title }),
|
|
@@ -13866,7 +13968,7 @@ function MosaicToast({
|
|
|
13866
13968
|
);
|
|
13867
13969
|
}
|
|
13868
13970
|
MosaicToast.displayName = "MosaicToast";
|
|
13869
|
-
function
|
|
13971
|
+
function cn89(...classes) {
|
|
13870
13972
|
return classes.filter(Boolean).join(" ");
|
|
13871
13973
|
}
|
|
13872
13974
|
function MosaicToastProvider({
|
|
@@ -13880,7 +13982,7 @@ function MosaicToastProvider({
|
|
|
13880
13982
|
{
|
|
13881
13983
|
ref,
|
|
13882
13984
|
"data-slot": "toast-provider",
|
|
13883
|
-
className:
|
|
13985
|
+
className: cn89(toastProviderPositionVariants({ position }), className),
|
|
13884
13986
|
children
|
|
13885
13987
|
}
|
|
13886
13988
|
);
|
|
@@ -13907,7 +14009,7 @@ var pdfViewerToolbarButtonVariants = cva([
|
|
|
13907
14009
|
"inline-flex min-h-8 min-w-8 items-center justify-center rounded-md border border-border text-sm",
|
|
13908
14010
|
"transition-colors hover:bg-accent/50 disabled:opacity-50 disabled:hover:bg-transparent"
|
|
13909
14011
|
]);
|
|
13910
|
-
function
|
|
14012
|
+
function cn90(...classes) {
|
|
13911
14013
|
return classes.filter(Boolean).join(" ");
|
|
13912
14014
|
}
|
|
13913
14015
|
function buildFrameSrc(fileUrl, currentPage, zoom) {
|
|
@@ -13972,7 +14074,7 @@ function MosaicPdfViewer({
|
|
|
13972
14074
|
if (zoom === void 0 || onZoomChange === void 0) return;
|
|
13973
14075
|
onZoomChange(Math.round((zoom + 0.1) * 100) / 100);
|
|
13974
14076
|
}
|
|
13975
|
-
return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "pdf-viewer", className:
|
|
14077
|
+
return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "pdf-viewer", className: cn90("flex flex-col gap-2", className), children: [
|
|
13976
14078
|
(showPageControls || showZoomControls) && /* @__PURE__ */ jsxs(
|
|
13977
14079
|
"div",
|
|
13978
14080
|
{
|
|
@@ -14061,7 +14163,7 @@ function MosaicPdfViewer({
|
|
|
14061
14163
|
"data-slot": "pdf-viewer-frame",
|
|
14062
14164
|
src: buildFrameSrc(fileUrl, currentPage, zoom),
|
|
14063
14165
|
title: fileUrl,
|
|
14064
|
-
className:
|
|
14166
|
+
className: cn90(
|
|
14065
14167
|
"h-full min-h-64 w-full border-0",
|
|
14066
14168
|
status !== "loaded" && "pointer-events-none absolute inset-0 opacity-0"
|
|
14067
14169
|
)
|
|
@@ -14080,7 +14182,7 @@ var splitPaneCollapseButtonVariants = cva([
|
|
|
14080
14182
|
"inline-flex h-11 w-6 shrink-0 items-center justify-center self-center rounded-md border border-border text-sm",
|
|
14081
14183
|
"transition-colors hover:bg-accent/50"
|
|
14082
14184
|
]);
|
|
14083
|
-
function
|
|
14185
|
+
function cn91(...classes) {
|
|
14084
14186
|
return classes.filter(Boolean).join(" ");
|
|
14085
14187
|
}
|
|
14086
14188
|
function mergeRefs(externalRef, node) {
|
|
@@ -14153,7 +14255,7 @@ function MosaicResizableSplitPane({
|
|
|
14153
14255
|
mergeRefs(ref, node);
|
|
14154
14256
|
},
|
|
14155
14257
|
"data-slot": "resizable-split-pane",
|
|
14156
|
-
className:
|
|
14258
|
+
className: cn91(splitPaneRootVariants(), className),
|
|
14157
14259
|
children: [
|
|
14158
14260
|
/* @__PURE__ */ jsx("div", { "data-slot": "resizable-split-pane-main", className: "min-h-0 min-w-0 flex-1 overflow-auto", children: main }),
|
|
14159
14261
|
!isSideCollapsed && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
@@ -14220,7 +14322,7 @@ var tagInputFieldVariants = cva([
|
|
|
14220
14322
|
"min-w-[6ch] flex-1 border-none bg-transparent px-1 py-0.5 text-sm text-foreground outline-none",
|
|
14221
14323
|
"placeholder:text-muted-foreground"
|
|
14222
14324
|
]);
|
|
14223
|
-
function
|
|
14325
|
+
function cn92(...classes) {
|
|
14224
14326
|
return classes.filter(Boolean).join(" ");
|
|
14225
14327
|
}
|
|
14226
14328
|
function mergeRefs2(externalRef, node) {
|
|
@@ -14271,7 +14373,7 @@ function MosaicTagInput({
|
|
|
14271
14373
|
if (lastTag !== void 0) onRemoveTag(lastTag);
|
|
14272
14374
|
}
|
|
14273
14375
|
}
|
|
14274
|
-
return /* @__PURE__ */ jsxs("div", { "data-slot": "tag-input", className:
|
|
14376
|
+
return /* @__PURE__ */ jsxs("div", { "data-slot": "tag-input", className: cn92(tagInputRootVariants(), className), children: [
|
|
14275
14377
|
tags.map((tag) => /* @__PURE__ */ jsxs("span", { "data-slot": "tag-input-tag", className: tagInputTagVariants(), children: [
|
|
14276
14378
|
tag,
|
|
14277
14379
|
/* @__PURE__ */ jsx(
|
|
@@ -14308,7 +14410,7 @@ function MosaicTagInput({
|
|
|
14308
14410
|
"ul",
|
|
14309
14411
|
{
|
|
14310
14412
|
"data-slot": "tag-input-suggestions",
|
|
14311
|
-
className:
|
|
14413
|
+
className: cn92(
|
|
14312
14414
|
"z-50 mt-1 w-full min-w-[8rem] overflow-hidden rounded-md border border-border",
|
|
14313
14415
|
"bg-popover p-1 text-sm text-popover-foreground shadow-md"
|
|
14314
14416
|
),
|
|
@@ -14348,7 +14450,7 @@ var drawerPopupVariants = cva(
|
|
|
14348
14450
|
}
|
|
14349
14451
|
);
|
|
14350
14452
|
var drawerBackdropVariants = cva(["fixed inset-0 z-50 bg-black/50"]);
|
|
14351
|
-
function
|
|
14453
|
+
function cn93(...classes) {
|
|
14352
14454
|
return classes.filter(Boolean).join(" ");
|
|
14353
14455
|
}
|
|
14354
14456
|
function MosaicDrawer({
|
|
@@ -14369,7 +14471,7 @@ function MosaicDrawer({
|
|
|
14369
14471
|
"data-slot": "drawer",
|
|
14370
14472
|
"aria-labelledby": titleId,
|
|
14371
14473
|
"aria-modal": "true",
|
|
14372
|
-
className:
|
|
14474
|
+
className: cn93(drawerPopupVariants({ side }), className),
|
|
14373
14475
|
children: [
|
|
14374
14476
|
/* @__PURE__ */ jsxs(
|
|
14375
14477
|
"div",
|
|
@@ -14382,7 +14484,7 @@ function MosaicDrawer({
|
|
|
14382
14484
|
Dialog.Close,
|
|
14383
14485
|
{
|
|
14384
14486
|
"aria-label": closeAriaLabel,
|
|
14385
|
-
className:
|
|
14487
|
+
className: cn93(
|
|
14386
14488
|
"flex h-8 w-8 shrink-0 items-center justify-center rounded-md text-muted-foreground transition-colors",
|
|
14387
14489
|
"hover:bg-muted hover:text-foreground",
|
|
14388
14490
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -14426,7 +14528,7 @@ var popoverPopupVariants = cva([
|
|
|
14426
14528
|
"data-[ending-style]:scale-95 data-[ending-style]:opacity-0",
|
|
14427
14529
|
"data-[starting-style]:scale-95 data-[starting-style]:opacity-0"
|
|
14428
14530
|
]);
|
|
14429
|
-
function
|
|
14531
|
+
function cn94(...classes) {
|
|
14430
14532
|
return classes.filter(Boolean).join(" ");
|
|
14431
14533
|
}
|
|
14432
14534
|
function MosaicPopover({
|
|
@@ -14455,7 +14557,7 @@ function MosaicPopover({
|
|
|
14455
14557
|
"data-slot": "popover",
|
|
14456
14558
|
"aria-label": ariaLabel,
|
|
14457
14559
|
initialFocus,
|
|
14458
|
-
className:
|
|
14560
|
+
className: cn94(popoverPopupVariants(), className),
|
|
14459
14561
|
children
|
|
14460
14562
|
}
|
|
14461
14563
|
)
|
|
@@ -14482,7 +14584,7 @@ var templateCategoryChipVariants = cva(
|
|
|
14482
14584
|
}
|
|
14483
14585
|
}
|
|
14484
14586
|
);
|
|
14485
|
-
function
|
|
14587
|
+
function cn95(...classes) {
|
|
14486
14588
|
return classes.filter(Boolean).join(" ");
|
|
14487
14589
|
}
|
|
14488
14590
|
function MosaicTemplateCategoryChips({
|
|
@@ -14497,7 +14599,7 @@ function MosaicTemplateCategoryChips({
|
|
|
14497
14599
|
{
|
|
14498
14600
|
ref,
|
|
14499
14601
|
"data-slot": "template-category-chips",
|
|
14500
|
-
className:
|
|
14602
|
+
className: cn95("flex flex-wrap items-center gap-2", className),
|
|
14501
14603
|
children: categories.map((category) => {
|
|
14502
14604
|
const isSelected = category.id === selected;
|
|
14503
14605
|
return /* @__PURE__ */ jsx(
|
|
@@ -14517,52 +14619,33 @@ function MosaicTemplateCategoryChips({
|
|
|
14517
14619
|
);
|
|
14518
14620
|
}
|
|
14519
14621
|
MosaicTemplateCategoryChips.displayName = "MosaicTemplateCategoryChips";
|
|
14520
|
-
var
|
|
14521
|
-
|
|
14522
|
-
|
|
14523
|
-
|
|
14524
|
-
"
|
|
14622
|
+
var editMemoryDialogPopupVariants = cva([
|
|
14623
|
+
"fixed top-1/2 left-1/2 z-50 flex max-h-[85vh] w-full max-w-[calc(100%-2rem)] flex-col",
|
|
14624
|
+
"-translate-x-1/2 -translate-y-1/2",
|
|
14625
|
+
"rounded-lg border border-border bg-background shadow-lg outline-none",
|
|
14626
|
+
"sm:max-w-lg"
|
|
14525
14627
|
]);
|
|
14526
|
-
var
|
|
14527
|
-
|
|
14528
|
-
|
|
14529
|
-
|
|
14530
|
-
],
|
|
14531
|
-
{
|
|
14532
|
-
variants: {
|
|
14533
|
-
intent: {
|
|
14534
|
-
cancel: "border border-border bg-background hover:bg-muted",
|
|
14535
|
-
save: "border border-transparent bg-primary text-primary-foreground hover:bg-primary/90"
|
|
14536
|
-
}
|
|
14537
|
-
},
|
|
14538
|
-
defaultVariants: {
|
|
14539
|
-
intent: "cancel"
|
|
14540
|
-
}
|
|
14541
|
-
}
|
|
14542
|
-
);
|
|
14543
|
-
function cn95(...classes) {
|
|
14628
|
+
var editMemoryDialogBackdropVariants = cva(["fixed inset-0 z-50 bg-black/50"]);
|
|
14629
|
+
var editMemoryDialogFieldVariants = cva(["flex flex-col gap-1.5"]);
|
|
14630
|
+
var editMemoryDialogErrorVariants = cva(["text-sm text-destructive"]);
|
|
14631
|
+
function cn96(...classes) {
|
|
14544
14632
|
return classes.filter(Boolean).join(" ");
|
|
14545
14633
|
}
|
|
14546
|
-
function
|
|
14634
|
+
function MosaicEditMemoryDialog({
|
|
14547
14635
|
open,
|
|
14548
14636
|
onOpenChange,
|
|
14549
14637
|
title,
|
|
14550
14638
|
description,
|
|
14551
14639
|
closeAriaLabel,
|
|
14552
|
-
|
|
14553
|
-
|
|
14554
|
-
|
|
14555
|
-
|
|
14556
|
-
|
|
14557
|
-
|
|
14558
|
-
|
|
14559
|
-
|
|
14560
|
-
|
|
14561
|
-
descriptionError,
|
|
14562
|
-
categories,
|
|
14563
|
-
category,
|
|
14564
|
-
onCategoryChange,
|
|
14565
|
-
categoryLabel,
|
|
14640
|
+
content,
|
|
14641
|
+
onContentChange,
|
|
14642
|
+
contentLabel,
|
|
14643
|
+
contentPlaceholder,
|
|
14644
|
+
contentError,
|
|
14645
|
+
types,
|
|
14646
|
+
type,
|
|
14647
|
+
onTypeChange,
|
|
14648
|
+
typeLabel,
|
|
14566
14649
|
tags,
|
|
14567
14650
|
onAddTag,
|
|
14568
14651
|
onRemoveTag,
|
|
@@ -14575,7 +14658,242 @@ function MosaicSaveTemplateModal({
|
|
|
14575
14658
|
canSave,
|
|
14576
14659
|
onSave,
|
|
14577
14660
|
onCancel,
|
|
14578
|
-
|
|
14661
|
+
saveLabel,
|
|
14662
|
+
savingLabel,
|
|
14663
|
+
cancelLabel,
|
|
14664
|
+
className
|
|
14665
|
+
}) {
|
|
14666
|
+
const titleId = React30.useId();
|
|
14667
|
+
const descriptionId = React30.useId();
|
|
14668
|
+
const contentErrorId = React30.useId();
|
|
14669
|
+
const saveDisabled = !canSave || isSaving;
|
|
14670
|
+
const handleSave = () => {
|
|
14671
|
+
if (saveDisabled) return;
|
|
14672
|
+
onSave();
|
|
14673
|
+
};
|
|
14674
|
+
return /* @__PURE__ */ jsx(Dialog.Root, { open, onOpenChange: (nextOpen) => onOpenChange(nextOpen), modal: true, children: /* @__PURE__ */ jsxs(Dialog.Portal, { children: [
|
|
14675
|
+
/* @__PURE__ */ jsx(
|
|
14676
|
+
Dialog.Backdrop,
|
|
14677
|
+
{
|
|
14678
|
+
"data-slot": "edit-memory-dialog-backdrop",
|
|
14679
|
+
className: editMemoryDialogBackdropVariants()
|
|
14680
|
+
}
|
|
14681
|
+
),
|
|
14682
|
+
/* @__PURE__ */ jsxs(
|
|
14683
|
+
Dialog.Popup,
|
|
14684
|
+
{
|
|
14685
|
+
"data-slot": "edit-memory-dialog",
|
|
14686
|
+
"aria-labelledby": titleId,
|
|
14687
|
+
"aria-describedby": descriptionId,
|
|
14688
|
+
"aria-modal": "true",
|
|
14689
|
+
className: cn96(editMemoryDialogPopupVariants(), className),
|
|
14690
|
+
children: [
|
|
14691
|
+
/* @__PURE__ */ jsxs(
|
|
14692
|
+
"div",
|
|
14693
|
+
{
|
|
14694
|
+
"data-slot": "edit-memory-dialog-header",
|
|
14695
|
+
className: "flex items-start justify-between gap-4 border-b border-border p-4",
|
|
14696
|
+
children: [
|
|
14697
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1", children: [
|
|
14698
|
+
/* @__PURE__ */ jsx(Dialog.Title, { id: titleId, className: "text-base font-semibold text-foreground", children: title }),
|
|
14699
|
+
/* @__PURE__ */ jsx(Dialog.Description, { id: descriptionId, className: "text-sm text-muted-foreground", children: description })
|
|
14700
|
+
] }),
|
|
14701
|
+
/* @__PURE__ */ jsx(
|
|
14702
|
+
Dialog.Close,
|
|
14703
|
+
{
|
|
14704
|
+
"aria-label": closeAriaLabel,
|
|
14705
|
+
className: cn96(
|
|
14706
|
+
"flex h-8 w-8 shrink-0 items-center justify-center rounded-md text-muted-foreground transition-colors",
|
|
14707
|
+
"hover:bg-muted hover:text-foreground",
|
|
14708
|
+
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
14709
|
+
),
|
|
14710
|
+
children: /* @__PURE__ */ jsxs(
|
|
14711
|
+
"svg",
|
|
14712
|
+
{
|
|
14713
|
+
width: "16",
|
|
14714
|
+
height: "16",
|
|
14715
|
+
viewBox: "0 0 24 24",
|
|
14716
|
+
fill: "none",
|
|
14717
|
+
stroke: "currentColor",
|
|
14718
|
+
strokeWidth: "2",
|
|
14719
|
+
strokeLinecap: "round",
|
|
14720
|
+
strokeLinejoin: "round",
|
|
14721
|
+
"aria-hidden": "true",
|
|
14722
|
+
children: [
|
|
14723
|
+
/* @__PURE__ */ jsx("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
|
|
14724
|
+
/* @__PURE__ */ jsx("line", { x1: "6", y1: "6", x2: "18", y2: "18" })
|
|
14725
|
+
]
|
|
14726
|
+
}
|
|
14727
|
+
)
|
|
14728
|
+
}
|
|
14729
|
+
)
|
|
14730
|
+
]
|
|
14731
|
+
}
|
|
14732
|
+
),
|
|
14733
|
+
/* @__PURE__ */ jsxs(
|
|
14734
|
+
"div",
|
|
14735
|
+
{
|
|
14736
|
+
"data-slot": "edit-memory-dialog-body",
|
|
14737
|
+
className: "flex min-h-0 flex-1 flex-col gap-4 overflow-y-auto p-4",
|
|
14738
|
+
children: [
|
|
14739
|
+
/* @__PURE__ */ jsxs("div", { className: editMemoryDialogFieldVariants(), children: [
|
|
14740
|
+
/* @__PURE__ */ jsx(
|
|
14741
|
+
"label",
|
|
14742
|
+
{
|
|
14743
|
+
htmlFor: "mosaic-edit-memory-content",
|
|
14744
|
+
className: "text-sm font-medium text-foreground",
|
|
14745
|
+
children: contentLabel
|
|
14746
|
+
}
|
|
14747
|
+
),
|
|
14748
|
+
/* @__PURE__ */ jsx(
|
|
14749
|
+
MosaicTextarea,
|
|
14750
|
+
{
|
|
14751
|
+
id: "mosaic-edit-memory-content",
|
|
14752
|
+
value: content,
|
|
14753
|
+
placeholder: contentPlaceholder,
|
|
14754
|
+
onChange: (event) => onContentChange(event.target.value),
|
|
14755
|
+
rows: 4,
|
|
14756
|
+
"aria-invalid": contentError ? "true" : "false",
|
|
14757
|
+
"aria-describedby": contentError ? contentErrorId : void 0
|
|
14758
|
+
}
|
|
14759
|
+
),
|
|
14760
|
+
contentError && /* @__PURE__ */ jsx("p", { id: contentErrorId, className: editMemoryDialogErrorVariants(), children: contentError })
|
|
14761
|
+
] }),
|
|
14762
|
+
/* @__PURE__ */ jsxs("div", { className: editMemoryDialogFieldVariants(), children: [
|
|
14763
|
+
/* @__PURE__ */ jsx("span", { className: "text-sm font-medium text-foreground", children: typeLabel }),
|
|
14764
|
+
/* @__PURE__ */ jsx(
|
|
14765
|
+
MosaicSelect,
|
|
14766
|
+
{
|
|
14767
|
+
items: types,
|
|
14768
|
+
value: type,
|
|
14769
|
+
onValueChange: (value) => {
|
|
14770
|
+
if (value) onTypeChange(value);
|
|
14771
|
+
}
|
|
14772
|
+
}
|
|
14773
|
+
)
|
|
14774
|
+
] }),
|
|
14775
|
+
/* @__PURE__ */ jsxs("div", { className: editMemoryDialogFieldVariants(), children: [
|
|
14776
|
+
/* @__PURE__ */ jsx("span", { className: "text-sm font-medium text-foreground", children: tagsLabel }),
|
|
14777
|
+
/* @__PURE__ */ jsx(
|
|
14778
|
+
MosaicTagInput,
|
|
14779
|
+
{
|
|
14780
|
+
tags,
|
|
14781
|
+
onAddTag,
|
|
14782
|
+
onRemoveTag,
|
|
14783
|
+
placeholder: tagInputPlaceholder,
|
|
14784
|
+
removeTagAriaLabel,
|
|
14785
|
+
suggestions: suggestedTags,
|
|
14786
|
+
maxTags
|
|
14787
|
+
}
|
|
14788
|
+
)
|
|
14789
|
+
] })
|
|
14790
|
+
]
|
|
14791
|
+
}
|
|
14792
|
+
),
|
|
14793
|
+
/* @__PURE__ */ jsxs(
|
|
14794
|
+
"div",
|
|
14795
|
+
{
|
|
14796
|
+
"data-slot": "edit-memory-dialog-footer",
|
|
14797
|
+
className: "flex flex-col-reverse gap-2 border-t border-border p-4 sm:flex-row sm:justify-end",
|
|
14798
|
+
children: [
|
|
14799
|
+
/* @__PURE__ */ jsx(
|
|
14800
|
+
Dialog.Close,
|
|
14801
|
+
{
|
|
14802
|
+
onClick: onCancel,
|
|
14803
|
+
className: cn96(
|
|
14804
|
+
"inline-flex h-9 items-center justify-center gap-1.5 rounded-md border border-border px-4",
|
|
14805
|
+
"bg-background text-sm font-medium text-foreground shadow-xs",
|
|
14806
|
+
"hover:bg-muted hover:text-foreground",
|
|
14807
|
+
"focus-visible:outline-none focus-visible:ring-[3px] focus-visible:ring-ring",
|
|
14808
|
+
"disabled:pointer-events-none disabled:opacity-50"
|
|
14809
|
+
),
|
|
14810
|
+
children: cancelLabel
|
|
14811
|
+
}
|
|
14812
|
+
),
|
|
14813
|
+
/* @__PURE__ */ jsx(
|
|
14814
|
+
"button",
|
|
14815
|
+
{
|
|
14816
|
+
type: "button",
|
|
14817
|
+
onClick: handleSave,
|
|
14818
|
+
disabled: saveDisabled,
|
|
14819
|
+
className: cn96(
|
|
14820
|
+
"inline-flex h-9 items-center justify-center gap-1.5 rounded-md px-4",
|
|
14821
|
+
"bg-primary text-sm font-medium text-primary-foreground",
|
|
14822
|
+
"hover:bg-primary/90",
|
|
14823
|
+
"focus-visible:outline-none focus-visible:ring-[3px] focus-visible:ring-ring",
|
|
14824
|
+
"disabled:pointer-events-none disabled:opacity-50"
|
|
14825
|
+
),
|
|
14826
|
+
children: isSaving ? savingLabel : saveLabel
|
|
14827
|
+
}
|
|
14828
|
+
)
|
|
14829
|
+
]
|
|
14830
|
+
}
|
|
14831
|
+
)
|
|
14832
|
+
]
|
|
14833
|
+
}
|
|
14834
|
+
)
|
|
14835
|
+
] }) });
|
|
14836
|
+
}
|
|
14837
|
+
MosaicEditMemoryDialog.displayName = "MosaicEditMemoryDialog";
|
|
14838
|
+
var saveTemplateModalBodyVariants = cva(["flex flex-col gap-4"]);
|
|
14839
|
+
var saveTemplateModalFieldVariants = cva(["flex flex-col gap-1.5"]);
|
|
14840
|
+
var saveTemplateModalErrorVariants = cva(["text-xs font-medium text-destructive"]);
|
|
14841
|
+
var saveTemplateModalFooterVariants = cva([
|
|
14842
|
+
"flex items-center justify-end gap-3 border-t border-border pt-4"
|
|
14843
|
+
]);
|
|
14844
|
+
var saveTemplateModalButtonVariants = cva(
|
|
14845
|
+
[
|
|
14846
|
+
"inline-flex min-h-9 items-center justify-center gap-2 rounded-md px-4 text-sm font-medium",
|
|
14847
|
+
"transition-colors disabled:cursor-not-allowed disabled:opacity-50"
|
|
14848
|
+
],
|
|
14849
|
+
{
|
|
14850
|
+
variants: {
|
|
14851
|
+
intent: {
|
|
14852
|
+
cancel: "border border-border bg-background hover:bg-muted",
|
|
14853
|
+
save: "border border-transparent bg-primary text-primary-foreground hover:bg-primary/90"
|
|
14854
|
+
}
|
|
14855
|
+
},
|
|
14856
|
+
defaultVariants: {
|
|
14857
|
+
intent: "cancel"
|
|
14858
|
+
}
|
|
14859
|
+
}
|
|
14860
|
+
);
|
|
14861
|
+
function cn97(...classes) {
|
|
14862
|
+
return classes.filter(Boolean).join(" ");
|
|
14863
|
+
}
|
|
14864
|
+
function MosaicSaveTemplateModal({
|
|
14865
|
+
open,
|
|
14866
|
+
onOpenChange,
|
|
14867
|
+
title,
|
|
14868
|
+
description,
|
|
14869
|
+
closeAriaLabel,
|
|
14870
|
+
name,
|
|
14871
|
+
onNameChange,
|
|
14872
|
+
nameLabel,
|
|
14873
|
+
namePlaceholder,
|
|
14874
|
+
nameError,
|
|
14875
|
+
templateDescription,
|
|
14876
|
+
onTemplateDescriptionChange,
|
|
14877
|
+
descriptionLabel,
|
|
14878
|
+
descriptionPlaceholder,
|
|
14879
|
+
descriptionError,
|
|
14880
|
+
categories,
|
|
14881
|
+
category,
|
|
14882
|
+
onCategoryChange,
|
|
14883
|
+
categoryLabel,
|
|
14884
|
+
tags,
|
|
14885
|
+
onAddTag,
|
|
14886
|
+
onRemoveTag,
|
|
14887
|
+
tagsLabel,
|
|
14888
|
+
tagInputPlaceholder,
|
|
14889
|
+
removeTagAriaLabel,
|
|
14890
|
+
suggestedTags,
|
|
14891
|
+
maxTags,
|
|
14892
|
+
isSaving,
|
|
14893
|
+
canSave,
|
|
14894
|
+
onSave,
|
|
14895
|
+
onCancel,
|
|
14896
|
+
saveButtonLabel,
|
|
14579
14897
|
savingLabel,
|
|
14580
14898
|
cancelButtonLabel,
|
|
14581
14899
|
children,
|
|
@@ -14596,7 +14914,7 @@ function MosaicSaveTemplateModal({
|
|
|
14596
14914
|
"div",
|
|
14597
14915
|
{
|
|
14598
14916
|
"data-slot": "save-template-modal",
|
|
14599
|
-
className:
|
|
14917
|
+
className: cn97(saveTemplateModalBodyVariants(), className),
|
|
14600
14918
|
children: [
|
|
14601
14919
|
/* @__PURE__ */ jsxs("div", { className: saveTemplateModalFieldVariants(), children: [
|
|
14602
14920
|
/* @__PURE__ */ jsx(
|
|
@@ -14704,6 +15022,133 @@ function MosaicSaveTemplateModal({
|
|
|
14704
15022
|
);
|
|
14705
15023
|
}
|
|
14706
15024
|
MosaicSaveTemplateModal.displayName = "MosaicSaveTemplateModal";
|
|
15025
|
+
var addMemoryFormRootVariants = cva(["flex flex-col gap-4"]);
|
|
15026
|
+
var addMemoryFormFieldVariants = cva(["flex flex-col gap-1.5"]);
|
|
15027
|
+
var addMemoryFormErrorVariants = cva(["text-xs font-medium text-destructive"]);
|
|
15028
|
+
var addMemoryFormFooterVariants = cva([
|
|
15029
|
+
"flex items-center justify-end gap-3 border-t border-border pt-4"
|
|
15030
|
+
]);
|
|
15031
|
+
var addMemoryFormButtonVariants = cva(
|
|
15032
|
+
[
|
|
15033
|
+
"inline-flex min-h-9 items-center justify-center gap-2 rounded-md px-4 text-sm font-medium",
|
|
15034
|
+
"transition-colors disabled:cursor-not-allowed disabled:opacity-50"
|
|
15035
|
+
],
|
|
15036
|
+
{
|
|
15037
|
+
variants: {
|
|
15038
|
+
intent: {
|
|
15039
|
+
cancel: "border border-border bg-background hover:bg-muted",
|
|
15040
|
+
submit: "border border-transparent bg-primary text-primary-foreground hover:bg-primary/90"
|
|
15041
|
+
}
|
|
15042
|
+
},
|
|
15043
|
+
defaultVariants: {
|
|
15044
|
+
intent: "cancel"
|
|
15045
|
+
}
|
|
15046
|
+
}
|
|
15047
|
+
);
|
|
15048
|
+
function cn98(...classes) {
|
|
15049
|
+
return classes.filter(Boolean).join(" ");
|
|
15050
|
+
}
|
|
15051
|
+
function MosaicAddMemoryForm({
|
|
15052
|
+
content,
|
|
15053
|
+
onContentChange,
|
|
15054
|
+
contentLabel,
|
|
15055
|
+
contentPlaceholder,
|
|
15056
|
+
contentError,
|
|
15057
|
+
types,
|
|
15058
|
+
type,
|
|
15059
|
+
onTypeChange,
|
|
15060
|
+
typeLabel,
|
|
15061
|
+
tags,
|
|
15062
|
+
onAddTag,
|
|
15063
|
+
onRemoveTag,
|
|
15064
|
+
tagsLabel,
|
|
15065
|
+
tagInputPlaceholder,
|
|
15066
|
+
removeTagAriaLabel,
|
|
15067
|
+
suggestedTags,
|
|
15068
|
+
maxTags,
|
|
15069
|
+
isSubmitting,
|
|
15070
|
+
canSubmit,
|
|
15071
|
+
onSubmit,
|
|
15072
|
+
onCancel,
|
|
15073
|
+
submitButtonLabel,
|
|
15074
|
+
submittingLabel,
|
|
15075
|
+
cancelButtonLabel,
|
|
15076
|
+
className
|
|
15077
|
+
}) {
|
|
15078
|
+
const contentErrorId = useId();
|
|
15079
|
+
return /* @__PURE__ */ jsxs("div", { "data-slot": "add-memory-form", className: cn98(addMemoryFormRootVariants(), className), children: [
|
|
15080
|
+
/* @__PURE__ */ jsxs("div", { className: addMemoryFormFieldVariants(), children: [
|
|
15081
|
+
/* @__PURE__ */ jsx("label", { htmlFor: "mosaic-add-memory-content", className: "text-sm font-medium text-foreground", children: contentLabel }),
|
|
15082
|
+
/* @__PURE__ */ jsx(
|
|
15083
|
+
MosaicTextarea,
|
|
15084
|
+
{
|
|
15085
|
+
id: "mosaic-add-memory-content",
|
|
15086
|
+
value: content,
|
|
15087
|
+
placeholder: contentPlaceholder,
|
|
15088
|
+
onChange: (e) => onContentChange(e.target.value),
|
|
15089
|
+
rows: 4,
|
|
15090
|
+
"aria-invalid": contentError ? "true" : "false",
|
|
15091
|
+
"aria-describedby": contentError ? contentErrorId : void 0
|
|
15092
|
+
}
|
|
15093
|
+
),
|
|
15094
|
+
contentError && /* @__PURE__ */ jsx("p", { id: contentErrorId, className: addMemoryFormErrorVariants(), children: contentError })
|
|
15095
|
+
] }),
|
|
15096
|
+
/* @__PURE__ */ jsxs("div", { className: addMemoryFormFieldVariants(), children: [
|
|
15097
|
+
/* @__PURE__ */ jsx("span", { className: "text-sm font-medium text-foreground", children: typeLabel }),
|
|
15098
|
+
/* @__PURE__ */ jsx(
|
|
15099
|
+
MosaicSelect,
|
|
15100
|
+
{
|
|
15101
|
+
items: types,
|
|
15102
|
+
value: type,
|
|
15103
|
+
onValueChange: (value) => {
|
|
15104
|
+
if (value) onTypeChange(value);
|
|
15105
|
+
}
|
|
15106
|
+
}
|
|
15107
|
+
)
|
|
15108
|
+
] }),
|
|
15109
|
+
/* @__PURE__ */ jsxs("div", { className: addMemoryFormFieldVariants(), children: [
|
|
15110
|
+
/* @__PURE__ */ jsx("span", { className: "text-sm font-medium text-foreground", children: tagsLabel }),
|
|
15111
|
+
/* @__PURE__ */ jsx(
|
|
15112
|
+
MosaicTagInput,
|
|
15113
|
+
{
|
|
15114
|
+
tags,
|
|
15115
|
+
onAddTag,
|
|
15116
|
+
onRemoveTag,
|
|
15117
|
+
placeholder: tagInputPlaceholder,
|
|
15118
|
+
removeTagAriaLabel,
|
|
15119
|
+
suggestions: suggestedTags,
|
|
15120
|
+
maxTags
|
|
15121
|
+
}
|
|
15122
|
+
)
|
|
15123
|
+
] }),
|
|
15124
|
+
/* @__PURE__ */ jsxs("div", { className: addMemoryFormFooterVariants(), children: [
|
|
15125
|
+
/* @__PURE__ */ jsx(
|
|
15126
|
+
"button",
|
|
15127
|
+
{
|
|
15128
|
+
type: "button",
|
|
15129
|
+
"data-slot": "add-memory-form-cancel-button",
|
|
15130
|
+
onClick: onCancel,
|
|
15131
|
+
disabled: isSubmitting,
|
|
15132
|
+
className: addMemoryFormButtonVariants({ intent: "cancel" }),
|
|
15133
|
+
children: cancelButtonLabel
|
|
15134
|
+
}
|
|
15135
|
+
),
|
|
15136
|
+
/* @__PURE__ */ jsx(
|
|
15137
|
+
"button",
|
|
15138
|
+
{
|
|
15139
|
+
type: "button",
|
|
15140
|
+
"data-slot": "add-memory-form-submit-button",
|
|
15141
|
+
onClick: onSubmit,
|
|
15142
|
+
disabled: !canSubmit || isSubmitting,
|
|
15143
|
+
"aria-busy": isSubmitting ? "true" : "false",
|
|
15144
|
+
className: addMemoryFormButtonVariants({ intent: "submit" }),
|
|
15145
|
+
children: isSubmitting ? submittingLabel : submitButtonLabel
|
|
15146
|
+
}
|
|
15147
|
+
)
|
|
15148
|
+
] })
|
|
15149
|
+
] });
|
|
15150
|
+
}
|
|
15151
|
+
MosaicAddMemoryForm.displayName = "MosaicAddMemoryForm";
|
|
14707
15152
|
var templateListVariants = cva(["grid gap-4"], {
|
|
14708
15153
|
variants: {
|
|
14709
15154
|
layout: {
|
|
@@ -14715,7 +15160,7 @@ var templateListVariants = cva(["grid gap-4"], {
|
|
|
14715
15160
|
layout: "grid"
|
|
14716
15161
|
}
|
|
14717
15162
|
});
|
|
14718
|
-
function
|
|
15163
|
+
function cn99(...classes) {
|
|
14719
15164
|
return classes.filter(Boolean).join(" ");
|
|
14720
15165
|
}
|
|
14721
15166
|
var NEXT_KEYS = /* @__PURE__ */ new Set(["ArrowRight", "ArrowDown"]);
|
|
@@ -14760,7 +15205,7 @@ function MosaicTemplateList({
|
|
|
14760
15205
|
{
|
|
14761
15206
|
ref,
|
|
14762
15207
|
"data-slot": "template-list",
|
|
14763
|
-
className:
|
|
15208
|
+
className: cn99(templateListVariants({ layout }), className),
|
|
14764
15209
|
children: /* @__PURE__ */ jsx(
|
|
14765
15210
|
"p",
|
|
14766
15211
|
{
|
|
@@ -14777,7 +15222,7 @@ function MosaicTemplateList({
|
|
|
14777
15222
|
{
|
|
14778
15223
|
ref,
|
|
14779
15224
|
"data-slot": "template-list",
|
|
14780
|
-
className:
|
|
15225
|
+
className: cn99("list-none", templateListVariants({ layout }), className),
|
|
14781
15226
|
children: items.map((item, index) => /* @__PURE__ */ jsx(
|
|
14782
15227
|
"li",
|
|
14783
15228
|
{
|
|
@@ -14800,7 +15245,7 @@ MosaicTemplateList.displayName = "MosaicTemplateList";
|
|
|
14800
15245
|
var templateManagementRowVariants = cva(
|
|
14801
15246
|
"flex items-center justify-between gap-3 border-b border-border px-4 py-3 last:border-b-0"
|
|
14802
15247
|
);
|
|
14803
|
-
function
|
|
15248
|
+
function cn100(...classes) {
|
|
14804
15249
|
return classes.filter(Boolean).join(" ");
|
|
14805
15250
|
}
|
|
14806
15251
|
function MosaicTemplateManagementPanel({
|
|
@@ -14855,7 +15300,7 @@ function MosaicTemplateManagementPanel({
|
|
|
14855
15300
|
"div",
|
|
14856
15301
|
{
|
|
14857
15302
|
"data-slot": "template-management-panel",
|
|
14858
|
-
className:
|
|
15303
|
+
className: cn100("flex flex-col rounded-lg border border-border bg-background", className),
|
|
14859
15304
|
children: [
|
|
14860
15305
|
/* @__PURE__ */ jsx("h2", { className: "border-b border-border px-4 py-3 font-semibold text-foreground text-sm", children: heading }),
|
|
14861
15306
|
templates.length === 0 ? /* @__PURE__ */ jsx("p", { className: "px-4 py-6 text-center text-muted-foreground text-sm", children: emptyMessage }) : /* @__PURE__ */ jsx("ul", { children: templates.map((item) => {
|
|
@@ -14887,7 +15332,7 @@ function MosaicTemplateManagementPanel({
|
|
|
14887
15332
|
{
|
|
14888
15333
|
type: "button",
|
|
14889
15334
|
"aria-label": actionsAriaLabelFor(item.name),
|
|
14890
|
-
className:
|
|
15335
|
+
className: cn100(
|
|
14891
15336
|
"flex size-8 items-center justify-center rounded-md",
|
|
14892
15337
|
"text-muted-foreground hover:bg-muted hover:text-foreground"
|
|
14893
15338
|
),
|
|
@@ -14940,7 +15385,7 @@ var chatSidebarThreadVariants = cva(
|
|
|
14940
15385
|
}
|
|
14941
15386
|
}
|
|
14942
15387
|
);
|
|
14943
|
-
function
|
|
15388
|
+
function cn101(...classes) {
|
|
14944
15389
|
return classes.filter(Boolean).join(" ");
|
|
14945
15390
|
}
|
|
14946
15391
|
var NEXT_KEYS2 = /* @__PURE__ */ new Set(["ArrowDown"]);
|
|
@@ -14991,7 +15436,7 @@ function MosaicChatSidebar({
|
|
|
14991
15436
|
{
|
|
14992
15437
|
ref,
|
|
14993
15438
|
"data-slot": "chat-sidebar",
|
|
14994
|
-
className:
|
|
15439
|
+
className: cn101("flex h-full flex-col gap-2 overflow-y-auto", className),
|
|
14995
15440
|
children: [
|
|
14996
15441
|
/* @__PURE__ */ jsx(
|
|
14997
15442
|
"button",
|
|
@@ -15024,7 +15469,7 @@ function MosaicChatSidebar({
|
|
|
15024
15469
|
onKeyDown: (event) => handleKeyDown(event, index, thread.id),
|
|
15025
15470
|
onFocus: () => setFocusedIndex(index),
|
|
15026
15471
|
onClick: () => onSelectThread(thread.id),
|
|
15027
|
-
className:
|
|
15472
|
+
className: cn101(chatSidebarThreadVariants({ active: isActive }), itemClassName),
|
|
15028
15473
|
children: renderThread(thread, index)
|
|
15029
15474
|
},
|
|
15030
15475
|
thread.id
|
|
@@ -15035,7 +15480,331 @@ function MosaicChatSidebar({
|
|
|
15035
15480
|
);
|
|
15036
15481
|
}
|
|
15037
15482
|
MosaicChatSidebar.displayName = "MosaicChatSidebar";
|
|
15483
|
+
var memoryGridVariants = cva(["grid", "grid-cols-1 sm:grid-cols-2 lg:grid-cols-3"], {
|
|
15484
|
+
variants: {
|
|
15485
|
+
density: {
|
|
15486
|
+
comfortable: "gap-4",
|
|
15487
|
+
compact: "gap-2"
|
|
15488
|
+
}
|
|
15489
|
+
},
|
|
15490
|
+
defaultVariants: {
|
|
15491
|
+
density: "comfortable"
|
|
15492
|
+
}
|
|
15493
|
+
});
|
|
15494
|
+
function cn102(...classes) {
|
|
15495
|
+
return classes.filter(Boolean).join(" ");
|
|
15496
|
+
}
|
|
15497
|
+
var NEXT_KEYS3 = /* @__PURE__ */ new Set(["ArrowRight", "ArrowDown"]);
|
|
15498
|
+
var PREV_KEYS3 = /* @__PURE__ */ new Set(["ArrowLeft", "ArrowUp"]);
|
|
15499
|
+
function MosaicMemoryGrid({
|
|
15500
|
+
items,
|
|
15501
|
+
renderItem,
|
|
15502
|
+
density = "comfortable",
|
|
15503
|
+
emptyMessage,
|
|
15504
|
+
className,
|
|
15505
|
+
itemClassName,
|
|
15506
|
+
ref
|
|
15507
|
+
}) {
|
|
15508
|
+
const itemRefs = useRef([]);
|
|
15509
|
+
const [focusedIndex, setFocusedIndex] = useState(0);
|
|
15510
|
+
function focusItem(index) {
|
|
15511
|
+
if (items.length === 0) {
|
|
15512
|
+
return;
|
|
15513
|
+
}
|
|
15514
|
+
const clamped = Math.max(0, Math.min(items.length - 1, index));
|
|
15515
|
+
setFocusedIndex(clamped);
|
|
15516
|
+
itemRefs.current[clamped]?.focus();
|
|
15517
|
+
}
|
|
15518
|
+
function handleKeyDown(event, index) {
|
|
15519
|
+
if (NEXT_KEYS3.has(event.key)) {
|
|
15520
|
+
event.preventDefault();
|
|
15521
|
+
focusItem(index + 1);
|
|
15522
|
+
} else if (PREV_KEYS3.has(event.key)) {
|
|
15523
|
+
event.preventDefault();
|
|
15524
|
+
focusItem(index - 1);
|
|
15525
|
+
} else if (event.key === "Home") {
|
|
15526
|
+
event.preventDefault();
|
|
15527
|
+
focusItem(0);
|
|
15528
|
+
} else if (event.key === "End") {
|
|
15529
|
+
event.preventDefault();
|
|
15530
|
+
focusItem(items.length - 1);
|
|
15531
|
+
}
|
|
15532
|
+
}
|
|
15533
|
+
if (items.length === 0) {
|
|
15534
|
+
return /* @__PURE__ */ jsx(
|
|
15535
|
+
"div",
|
|
15536
|
+
{
|
|
15537
|
+
ref,
|
|
15538
|
+
"data-slot": "memory-grid",
|
|
15539
|
+
className: cn102(memoryGridVariants({ density }), className),
|
|
15540
|
+
children: /* @__PURE__ */ jsx(
|
|
15541
|
+
"p",
|
|
15542
|
+
{
|
|
15543
|
+
"data-slot": "memory-grid-empty",
|
|
15544
|
+
className: "col-span-full py-12 text-center text-sm text-muted-foreground",
|
|
15545
|
+
children: emptyMessage
|
|
15546
|
+
}
|
|
15547
|
+
)
|
|
15548
|
+
}
|
|
15549
|
+
);
|
|
15550
|
+
}
|
|
15551
|
+
return /* @__PURE__ */ jsx(
|
|
15552
|
+
"ul",
|
|
15553
|
+
{
|
|
15554
|
+
ref,
|
|
15555
|
+
"data-slot": "memory-grid",
|
|
15556
|
+
className: cn102("list-none", memoryGridVariants({ density }), className),
|
|
15557
|
+
children: items.map((item, index) => /* @__PURE__ */ jsx(
|
|
15558
|
+
"li",
|
|
15559
|
+
{
|
|
15560
|
+
ref: (node) => {
|
|
15561
|
+
itemRefs.current[index] = node;
|
|
15562
|
+
},
|
|
15563
|
+
"data-slot": "memory-grid-item",
|
|
15564
|
+
tabIndex: index === focusedIndex ? 0 : -1,
|
|
15565
|
+
onKeyDown: (event) => handleKeyDown(event, index),
|
|
15566
|
+
onFocus: () => setFocusedIndex(index),
|
|
15567
|
+
className: itemClassName,
|
|
15568
|
+
children: renderItem(item, index)
|
|
15569
|
+
},
|
|
15570
|
+
item.id
|
|
15571
|
+
))
|
|
15572
|
+
}
|
|
15573
|
+
);
|
|
15574
|
+
}
|
|
15575
|
+
MosaicMemoryGrid.displayName = "MosaicMemoryGrid";
|
|
15576
|
+
var memoryListVariants = cva(["flex flex-col", "divide-y divide-border"], {
|
|
15577
|
+
variants: {
|
|
15578
|
+
density: {
|
|
15579
|
+
comfortable: "",
|
|
15580
|
+
compact: ""
|
|
15581
|
+
}
|
|
15582
|
+
},
|
|
15583
|
+
defaultVariants: {
|
|
15584
|
+
density: "comfortable"
|
|
15585
|
+
}
|
|
15586
|
+
});
|
|
15587
|
+
var memoryListItemVariants = cva([], {
|
|
15588
|
+
variants: {
|
|
15589
|
+
density: {
|
|
15590
|
+
comfortable: "py-3",
|
|
15591
|
+
compact: "py-1"
|
|
15592
|
+
}
|
|
15593
|
+
},
|
|
15594
|
+
defaultVariants: {
|
|
15595
|
+
density: "comfortable"
|
|
15596
|
+
}
|
|
15597
|
+
});
|
|
15598
|
+
function cn103(...classes) {
|
|
15599
|
+
return classes.filter(Boolean).join(" ");
|
|
15600
|
+
}
|
|
15601
|
+
var NEXT_KEYS4 = /* @__PURE__ */ new Set(["ArrowRight", "ArrowDown"]);
|
|
15602
|
+
var PREV_KEYS4 = /* @__PURE__ */ new Set(["ArrowLeft", "ArrowUp"]);
|
|
15603
|
+
function MosaicMemoryList({
|
|
15604
|
+
items,
|
|
15605
|
+
renderItem,
|
|
15606
|
+
density = "comfortable",
|
|
15607
|
+
emptyMessage,
|
|
15608
|
+
className,
|
|
15609
|
+
itemClassName,
|
|
15610
|
+
ref
|
|
15611
|
+
}) {
|
|
15612
|
+
const itemRefs = useRef([]);
|
|
15613
|
+
const [focusedIndex, setFocusedIndex] = useState(0);
|
|
15614
|
+
function focusItem(index) {
|
|
15615
|
+
if (items.length === 0) {
|
|
15616
|
+
return;
|
|
15617
|
+
}
|
|
15618
|
+
const clamped = Math.max(0, Math.min(items.length - 1, index));
|
|
15619
|
+
setFocusedIndex(clamped);
|
|
15620
|
+
itemRefs.current[clamped]?.focus();
|
|
15621
|
+
}
|
|
15622
|
+
function handleKeyDown(event, index) {
|
|
15623
|
+
if (NEXT_KEYS4.has(event.key)) {
|
|
15624
|
+
event.preventDefault();
|
|
15625
|
+
focusItem(index + 1);
|
|
15626
|
+
} else if (PREV_KEYS4.has(event.key)) {
|
|
15627
|
+
event.preventDefault();
|
|
15628
|
+
focusItem(index - 1);
|
|
15629
|
+
} else if (event.key === "Home") {
|
|
15630
|
+
event.preventDefault();
|
|
15631
|
+
focusItem(0);
|
|
15632
|
+
} else if (event.key === "End") {
|
|
15633
|
+
event.preventDefault();
|
|
15634
|
+
focusItem(items.length - 1);
|
|
15635
|
+
}
|
|
15636
|
+
}
|
|
15637
|
+
if (items.length === 0) {
|
|
15638
|
+
return /* @__PURE__ */ jsx(
|
|
15639
|
+
"div",
|
|
15640
|
+
{
|
|
15641
|
+
ref,
|
|
15642
|
+
"data-slot": "memory-list",
|
|
15643
|
+
className: cn103(memoryListVariants({ density }), className),
|
|
15644
|
+
children: /* @__PURE__ */ jsx(
|
|
15645
|
+
"p",
|
|
15646
|
+
{
|
|
15647
|
+
"data-slot": "memory-list-empty",
|
|
15648
|
+
className: "py-12 text-center text-sm text-muted-foreground",
|
|
15649
|
+
children: emptyMessage
|
|
15650
|
+
}
|
|
15651
|
+
)
|
|
15652
|
+
}
|
|
15653
|
+
);
|
|
15654
|
+
}
|
|
15655
|
+
return /* @__PURE__ */ jsx(
|
|
15656
|
+
"ul",
|
|
15657
|
+
{
|
|
15658
|
+
ref,
|
|
15659
|
+
"data-slot": "memory-list",
|
|
15660
|
+
className: cn103("list-none", memoryListVariants({ density }), className),
|
|
15661
|
+
children: items.map((item, index) => /* @__PURE__ */ jsx(
|
|
15662
|
+
"li",
|
|
15663
|
+
{
|
|
15664
|
+
ref: (node) => {
|
|
15665
|
+
itemRefs.current[index] = node;
|
|
15666
|
+
},
|
|
15667
|
+
"data-slot": "memory-list-item",
|
|
15668
|
+
tabIndex: index === focusedIndex ? 0 : -1,
|
|
15669
|
+
onKeyDown: (event) => handleKeyDown(event, index),
|
|
15670
|
+
onFocus: () => setFocusedIndex(index),
|
|
15671
|
+
className: cn103(memoryListItemVariants({ density }), itemClassName),
|
|
15672
|
+
children: renderItem(item, index)
|
|
15673
|
+
},
|
|
15674
|
+
item.id
|
|
15675
|
+
))
|
|
15676
|
+
}
|
|
15677
|
+
);
|
|
15678
|
+
}
|
|
15679
|
+
MosaicMemoryList.displayName = "MosaicMemoryList";
|
|
15680
|
+
var memorySearchFilterChipVariants = cva(
|
|
15681
|
+
[
|
|
15682
|
+
"inline-flex items-center justify-center whitespace-nowrap",
|
|
15683
|
+
"rounded-full border px-3 py-1 gap-1",
|
|
15684
|
+
"text-xs font-medium transition-colors",
|
|
15685
|
+
"focus-visible:outline-none focus-visible:ring-ring focus-visible:ring-[3px]"
|
|
15686
|
+
],
|
|
15687
|
+
{
|
|
15688
|
+
variants: {
|
|
15689
|
+
selected: {
|
|
15690
|
+
true: "border-transparent bg-primary text-primary-foreground",
|
|
15691
|
+
false: "border-border bg-background text-foreground hover:bg-muted"
|
|
15692
|
+
}
|
|
15693
|
+
},
|
|
15694
|
+
defaultVariants: {
|
|
15695
|
+
selected: false
|
|
15696
|
+
}
|
|
15697
|
+
}
|
|
15698
|
+
);
|
|
15699
|
+
function cn104(...classes) {
|
|
15700
|
+
return classes.filter(Boolean).join(" ");
|
|
15701
|
+
}
|
|
15702
|
+
function SearchIcon8() {
|
|
15703
|
+
return /* @__PURE__ */ jsxs(
|
|
15704
|
+
"svg",
|
|
15705
|
+
{
|
|
15706
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
15707
|
+
width: "16",
|
|
15708
|
+
height: "16",
|
|
15709
|
+
viewBox: "0 0 24 24",
|
|
15710
|
+
fill: "none",
|
|
15711
|
+
stroke: "currentColor",
|
|
15712
|
+
strokeWidth: "2",
|
|
15713
|
+
strokeLinecap: "round",
|
|
15714
|
+
strokeLinejoin: "round",
|
|
15715
|
+
"aria-hidden": "true",
|
|
15716
|
+
children: [
|
|
15717
|
+
/* @__PURE__ */ jsx("circle", { cx: "11", cy: "11", r: "8" }),
|
|
15718
|
+
/* @__PURE__ */ jsx("line", { x1: "21", y1: "21", x2: "16.65", y2: "16.65" })
|
|
15719
|
+
]
|
|
15720
|
+
}
|
|
15721
|
+
);
|
|
15722
|
+
}
|
|
15723
|
+
function ClearIcon() {
|
|
15724
|
+
return /* @__PURE__ */ jsxs(
|
|
15725
|
+
"svg",
|
|
15726
|
+
{
|
|
15727
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
15728
|
+
width: "14",
|
|
15729
|
+
height: "14",
|
|
15730
|
+
viewBox: "0 0 24 24",
|
|
15731
|
+
fill: "none",
|
|
15732
|
+
stroke: "currentColor",
|
|
15733
|
+
strokeWidth: "2",
|
|
15734
|
+
strokeLinecap: "round",
|
|
15735
|
+
strokeLinejoin: "round",
|
|
15736
|
+
"aria-hidden": "true",
|
|
15737
|
+
children: [
|
|
15738
|
+
/* @__PURE__ */ jsx("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
|
|
15739
|
+
/* @__PURE__ */ jsx("line", { x1: "6", y1: "6", x2: "18", y2: "18" })
|
|
15740
|
+
]
|
|
15741
|
+
}
|
|
15742
|
+
);
|
|
15743
|
+
}
|
|
15744
|
+
function MosaicMemorySearch({
|
|
15745
|
+
query,
|
|
15746
|
+
onQueryChange,
|
|
15747
|
+
searchLabel,
|
|
15748
|
+
searchPlaceholder,
|
|
15749
|
+
clearButtonLabel,
|
|
15750
|
+
resultCount,
|
|
15751
|
+
formatResultCount,
|
|
15752
|
+
filters,
|
|
15753
|
+
selectedFilterIds,
|
|
15754
|
+
onFilterToggle,
|
|
15755
|
+
className,
|
|
15756
|
+
ref
|
|
15757
|
+
}) {
|
|
15758
|
+
return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "memory-search", className: cn104("flex flex-col gap-2", className), children: [
|
|
15759
|
+
/* @__PURE__ */ jsxs("div", { className: "relative", children: [
|
|
15760
|
+
/* @__PURE__ */ jsx("span", { className: "absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground", children: /* @__PURE__ */ jsx(SearchIcon8, {}) }),
|
|
15761
|
+
/* @__PURE__ */ jsx(
|
|
15762
|
+
MosaicInput,
|
|
15763
|
+
{
|
|
15764
|
+
type: "search",
|
|
15765
|
+
"aria-label": searchLabel,
|
|
15766
|
+
placeholder: searchPlaceholder,
|
|
15767
|
+
value: query,
|
|
15768
|
+
onChange: (event) => onQueryChange(event.target.value),
|
|
15769
|
+
className: "pl-9 pr-9"
|
|
15770
|
+
}
|
|
15771
|
+
),
|
|
15772
|
+
query.length > 0 && /* @__PURE__ */ jsx(
|
|
15773
|
+
"button",
|
|
15774
|
+
{
|
|
15775
|
+
type: "button",
|
|
15776
|
+
"aria-label": clearButtonLabel,
|
|
15777
|
+
onClick: () => onQueryChange(""),
|
|
15778
|
+
className: cn104(
|
|
15779
|
+
"absolute right-2 top-1/2 -translate-y-1/2",
|
|
15780
|
+
"flex size-5 items-center justify-center rounded-full",
|
|
15781
|
+
"text-muted-foreground hover:bg-muted hover:text-foreground",
|
|
15782
|
+
"focus-visible:outline-none focus-visible:ring-ring focus-visible:ring-[3px]"
|
|
15783
|
+
),
|
|
15784
|
+
children: /* @__PURE__ */ jsx(ClearIcon, {})
|
|
15785
|
+
}
|
|
15786
|
+
)
|
|
15787
|
+
] }),
|
|
15788
|
+
filters && filters.length > 0 && /* @__PURE__ */ jsx("div", { "data-slot": "memory-search-filters", className: "flex flex-wrap items-center gap-2", children: filters.map((filter) => {
|
|
15789
|
+
const isSelected = (selectedFilterIds ?? []).includes(filter.id);
|
|
15790
|
+
return /* @__PURE__ */ jsx(
|
|
15791
|
+
"button",
|
|
15792
|
+
{
|
|
15793
|
+
type: "button",
|
|
15794
|
+
"data-slot": "memory-search-filter-chip",
|
|
15795
|
+
"aria-pressed": isSelected,
|
|
15796
|
+
onClick: () => onFilterToggle?.(filter.id),
|
|
15797
|
+
className: memorySearchFilterChipVariants({ selected: isSelected }),
|
|
15798
|
+
children: filter.label
|
|
15799
|
+
},
|
|
15800
|
+
filter.id
|
|
15801
|
+
);
|
|
15802
|
+
}) }),
|
|
15803
|
+
/* @__PURE__ */ jsx("p", { "data-slot": "memory-search-result-count", className: "text-sm text-muted-foreground", children: formatResultCount(resultCount) })
|
|
15804
|
+
] });
|
|
15805
|
+
}
|
|
15806
|
+
MosaicMemorySearch.displayName = "MosaicMemorySearch";
|
|
15038
15807
|
|
|
15039
|
-
export { MosaicAccordion, MosaicAccordionItem, MosaicAccordionPanel, MosaicAccordionTrigger, MosaicActivityFeed, MosaicActivityItem, MosaicAdaptiveGrid, MosaicAdaptiveModal, MosaicAdaptiveNavigation, MosaicAgentBuilderModal, MosaicAgentCard, MosaicAgentChat, MosaicAgentComposer, MosaicAgentComposerDesktop, MosaicAgentComposerMobile, MosaicAgentEditor, MosaicAgentList, AgentListDesktop as MosaicAgentListDesktop, AgentListMobile as MosaicAgentListMobile, MosaicAgentPreview, MosaicAgentTeamPreview, MosaicAlertDialog, MosaicAlertDialogAction, MosaicAlertDialogCancel, MosaicAlertDialogContent, MosaicAlertDialogDescription, MosaicAlertDialogFooter, MosaicAlertDialogHeader, MosaicAlertDialogOverlay, MosaicAlertDialogPortal, MosaicAlertDialogTitle, MosaicAlertDialogTrigger, MosaicAnimatedList, MosaicApiKeyPanel, MosaicAppSidebar, MosaicApprovalPrompt, MosaicAvatar, MosaicBadge, MosaicBlurredOrb, MosaicButton, MosaicCard, MosaicCardContent, MosaicCardDescription, MosaicCardFooter, MosaicCardHeader, MosaicCardTitle, MosaicChatComposer, MosaicChatMessage, MosaicChatSidebar, MosaicChatThread, MosaicCheckbox, MosaicClerkOrgSwitcher, MosaicClerkWebhookHandler, MosaicCollapsible, MosaicCollapsiblePanel, MosaicCollapsibleTrigger, MosaicCombobox, MosaicCounter, MosaicCreateOrgDialog, MosaicDashboardContent, MosaicDashboardHeader, MosaicDashboardLayout, MosaicDataTable, MosaicDeleteConfirmationDialog, MosaicDeviceProvider, MosaicDocumentUpload, MosaicDrawer, MosaicDropdownMenu, MosaicEmptyState, MosaicFallingPattern, MosaicFeature3Col, MosaicFeatureCenteredMedia, MosaicField, MosaicFieldControl, MosaicFieldDescription, MosaicFieldError, MosaicFieldLabel, MosaicFilterBar, MosaicFilterSidebar, MosaicFooterSimple, MosaicHeroSplit, MosaicInput, MosaicInputGroup, MosaicIntegrationsBadge, MosaicInviteMemberDialog, MosaicKanbanBoard, MosaicKanbanColumn, MosaicLogosGrid, MosaicMainNav, MosaicMarkdown, MosaicMarketplaceCard, MosaicMarketplaceList, MarketplaceListDesktop as MosaicMarketplaceListDesktop, MarketplaceListMobile as MosaicMarketplaceListMobile, MosaicMemberList, MosaicMemoryCard, MosaicMessageCard, MosaicMessageList, MessageListDesktop as MosaicMessageListDesktop, MessageListMobile as MosaicMessageListMobile, MosaicModelSelector, MosaicModuleCard, MosaicModuleForm, MosaicModuleLibrary, MosaicMultiOrgIndicator, MosaicMultiTenantProvider, MosaicNavbar, MosaicOrgPanel, MosaicOrgProfilePage, MosaicOrgRoleBadge, MosaicOrgSwitcher, MosaicPdfViewer, MosaicPopover, MosaicPreferencesPanel, MosaicPricingCard, MosaicProfilePanel, MosaicProgress, MosaicQuickActionCard, MosaicQuickActionsMenu, MosaicQuickAgentSelector, MosaicQuickStartPanel, MosaicRadioGroup, MosaicRadioGroupItem, MosaicResizableSplitPane, MosaicSaveTemplateModal, MosaicScrollArea, MosaicSelect, MosaicSelectorModal, MosaicSeparator, MosaicSignInLayout, MosaicSignUpLayout, MosaicSkeleton, MosaicSlider, MosaicStatsGrid, MosaicStepPipeline, MosaicSwitch, MosaicTabs, MosaicTabsList, MosaicTabsPanel, MosaicTabsTrigger, MosaicTagInput, MosaicTemplateAgentCard, MosaicTemplateCard, MosaicTemplateCategoryChips, MosaicTemplateGallery, MosaicTemplateList, MosaicTemplateManagementPanel, MosaicTemplatePreview, MosaicTestimonialsGrid, MosaicTextarea, MosaicThemeProvider, MosaicThemeToggle, MosaicToast, MosaicToastProvider, MosaicToolToggleList, MosaicTooltip, MosaicTooltipContent, MosaicTooltipProvider, MosaicTooltipRoot, MosaicTooltipTrigger, MosaicUrlScraper, MosaicUserButton, Placeholder, agentBuilderModalBackdropVariants, agentBuilderModalPopupVariants, agentChatRootVariants, agentEditorVariants, agentPreviewVariants, alertDialogContentVariants, alertDialogOverlayVariants, badgeVariants, buttonVariants, chatMessageBubbleVariants, chatMessageContainerVariants, chatMessageToolStatusVariants, chatSidebarThreadVariants, drawerBackdropVariants, drawerPopupVariants, marketplaceCardVariants, pdfViewerFrameVariants, pdfViewerStatusVariants, pdfViewerToolbarButtonVariants, popoverPopupVariants, saveTemplateModalBodyVariants, saveTemplateModalButtonVariants, saveTemplateModalErrorVariants, saveTemplateModalFieldVariants, saveTemplateModalFooterVariants, skeletonVariants, splitPaneCollapseButtonVariants, splitPaneHandleVariants, splitPaneRootVariants, tagInputFieldVariants, tagInputRemoveButtonVariants, tagInputRootVariants, tagInputTagVariants, templateAgentCardBadgeVariants, templateAgentCardTagVariants, templateAgentCardVariants, templateCategoryChipVariants, templateListVariants, templateManagementRowVariants, toastCardVariants, toastDismissButtonVariants, toastProviderPositionVariants, toastTitleVariants, toolToggleListRowVariants, toolToggleListSectionVariants, useBreakpoint, useDevice, useMosaicWorkspace as useEffectiveWorkspaceId, useIsDesktop, useIsMobile, useIsTablet, useMediaQuery, useMosaicWorkspace, useOrientation, useViewport, version };
|
|
15808
|
+
export { MosaicAccordion, MosaicAccordionItem, MosaicAccordionPanel, MosaicAccordionTrigger, MosaicActivityFeed, MosaicActivityItem, MosaicAdaptiveGrid, MosaicAdaptiveModal, MosaicAdaptiveNavigation, MosaicAddMemoryForm, MosaicAgentBuilderModal, MosaicAgentCard, MosaicAgentChat, MosaicAgentComposer, MosaicAgentComposerDesktop, MosaicAgentComposerMobile, MosaicAgentEditor, MosaicAgentList, AgentListDesktop as MosaicAgentListDesktop, AgentListMobile as MosaicAgentListMobile, MosaicAgentPreview, MosaicAgentTeamPreview, MosaicAlertDialog, MosaicAlertDialogAction, MosaicAlertDialogCancel, MosaicAlertDialogContent, MosaicAlertDialogDescription, MosaicAlertDialogFooter, MosaicAlertDialogHeader, MosaicAlertDialogOverlay, MosaicAlertDialogPortal, MosaicAlertDialogTitle, MosaicAlertDialogTrigger, MosaicAnimatedList, MosaicApiKeyPanel, MosaicAppSidebar, MosaicApprovalPrompt, MosaicAvatar, MosaicBadge, MosaicBlurredOrb, MosaicButton, MosaicCard, MosaicCardContent, MosaicCardDescription, MosaicCardFooter, MosaicCardHeader, MosaicCardTitle, MosaicChatComposer, MosaicChatMessage, MosaicChatSidebar, MosaicChatThread, MosaicCheckbox, MosaicClerkOrgSwitcher, MosaicClerkWebhookHandler, MosaicCollapsible, MosaicCollapsiblePanel, MosaicCollapsibleTrigger, MosaicCombobox, MosaicCounter, MosaicCreateOrgDialog, MosaicDashboardContent, MosaicDashboardHeader, MosaicDashboardLayout, MosaicDataTable, MosaicDeleteConfirmationDialog, MosaicDeviceProvider, MosaicDocumentUpload, MosaicDrawer, MosaicDropdownMenu, MosaicEditMemoryDialog, MosaicEmptyState, MosaicFallingPattern, MosaicFeature3Col, MosaicFeatureCenteredMedia, MosaicField, MosaicFieldControl, MosaicFieldDescription, MosaicFieldError, MosaicFieldLabel, MosaicFilterBar, MosaicFilterSidebar, MosaicFooterSimple, MosaicHeroSplit, MosaicInput, MosaicInputGroup, MosaicIntegrationsBadge, MosaicInviteMemberDialog, MosaicKanbanBoard, MosaicKanbanColumn, MosaicLogosGrid, MosaicMainNav, MosaicMarkdown, MosaicMarketplaceCard, MosaicMarketplaceList, MarketplaceListDesktop as MosaicMarketplaceListDesktop, MarketplaceListMobile as MosaicMarketplaceListMobile, MosaicMemberList, MosaicMemoryCard, MosaicMemoryDashboard, MosaicMemoryGrid, MosaicMemoryList, MosaicMemorySearch, MosaicMessageCard, MosaicMessageList, MessageListDesktop as MosaicMessageListDesktop, MessageListMobile as MosaicMessageListMobile, MosaicModelSelector, MosaicModuleCard, MosaicModuleForm, MosaicModuleLibrary, MosaicMultiOrgIndicator, MosaicMultiTenantProvider, MosaicNavbar, MosaicOrgPanel, MosaicOrgProfilePage, MosaicOrgRoleBadge, MosaicOrgSwitcher, MosaicPdfViewer, MosaicPopover, MosaicPreferencesPanel, MosaicPricingCard, MosaicProfilePanel, MosaicProgress, MosaicQuickActionCard, MosaicQuickActionsMenu, MosaicQuickAgentSelector, MosaicQuickStartPanel, MosaicRadioGroup, MosaicRadioGroupItem, MosaicResizableSplitPane, MosaicSaveTemplateModal, MosaicScrollArea, MosaicSelect, MosaicSelectorModal, MosaicSeparator, MosaicSignInLayout, MosaicSignUpLayout, MosaicSkeleton, MosaicSlider, MosaicStatsGrid, MosaicStepPipeline, MosaicSwitch, MosaicTabs, MosaicTabsList, MosaicTabsPanel, MosaicTabsTrigger, MosaicTagInput, MosaicTemplateAgentCard, MosaicTemplateCard, MosaicTemplateCategoryChips, MosaicTemplateGallery, MosaicTemplateList, MosaicTemplateManagementPanel, MosaicTemplatePreview, MosaicTestimonialsGrid, MosaicTextarea, MosaicThemeProvider, MosaicThemeToggle, MosaicToast, MosaicToastProvider, MosaicToolToggleList, MosaicTooltip, MosaicTooltipContent, MosaicTooltipProvider, MosaicTooltipRoot, MosaicTooltipTrigger, MosaicUrlScraper, MosaicUserButton, Placeholder, addMemoryFormButtonVariants, addMemoryFormErrorVariants, addMemoryFormFieldVariants, addMemoryFormFooterVariants, addMemoryFormRootVariants, agentBuilderModalBackdropVariants, agentBuilderModalPopupVariants, agentChatRootVariants, agentEditorVariants, agentPreviewVariants, alertDialogContentVariants, alertDialogOverlayVariants, badgeVariants, buttonVariants, chatMessageBubbleVariants, chatMessageContainerVariants, chatMessageToolStatusVariants, chatSidebarThreadVariants, drawerBackdropVariants, drawerPopupVariants, editMemoryDialogBackdropVariants, editMemoryDialogErrorVariants, editMemoryDialogFieldVariants, editMemoryDialogPopupVariants, marketplaceCardVariants, memoryDashboardViewToggleButtonVariants, memoryGridVariants, memoryListItemVariants, memoryListVariants, memorySearchFilterChipVariants, pdfViewerFrameVariants, pdfViewerStatusVariants, pdfViewerToolbarButtonVariants, popoverPopupVariants, saveTemplateModalBodyVariants, saveTemplateModalButtonVariants, saveTemplateModalErrorVariants, saveTemplateModalFieldVariants, saveTemplateModalFooterVariants, skeletonVariants, splitPaneCollapseButtonVariants, splitPaneHandleVariants, splitPaneRootVariants, tagInputFieldVariants, tagInputRemoveButtonVariants, tagInputRootVariants, tagInputTagVariants, templateAgentCardBadgeVariants, templateAgentCardTagVariants, templateAgentCardVariants, templateCategoryChipVariants, templateListVariants, templateManagementRowVariants, toastCardVariants, toastDismissButtonVariants, toastProviderPositionVariants, toastTitleVariants, toolToggleListRowVariants, toolToggleListSectionVariants, useBreakpoint, useDevice, useMosaicWorkspace as useEffectiveWorkspaceId, useIsDesktop, useIsMobile, useIsTablet, useMediaQuery, useMosaicWorkspace, useOrientation, useViewport, version };
|
|
15040
15809
|
//# sourceMappingURL=index.js.map
|
|
15041
15810
|
//# sourceMappingURL=index.js.map
|