@vantageos/mosaic-blocks 0.3.0-alpha → 0.3.2-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/dist/index.cjs +289 -249
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +52 -2
- package/dist/index.d.ts +52 -2
- package/dist/index.js +289 -250
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -27,7 +27,7 @@ import { Menu } from '@base-ui/react/menu';
|
|
|
27
27
|
import { AlertDialog } from '@base-ui/react/alert-dialog';
|
|
28
28
|
|
|
29
29
|
// src/version.ts
|
|
30
|
-
var version = "0.3.
|
|
30
|
+
var version = "0.3.2-alpha";
|
|
31
31
|
function Placeholder({ label = "mosaic-blocks placeholder" }) {
|
|
32
32
|
return /* @__PURE__ */ jsx("div", { "data-mosaic-block": "placeholder", children: label });
|
|
33
33
|
}
|
|
@@ -1001,13 +1001,52 @@ function useMediaQuery(query) {
|
|
|
1001
1001
|
function cn13(...classes) {
|
|
1002
1002
|
return classes.filter(Boolean).join(" ");
|
|
1003
1003
|
}
|
|
1004
|
+
function MosaicEmptyState({
|
|
1005
|
+
icon,
|
|
1006
|
+
title,
|
|
1007
|
+
description,
|
|
1008
|
+
action,
|
|
1009
|
+
className,
|
|
1010
|
+
ref
|
|
1011
|
+
}) {
|
|
1012
|
+
return /* @__PURE__ */ jsxs(
|
|
1013
|
+
"div",
|
|
1014
|
+
{
|
|
1015
|
+
ref,
|
|
1016
|
+
"data-slot": "empty-state",
|
|
1017
|
+
className: cn13(
|
|
1018
|
+
"flex flex-col items-center justify-center gap-4 px-4 py-12 text-center",
|
|
1019
|
+
className
|
|
1020
|
+
),
|
|
1021
|
+
children: [
|
|
1022
|
+
icon != null && /* @__PURE__ */ jsx(
|
|
1023
|
+
"div",
|
|
1024
|
+
{
|
|
1025
|
+
"data-slot": "empty-state-icon",
|
|
1026
|
+
className: "flex items-center justify-center text-muted-foreground",
|
|
1027
|
+
children: icon
|
|
1028
|
+
}
|
|
1029
|
+
),
|
|
1030
|
+
/* @__PURE__ */ jsxs("div", { "data-slot": "empty-state-text", className: "flex flex-col gap-1.5", children: [
|
|
1031
|
+
/* @__PURE__ */ jsx("h3", { "data-slot": "empty-state-title", className: "text-base font-medium text-foreground", children: title }),
|
|
1032
|
+
description != null && /* @__PURE__ */ jsx("p", { "data-slot": "empty-state-description", className: "text-sm text-muted-foreground", children: description })
|
|
1033
|
+
] }),
|
|
1034
|
+
action != null && /* @__PURE__ */ jsx("div", { "data-slot": "empty-state-action", className: "mt-2", children: action })
|
|
1035
|
+
]
|
|
1036
|
+
}
|
|
1037
|
+
);
|
|
1038
|
+
}
|
|
1039
|
+
MosaicEmptyState.displayName = "MosaicEmptyState";
|
|
1040
|
+
function cn14(...classes) {
|
|
1041
|
+
return classes.filter(Boolean).join(" ");
|
|
1042
|
+
}
|
|
1004
1043
|
function MosaicAccordion({ className, ref, ...props }) {
|
|
1005
1044
|
return /* @__PURE__ */ jsx(
|
|
1006
1045
|
Accordion.Root,
|
|
1007
1046
|
{
|
|
1008
1047
|
ref,
|
|
1009
1048
|
"data-slot": "accordion",
|
|
1010
|
-
className:
|
|
1049
|
+
className: cn14("w-full divide-y divide-border", className),
|
|
1011
1050
|
...props
|
|
1012
1051
|
}
|
|
1013
1052
|
);
|
|
@@ -1019,7 +1058,7 @@ function MosaicAccordionItem({ className, ref, ...props }) {
|
|
|
1019
1058
|
{
|
|
1020
1059
|
ref,
|
|
1021
1060
|
"data-slot": "accordion-item",
|
|
1022
|
-
className:
|
|
1061
|
+
className: cn14("py-0", className),
|
|
1023
1062
|
...props
|
|
1024
1063
|
}
|
|
1025
1064
|
);
|
|
@@ -1036,7 +1075,7 @@ function MosaicAccordionTrigger({
|
|
|
1036
1075
|
{
|
|
1037
1076
|
ref,
|
|
1038
1077
|
"data-slot": "accordion-trigger",
|
|
1039
|
-
className:
|
|
1078
|
+
className: cn14(
|
|
1040
1079
|
"flex w-full flex-1 items-center justify-between py-4",
|
|
1041
1080
|
"text-sm font-medium text-foreground",
|
|
1042
1081
|
"outline-none transition-all",
|
|
@@ -1076,13 +1115,13 @@ function MosaicAccordionPanel({ className, ref, ...props }) {
|
|
|
1076
1115
|
{
|
|
1077
1116
|
ref,
|
|
1078
1117
|
"data-slot": "accordion-panel",
|
|
1079
|
-
className:
|
|
1118
|
+
className: cn14("overflow-hidden text-sm text-muted-foreground", "transition-all", className),
|
|
1080
1119
|
...props
|
|
1081
1120
|
}
|
|
1082
1121
|
);
|
|
1083
1122
|
}
|
|
1084
1123
|
MosaicAccordionPanel.displayName = "MosaicAccordionPanel";
|
|
1085
|
-
function
|
|
1124
|
+
function cn15(...classes) {
|
|
1086
1125
|
return classes.filter(Boolean).join(" ");
|
|
1087
1126
|
}
|
|
1088
1127
|
function MosaicCheckbox({ className, ref, ...props }) {
|
|
@@ -1091,7 +1130,7 @@ function MosaicCheckbox({ className, ref, ...props }) {
|
|
|
1091
1130
|
{
|
|
1092
1131
|
ref,
|
|
1093
1132
|
"data-slot": "checkbox",
|
|
1094
|
-
className:
|
|
1133
|
+
className: cn15(
|
|
1095
1134
|
"peer size-4 shrink-0 cursor-pointer",
|
|
1096
1135
|
"rounded-sm border border-border bg-background",
|
|
1097
1136
|
"outline-none transition-colors",
|
|
@@ -1131,7 +1170,7 @@ function MosaicCheckbox({ className, ref, ...props }) {
|
|
|
1131
1170
|
);
|
|
1132
1171
|
}
|
|
1133
1172
|
MosaicCheckbox.displayName = "MosaicCheckbox";
|
|
1134
|
-
function
|
|
1173
|
+
function cn16(...classes) {
|
|
1135
1174
|
return classes.filter(Boolean).join(" ");
|
|
1136
1175
|
}
|
|
1137
1176
|
function MosaicCollapsible({ className, ref, ...props }) {
|
|
@@ -1140,7 +1179,7 @@ function MosaicCollapsible({ className, ref, ...props }) {
|
|
|
1140
1179
|
{
|
|
1141
1180
|
ref,
|
|
1142
1181
|
"data-slot": "collapsible",
|
|
1143
|
-
className:
|
|
1182
|
+
className: cn16("w-full", className),
|
|
1144
1183
|
...props
|
|
1145
1184
|
}
|
|
1146
1185
|
);
|
|
@@ -1156,7 +1195,7 @@ function MosaicCollapsibleTrigger({
|
|
|
1156
1195
|
{
|
|
1157
1196
|
ref,
|
|
1158
1197
|
"data-slot": "collapsible-trigger",
|
|
1159
|
-
className:
|
|
1198
|
+
className: cn16(
|
|
1160
1199
|
"inline-flex w-full items-center justify-between gap-2",
|
|
1161
1200
|
"rounded-md px-0 py-2 text-sm font-medium",
|
|
1162
1201
|
"text-foreground outline-none transition-colors",
|
|
@@ -1178,7 +1217,7 @@ function MosaicCollapsiblePanel({ className, ref, ...props }) {
|
|
|
1178
1217
|
{
|
|
1179
1218
|
ref,
|
|
1180
1219
|
"data-slot": "collapsible-panel",
|
|
1181
|
-
className:
|
|
1220
|
+
className: cn16(
|
|
1182
1221
|
"overflow-hidden text-sm transition-all",
|
|
1183
1222
|
"data-[open]:animate-in data-[closed]:animate-out",
|
|
1184
1223
|
className
|
|
@@ -1188,7 +1227,7 @@ function MosaicCollapsiblePanel({ className, ref, ...props }) {
|
|
|
1188
1227
|
);
|
|
1189
1228
|
}
|
|
1190
1229
|
MosaicCollapsiblePanel.displayName = "MosaicCollapsiblePanel";
|
|
1191
|
-
function
|
|
1230
|
+
function cn17(...classes) {
|
|
1192
1231
|
return classes.filter(Boolean).join(" ");
|
|
1193
1232
|
}
|
|
1194
1233
|
function MosaicProgress({
|
|
@@ -1205,7 +1244,7 @@ function MosaicProgress({
|
|
|
1205
1244
|
"data-slot": "progress",
|
|
1206
1245
|
value,
|
|
1207
1246
|
max,
|
|
1208
|
-
className:
|
|
1247
|
+
className: cn17("w-full", className),
|
|
1209
1248
|
...props,
|
|
1210
1249
|
children: /* @__PURE__ */ jsx(
|
|
1211
1250
|
Progress.Track,
|
|
@@ -1226,7 +1265,7 @@ function MosaicProgress({
|
|
|
1226
1265
|
);
|
|
1227
1266
|
}
|
|
1228
1267
|
MosaicProgress.displayName = "MosaicProgress";
|
|
1229
|
-
function
|
|
1268
|
+
function cn18(...classes) {
|
|
1230
1269
|
return classes.filter(Boolean).join(" ");
|
|
1231
1270
|
}
|
|
1232
1271
|
function MosaicRadioGroup({ className, ref, ...props }) {
|
|
@@ -1235,7 +1274,7 @@ function MosaicRadioGroup({ className, ref, ...props }) {
|
|
|
1235
1274
|
{
|
|
1236
1275
|
ref,
|
|
1237
1276
|
"data-slot": "radio-group",
|
|
1238
|
-
className:
|
|
1277
|
+
className: cn18("flex flex-col gap-2", className),
|
|
1239
1278
|
...props
|
|
1240
1279
|
}
|
|
1241
1280
|
);
|
|
@@ -1252,7 +1291,7 @@ function MosaicRadioGroupItem({
|
|
|
1252
1291
|
{
|
|
1253
1292
|
ref,
|
|
1254
1293
|
"data-slot": "radio",
|
|
1255
|
-
className:
|
|
1294
|
+
className: cn18(
|
|
1256
1295
|
"flex items-center gap-2 text-sm font-medium",
|
|
1257
1296
|
"cursor-pointer select-none",
|
|
1258
1297
|
"data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50",
|
|
@@ -1263,7 +1302,7 @@ function MosaicRadioGroupItem({
|
|
|
1263
1302
|
/* @__PURE__ */ jsx(
|
|
1264
1303
|
"span",
|
|
1265
1304
|
{
|
|
1266
|
-
className:
|
|
1305
|
+
className: cn18(
|
|
1267
1306
|
"flex size-4 shrink-0 items-center justify-center",
|
|
1268
1307
|
"rounded-full border border-border bg-background",
|
|
1269
1308
|
"outline-none transition-colors",
|
|
@@ -1279,7 +1318,7 @@ function MosaicRadioGroupItem({
|
|
|
1279
1318
|
);
|
|
1280
1319
|
}
|
|
1281
1320
|
MosaicRadioGroupItem.displayName = "MosaicRadioGroupItem";
|
|
1282
|
-
function
|
|
1321
|
+
function cn19(...classes) {
|
|
1283
1322
|
return classes.filter(Boolean).join(" ");
|
|
1284
1323
|
}
|
|
1285
1324
|
function MosaicScrollArea({
|
|
@@ -1294,7 +1333,7 @@ function MosaicScrollArea({
|
|
|
1294
1333
|
{
|
|
1295
1334
|
ref,
|
|
1296
1335
|
"data-slot": "scroll-area",
|
|
1297
|
-
className:
|
|
1336
|
+
className: cn19("relative overflow-hidden", className),
|
|
1298
1337
|
...props,
|
|
1299
1338
|
children: [
|
|
1300
1339
|
/* @__PURE__ */ jsx(ScrollArea.Viewport, { "data-slot": "scroll-area-viewport", className: "size-full rounded-[inherit]", children: /* @__PURE__ */ jsx(ScrollArea.Content, { children }) }),
|
|
@@ -1322,7 +1361,7 @@ function MosaicScrollArea({
|
|
|
1322
1361
|
);
|
|
1323
1362
|
}
|
|
1324
1363
|
MosaicScrollArea.displayName = "MosaicScrollArea";
|
|
1325
|
-
function
|
|
1364
|
+
function cn20(...classes) {
|
|
1326
1365
|
return classes.filter(Boolean).join(" ");
|
|
1327
1366
|
}
|
|
1328
1367
|
function MosaicSeparator({
|
|
@@ -1337,7 +1376,7 @@ function MosaicSeparator({
|
|
|
1337
1376
|
ref,
|
|
1338
1377
|
"data-slot": "separator",
|
|
1339
1378
|
orientation,
|
|
1340
|
-
className:
|
|
1379
|
+
className: cn20(
|
|
1341
1380
|
"shrink-0 bg-border",
|
|
1342
1381
|
orientation === "vertical" ? "h-full w-px" : "h-px w-full",
|
|
1343
1382
|
className
|
|
@@ -1347,7 +1386,7 @@ function MosaicSeparator({
|
|
|
1347
1386
|
);
|
|
1348
1387
|
}
|
|
1349
1388
|
MosaicSeparator.displayName = "MosaicSeparator";
|
|
1350
|
-
function
|
|
1389
|
+
function cn21(...classes) {
|
|
1351
1390
|
return classes.filter(Boolean).join(" ");
|
|
1352
1391
|
}
|
|
1353
1392
|
function MosaicSlider({ className, ref, ...props }) {
|
|
@@ -1358,7 +1397,7 @@ function MosaicSlider({ className, ref, ...props }) {
|
|
|
1358
1397
|
{
|
|
1359
1398
|
ref,
|
|
1360
1399
|
"data-slot": "slider",
|
|
1361
|
-
className:
|
|
1400
|
+
className: cn21("w-full touch-none select-none", className),
|
|
1362
1401
|
...props,
|
|
1363
1402
|
children: /* @__PURE__ */ jsx(Slider.Control, { className: "flex items-center", children: /* @__PURE__ */ jsxs(
|
|
1364
1403
|
Slider.Track,
|
|
@@ -1377,7 +1416,7 @@ function MosaicSlider({ className, ref, ...props }) {
|
|
|
1377
1416
|
Slider.Thumb,
|
|
1378
1417
|
{
|
|
1379
1418
|
"data-slot": "slider-thumb",
|
|
1380
|
-
className:
|
|
1419
|
+
className: cn21(
|
|
1381
1420
|
"block size-5 rounded-full",
|
|
1382
1421
|
"border-2 border-foreground bg-background",
|
|
1383
1422
|
"shadow-sm outline-none transition-colors",
|
|
@@ -1394,7 +1433,7 @@ function MosaicSlider({ className, ref, ...props }) {
|
|
|
1394
1433
|
);
|
|
1395
1434
|
}
|
|
1396
1435
|
MosaicSlider.displayName = "MosaicSlider";
|
|
1397
|
-
function
|
|
1436
|
+
function cn22(...classes) {
|
|
1398
1437
|
return classes.filter(Boolean).join(" ");
|
|
1399
1438
|
}
|
|
1400
1439
|
function MosaicTabs({ className, ref, ...props }) {
|
|
@@ -1403,7 +1442,7 @@ function MosaicTabs({ className, ref, ...props }) {
|
|
|
1403
1442
|
{
|
|
1404
1443
|
ref,
|
|
1405
1444
|
"data-slot": "tabs",
|
|
1406
|
-
className:
|
|
1445
|
+
className: cn22("flex flex-col gap-2", className),
|
|
1407
1446
|
...props
|
|
1408
1447
|
}
|
|
1409
1448
|
);
|
|
@@ -1415,7 +1454,7 @@ function MosaicTabsList({ className, ref, ...props }) {
|
|
|
1415
1454
|
{
|
|
1416
1455
|
ref,
|
|
1417
1456
|
"data-slot": "tabs-list",
|
|
1418
|
-
className:
|
|
1457
|
+
className: cn22(
|
|
1419
1458
|
"relative inline-flex items-center justify-start gap-1",
|
|
1420
1459
|
"rounded-lg bg-muted p-1 text-muted-foreground",
|
|
1421
1460
|
className
|
|
@@ -1431,7 +1470,7 @@ function MosaicTabsTrigger({ className, ref, ...props }) {
|
|
|
1431
1470
|
{
|
|
1432
1471
|
ref,
|
|
1433
1472
|
"data-slot": "tabs-trigger",
|
|
1434
|
-
className:
|
|
1473
|
+
className: cn22(
|
|
1435
1474
|
"inline-flex items-center justify-center gap-1.5 whitespace-nowrap",
|
|
1436
1475
|
"rounded-md px-3 py-1.5 text-sm font-medium",
|
|
1437
1476
|
"outline-none transition-all",
|
|
@@ -1454,7 +1493,7 @@ function MosaicTabsPanel({ className, ref, ...props }) {
|
|
|
1454
1493
|
{
|
|
1455
1494
|
ref,
|
|
1456
1495
|
"data-slot": "tabs-panel",
|
|
1457
|
-
className:
|
|
1496
|
+
className: cn22(
|
|
1458
1497
|
"flex-1 outline-none",
|
|
1459
1498
|
"focus-visible:ring-ring focus-visible:ring-[3px] focus-visible:rounded-md",
|
|
1460
1499
|
className
|
|
@@ -1464,7 +1503,7 @@ function MosaicTabsPanel({ className, ref, ...props }) {
|
|
|
1464
1503
|
);
|
|
1465
1504
|
}
|
|
1466
1505
|
MosaicTabsPanel.displayName = "MosaicTabsPanel";
|
|
1467
|
-
function
|
|
1506
|
+
function cn23(...classes) {
|
|
1468
1507
|
return classes.filter(Boolean).join(" ");
|
|
1469
1508
|
}
|
|
1470
1509
|
function MosaicTextarea({ className, ref, ...props }) {
|
|
@@ -1473,7 +1512,7 @@ function MosaicTextarea({ className, ref, ...props }) {
|
|
|
1473
1512
|
{
|
|
1474
1513
|
ref,
|
|
1475
1514
|
"data-slot": "textarea",
|
|
1476
|
-
className:
|
|
1515
|
+
className: cn23(
|
|
1477
1516
|
"flex min-h-[80px] w-full resize-y",
|
|
1478
1517
|
"rounded-md border border-border bg-background px-3 py-2",
|
|
1479
1518
|
"text-sm text-foreground shadow-xs",
|
|
@@ -1488,7 +1527,7 @@ function MosaicTextarea({ className, ref, ...props }) {
|
|
|
1488
1527
|
);
|
|
1489
1528
|
}
|
|
1490
1529
|
MosaicTextarea.displayName = "MosaicTextarea";
|
|
1491
|
-
function
|
|
1530
|
+
function cn24(...classes) {
|
|
1492
1531
|
return classes.filter(Boolean).join(" ");
|
|
1493
1532
|
}
|
|
1494
1533
|
function MosaicTooltip({
|
|
@@ -1505,7 +1544,7 @@ function MosaicTooltip({
|
|
|
1505
1544
|
Tooltip.Popup,
|
|
1506
1545
|
{
|
|
1507
1546
|
"data-slot": "tooltip-content",
|
|
1508
|
-
className:
|
|
1547
|
+
className: cn24(
|
|
1509
1548
|
"z-50 max-w-xs overflow-hidden rounded-md",
|
|
1510
1549
|
"border border-border bg-foreground px-3 py-1.5",
|
|
1511
1550
|
"text-xs text-background shadow-md",
|
|
@@ -1522,7 +1561,7 @@ function MosaicTooltip({
|
|
|
1522
1561
|
] }) });
|
|
1523
1562
|
}
|
|
1524
1563
|
MosaicTooltip.displayName = "MosaicTooltip";
|
|
1525
|
-
function
|
|
1564
|
+
function cn25(...classes) {
|
|
1526
1565
|
return classes.filter(Boolean).join(" ");
|
|
1527
1566
|
}
|
|
1528
1567
|
function MosaicCard({ className, ref, ...props }) {
|
|
@@ -1531,7 +1570,7 @@ function MosaicCard({ className, ref, ...props }) {
|
|
|
1531
1570
|
{
|
|
1532
1571
|
ref,
|
|
1533
1572
|
"data-slot": "card",
|
|
1534
|
-
className:
|
|
1573
|
+
className: cn25(
|
|
1535
1574
|
"bg-card text-card-foreground rounded-xl border border-border shadow-sm",
|
|
1536
1575
|
className
|
|
1537
1576
|
),
|
|
@@ -1546,7 +1585,7 @@ function MosaicCardHeader({ className, ref, ...props }) {
|
|
|
1546
1585
|
{
|
|
1547
1586
|
ref,
|
|
1548
1587
|
"data-slot": "card-header",
|
|
1549
|
-
className:
|
|
1588
|
+
className: cn25("flex flex-col gap-1.5 p-6", className),
|
|
1550
1589
|
...props
|
|
1551
1590
|
}
|
|
1552
1591
|
);
|
|
@@ -1558,7 +1597,7 @@ function MosaicCardTitle({ className, ref, ...props }) {
|
|
|
1558
1597
|
{
|
|
1559
1598
|
ref,
|
|
1560
1599
|
"data-slot": "card-title",
|
|
1561
|
-
className:
|
|
1600
|
+
className: cn25("text-lg font-semibold leading-none tracking-tight", className),
|
|
1562
1601
|
...props
|
|
1563
1602
|
}
|
|
1564
1603
|
);
|
|
@@ -1570,14 +1609,14 @@ function MosaicCardDescription({ className, ref, ...props }) {
|
|
|
1570
1609
|
{
|
|
1571
1610
|
ref,
|
|
1572
1611
|
"data-slot": "card-description",
|
|
1573
|
-
className:
|
|
1612
|
+
className: cn25("text-sm text-muted-foreground", className),
|
|
1574
1613
|
...props
|
|
1575
1614
|
}
|
|
1576
1615
|
);
|
|
1577
1616
|
}
|
|
1578
1617
|
MosaicCardDescription.displayName = "MosaicCardDescription";
|
|
1579
1618
|
function MosaicCardContent({ className, ref, ...props }) {
|
|
1580
|
-
return /* @__PURE__ */ jsx("div", { ref, "data-slot": "card-content", className:
|
|
1619
|
+
return /* @__PURE__ */ jsx("div", { ref, "data-slot": "card-content", className: cn25("p-6 pt-0", className), ...props });
|
|
1581
1620
|
}
|
|
1582
1621
|
MosaicCardContent.displayName = "MosaicCardContent";
|
|
1583
1622
|
function MosaicCardFooter({ className, ref, ...props }) {
|
|
@@ -1586,7 +1625,7 @@ function MosaicCardFooter({ className, ref, ...props }) {
|
|
|
1586
1625
|
{
|
|
1587
1626
|
ref,
|
|
1588
1627
|
"data-slot": "card-footer",
|
|
1589
|
-
className:
|
|
1628
|
+
className: cn25("flex items-center p-6 pt-0", className),
|
|
1590
1629
|
...props
|
|
1591
1630
|
}
|
|
1592
1631
|
);
|
|
@@ -1615,7 +1654,7 @@ var badgeVariants = cva(
|
|
|
1615
1654
|
}
|
|
1616
1655
|
}
|
|
1617
1656
|
);
|
|
1618
|
-
function
|
|
1657
|
+
function cn26(...classes) {
|
|
1619
1658
|
return classes.filter(Boolean).join(" ");
|
|
1620
1659
|
}
|
|
1621
1660
|
function MosaicBadge({ className, variant, ref, ...props }) {
|
|
@@ -1624,13 +1663,13 @@ function MosaicBadge({ className, variant, ref, ...props }) {
|
|
|
1624
1663
|
{
|
|
1625
1664
|
ref,
|
|
1626
1665
|
"data-slot": "badge",
|
|
1627
|
-
className:
|
|
1666
|
+
className: cn26(badgeVariants({ variant }), className),
|
|
1628
1667
|
...props
|
|
1629
1668
|
}
|
|
1630
1669
|
);
|
|
1631
1670
|
}
|
|
1632
1671
|
MosaicBadge.displayName = "MosaicBadge";
|
|
1633
|
-
function
|
|
1672
|
+
function cn27(...classes) {
|
|
1634
1673
|
return classes.filter(Boolean).join(" ");
|
|
1635
1674
|
}
|
|
1636
1675
|
function MosaicAvatar({ src, alt, fallback, className, ref, ...props }) {
|
|
@@ -1639,7 +1678,7 @@ function MosaicAvatar({ src, alt, fallback, className, ref, ...props }) {
|
|
|
1639
1678
|
{
|
|
1640
1679
|
ref,
|
|
1641
1680
|
"data-slot": "avatar",
|
|
1642
|
-
className:
|
|
1681
|
+
className: cn27(
|
|
1643
1682
|
"relative flex size-10 shrink-0 overflow-hidden rounded-full",
|
|
1644
1683
|
"bg-muted text-muted-foreground",
|
|
1645
1684
|
className
|
|
@@ -1668,7 +1707,7 @@ function MosaicAvatar({ src, alt, fallback, className, ref, ...props }) {
|
|
|
1668
1707
|
);
|
|
1669
1708
|
}
|
|
1670
1709
|
MosaicAvatar.displayName = "MosaicAvatar";
|
|
1671
|
-
function
|
|
1710
|
+
function cn28(...classes) {
|
|
1672
1711
|
return classes.filter(Boolean).join(" ");
|
|
1673
1712
|
}
|
|
1674
1713
|
function MosaicInput({ className, ref, ...props }) {
|
|
@@ -1677,7 +1716,7 @@ function MosaicInput({ className, ref, ...props }) {
|
|
|
1677
1716
|
{
|
|
1678
1717
|
ref,
|
|
1679
1718
|
"data-slot": "input",
|
|
1680
|
-
className:
|
|
1719
|
+
className: cn28(
|
|
1681
1720
|
"flex h-9 w-full rounded-md border border-border bg-background px-3 py-1",
|
|
1682
1721
|
"text-sm text-foreground shadow-xs",
|
|
1683
1722
|
"placeholder:text-muted-foreground",
|
|
@@ -1691,7 +1730,7 @@ function MosaicInput({ className, ref, ...props }) {
|
|
|
1691
1730
|
);
|
|
1692
1731
|
}
|
|
1693
1732
|
MosaicInput.displayName = "MosaicInput";
|
|
1694
|
-
function
|
|
1733
|
+
function cn29(...classes) {
|
|
1695
1734
|
return classes.filter(Boolean).join(" ");
|
|
1696
1735
|
}
|
|
1697
1736
|
function MosaicInputGroup({
|
|
@@ -1707,7 +1746,7 @@ function MosaicInputGroup({
|
|
|
1707
1746
|
{
|
|
1708
1747
|
ref,
|
|
1709
1748
|
"data-slot": "input-group",
|
|
1710
|
-
className:
|
|
1749
|
+
className: cn29("flex items-center", className),
|
|
1711
1750
|
...props,
|
|
1712
1751
|
children: [
|
|
1713
1752
|
prefix ? /* @__PURE__ */ jsx(
|
|
@@ -1732,7 +1771,7 @@ function MosaicInputGroup({
|
|
|
1732
1771
|
);
|
|
1733
1772
|
}
|
|
1734
1773
|
MosaicInputGroup.displayName = "MosaicInputGroup";
|
|
1735
|
-
function
|
|
1774
|
+
function cn30(...classes) {
|
|
1736
1775
|
return classes.filter(Boolean).join(" ");
|
|
1737
1776
|
}
|
|
1738
1777
|
function MosaicFieldRoot({ className, children, ref, ...props }) {
|
|
@@ -1741,7 +1780,7 @@ function MosaicFieldRoot({ className, children, ref, ...props }) {
|
|
|
1741
1780
|
{
|
|
1742
1781
|
ref,
|
|
1743
1782
|
"data-slot": "field",
|
|
1744
|
-
className:
|
|
1783
|
+
className: cn30("flex flex-col gap-1.5", className),
|
|
1745
1784
|
...props,
|
|
1746
1785
|
children
|
|
1747
1786
|
}
|
|
@@ -1753,7 +1792,7 @@ function MosaicFieldLabel({ className, children, ref, ...props }) {
|
|
|
1753
1792
|
Field.Label,
|
|
1754
1793
|
{
|
|
1755
1794
|
ref,
|
|
1756
|
-
className:
|
|
1795
|
+
className: cn30(
|
|
1757
1796
|
"text-sm font-medium leading-none text-foreground",
|
|
1758
1797
|
"data-[disabled]:opacity-50",
|
|
1759
1798
|
className
|
|
@@ -1765,7 +1804,7 @@ function MosaicFieldLabel({ className, children, ref, ...props }) {
|
|
|
1765
1804
|
}
|
|
1766
1805
|
MosaicFieldLabel.displayName = "MosaicField.Label";
|
|
1767
1806
|
function MosaicFieldControl({ className, ref, ...props }) {
|
|
1768
|
-
return /* @__PURE__ */ jsx(Field.Control, { ref, className:
|
|
1807
|
+
return /* @__PURE__ */ jsx(Field.Control, { ref, className: cn30(className), ...props });
|
|
1769
1808
|
}
|
|
1770
1809
|
MosaicFieldControl.displayName = "MosaicField.Control";
|
|
1771
1810
|
function MosaicFieldDescription({
|
|
@@ -1778,7 +1817,7 @@ function MosaicFieldDescription({
|
|
|
1778
1817
|
Field.Description,
|
|
1779
1818
|
{
|
|
1780
1819
|
ref,
|
|
1781
|
-
className:
|
|
1820
|
+
className: cn30("text-xs text-muted-foreground", className),
|
|
1782
1821
|
...props,
|
|
1783
1822
|
children
|
|
1784
1823
|
}
|
|
@@ -1798,7 +1837,7 @@ function MosaicFieldError({
|
|
|
1798
1837
|
{
|
|
1799
1838
|
ref,
|
|
1800
1839
|
match: show === true ? true : void 0,
|
|
1801
|
-
className:
|
|
1840
|
+
className: cn30("text-xs font-medium text-destructive", className),
|
|
1802
1841
|
...props,
|
|
1803
1842
|
children
|
|
1804
1843
|
}
|
|
@@ -1811,7 +1850,7 @@ var MosaicField = Object.assign(MosaicFieldRoot, {
|
|
|
1811
1850
|
Description: MosaicFieldDescription,
|
|
1812
1851
|
Error: MosaicFieldError
|
|
1813
1852
|
});
|
|
1814
|
-
function
|
|
1853
|
+
function cn31(...classes) {
|
|
1815
1854
|
return classes.filter(Boolean).join(" ");
|
|
1816
1855
|
}
|
|
1817
1856
|
function MosaicSwitch({ className, ref, ...props }) {
|
|
@@ -1820,7 +1859,7 @@ function MosaicSwitch({ className, ref, ...props }) {
|
|
|
1820
1859
|
{
|
|
1821
1860
|
ref,
|
|
1822
1861
|
"data-slot": "switch",
|
|
1823
|
-
className:
|
|
1862
|
+
className: cn31(
|
|
1824
1863
|
// Track
|
|
1825
1864
|
"relative inline-flex h-6 w-10 shrink-0 cursor-pointer items-center",
|
|
1826
1865
|
"rounded-full border-2 border-transparent outline-none",
|
|
@@ -1838,7 +1877,7 @@ function MosaicSwitch({ className, ref, ...props }) {
|
|
|
1838
1877
|
Switch.Thumb,
|
|
1839
1878
|
{
|
|
1840
1879
|
"data-slot": "switch-thumb",
|
|
1841
|
-
className:
|
|
1880
|
+
className: cn31(
|
|
1842
1881
|
"pointer-events-none block h-4 w-4 rounded-full",
|
|
1843
1882
|
"bg-background shadow-sm",
|
|
1844
1883
|
"translate-x-0 transition-transform",
|
|
@@ -1850,7 +1889,7 @@ function MosaicSwitch({ className, ref, ...props }) {
|
|
|
1850
1889
|
);
|
|
1851
1890
|
}
|
|
1852
1891
|
MosaicSwitch.displayName = "MosaicSwitch";
|
|
1853
|
-
function
|
|
1892
|
+
function cn32(...classes) {
|
|
1854
1893
|
return classes.filter(Boolean).join(" ");
|
|
1855
1894
|
}
|
|
1856
1895
|
function MosaicSelect({
|
|
@@ -1882,7 +1921,7 @@ function MosaicSelect({
|
|
|
1882
1921
|
Select.Trigger,
|
|
1883
1922
|
{
|
|
1884
1923
|
"data-slot": "select",
|
|
1885
|
-
className:
|
|
1924
|
+
className: cn32(
|
|
1886
1925
|
"inline-flex h-9 w-full min-w-[8rem] items-center justify-between gap-2",
|
|
1887
1926
|
"rounded-md border border-border bg-background px-3 py-2",
|
|
1888
1927
|
"text-sm text-foreground shadow-xs outline-none",
|
|
@@ -1902,7 +1941,7 @@ function MosaicSelect({
|
|
|
1902
1941
|
Select.Popup,
|
|
1903
1942
|
{
|
|
1904
1943
|
"data-slot": "select-popup",
|
|
1905
|
-
className:
|
|
1944
|
+
className: cn32(
|
|
1906
1945
|
"z-50 min-w-[8rem] overflow-hidden rounded-md border border-border",
|
|
1907
1946
|
"bg-popover p-1 text-popover-foreground shadow-md",
|
|
1908
1947
|
"origin-[var(--transform-origin)]",
|
|
@@ -1916,7 +1955,7 @@ function MosaicSelect({
|
|
|
1916
1955
|
{
|
|
1917
1956
|
value: item.value,
|
|
1918
1957
|
disabled: item.disabled,
|
|
1919
|
-
className:
|
|
1958
|
+
className: cn32(
|
|
1920
1959
|
"relative flex cursor-pointer select-none items-center rounded-sm px-2 py-1.5",
|
|
1921
1960
|
"text-sm text-popover-foreground outline-none",
|
|
1922
1961
|
"data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground",
|
|
@@ -1970,7 +2009,7 @@ function CheckIcon() {
|
|
|
1970
2009
|
}
|
|
1971
2010
|
);
|
|
1972
2011
|
}
|
|
1973
|
-
function
|
|
2012
|
+
function cn33(...classes) {
|
|
1974
2013
|
return classes.filter(Boolean).join(" ");
|
|
1975
2014
|
}
|
|
1976
2015
|
function MosaicCombobox({
|
|
@@ -1999,12 +2038,12 @@ function MosaicCombobox({
|
|
|
1999
2038
|
name,
|
|
2000
2039
|
onInputValueChange: setInputValue,
|
|
2001
2040
|
autoHighlight: true,
|
|
2002
|
-
children: /* @__PURE__ */ jsxs("div", { "data-slot": "combobox", className:
|
|
2041
|
+
children: /* @__PURE__ */ jsxs("div", { "data-slot": "combobox", className: cn33("relative w-full", className), children: [
|
|
2003
2042
|
/* @__PURE__ */ jsx(
|
|
2004
2043
|
Combobox.Input,
|
|
2005
2044
|
{
|
|
2006
2045
|
placeholder,
|
|
2007
|
-
className:
|
|
2046
|
+
className: cn33(
|
|
2008
2047
|
"h-9 w-full rounded-md border border-border bg-background px-3 py-2",
|
|
2009
2048
|
"text-sm text-foreground shadow-xs outline-none",
|
|
2010
2049
|
"placeholder:text-muted-foreground",
|
|
@@ -2016,7 +2055,7 @@ function MosaicCombobox({
|
|
|
2016
2055
|
/* @__PURE__ */ jsx(Combobox.Portal, { children: /* @__PURE__ */ jsx(Combobox.Positioner, { sideOffset: 4, children: /* @__PURE__ */ jsx(
|
|
2017
2056
|
Combobox.Popup,
|
|
2018
2057
|
{
|
|
2019
|
-
className:
|
|
2058
|
+
className: cn33(
|
|
2020
2059
|
"z-50 min-w-[8rem] overflow-hidden rounded-md border border-border",
|
|
2021
2060
|
"bg-popover p-1 text-popover-foreground shadow-md",
|
|
2022
2061
|
"origin-[var(--transform-origin)]",
|
|
@@ -2031,7 +2070,7 @@ function MosaicCombobox({
|
|
|
2031
2070
|
{
|
|
2032
2071
|
value: item.value,
|
|
2033
2072
|
disabled: item.disabled,
|
|
2034
|
-
className:
|
|
2073
|
+
className: cn33(
|
|
2035
2074
|
"relative flex cursor-pointer select-none items-center rounded-sm px-2 py-1.5",
|
|
2036
2075
|
"text-sm text-popover-foreground outline-none",
|
|
2037
2076
|
"data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground",
|
|
@@ -2050,7 +2089,7 @@ function MosaicCombobox({
|
|
|
2050
2089
|
}
|
|
2051
2090
|
);
|
|
2052
2091
|
}
|
|
2053
|
-
function
|
|
2092
|
+
function cn34(...classes) {
|
|
2054
2093
|
return classes.filter(Boolean).join(" ");
|
|
2055
2094
|
}
|
|
2056
2095
|
function MosaicDropdownMenu({
|
|
@@ -2067,7 +2106,7 @@ function MosaicDropdownMenu({
|
|
|
2067
2106
|
Menu.Popup,
|
|
2068
2107
|
{
|
|
2069
2108
|
"data-slot": "dropdown-menu",
|
|
2070
|
-
className:
|
|
2109
|
+
className: cn34(
|
|
2071
2110
|
"z-50 min-w-[8rem] overflow-hidden rounded-md border border-border",
|
|
2072
2111
|
"bg-popover p-1 text-popover-foreground shadow-md",
|
|
2073
2112
|
"origin-[var(--transform-origin)]",
|
|
@@ -2084,7 +2123,7 @@ function MosaicDropdownMenu({
|
|
|
2084
2123
|
{
|
|
2085
2124
|
disabled: item.disabled,
|
|
2086
2125
|
onClick: () => onItemSelect?.(item.id),
|
|
2087
|
-
className:
|
|
2126
|
+
className: cn34(
|
|
2088
2127
|
"relative flex cursor-pointer select-none items-center rounded-sm px-2 py-1.5",
|
|
2089
2128
|
"text-sm text-popover-foreground outline-none",
|
|
2090
2129
|
"data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground",
|
|
@@ -2226,7 +2265,7 @@ function useDevice() {
|
|
|
2226
2265
|
}
|
|
2227
2266
|
return ctx;
|
|
2228
2267
|
}
|
|
2229
|
-
function
|
|
2268
|
+
function cn35(...classes) {
|
|
2230
2269
|
return classes.filter(Boolean).join(" ");
|
|
2231
2270
|
}
|
|
2232
2271
|
function MosaicAdaptiveGrid({
|
|
@@ -2245,14 +2284,14 @@ function MosaicAdaptiveGrid({
|
|
|
2245
2284
|
{
|
|
2246
2285
|
ref,
|
|
2247
2286
|
"data-slot": "adaptive-grid",
|
|
2248
|
-
className:
|
|
2287
|
+
className: cn35("grid", gap, className),
|
|
2249
2288
|
style: { gridTemplateColumns: `repeat(${cols}, minmax(0, 1fr))` },
|
|
2250
2289
|
children
|
|
2251
2290
|
}
|
|
2252
2291
|
);
|
|
2253
2292
|
}
|
|
2254
2293
|
MosaicAdaptiveGrid.displayName = "MosaicAdaptiveGrid";
|
|
2255
|
-
function
|
|
2294
|
+
function cn36(...classes) {
|
|
2256
2295
|
return classes.filter(Boolean).join(" ");
|
|
2257
2296
|
}
|
|
2258
2297
|
var ANIM_ID = "mosaic-adaptive-modal-kf";
|
|
@@ -2357,7 +2396,7 @@ function MosaicAdaptiveModal({
|
|
|
2357
2396
|
children: /* @__PURE__ */ jsxs(
|
|
2358
2397
|
"div",
|
|
2359
2398
|
{
|
|
2360
|
-
className:
|
|
2399
|
+
className: cn36(
|
|
2361
2400
|
"mosaic-sheet-panel relative w-full rounded-t-2xl border-t border-border bg-background",
|
|
2362
2401
|
"max-h-[90dvh] flex flex-col",
|
|
2363
2402
|
className
|
|
@@ -2390,7 +2429,7 @@ function MosaicAdaptiveModal({
|
|
|
2390
2429
|
children: /* @__PURE__ */ jsxs(
|
|
2391
2430
|
"div",
|
|
2392
2431
|
{
|
|
2393
|
-
className:
|
|
2432
|
+
className: cn36(
|
|
2394
2433
|
"mosaic-modal-panel relative w-[min(90vw,42rem)] rounded-xl border border-border bg-background shadow-xl",
|
|
2395
2434
|
"max-h-[90vh] flex flex-col",
|
|
2396
2435
|
className
|
|
@@ -2438,7 +2477,7 @@ function MosaicAdaptiveModal({
|
|
|
2438
2477
|
);
|
|
2439
2478
|
}
|
|
2440
2479
|
MosaicAdaptiveModal.displayName = "MosaicAdaptiveModal";
|
|
2441
|
-
function
|
|
2480
|
+
function cn37(...classes) {
|
|
2442
2481
|
return classes.filter(Boolean).join(" ");
|
|
2443
2482
|
}
|
|
2444
2483
|
function CheckIcon2() {
|
|
@@ -2495,7 +2534,7 @@ function MosaicAdaptiveNavigation({
|
|
|
2495
2534
|
{
|
|
2496
2535
|
ref,
|
|
2497
2536
|
"data-slot": "adaptive-navigation",
|
|
2498
|
-
className:
|
|
2537
|
+
className: cn37("space-y-3", className),
|
|
2499
2538
|
"aria-label": "Step navigation",
|
|
2500
2539
|
children: items.map((item, idx) => {
|
|
2501
2540
|
const isExpanded = expandedItems?.has(item.id) ?? false;
|
|
@@ -2513,7 +2552,7 @@ function MosaicAdaptiveNavigation({
|
|
|
2513
2552
|
/* @__PURE__ */ jsx(
|
|
2514
2553
|
"div",
|
|
2515
2554
|
{
|
|
2516
|
-
className:
|
|
2555
|
+
className: cn37(
|
|
2517
2556
|
"flex h-8 w-8 shrink-0 items-center justify-center rounded-full text-xs font-bold",
|
|
2518
2557
|
item.isComplete ? "bg-green-500 text-white" : "bg-muted text-muted-foreground"
|
|
2519
2558
|
),
|
|
@@ -2547,7 +2586,7 @@ function MosaicAdaptiveNavigation({
|
|
|
2547
2586
|
{
|
|
2548
2587
|
ref,
|
|
2549
2588
|
"data-slot": "adaptive-navigation",
|
|
2550
|
-
className:
|
|
2589
|
+
className: cn37("w-full", className),
|
|
2551
2590
|
"aria-label": "Tab navigation",
|
|
2552
2591
|
children: /* @__PURE__ */ jsx(
|
|
2553
2592
|
"div",
|
|
@@ -2564,7 +2603,7 @@ function MosaicAdaptiveNavigation({
|
|
|
2564
2603
|
role: "tab",
|
|
2565
2604
|
"aria-selected": isActive,
|
|
2566
2605
|
onClick: () => onItemChange(item.id),
|
|
2567
|
-
className:
|
|
2606
|
+
className: cn37(
|
|
2568
2607
|
"flex items-center justify-center gap-2 rounded-md px-3 py-2 text-sm font-medium transition-colors",
|
|
2569
2608
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1",
|
|
2570
2609
|
isActive ? "bg-primary text-primary-foreground shadow-sm" : "text-muted-foreground hover:text-foreground"
|
|
@@ -2573,7 +2612,7 @@ function MosaicAdaptiveNavigation({
|
|
|
2573
2612
|
/* @__PURE__ */ jsx(
|
|
2574
2613
|
"div",
|
|
2575
2614
|
{
|
|
2576
|
-
className:
|
|
2615
|
+
className: cn37(
|
|
2577
2616
|
"flex h-6 w-6 shrink-0 items-center justify-center rounded-full text-xs font-bold",
|
|
2578
2617
|
item.isComplete ? "bg-green-500 text-white" : isActive ? "bg-primary-foreground/20 text-primary-foreground" : "bg-background text-muted-foreground"
|
|
2579
2618
|
),
|
|
@@ -2585,7 +2624,7 @@ function MosaicAdaptiveNavigation({
|
|
|
2585
2624
|
item.duration !== void 0 && /* @__PURE__ */ jsxs(
|
|
2586
2625
|
"span",
|
|
2587
2626
|
{
|
|
2588
|
-
className:
|
|
2627
|
+
className: cn37(
|
|
2589
2628
|
"rounded px-1 py-0.5 text-xs",
|
|
2590
2629
|
isActive ? "bg-primary-foreground/20" : "bg-muted"
|
|
2591
2630
|
),
|
|
@@ -2606,7 +2645,7 @@ function MosaicAdaptiveNavigation({
|
|
|
2606
2645
|
);
|
|
2607
2646
|
}
|
|
2608
2647
|
MosaicAdaptiveNavigation.displayName = "MosaicAdaptiveNavigation";
|
|
2609
|
-
function
|
|
2648
|
+
function cn38(...classes) {
|
|
2610
2649
|
return classes.filter(Boolean).join(" ");
|
|
2611
2650
|
}
|
|
2612
2651
|
var ANIM_ID2 = "mosaic-sidebar-kf";
|
|
@@ -2776,7 +2815,7 @@ function MosaicAppSidebar({
|
|
|
2776
2815
|
{
|
|
2777
2816
|
ref,
|
|
2778
2817
|
"data-slot": "app-sidebar",
|
|
2779
|
-
className:
|
|
2818
|
+
className: cn38(
|
|
2780
2819
|
"flex h-full flex-col bg-sidebar border-r border-sidebar-border",
|
|
2781
2820
|
isMobile && "border-r-0",
|
|
2782
2821
|
className
|
|
@@ -2796,7 +2835,7 @@ function MosaicAppSidebar({
|
|
|
2796
2835
|
type: "button",
|
|
2797
2836
|
onClick: onToggleCollapse,
|
|
2798
2837
|
"aria-label": isCollapsed ? "Expand sidebar" : "Collapse sidebar",
|
|
2799
|
-
className:
|
|
2838
|
+
className: cn38(
|
|
2800
2839
|
"flex h-9 w-9 items-center justify-center rounded-lg transition-colors",
|
|
2801
2840
|
"hover:bg-sidebar-accent text-sidebar-foreground",
|
|
2802
2841
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -2826,7 +2865,7 @@ function MosaicAppSidebar({
|
|
|
2826
2865
|
},
|
|
2827
2866
|
"aria-current": isActive ? "page" : void 0,
|
|
2828
2867
|
"aria-expanded": hasSubmenu && !isCollapsed ? isExpanded : void 0,
|
|
2829
|
-
className:
|
|
2868
|
+
className: cn38(
|
|
2830
2869
|
"group flex w-full min-h-[44px] items-center rounded-lg p-3 transition-colors",
|
|
2831
2870
|
"hover:bg-sidebar-accent",
|
|
2832
2871
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -2853,7 +2892,7 @@ function MosaicAppSidebar({
|
|
|
2853
2892
|
type: "button",
|
|
2854
2893
|
onClick: () => handleNavClick(sub.href),
|
|
2855
2894
|
"aria-current": isSubActive ? "page" : void 0,
|
|
2856
|
-
className:
|
|
2895
|
+
className: cn38(
|
|
2857
2896
|
"flex w-full min-h-[40px] items-center gap-3 rounded-lg px-3 py-2 text-sm transition-colors",
|
|
2858
2897
|
"hover:bg-sidebar-accent/50 text-sidebar-foreground",
|
|
2859
2898
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -2876,7 +2915,7 @@ function MosaicAppSidebar({
|
|
|
2876
2915
|
{
|
|
2877
2916
|
type: "button",
|
|
2878
2917
|
onClick: action.onClick,
|
|
2879
|
-
className:
|
|
2918
|
+
className: cn38(
|
|
2880
2919
|
"flex w-full min-h-[44px] items-center gap-3 rounded-lg px-3 py-2 text-sm font-medium",
|
|
2881
2920
|
"text-sidebar-foreground transition-colors hover:bg-sidebar-accent",
|
|
2882
2921
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -2923,7 +2962,7 @@ function MosaicAppSidebar({
|
|
|
2923
2962
|
);
|
|
2924
2963
|
}
|
|
2925
2964
|
MosaicAppSidebar.displayName = "MosaicAppSidebar";
|
|
2926
|
-
function
|
|
2965
|
+
function cn39(...classes) {
|
|
2927
2966
|
return classes.filter(Boolean).join(" ");
|
|
2928
2967
|
}
|
|
2929
2968
|
var ANIM_ID3 = "mosaic-dashboard-kf";
|
|
@@ -3013,7 +3052,7 @@ function MosaicDashboardLayout({
|
|
|
3013
3052
|
{
|
|
3014
3053
|
ref,
|
|
3015
3054
|
"data-slot": "dashboard-layout",
|
|
3016
|
-
className:
|
|
3055
|
+
className: cn39("flex h-screen w-full bg-background", className),
|
|
3017
3056
|
children: [
|
|
3018
3057
|
!isMobile && /* @__PURE__ */ jsx(
|
|
3019
3058
|
MosaicAppSidebar,
|
|
@@ -3037,7 +3076,7 @@ function MosaicDashboardLayout({
|
|
|
3037
3076
|
type: "button",
|
|
3038
3077
|
"aria-label": "Open navigation",
|
|
3039
3078
|
onClick: () => setIsMobileSidebarOpen(true),
|
|
3040
|
-
className:
|
|
3079
|
+
className: cn39(
|
|
3041
3080
|
"flex h-11 w-11 shrink-0 items-center justify-center rounded-lg",
|
|
3042
3081
|
"text-foreground transition-colors hover:bg-muted",
|
|
3043
3082
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -3089,7 +3128,7 @@ function MosaicDashboardLayout({
|
|
|
3089
3128
|
);
|
|
3090
3129
|
}
|
|
3091
3130
|
MosaicDashboardLayout.displayName = "MosaicDashboardLayout";
|
|
3092
|
-
function
|
|
3131
|
+
function cn40(...classes) {
|
|
3093
3132
|
return classes.filter(Boolean).join(" ");
|
|
3094
3133
|
}
|
|
3095
3134
|
var ANIM_ID4 = "mosaic-quick-action-kf";
|
|
@@ -3144,7 +3183,7 @@ function MosaicQuickActionCard({
|
|
|
3144
3183
|
{
|
|
3145
3184
|
ref,
|
|
3146
3185
|
"data-slot": "quick-action-card",
|
|
3147
|
-
className:
|
|
3186
|
+
className: cn40("rounded-xl border border-border bg-card", className),
|
|
3148
3187
|
children: [
|
|
3149
3188
|
heading && /* @__PURE__ */ jsx("div", { className: "border-b border-border px-6 py-4", children: /* @__PURE__ */ jsx("h3", { className: "text-lg font-semibold text-foreground", children: heading }) }),
|
|
3150
3189
|
/* @__PURE__ */ jsx(
|
|
@@ -3169,7 +3208,7 @@ function MosaicQuickActionCard({
|
|
|
3169
3208
|
/* @__PURE__ */ jsxs(
|
|
3170
3209
|
"div",
|
|
3171
3210
|
{
|
|
3172
|
-
className:
|
|
3211
|
+
className: cn40(
|
|
3173
3212
|
"flex min-h-[100px] cursor-pointer flex-col items-center justify-center gap-2 rounded-xl border p-4",
|
|
3174
3213
|
"transition-transform duration-150 hover:scale-105 active:scale-[0.98]",
|
|
3175
3214
|
accentClass
|
|
@@ -3202,7 +3241,7 @@ function MosaicQuickActionCard({
|
|
|
3202
3241
|
);
|
|
3203
3242
|
}
|
|
3204
3243
|
MosaicQuickActionCard.displayName = "MosaicQuickActionCard";
|
|
3205
|
-
function
|
|
3244
|
+
function cn41(...classes) {
|
|
3206
3245
|
return classes.filter(Boolean).join(" ");
|
|
3207
3246
|
}
|
|
3208
3247
|
var ANIM_ID5 = "mosaic-activity-feed-kf";
|
|
@@ -3291,7 +3330,7 @@ function MosaicActivityItem({ activity, icon, className }) {
|
|
|
3291
3330
|
"div",
|
|
3292
3331
|
{
|
|
3293
3332
|
"data-slot": "activity-item",
|
|
3294
|
-
className:
|
|
3333
|
+
className: cn41(
|
|
3295
3334
|
"flex cursor-pointer items-start gap-4 rounded-lg p-3 transition-colors hover:bg-muted/50",
|
|
3296
3335
|
className
|
|
3297
3336
|
),
|
|
@@ -3325,7 +3364,7 @@ function MosaicActivityItem({ activity, icon, className }) {
|
|
|
3325
3364
|
/* @__PURE__ */ jsx(
|
|
3326
3365
|
"span",
|
|
3327
3366
|
{
|
|
3328
|
-
className:
|
|
3367
|
+
className: cn41(
|
|
3329
3368
|
"rounded-full px-2 py-0.5 text-xs font-medium",
|
|
3330
3369
|
getStatusClass(activity.status)
|
|
3331
3370
|
),
|
|
@@ -3366,7 +3405,7 @@ function MosaicActivityFeed({
|
|
|
3366
3405
|
{
|
|
3367
3406
|
ref,
|
|
3368
3407
|
"data-slot": "activity-feed",
|
|
3369
|
-
className:
|
|
3408
|
+
className: cn41("rounded-xl border border-border bg-card", className),
|
|
3370
3409
|
children: [
|
|
3371
3410
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between border-b border-border px-6 py-4", children: [
|
|
3372
3411
|
/* @__PURE__ */ jsx("h3", { className: "text-lg font-semibold text-foreground", children: heading }),
|
|
@@ -3392,7 +3431,7 @@ function MosaicActivityFeed({
|
|
|
3392
3431
|
);
|
|
3393
3432
|
}
|
|
3394
3433
|
MosaicActivityFeed.displayName = "MosaicActivityFeed";
|
|
3395
|
-
function
|
|
3434
|
+
function cn42(...classes) {
|
|
3396
3435
|
return classes.filter(Boolean).join(" ");
|
|
3397
3436
|
}
|
|
3398
3437
|
function SparklesIcon() {
|
|
@@ -3601,7 +3640,7 @@ function MosaicAgentComposerDesktop({
|
|
|
3601
3640
|
value: agentName,
|
|
3602
3641
|
onChange: (e) => onAgentNameChange(e.target.value),
|
|
3603
3642
|
placeholder: "Enter agent name\u2026",
|
|
3604
|
-
className:
|
|
3643
|
+
className: cn42(
|
|
3605
3644
|
"flex min-h-[48px] w-full rounded-lg border border-input bg-transparent px-3 py-2 text-sm",
|
|
3606
3645
|
"placeholder:text-muted-foreground",
|
|
3607
3646
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -3702,7 +3741,7 @@ function MosaicAgentComposerDesktop({
|
|
|
3702
3741
|
onChange: (e) => onCustomInstructionsChange(e.target.value),
|
|
3703
3742
|
placeholder: "Add any specific instructions or behaviors\u2026",
|
|
3704
3743
|
rows: 5,
|
|
3705
|
-
className:
|
|
3744
|
+
className: cn42(
|
|
3706
3745
|
"flex w-full resize-y rounded-lg border border-input bg-transparent px-3 py-2 text-sm",
|
|
3707
3746
|
"placeholder:text-muted-foreground",
|
|
3708
3747
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -3770,7 +3809,7 @@ function MosaicAgentComposerDesktop({
|
|
|
3770
3809
|
/* @__PURE__ */ jsx(SparklesIcon, {}),
|
|
3771
3810
|
/* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: "Select all modules to see preview" })
|
|
3772
3811
|
] }) }),
|
|
3773
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
3812
|
+
/* @__PURE__ */ jsxs("div", { className: cn42("flex gap-2", isEditMode && onCancel ? "flex-row" : "flex-col"), children: [
|
|
3774
3813
|
isEditMode && onCancel && /* @__PURE__ */ jsx(
|
|
3775
3814
|
"button",
|
|
3776
3815
|
{
|
|
@@ -3786,7 +3825,7 @@ function MosaicAgentComposerDesktop({
|
|
|
3786
3825
|
type: "button",
|
|
3787
3826
|
onClick: onSave,
|
|
3788
3827
|
disabled: !canSave,
|
|
3789
|
-
className:
|
|
3828
|
+
className: cn42(
|
|
3790
3829
|
"flex min-h-[48px] items-center justify-center gap-2 rounded-lg text-sm font-medium transition-colors",
|
|
3791
3830
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
3792
3831
|
"bg-primary text-primary-foreground hover:bg-primary/90",
|
|
@@ -3807,7 +3846,7 @@ function MosaicAgentComposerDesktop({
|
|
|
3807
3846
|
] });
|
|
3808
3847
|
}
|
|
3809
3848
|
MosaicAgentComposerDesktop.displayName = "MosaicAgentComposerDesktop";
|
|
3810
|
-
function
|
|
3849
|
+
function cn43(...classes) {
|
|
3811
3850
|
return classes.filter(Boolean).join(" ");
|
|
3812
3851
|
}
|
|
3813
3852
|
function SparklesIcon2() {
|
|
@@ -4063,7 +4102,7 @@ function MosaicAgentComposerMobile({
|
|
|
4063
4102
|
disabled: isLoading,
|
|
4064
4103
|
"aria-required": "true",
|
|
4065
4104
|
"aria-invalid": canSave && !agentName ? "true" : "false",
|
|
4066
|
-
className:
|
|
4105
|
+
className: cn43(
|
|
4067
4106
|
"flex min-h-[48px] w-full rounded-lg border border-input bg-transparent px-3 py-2 text-sm",
|
|
4068
4107
|
"placeholder:text-muted-foreground",
|
|
4069
4108
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -4167,7 +4206,7 @@ function MosaicAgentComposerMobile({
|
|
|
4167
4206
|
disabled: isLoading,
|
|
4168
4207
|
"aria-describedby": `${instructionsId}-help`,
|
|
4169
4208
|
rows: 4,
|
|
4170
|
-
className:
|
|
4209
|
+
className: cn43(
|
|
4171
4210
|
"flex w-full resize-y rounded-lg border border-input bg-transparent px-3 py-2 text-sm",
|
|
4172
4211
|
"placeholder:text-muted-foreground",
|
|
4173
4212
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -4223,7 +4262,7 @@ function MosaicAgentComposer(props) {
|
|
|
4223
4262
|
return isMobile ? /* @__PURE__ */ jsx(MosaicAgentComposerMobile, { ...props }) : /* @__PURE__ */ jsx(MosaicAgentComposerDesktop, { ...props });
|
|
4224
4263
|
}
|
|
4225
4264
|
MosaicAgentComposer.displayName = "MosaicAgentComposer";
|
|
4226
|
-
function
|
|
4265
|
+
function cn44(...classes) {
|
|
4227
4266
|
return classes.filter(Boolean).join(" ");
|
|
4228
4267
|
}
|
|
4229
4268
|
function EditIcon() {
|
|
@@ -4281,7 +4320,7 @@ function MosaicModuleCard({
|
|
|
4281
4320
|
{
|
|
4282
4321
|
ref,
|
|
4283
4322
|
"data-slot": "module-card",
|
|
4284
|
-
className:
|
|
4323
|
+
className: cn44(
|
|
4285
4324
|
"min-h-[80px] rounded-xl border border-border bg-card p-4 transition-all",
|
|
4286
4325
|
"flex items-start gap-3",
|
|
4287
4326
|
isSelected && "ring-2 ring-primary bg-primary/5",
|
|
@@ -4343,7 +4382,7 @@ function MosaicThemeProvider({
|
|
|
4343
4382
|
return /* @__PURE__ */ jsx("div", { "data-slot": "theme-provider", children });
|
|
4344
4383
|
}
|
|
4345
4384
|
MosaicThemeProvider.displayName = "MosaicThemeProvider";
|
|
4346
|
-
function
|
|
4385
|
+
function cn45(...classes) {
|
|
4347
4386
|
return classes.filter(Boolean).join(" ");
|
|
4348
4387
|
}
|
|
4349
4388
|
var ANIM_ID6 = "mosaic-delete-dialog-kf";
|
|
@@ -4397,14 +4436,14 @@ function MosaicDeleteConfirmationDialog({
|
|
|
4397
4436
|
/* @__PURE__ */ jsx(
|
|
4398
4437
|
AlertDialog.Backdrop,
|
|
4399
4438
|
{
|
|
4400
|
-
className:
|
|
4439
|
+
className: cn45("mosaic-delete-overlay", "fixed inset-0 z-50 bg-black/50")
|
|
4401
4440
|
}
|
|
4402
4441
|
),
|
|
4403
4442
|
/* @__PURE__ */ jsxs(
|
|
4404
4443
|
AlertDialog.Popup,
|
|
4405
4444
|
{
|
|
4406
4445
|
"data-slot": "delete-confirmation-dialog",
|
|
4407
|
-
className:
|
|
4446
|
+
className: cn45(
|
|
4408
4447
|
"mosaic-delete-content",
|
|
4409
4448
|
"fixed left-1/2 top-1/2 z-50",
|
|
4410
4449
|
"w-full max-w-[92vw] sm:max-w-md",
|
|
@@ -4417,7 +4456,7 @@ function MosaicDeleteConfirmationDialog({
|
|
|
4417
4456
|
/* @__PURE__ */ jsx(
|
|
4418
4457
|
AlertDialog.Close,
|
|
4419
4458
|
{
|
|
4420
|
-
className:
|
|
4459
|
+
className: cn45(
|
|
4421
4460
|
"inline-flex min-h-[44px] w-full items-center justify-center rounded-md border border-border",
|
|
4422
4461
|
"bg-background px-4 py-2 text-sm font-medium text-foreground",
|
|
4423
4462
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -4431,7 +4470,7 @@ function MosaicDeleteConfirmationDialog({
|
|
|
4431
4470
|
AlertDialog.Close,
|
|
4432
4471
|
{
|
|
4433
4472
|
onClick: onConfirm,
|
|
4434
|
-
className:
|
|
4473
|
+
className: cn45(
|
|
4435
4474
|
"inline-flex min-h-[44px] w-full items-center justify-center rounded-md",
|
|
4436
4475
|
"bg-destructive px-4 py-2 text-sm font-medium text-destructive-foreground",
|
|
4437
4476
|
"hover:bg-destructive/90",
|
|
@@ -4448,7 +4487,7 @@ function MosaicDeleteConfirmationDialog({
|
|
|
4448
4487
|
] }) });
|
|
4449
4488
|
}
|
|
4450
4489
|
MosaicDeleteConfirmationDialog.displayName = "MosaicDeleteConfirmationDialog";
|
|
4451
|
-
function
|
|
4490
|
+
function cn46(...classes) {
|
|
4452
4491
|
return classes.filter(Boolean).join(" ");
|
|
4453
4492
|
}
|
|
4454
4493
|
function Toggle({
|
|
@@ -4464,7 +4503,7 @@ function Toggle({
|
|
|
4464
4503
|
id,
|
|
4465
4504
|
"aria-checked": checked,
|
|
4466
4505
|
onClick: () => onChange(!checked),
|
|
4467
|
-
className:
|
|
4506
|
+
className: cn46(
|
|
4468
4507
|
"relative inline-flex h-6 w-11 shrink-0 cursor-pointer rounded-full border-2 border-transparent",
|
|
4469
4508
|
"transition-colors duration-200 ease-in-out",
|
|
4470
4509
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
@@ -4473,7 +4512,7 @@ function Toggle({
|
|
|
4473
4512
|
children: /* @__PURE__ */ jsx(
|
|
4474
4513
|
"span",
|
|
4475
4514
|
{
|
|
4476
|
-
className:
|
|
4515
|
+
className: cn46(
|
|
4477
4516
|
"pointer-events-none inline-block h-5 w-5 rounded-full bg-background shadow-lg",
|
|
4478
4517
|
"transform transition duration-200 ease-in-out",
|
|
4479
4518
|
checked ? "translate-x-5" : "translate-x-0"
|
|
@@ -4495,7 +4534,7 @@ function NativeSelect({
|
|
|
4495
4534
|
id,
|
|
4496
4535
|
value,
|
|
4497
4536
|
onChange: (e) => onChange(e.target.value),
|
|
4498
|
-
className:
|
|
4537
|
+
className: cn46(
|
|
4499
4538
|
"flex min-h-[48px] w-full rounded-md border border-input bg-background px-3 py-2",
|
|
4500
4539
|
"text-sm text-foreground",
|
|
4501
4540
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -4514,7 +4553,7 @@ function MosaicPreferencesPanel({
|
|
|
4514
4553
|
className
|
|
4515
4554
|
}) {
|
|
4516
4555
|
const { isMobile } = useDevice();
|
|
4517
|
-
return /* @__PURE__ */ jsxs("div", { "data-slot": "preferences-panel", className:
|
|
4556
|
+
return /* @__PURE__ */ jsxs("div", { "data-slot": "preferences-panel", className: cn46("space-y-4 md:space-y-6", className), children: [
|
|
4518
4557
|
groups.map((group) => /* @__PURE__ */ jsxs(
|
|
4519
4558
|
"div",
|
|
4520
4559
|
{
|
|
@@ -4557,13 +4596,13 @@ function MosaicPreferencesPanel({
|
|
|
4557
4596
|
},
|
|
4558
4597
|
group.id
|
|
4559
4598
|
)),
|
|
4560
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
4599
|
+
/* @__PURE__ */ jsx("div", { className: cn46("flex", isMobile ? "flex-col" : "justify-end"), children: /* @__PURE__ */ jsxs(
|
|
4561
4600
|
"button",
|
|
4562
4601
|
{
|
|
4563
4602
|
type: "button",
|
|
4564
4603
|
onClick: onSave,
|
|
4565
4604
|
disabled: isSaving,
|
|
4566
|
-
className:
|
|
4605
|
+
className: cn46(
|
|
4567
4606
|
"inline-flex min-h-[44px] items-center justify-center gap-2 rounded-md",
|
|
4568
4607
|
"bg-primary px-4 py-2 text-sm font-medium text-primary-foreground",
|
|
4569
4608
|
"hover:bg-primary/90",
|
|
@@ -4599,7 +4638,7 @@ function MosaicPreferencesPanel({
|
|
|
4599
4638
|
] });
|
|
4600
4639
|
}
|
|
4601
4640
|
MosaicPreferencesPanel.displayName = "MosaicPreferencesPanel";
|
|
4602
|
-
function
|
|
4641
|
+
function cn47(...classes) {
|
|
4603
4642
|
return classes.filter(Boolean).join(" ");
|
|
4604
4643
|
}
|
|
4605
4644
|
function AvatarDisplay({
|
|
@@ -4612,7 +4651,7 @@ function AvatarDisplay({
|
|
|
4612
4651
|
return /* @__PURE__ */ jsx(
|
|
4613
4652
|
"span",
|
|
4614
4653
|
{
|
|
4615
|
-
className:
|
|
4654
|
+
className: cn47(
|
|
4616
4655
|
"inline-flex shrink-0 items-center justify-center rounded-full bg-muted text-muted-foreground font-semibold overflow-hidden",
|
|
4617
4656
|
sizeClass
|
|
4618
4657
|
),
|
|
@@ -4634,7 +4673,7 @@ function MosaicProfilePanel({
|
|
|
4634
4673
|
className
|
|
4635
4674
|
}) {
|
|
4636
4675
|
const { isMobile } = useDevice();
|
|
4637
|
-
return /* @__PURE__ */ jsxs("div", { "data-slot": "profile-panel", className:
|
|
4676
|
+
return /* @__PURE__ */ jsxs("div", { "data-slot": "profile-panel", className: cn47("space-y-4 md:space-y-6", className), children: [
|
|
4638
4677
|
/* @__PURE__ */ jsxs("div", { className: "rounded-lg border border-border bg-card text-card-foreground shadow-sm", children: [
|
|
4639
4678
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-col space-y-1.5 p-6", children: [
|
|
4640
4679
|
/* @__PURE__ */ jsx("h3", { className: "text-lg font-semibold leading-none tracking-tight md:text-xl", children: "Profile Picture" }),
|
|
@@ -4654,7 +4693,7 @@ function MosaicProfilePanel({
|
|
|
4654
4693
|
{
|
|
4655
4694
|
type: "button",
|
|
4656
4695
|
onClick: onAvatarUpload,
|
|
4657
|
-
className:
|
|
4696
|
+
className: cn47(
|
|
4658
4697
|
"inline-flex min-h-[44px] items-center justify-center gap-2 rounded-md border border-border",
|
|
4659
4698
|
"bg-background px-4 py-2 text-sm font-medium text-foreground",
|
|
4660
4699
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -4704,7 +4743,7 @@ function MosaicProfilePanel({
|
|
|
4704
4743
|
placeholder: field.placeholder,
|
|
4705
4744
|
onChange: (e) => onFieldChange?.(field.id, e.target.value),
|
|
4706
4745
|
rows: 4,
|
|
4707
|
-
className:
|
|
4746
|
+
className: cn47(
|
|
4708
4747
|
"flex min-h-[120px] w-full rounded-md border border-input bg-background px-3 py-2",
|
|
4709
4748
|
"text-sm text-foreground placeholder:text-muted-foreground",
|
|
4710
4749
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -4720,7 +4759,7 @@ function MosaicProfilePanel({
|
|
|
4720
4759
|
readOnly: field.readOnly,
|
|
4721
4760
|
placeholder: field.placeholder,
|
|
4722
4761
|
onChange: (e) => onFieldChange?.(field.id, e.target.value),
|
|
4723
|
-
className:
|
|
4762
|
+
className: cn47(
|
|
4724
4763
|
"flex min-h-[48px] w-full rounded-md border border-input bg-background px-3 py-2",
|
|
4725
4764
|
"text-sm text-foreground placeholder:text-muted-foreground",
|
|
4726
4765
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -4740,7 +4779,7 @@ function MosaicProfilePanel({
|
|
|
4740
4779
|
{
|
|
4741
4780
|
type: "button",
|
|
4742
4781
|
onClick: onChangePassword,
|
|
4743
|
-
className:
|
|
4782
|
+
className: cn47(
|
|
4744
4783
|
"inline-flex min-h-[44px] items-center justify-center rounded-md border border-border",
|
|
4745
4784
|
"bg-background px-4 py-2 text-sm font-medium text-foreground",
|
|
4746
4785
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -4752,13 +4791,13 @@ function MosaicProfilePanel({
|
|
|
4752
4791
|
) })
|
|
4753
4792
|
] }),
|
|
4754
4793
|
extraSections,
|
|
4755
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
4794
|
+
/* @__PURE__ */ jsx("div", { className: cn47("flex", isMobile ? "flex-col" : "justify-end"), children: /* @__PURE__ */ jsxs(
|
|
4756
4795
|
"button",
|
|
4757
4796
|
{
|
|
4758
4797
|
type: "button",
|
|
4759
4798
|
onClick: onSave,
|
|
4760
4799
|
disabled: isSaving,
|
|
4761
|
-
className:
|
|
4800
|
+
className: cn47(
|
|
4762
4801
|
"inline-flex min-h-[44px] items-center justify-center gap-2 rounded-md",
|
|
4763
4802
|
"bg-primary px-4 py-2 text-sm font-medium text-primary-foreground",
|
|
4764
4803
|
"hover:bg-primary/90",
|
|
@@ -4794,7 +4833,7 @@ function MosaicProfilePanel({
|
|
|
4794
4833
|
] });
|
|
4795
4834
|
}
|
|
4796
4835
|
MosaicProfilePanel.displayName = "MosaicProfilePanel";
|
|
4797
|
-
function
|
|
4836
|
+
function cn48(...classes) {
|
|
4798
4837
|
return classes.filter(Boolean).join(" ");
|
|
4799
4838
|
}
|
|
4800
4839
|
var ANIM_ID7 = "mosaic-main-nav-kf";
|
|
@@ -4902,7 +4941,7 @@ function MosaicMainNav({
|
|
|
4902
4941
|
{
|
|
4903
4942
|
type: "button",
|
|
4904
4943
|
onClick: () => setIsOpen(!isOpen),
|
|
4905
|
-
className:
|
|
4944
|
+
className: cn48(
|
|
4906
4945
|
"inline-flex min-h-[44px] min-w-[44px] items-center justify-center rounded-md p-0",
|
|
4907
4946
|
"text-foreground hover:bg-accent hover:text-accent-foreground",
|
|
4908
4947
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -4928,7 +4967,7 @@ function MosaicMainNav({
|
|
|
4928
4967
|
"aria-label": "Navigation",
|
|
4929
4968
|
open: isOpen,
|
|
4930
4969
|
"data-open": isOpen ? "true" : "false",
|
|
4931
|
-
className:
|
|
4970
|
+
className: cn48(
|
|
4932
4971
|
"mosaic-nav-drawer",
|
|
4933
4972
|
"fixed inset-y-0 left-0 z-50 m-0 w-[280px] max-h-none h-full p-0",
|
|
4934
4973
|
"border-r border-border bg-background shadow-xl",
|
|
@@ -4945,7 +4984,7 @@ function MosaicMainNav({
|
|
|
4945
4984
|
{
|
|
4946
4985
|
type: "button",
|
|
4947
4986
|
onClick: () => setIsOpen(false),
|
|
4948
|
-
className:
|
|
4987
|
+
className: cn48(
|
|
4949
4988
|
"inline-flex h-8 w-8 items-center justify-center rounded-md",
|
|
4950
4989
|
"text-muted-foreground hover:bg-accent hover:text-accent-foreground",
|
|
4951
4990
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -4958,7 +4997,7 @@ function MosaicMainNav({
|
|
|
4958
4997
|
/* @__PURE__ */ jsx("nav", { className: "flex flex-col gap-1 p-4", "aria-label": "Main navigation", children: filteredItems.map((item) => {
|
|
4959
4998
|
const Icon = item.icon;
|
|
4960
4999
|
const active = isItemActive(item);
|
|
4961
|
-
const itemClass =
|
|
5000
|
+
const itemClass = cn48(
|
|
4962
5001
|
"flex items-center gap-3 rounded-lg px-3 py-3 text-sm font-medium transition-colors",
|
|
4963
5002
|
"hover:bg-accent hover:text-accent-foreground",
|
|
4964
5003
|
"min-h-[44px]",
|
|
@@ -4984,12 +5023,12 @@ function MosaicMainNav({
|
|
|
4984
5023
|
"nav",
|
|
4985
5024
|
{
|
|
4986
5025
|
"data-slot": "main-nav",
|
|
4987
|
-
className:
|
|
5026
|
+
className: cn48("flex items-center gap-1", className),
|
|
4988
5027
|
"aria-label": "Main navigation",
|
|
4989
5028
|
children: filteredItems.map((item) => {
|
|
4990
5029
|
const Icon = item.icon;
|
|
4991
5030
|
const active = isItemActive(item);
|
|
4992
|
-
const itemClass =
|
|
5031
|
+
const itemClass = cn48(
|
|
4993
5032
|
"flex items-center gap-2 rounded-lg px-3 py-2 text-sm font-medium transition-colors",
|
|
4994
5033
|
"hover:bg-accent hover:text-accent-foreground",
|
|
4995
5034
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -5009,7 +5048,7 @@ function MosaicMainNav({
|
|
|
5009
5048
|
);
|
|
5010
5049
|
}
|
|
5011
5050
|
MosaicMainNav.displayName = "MosaicMainNav";
|
|
5012
|
-
function
|
|
5051
|
+
function cn49(...classes) {
|
|
5013
5052
|
return classes.filter(Boolean).join(" ");
|
|
5014
5053
|
}
|
|
5015
5054
|
function MoreVertIcon() {
|
|
@@ -5140,7 +5179,7 @@ function MosaicAgentCard({
|
|
|
5140
5179
|
"div",
|
|
5141
5180
|
{
|
|
5142
5181
|
"data-slot": "agent-card",
|
|
5143
|
-
className:
|
|
5182
|
+
className: cn49(
|
|
5144
5183
|
"relative overflow-hidden rounded-lg border border-border bg-card text-card-foreground shadow-sm",
|
|
5145
5184
|
"transition-shadow hover:shadow-md",
|
|
5146
5185
|
agent.isActive && "ring-2 ring-primary",
|
|
@@ -5150,7 +5189,7 @@ function MosaicAgentCard({
|
|
|
5150
5189
|
/* @__PURE__ */ jsx(
|
|
5151
5190
|
"div",
|
|
5152
5191
|
{
|
|
5153
|
-
className:
|
|
5192
|
+
className: cn49(
|
|
5154
5193
|
"absolute left-0 top-0 h-1 w-full",
|
|
5155
5194
|
agent.isActive ? "bg-primary" : "bg-muted"
|
|
5156
5195
|
)
|
|
@@ -5162,7 +5201,7 @@ function MosaicAgentCard({
|
|
|
5162
5201
|
agent.accentColor && /* @__PURE__ */ jsx(
|
|
5163
5202
|
"span",
|
|
5164
5203
|
{
|
|
5165
|
-
className:
|
|
5204
|
+
className: cn49("h-3 w-3 shrink-0 rounded-full", agent.accentColor),
|
|
5166
5205
|
"aria-hidden": "true"
|
|
5167
5206
|
}
|
|
5168
5207
|
),
|
|
@@ -5180,7 +5219,7 @@ function MosaicAgentCard({
|
|
|
5180
5219
|
{
|
|
5181
5220
|
type: "button",
|
|
5182
5221
|
onClick: () => setMenuOpen((v) => !v),
|
|
5183
|
-
className:
|
|
5222
|
+
className: cn49(
|
|
5184
5223
|
"inline-flex h-8 w-8 items-center justify-center rounded-md",
|
|
5185
5224
|
"text-muted-foreground hover:bg-accent hover:text-accent-foreground",
|
|
5186
5225
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -5195,7 +5234,7 @@ function MosaicAgentCard({
|
|
|
5195
5234
|
"div",
|
|
5196
5235
|
{
|
|
5197
5236
|
role: "menu",
|
|
5198
|
-
className:
|
|
5237
|
+
className: cn49(
|
|
5199
5238
|
"absolute right-0 top-full z-50 mt-1 min-w-[140px] rounded-md border border-border",
|
|
5200
5239
|
"bg-popover py-1 shadow-md"
|
|
5201
5240
|
),
|
|
@@ -5210,7 +5249,7 @@ function MosaicAgentCard({
|
|
|
5210
5249
|
onToggleStatus(agent.id);
|
|
5211
5250
|
setMenuOpen(false);
|
|
5212
5251
|
},
|
|
5213
|
-
className:
|
|
5252
|
+
className: cn49(
|
|
5214
5253
|
"flex w-full items-center gap-2 px-3 py-2 text-sm text-foreground",
|
|
5215
5254
|
"hover:bg-accent hover:text-accent-foreground",
|
|
5216
5255
|
"disabled:pointer-events-none disabled:opacity-50"
|
|
@@ -5272,7 +5311,7 @@ function MosaicAgentCard({
|
|
|
5272
5311
|
type: "button",
|
|
5273
5312
|
disabled: isLoading,
|
|
5274
5313
|
onClick: () => onToggleStatus(agent.id),
|
|
5275
|
-
className:
|
|
5314
|
+
className: cn49(
|
|
5276
5315
|
"inline-flex h-7 items-center justify-center rounded-md px-3 text-xs font-medium",
|
|
5277
5316
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
5278
5317
|
"disabled:pointer-events-none disabled:opacity-50",
|
|
@@ -5288,7 +5327,7 @@ function MosaicAgentCard({
|
|
|
5288
5327
|
);
|
|
5289
5328
|
}
|
|
5290
5329
|
MosaicAgentCard.displayName = "MosaicAgentCard";
|
|
5291
|
-
function
|
|
5330
|
+
function cn50(...classes) {
|
|
5292
5331
|
return classes.filter(Boolean).join(" ");
|
|
5293
5332
|
}
|
|
5294
5333
|
function PlusIcon3() {
|
|
@@ -5368,7 +5407,7 @@ function PickerContent({
|
|
|
5368
5407
|
{
|
|
5369
5408
|
type: "button",
|
|
5370
5409
|
onClick: () => onAdd(agent.id),
|
|
5371
|
-
className:
|
|
5410
|
+
className: cn50(
|
|
5372
5411
|
"flex w-full items-center gap-3 rounded-lg px-3 py-2.5 text-sm",
|
|
5373
5412
|
"hover:bg-accent hover:text-accent-foreground",
|
|
5374
5413
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -5377,7 +5416,7 @@ function PickerContent({
|
|
|
5377
5416
|
agent.accentColor && /* @__PURE__ */ jsx(
|
|
5378
5417
|
"span",
|
|
5379
5418
|
{
|
|
5380
|
-
className:
|
|
5419
|
+
className: cn50("h-3 w-3 shrink-0 rounded-full", agent.accentColor),
|
|
5381
5420
|
"aria-hidden": "true"
|
|
5382
5421
|
}
|
|
5383
5422
|
),
|
|
@@ -5394,7 +5433,7 @@ function PickerContent({
|
|
|
5394
5433
|
{
|
|
5395
5434
|
type: "button",
|
|
5396
5435
|
onClick: onOpenBuilder,
|
|
5397
|
-
className:
|
|
5436
|
+
className: cn50(
|
|
5398
5437
|
"flex w-full items-center gap-3 rounded-lg px-3 py-2.5 text-sm",
|
|
5399
5438
|
"hover:bg-accent hover:text-accent-foreground",
|
|
5400
5439
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -5444,11 +5483,11 @@ function MosaicQuickAgentSelector({
|
|
|
5444
5483
|
setPickerOpen(false);
|
|
5445
5484
|
};
|
|
5446
5485
|
const canAdd = selectedAgents.length < maxAgents;
|
|
5447
|
-
return /* @__PURE__ */ jsxs("div", { "data-slot": "quick-agent-selector", className:
|
|
5486
|
+
return /* @__PURE__ */ jsxs("div", { "data-slot": "quick-agent-selector", className: cn50("flex items-center gap-2", className), children: [
|
|
5448
5487
|
/* @__PURE__ */ jsx("div", { className: "flex items-center gap-2 overflow-x-auto", children: selectedAgents.map((agent) => /* @__PURE__ */ jsxs(
|
|
5449
5488
|
"div",
|
|
5450
5489
|
{
|
|
5451
|
-
className:
|
|
5490
|
+
className: cn50(
|
|
5452
5491
|
"group flex shrink-0 items-center gap-2 rounded-md border border-border bg-card",
|
|
5453
5492
|
isMobile ? "px-2 py-1" : "px-3 py-1.5"
|
|
5454
5493
|
),
|
|
@@ -5456,17 +5495,17 @@ function MosaicQuickAgentSelector({
|
|
|
5456
5495
|
agent.accentColor && /* @__PURE__ */ jsx(
|
|
5457
5496
|
"span",
|
|
5458
5497
|
{
|
|
5459
|
-
className:
|
|
5498
|
+
className: cn50("h-2 w-2 shrink-0 rounded-full", agent.accentColor),
|
|
5460
5499
|
"aria-hidden": "true"
|
|
5461
5500
|
}
|
|
5462
5501
|
),
|
|
5463
|
-
/* @__PURE__ */ jsx("span", { className:
|
|
5502
|
+
/* @__PURE__ */ jsx("span", { className: cn50("whitespace-nowrap font-medium", isMobile ? "text-xs" : "text-sm"), children: isMobile ? agent.type.split("-")[0] : agent.name }),
|
|
5464
5503
|
/* @__PURE__ */ jsx(
|
|
5465
5504
|
"button",
|
|
5466
5505
|
{
|
|
5467
5506
|
type: "button",
|
|
5468
5507
|
onClick: () => onRemoveAgent(agent.id),
|
|
5469
|
-
className:
|
|
5508
|
+
className: cn50(
|
|
5470
5509
|
"inline-flex h-4 w-4 items-center justify-center rounded",
|
|
5471
5510
|
"text-muted-foreground hover:text-foreground",
|
|
5472
5511
|
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
@@ -5486,7 +5525,7 @@ function MosaicQuickAgentSelector({
|
|
|
5486
5525
|
{
|
|
5487
5526
|
type: "button",
|
|
5488
5527
|
onClick: () => setPickerOpen((v) => !v),
|
|
5489
|
-
className:
|
|
5528
|
+
className: cn50(
|
|
5490
5529
|
"inline-flex items-center justify-center gap-2 rounded-md border border-border bg-background",
|
|
5491
5530
|
"px-3 py-1.5 text-sm font-medium text-foreground",
|
|
5492
5531
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -5501,7 +5540,7 @@ function MosaicQuickAgentSelector({
|
|
|
5501
5540
|
!isMobile && pickerOpen && /* @__PURE__ */ jsx(
|
|
5502
5541
|
"div",
|
|
5503
5542
|
{
|
|
5504
|
-
className:
|
|
5543
|
+
className: cn50(
|
|
5505
5544
|
"absolute left-0 top-full z-50 mt-2 w-72 rounded-lg border border-border",
|
|
5506
5545
|
"bg-popover shadow-lg"
|
|
5507
5546
|
),
|
|
@@ -5543,7 +5582,7 @@ function MosaicQuickAgentSelector({
|
|
|
5543
5582
|
/* @__PURE__ */ jsxs(
|
|
5544
5583
|
"span",
|
|
5545
5584
|
{
|
|
5546
|
-
className:
|
|
5585
|
+
className: cn50(
|
|
5547
5586
|
"shrink-0 rounded-md bg-secondary px-2 py-0.5 text-xs font-medium text-secondary-foreground"
|
|
5548
5587
|
),
|
|
5549
5588
|
children: [
|
|
@@ -5556,7 +5595,7 @@ function MosaicQuickAgentSelector({
|
|
|
5556
5595
|
] });
|
|
5557
5596
|
}
|
|
5558
5597
|
MosaicQuickAgentSelector.displayName = "MosaicQuickAgentSelector";
|
|
5559
|
-
function
|
|
5598
|
+
function cn51(...classes) {
|
|
5560
5599
|
return classes.filter(Boolean).join(" ");
|
|
5561
5600
|
}
|
|
5562
5601
|
function SearchIcon() {
|
|
@@ -5646,7 +5685,7 @@ function MosaicSelectorModal({
|
|
|
5646
5685
|
value: query,
|
|
5647
5686
|
onChange: (e) => setQuery(e.target.value),
|
|
5648
5687
|
placeholder: searchPlaceholder,
|
|
5649
|
-
className:
|
|
5688
|
+
className: cn51(
|
|
5650
5689
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
5651
5690
|
"text-sm text-foreground placeholder:text-muted-foreground",
|
|
5652
5691
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -5660,7 +5699,7 @@ function MosaicSelectorModal({
|
|
|
5660
5699
|
{
|
|
5661
5700
|
type: "button",
|
|
5662
5701
|
onClick: () => setActiveCategory("all"),
|
|
5663
|
-
className:
|
|
5702
|
+
className: cn51(
|
|
5664
5703
|
"shrink-0 rounded-md px-3 py-1.5 text-sm font-medium transition-colors",
|
|
5665
5704
|
activeCategory === "all" ? "bg-primary text-primary-foreground" : "bg-muted text-muted-foreground hover:bg-accent hover:text-accent-foreground"
|
|
5666
5705
|
),
|
|
@@ -5672,7 +5711,7 @@ function MosaicSelectorModal({
|
|
|
5672
5711
|
{
|
|
5673
5712
|
type: "button",
|
|
5674
5713
|
onClick: () => setActiveCategory(cat.id),
|
|
5675
|
-
className:
|
|
5714
|
+
className: cn51(
|
|
5676
5715
|
"shrink-0 rounded-md px-3 py-1.5 text-sm font-medium transition-colors",
|
|
5677
5716
|
activeCategory === cat.id ? "bg-primary text-primary-foreground" : "bg-muted text-muted-foreground hover:bg-accent hover:text-accent-foreground"
|
|
5678
5717
|
),
|
|
@@ -5684,7 +5723,7 @@ function MosaicSelectorModal({
|
|
|
5684
5723
|
/* @__PURE__ */ jsxs(
|
|
5685
5724
|
"div",
|
|
5686
5725
|
{
|
|
5687
|
-
className:
|
|
5726
|
+
className: cn51(
|
|
5688
5727
|
"max-h-[50vh] overflow-y-auto",
|
|
5689
5728
|
columns === 2 ? "grid grid-cols-1 gap-3 sm:grid-cols-2" : "flex flex-col gap-3"
|
|
5690
5729
|
),
|
|
@@ -5696,7 +5735,7 @@ function MosaicSelectorModal({
|
|
|
5696
5735
|
{
|
|
5697
5736
|
type: "button",
|
|
5698
5737
|
onClick: () => setPendingId(item.id),
|
|
5699
|
-
className:
|
|
5738
|
+
className: cn51(
|
|
5700
5739
|
"group relative rounded-lg border p-4 text-left transition-all duration-150",
|
|
5701
5740
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
5702
5741
|
isSelected ? "border-primary bg-primary/5 ring-2 ring-primary" : "border-border bg-card hover:border-primary/50"
|
|
@@ -5734,7 +5773,7 @@ function MosaicSelectorModal({
|
|
|
5734
5773
|
{
|
|
5735
5774
|
type: "button",
|
|
5736
5775
|
onClick: onClose,
|
|
5737
|
-
className:
|
|
5776
|
+
className: cn51(
|
|
5738
5777
|
"inline-flex min-h-[44px] items-center justify-center rounded-md border border-border",
|
|
5739
5778
|
"bg-background px-4 py-2 text-sm font-medium text-foreground",
|
|
5740
5779
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -5749,7 +5788,7 @@ function MosaicSelectorModal({
|
|
|
5749
5788
|
type: "button",
|
|
5750
5789
|
onClick: handleConfirm,
|
|
5751
5790
|
disabled: !pendingItem,
|
|
5752
|
-
className:
|
|
5791
|
+
className: cn51(
|
|
5753
5792
|
"inline-flex min-h-[44px] items-center justify-center rounded-md",
|
|
5754
5793
|
"bg-primary px-4 py-2 text-sm font-medium text-primary-foreground",
|
|
5755
5794
|
"hover:bg-primary/90",
|
|
@@ -5763,7 +5802,7 @@ function MosaicSelectorModal({
|
|
|
5763
5802
|
] }) });
|
|
5764
5803
|
}
|
|
5765
5804
|
MosaicSelectorModal.displayName = "MosaicSelectorModal";
|
|
5766
|
-
function
|
|
5805
|
+
function cn52(...classes) {
|
|
5767
5806
|
return classes.filter(Boolean).join(" ");
|
|
5768
5807
|
}
|
|
5769
5808
|
function relativeTime(ts) {
|
|
@@ -6012,7 +6051,7 @@ function MosaicMessageCard({
|
|
|
6012
6051
|
"div",
|
|
6013
6052
|
{
|
|
6014
6053
|
"data-slot": "message-card",
|
|
6015
|
-
className:
|
|
6054
|
+
className: cn52(
|
|
6016
6055
|
"rounded-lg border border-border bg-card p-4 shadow-sm transition-shadow hover:shadow-md",
|
|
6017
6056
|
compact && "p-3",
|
|
6018
6057
|
message.sender.type === "user" && "bg-primary/5",
|
|
@@ -6022,7 +6061,7 @@ function MosaicMessageCard({
|
|
|
6022
6061
|
/* @__PURE__ */ jsx(
|
|
6023
6062
|
"span",
|
|
6024
6063
|
{
|
|
6025
|
-
className:
|
|
6064
|
+
className: cn52(
|
|
6026
6065
|
"inline-flex shrink-0 items-center justify-center rounded-full text-white font-semibold",
|
|
6027
6066
|
compact ? "h-8 w-8 text-xs" : "h-10 w-10 text-sm",
|
|
6028
6067
|
message.sender.accentColor ?? "bg-muted text-muted-foreground"
|
|
@@ -6040,7 +6079,7 @@ function MosaicMessageCard({
|
|
|
6040
6079
|
/* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1", children: [
|
|
6041
6080
|
/* @__PURE__ */ jsxs("div", { className: "mb-2 flex items-center justify-between gap-2", children: [
|
|
6042
6081
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
6043
|
-
/* @__PURE__ */ jsx("span", { className:
|
|
6082
|
+
/* @__PURE__ */ jsx("span", { className: cn52("font-medium", compact ? "text-sm" : "text-base"), children: message.sender.name }),
|
|
6044
6083
|
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: "AI" })
|
|
6045
6084
|
] }),
|
|
6046
6085
|
/* @__PURE__ */ jsx("span", { className: "shrink-0 text-xs text-muted-foreground", children: relativeTime(message.timestamp) })
|
|
@@ -6048,7 +6087,7 @@ function MosaicMessageCard({
|
|
|
6048
6087
|
/* @__PURE__ */ jsx(
|
|
6049
6088
|
"p",
|
|
6050
6089
|
{
|
|
6051
|
-
className:
|
|
6090
|
+
className: cn52(
|
|
6052
6091
|
"leading-relaxed text-foreground mb-3",
|
|
6053
6092
|
compact ? "text-sm" : "text-base"
|
|
6054
6093
|
),
|
|
@@ -6063,7 +6102,7 @@ function MosaicMessageCard({
|
|
|
6063
6102
|
{
|
|
6064
6103
|
type: "button",
|
|
6065
6104
|
onClick: handleLike,
|
|
6066
|
-
className:
|
|
6105
|
+
className: cn52(
|
|
6067
6106
|
"inline-flex h-8 items-center gap-1 rounded-md px-2 text-xs",
|
|
6068
6107
|
"hover:bg-accent hover:text-accent-foreground",
|
|
6069
6108
|
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
@@ -6081,7 +6120,7 @@ function MosaicMessageCard({
|
|
|
6081
6120
|
{
|
|
6082
6121
|
type: "button",
|
|
6083
6122
|
onClick: handleDislike,
|
|
6084
|
-
className:
|
|
6123
|
+
className: cn52(
|
|
6085
6124
|
"inline-flex h-8 items-center gap-1 rounded-md px-2 text-xs",
|
|
6086
6125
|
"hover:bg-accent hover:text-accent-foreground",
|
|
6087
6126
|
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
@@ -6126,7 +6165,7 @@ function MosaicMessageCard({
|
|
|
6126
6165
|
{
|
|
6127
6166
|
type: "button",
|
|
6128
6167
|
onClick: handleBookmark,
|
|
6129
|
-
className:
|
|
6168
|
+
className: cn52(
|
|
6130
6169
|
"inline-flex h-8 w-8 items-center justify-center rounded-md",
|
|
6131
6170
|
"hover:bg-accent hover:text-accent-foreground",
|
|
6132
6171
|
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
@@ -6227,7 +6266,7 @@ function MosaicMessageCard({
|
|
|
6227
6266
|
);
|
|
6228
6267
|
}
|
|
6229
6268
|
MosaicMessageCard.displayName = "MosaicMessageCard";
|
|
6230
|
-
function
|
|
6269
|
+
function cn53(...classes) {
|
|
6231
6270
|
return classes.filter(Boolean).join(" ");
|
|
6232
6271
|
}
|
|
6233
6272
|
function SearchIcon2() {
|
|
@@ -6267,7 +6306,7 @@ function MessageListDesktop({
|
|
|
6267
6306
|
const filtered = query ? messages.filter(
|
|
6268
6307
|
(m) => m.content.toLowerCase().includes(query.toLowerCase()) || m.sender.name.toLowerCase().includes(query.toLowerCase())
|
|
6269
6308
|
) : messages;
|
|
6270
|
-
return /* @__PURE__ */ jsxs("div", { "data-slot": "message-list-desktop", className:
|
|
6309
|
+
return /* @__PURE__ */ jsxs("div", { "data-slot": "message-list-desktop", className: cn53("flex h-full flex-col", className), children: [
|
|
6271
6310
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between border-b border-border px-6 py-4", children: [
|
|
6272
6311
|
title && /* @__PURE__ */ jsx("h2", { className: "text-lg font-semibold", children: title }),
|
|
6273
6312
|
/* @__PURE__ */ jsxs("div", { className: "relative ml-auto max-w-xs flex-1", children: [
|
|
@@ -6279,7 +6318,7 @@ function MessageListDesktop({
|
|
|
6279
6318
|
value: query,
|
|
6280
6319
|
onChange: (e) => setQuery(e.target.value),
|
|
6281
6320
|
placeholder: "Search messages\u2026",
|
|
6282
|
-
className:
|
|
6321
|
+
className: cn53(
|
|
6283
6322
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
6284
6323
|
"text-sm placeholder:text-muted-foreground",
|
|
6285
6324
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -6308,7 +6347,7 @@ function MessageListDesktop({
|
|
|
6308
6347
|
{
|
|
6309
6348
|
type: "button",
|
|
6310
6349
|
onClick: onLoadMore,
|
|
6311
|
-
className:
|
|
6350
|
+
className: cn53(
|
|
6312
6351
|
"w-full rounded-md border border-border bg-background px-4 py-2 text-sm font-medium",
|
|
6313
6352
|
"hover:bg-accent hover:text-accent-foreground",
|
|
6314
6353
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -6330,7 +6369,7 @@ function MessageListMobile({
|
|
|
6330
6369
|
isLoading,
|
|
6331
6370
|
className
|
|
6332
6371
|
}) {
|
|
6333
|
-
return /* @__PURE__ */ jsxs("div", { "data-slot": "message-list-mobile", className:
|
|
6372
|
+
return /* @__PURE__ */ jsxs("div", { "data-slot": "message-list-mobile", className: cn53("flex flex-col", className), children: [
|
|
6334
6373
|
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 }) }),
|
|
6335
6374
|
/* @__PURE__ */ jsxs("div", { className: "space-y-3 p-4", children: [
|
|
6336
6375
|
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)) }),
|
|
@@ -6353,7 +6392,7 @@ function MessageListMobile({
|
|
|
6353
6392
|
{
|
|
6354
6393
|
type: "button",
|
|
6355
6394
|
onClick: onLoadMore,
|
|
6356
|
-
className:
|
|
6395
|
+
className: cn53(
|
|
6357
6396
|
"w-full min-h-[44px] rounded-md border border-border bg-background px-4 py-2 text-sm font-medium",
|
|
6358
6397
|
"hover:bg-accent hover:text-accent-foreground",
|
|
6359
6398
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -6368,7 +6407,7 @@ function MosaicMessageList(props) {
|
|
|
6368
6407
|
return isMobile ? /* @__PURE__ */ jsx(MessageListMobile, { ...props }) : /* @__PURE__ */ jsx(MessageListDesktop, { ...props });
|
|
6369
6408
|
}
|
|
6370
6409
|
MosaicMessageList.displayName = "MosaicMessageList";
|
|
6371
|
-
function
|
|
6410
|
+
function cn54(...classes) {
|
|
6372
6411
|
return classes.filter(Boolean).join(" ");
|
|
6373
6412
|
}
|
|
6374
6413
|
function ChevronLeftIcon2() {
|
|
@@ -6444,7 +6483,7 @@ function MosaicFilterSidebar({
|
|
|
6444
6483
|
{
|
|
6445
6484
|
"data-slot": "filter-sidebar",
|
|
6446
6485
|
style: { width, minWidth: isCollapsed && !isMobile ? "64px" : void 0 },
|
|
6447
|
-
className:
|
|
6486
|
+
className: cn54(
|
|
6448
6487
|
"relative flex flex-col border-r border-border bg-card",
|
|
6449
6488
|
"transition-[width] duration-200 ease-in-out",
|
|
6450
6489
|
"overflow-hidden",
|
|
@@ -6456,7 +6495,7 @@ function MosaicFilterSidebar({
|
|
|
6456
6495
|
{
|
|
6457
6496
|
type: "button",
|
|
6458
6497
|
onClick: onToggleCollapse,
|
|
6459
|
-
className:
|
|
6498
|
+
className: cn54(
|
|
6460
6499
|
"absolute -right-3 top-6 z-10 flex h-6 w-6 items-center justify-center rounded-full",
|
|
6461
6500
|
"border border-border bg-background shadow-sm",
|
|
6462
6501
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -6486,7 +6525,7 @@ function MosaicFilterSidebar({
|
|
|
6486
6525
|
{
|
|
6487
6526
|
type: "button",
|
|
6488
6527
|
onClick: () => onFilterChange(f.id),
|
|
6489
|
-
className:
|
|
6528
|
+
className: cn54(
|
|
6490
6529
|
"flex min-h-[40px] items-center justify-between rounded-md px-3 py-2 text-sm font-medium",
|
|
6491
6530
|
"transition-colors hover:bg-accent hover:text-accent-foreground",
|
|
6492
6531
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -6506,7 +6545,7 @@ function MosaicFilterSidebar({
|
|
|
6506
6545
|
{
|
|
6507
6546
|
type: "button",
|
|
6508
6547
|
onClick: () => onCategoryChange(cat.id),
|
|
6509
|
-
className:
|
|
6548
|
+
className: cn54(
|
|
6510
6549
|
"flex min-h-[36px] items-center justify-between rounded-md px-3 py-1.5 text-sm",
|
|
6511
6550
|
"transition-colors hover:bg-accent hover:text-accent-foreground",
|
|
6512
6551
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -6526,7 +6565,7 @@ function MosaicFilterSidebar({
|
|
|
6526
6565
|
);
|
|
6527
6566
|
}
|
|
6528
6567
|
MosaicFilterSidebar.displayName = "MosaicFilterSidebar";
|
|
6529
|
-
function
|
|
6568
|
+
function cn55(...classes) {
|
|
6530
6569
|
return classes.filter(Boolean).join(" ");
|
|
6531
6570
|
}
|
|
6532
6571
|
function SearchIcon3() {
|
|
@@ -6641,7 +6680,7 @@ function AgentListDesktop({
|
|
|
6641
6680
|
value: query,
|
|
6642
6681
|
onChange: (e) => setQuery(e.target.value),
|
|
6643
6682
|
placeholder: searchPlaceholder,
|
|
6644
|
-
className:
|
|
6683
|
+
className: cn55(
|
|
6645
6684
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
6646
6685
|
"text-sm placeholder:text-muted-foreground",
|
|
6647
6686
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -6654,7 +6693,7 @@ function AgentListDesktop({
|
|
|
6654
6693
|
{
|
|
6655
6694
|
type: "button",
|
|
6656
6695
|
onClick: onCreateAgent,
|
|
6657
|
-
className:
|
|
6696
|
+
className: cn55(
|
|
6658
6697
|
"inline-flex items-center gap-2 rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground",
|
|
6659
6698
|
"hover:bg-primary/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
6660
6699
|
),
|
|
@@ -6713,7 +6752,7 @@ function AgentListMobile({
|
|
|
6713
6752
|
{
|
|
6714
6753
|
type: "button",
|
|
6715
6754
|
onClick: () => setFilterOpen(true),
|
|
6716
|
-
className:
|
|
6755
|
+
className: cn55(
|
|
6717
6756
|
"inline-flex h-9 w-9 items-center justify-center rounded-md",
|
|
6718
6757
|
"border border-border bg-background text-foreground",
|
|
6719
6758
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -6728,7 +6767,7 @@ function AgentListMobile({
|
|
|
6728
6767
|
{
|
|
6729
6768
|
type: "button",
|
|
6730
6769
|
onClick: onCreateAgent,
|
|
6731
|
-
className:
|
|
6770
|
+
className: cn55(
|
|
6732
6771
|
"inline-flex h-9 items-center gap-1.5 rounded-md bg-primary px-3 text-sm font-medium text-primary-foreground",
|
|
6733
6772
|
"hover:bg-primary/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
6734
6773
|
),
|
|
@@ -6749,7 +6788,7 @@ function AgentListMobile({
|
|
|
6749
6788
|
value: query,
|
|
6750
6789
|
onChange: (e) => setQuery(e.target.value),
|
|
6751
6790
|
placeholder: searchPlaceholder,
|
|
6752
|
-
className:
|
|
6791
|
+
className: cn55(
|
|
6753
6792
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
6754
6793
|
"text-sm placeholder:text-muted-foreground",
|
|
6755
6794
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -6797,7 +6836,7 @@ function MosaicAgentList(props) {
|
|
|
6797
6836
|
return isMobile ? /* @__PURE__ */ jsx(AgentListMobile, { ...props }) : /* @__PURE__ */ jsx(AgentListDesktop, { ...props });
|
|
6798
6837
|
}
|
|
6799
6838
|
MosaicAgentList.displayName = "MosaicAgentList";
|
|
6800
|
-
function
|
|
6839
|
+
function cn56(...classes) {
|
|
6801
6840
|
return classes.filter(Boolean).join(" ");
|
|
6802
6841
|
}
|
|
6803
6842
|
function StarIcon({ filled }) {
|
|
@@ -6893,7 +6932,7 @@ function MarketplaceCard({
|
|
|
6893
6932
|
"div",
|
|
6894
6933
|
{
|
|
6895
6934
|
"data-slot": "marketplace-card",
|
|
6896
|
-
className:
|
|
6935
|
+
className: cn56(
|
|
6897
6936
|
"rounded-lg border border-border bg-card p-4 transition-shadow hover:shadow-md",
|
|
6898
6937
|
compact ? "flex items-center gap-3" : "flex flex-col gap-3"
|
|
6899
6938
|
),
|
|
@@ -6901,7 +6940,7 @@ function MarketplaceCard({
|
|
|
6901
6940
|
item.icon && /* @__PURE__ */ jsx(
|
|
6902
6941
|
"div",
|
|
6903
6942
|
{
|
|
6904
|
-
className:
|
|
6943
|
+
className: cn56(
|
|
6905
6944
|
"flex shrink-0 items-center justify-center rounded-lg",
|
|
6906
6945
|
compact ? "h-10 w-10" : "h-12 w-12",
|
|
6907
6946
|
item.accentClass ?? "bg-muted text-muted-foreground"
|
|
@@ -6912,7 +6951,7 @@ function MarketplaceCard({
|
|
|
6912
6951
|
/* @__PURE__ */ jsxs("div", { className: "flex-1 min-w-0", children: [
|
|
6913
6952
|
/* @__PURE__ */ jsxs("div", { className: "flex items-start justify-between gap-2", children: [
|
|
6914
6953
|
/* @__PURE__ */ jsxs("div", { className: "min-w-0", children: [
|
|
6915
|
-
/* @__PURE__ */ jsx("p", { className:
|
|
6954
|
+
/* @__PURE__ */ jsx("p", { className: cn56("font-semibold leading-tight", compact ? "text-sm" : "text-base"), children: item.title }),
|
|
6916
6955
|
item.description && !compact && /* @__PURE__ */ jsx("p", { className: "mt-1 text-sm text-muted-foreground line-clamp-2", children: item.description })
|
|
6917
6956
|
] }),
|
|
6918
6957
|
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 })
|
|
@@ -6929,13 +6968,13 @@ function MarketplaceCard({
|
|
|
6929
6968
|
] })
|
|
6930
6969
|
] })
|
|
6931
6970
|
] }),
|
|
6932
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
6971
|
+
/* @__PURE__ */ jsxs("div", { className: cn56("flex gap-2", compact ? "shrink-0" : "mt-1"), children: [
|
|
6933
6972
|
onPreview && /* @__PURE__ */ jsx(
|
|
6934
6973
|
"button",
|
|
6935
6974
|
{
|
|
6936
6975
|
type: "button",
|
|
6937
6976
|
onClick: () => onPreview(item.id),
|
|
6938
|
-
className:
|
|
6977
|
+
className: cn56(
|
|
6939
6978
|
"inline-flex min-h-[36px] items-center justify-center rounded-md border border-border",
|
|
6940
6979
|
"bg-background px-3 text-xs font-medium text-foreground",
|
|
6941
6980
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -6949,7 +6988,7 @@ function MarketplaceCard({
|
|
|
6949
6988
|
{
|
|
6950
6989
|
type: "button",
|
|
6951
6990
|
onClick: () => onUninstall(item.id),
|
|
6952
|
-
className:
|
|
6991
|
+
className: cn56(
|
|
6953
6992
|
"inline-flex min-h-[36px] items-center justify-center rounded-md",
|
|
6954
6993
|
"bg-secondary px-3 text-xs font-medium text-secondary-foreground",
|
|
6955
6994
|
"hover:bg-secondary/80",
|
|
@@ -6962,7 +7001,7 @@ function MarketplaceCard({
|
|
|
6962
7001
|
{
|
|
6963
7002
|
type: "button",
|
|
6964
7003
|
onClick: () => onInstall(item.id),
|
|
6965
|
-
className:
|
|
7004
|
+
className: cn56(
|
|
6966
7005
|
"inline-flex min-h-[36px] items-center justify-center rounded-md",
|
|
6967
7006
|
"bg-primary px-3 text-xs font-medium text-primary-foreground",
|
|
6968
7007
|
"hover:bg-primary/90",
|
|
@@ -7024,7 +7063,7 @@ function MarketplaceListDesktop(props) {
|
|
|
7024
7063
|
value: query,
|
|
7025
7064
|
onChange: (e) => setQuery(e.target.value),
|
|
7026
7065
|
placeholder: searchPlaceholder,
|
|
7027
|
-
className:
|
|
7066
|
+
className: cn56(
|
|
7028
7067
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
7029
7068
|
"text-sm placeholder:text-muted-foreground",
|
|
7030
7069
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -7097,7 +7136,7 @@ function MarketplaceListMobile(props) {
|
|
|
7097
7136
|
value: query,
|
|
7098
7137
|
onChange: (e) => setQuery(e.target.value),
|
|
7099
7138
|
placeholder: searchPlaceholder,
|
|
7100
|
-
className:
|
|
7139
|
+
className: cn56(
|
|
7101
7140
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
7102
7141
|
"text-sm placeholder:text-muted-foreground",
|
|
7103
7142
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -7148,7 +7187,7 @@ function MosaicMarketplaceList(props) {
|
|
|
7148
7187
|
return isMobile ? /* @__PURE__ */ jsx(MarketplaceListMobile, { ...props }) : /* @__PURE__ */ jsx(MarketplaceListDesktop, { ...props });
|
|
7149
7188
|
}
|
|
7150
7189
|
MosaicMarketplaceList.displayName = "MosaicMarketplaceList";
|
|
7151
|
-
function
|
|
7190
|
+
function cn57(...classes) {
|
|
7152
7191
|
return classes.filter(Boolean).join(" ");
|
|
7153
7192
|
}
|
|
7154
7193
|
function StarIcon2() {
|
|
@@ -7267,7 +7306,7 @@ function MosaicTemplateCard({
|
|
|
7267
7306
|
type: "button",
|
|
7268
7307
|
onClick: () => onSelect(template),
|
|
7269
7308
|
"data-slot": "template-card",
|
|
7270
|
-
className:
|
|
7309
|
+
className: cn57(
|
|
7271
7310
|
"w-full text-left rounded-lg border transition-all duration-200",
|
|
7272
7311
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
7273
7312
|
isSelected ? "border-primary bg-primary/5 ring-2 ring-primary" : "border-border bg-card hover:border-primary/50",
|
|
@@ -7367,7 +7406,7 @@ function MosaicTemplatePreview({
|
|
|
7367
7406
|
agent.accentColor && /* @__PURE__ */ jsx(
|
|
7368
7407
|
"span",
|
|
7369
7408
|
{
|
|
7370
|
-
className:
|
|
7409
|
+
className: cn57("h-2 w-2 rounded-full", agent.accentColor),
|
|
7371
7410
|
"aria-hidden": "true"
|
|
7372
7411
|
}
|
|
7373
7412
|
),
|
|
@@ -7427,7 +7466,7 @@ function MosaicAgentTeamPreview({ agents, label }) {
|
|
|
7427
7466
|
agent.accentColor && /* @__PURE__ */ jsx(
|
|
7428
7467
|
"span",
|
|
7429
7468
|
{
|
|
7430
|
-
className:
|
|
7469
|
+
className: cn57("h-2.5 w-2.5 rounded-full", agent.accentColor),
|
|
7431
7470
|
"aria-hidden": "true"
|
|
7432
7471
|
}
|
|
7433
7472
|
),
|
|
@@ -7451,7 +7490,7 @@ function MosaicQuickStartPanel({
|
|
|
7451
7490
|
scratchLabel = "Start from Scratch",
|
|
7452
7491
|
className
|
|
7453
7492
|
}) {
|
|
7454
|
-
return /* @__PURE__ */ jsxs("div", { "data-slot": "quick-start-panel", className:
|
|
7493
|
+
return /* @__PURE__ */ jsxs("div", { "data-slot": "quick-start-panel", className: cn57("flex flex-col gap-6", className), children: [
|
|
7455
7494
|
scenarios.length > 0 && /* @__PURE__ */ jsxs("div", { children: [
|
|
7456
7495
|
/* @__PURE__ */ jsx("h3", { className: "mb-3 text-sm font-semibold text-foreground", children: scenariosTitle }),
|
|
7457
7496
|
/* @__PURE__ */ jsx("div", { className: "grid gap-3 sm:grid-cols-2", children: scenarios.map((scenario) => /* @__PURE__ */ jsxs(
|
|
@@ -7459,7 +7498,7 @@ function MosaicQuickStartPanel({
|
|
|
7459
7498
|
{
|
|
7460
7499
|
type: "button",
|
|
7461
7500
|
onClick: () => onSelectScenario(scenario),
|
|
7462
|
-
className:
|
|
7501
|
+
className: cn57(
|
|
7463
7502
|
"flex items-start gap-3 rounded-lg border border-border bg-card p-4 text-left",
|
|
7464
7503
|
"hover:border-primary/50 hover:bg-primary/5",
|
|
7465
7504
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -7491,7 +7530,7 @@ function MosaicQuickStartPanel({
|
|
|
7491
7530
|
{
|
|
7492
7531
|
type: "button",
|
|
7493
7532
|
onClick: () => onSelectPreset(preset),
|
|
7494
|
-
className:
|
|
7533
|
+
className: cn57(
|
|
7495
7534
|
"flex items-center justify-between gap-3 rounded-lg border border-border bg-card px-4 py-3 text-left",
|
|
7496
7535
|
"hover:border-primary/50",
|
|
7497
7536
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -7505,7 +7544,7 @@ function MosaicQuickStartPanel({
|
|
|
7505
7544
|
a.accentColor && /* @__PURE__ */ jsx(
|
|
7506
7545
|
"span",
|
|
7507
7546
|
{
|
|
7508
|
-
className:
|
|
7547
|
+
className: cn57("h-2 w-2 rounded-full", a.accentColor),
|
|
7509
7548
|
"aria-hidden": "true"
|
|
7510
7549
|
}
|
|
7511
7550
|
),
|
|
@@ -7523,7 +7562,7 @@ function MosaicQuickStartPanel({
|
|
|
7523
7562
|
{
|
|
7524
7563
|
type: "button",
|
|
7525
7564
|
onClick: onStartFromScratch,
|
|
7526
|
-
className:
|
|
7565
|
+
className: cn57(
|
|
7527
7566
|
"inline-flex min-h-[44px] w-full items-center justify-center rounded-md border border-border",
|
|
7528
7567
|
"bg-background px-4 text-sm font-medium text-foreground",
|
|
7529
7568
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -7603,7 +7642,7 @@ function TemplateGalleryContent({
|
|
|
7603
7642
|
value: query,
|
|
7604
7643
|
onChange: (e) => setQuery(e.target.value),
|
|
7605
7644
|
placeholder: searchPlaceholder,
|
|
7606
|
-
className:
|
|
7645
|
+
className: cn57(
|
|
7607
7646
|
"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"
|
|
7608
7647
|
)
|
|
7609
7648
|
}
|
|
@@ -7651,7 +7690,7 @@ function TemplateGalleryContent({
|
|
|
7651
7690
|
value: query,
|
|
7652
7691
|
onChange: (e) => setQuery(e.target.value),
|
|
7653
7692
|
placeholder: searchPlaceholder,
|
|
7654
|
-
className:
|
|
7693
|
+
className: cn57(
|
|
7655
7694
|
"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"
|
|
7656
7695
|
)
|
|
7657
7696
|
}
|
|
@@ -7681,7 +7720,7 @@ function MosaicTemplateGallery(props) {
|
|
|
7681
7720
|
return /* @__PURE__ */ jsx(TemplateGalleryContent, { ...props, isMobile });
|
|
7682
7721
|
}
|
|
7683
7722
|
MosaicTemplateGallery.displayName = "MosaicTemplateGallery";
|
|
7684
|
-
function
|
|
7723
|
+
function cn58(...classes) {
|
|
7685
7724
|
return classes.filter(Boolean).join(" ");
|
|
7686
7725
|
}
|
|
7687
7726
|
function PlusIcon5() {
|
|
@@ -7825,7 +7864,7 @@ function MosaicModuleForm({
|
|
|
7825
7864
|
onChange: (e) => update("name", e.target.value),
|
|
7826
7865
|
placeholder: "Module name\u2026",
|
|
7827
7866
|
required: true,
|
|
7828
|
-
className:
|
|
7867
|
+
className: cn58(
|
|
7829
7868
|
"w-full rounded-md border border-input bg-background px-3 py-2 min-h-[40px]",
|
|
7830
7869
|
"text-sm placeholder:text-muted-foreground",
|
|
7831
7870
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -7843,7 +7882,7 @@ function MosaicModuleForm({
|
|
|
7843
7882
|
onChange: (e) => update("description", e.target.value),
|
|
7844
7883
|
placeholder: "Describe this module\u2026",
|
|
7845
7884
|
rows: 3,
|
|
7846
|
-
className:
|
|
7885
|
+
className: cn58(
|
|
7847
7886
|
"w-full rounded-md border border-input bg-background px-3 py-2",
|
|
7848
7887
|
"text-sm placeholder:text-muted-foreground resize-none",
|
|
7849
7888
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -7865,7 +7904,7 @@ function MosaicModuleForm({
|
|
|
7865
7904
|
value: formData[field.id] ?? "",
|
|
7866
7905
|
onChange: (e) => update(field.id, e.target.value),
|
|
7867
7906
|
placeholder: field.placeholder,
|
|
7868
|
-
className:
|
|
7907
|
+
className: cn58(
|
|
7869
7908
|
"w-full rounded-md border border-input bg-background px-3 py-2 min-h-[40px]",
|
|
7870
7909
|
"text-sm placeholder:text-muted-foreground",
|
|
7871
7910
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -7880,7 +7919,7 @@ function MosaicModuleForm({
|
|
|
7880
7919
|
onChange: (e) => update(field.id, e.target.value),
|
|
7881
7920
|
placeholder: field.placeholder,
|
|
7882
7921
|
rows: 3,
|
|
7883
|
-
className:
|
|
7922
|
+
className: cn58(
|
|
7884
7923
|
"w-full rounded-md border border-input bg-background px-3 py-2",
|
|
7885
7924
|
"text-sm placeholder:text-muted-foreground resize-none",
|
|
7886
7925
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -7896,7 +7935,7 @@ function MosaicModuleForm({
|
|
|
7896
7935
|
onChange: (e) => update(field.id, e.target.value),
|
|
7897
7936
|
placeholder: field.placeholder ?? "\u{1F9E0}",
|
|
7898
7937
|
maxLength: 4,
|
|
7899
|
-
className:
|
|
7938
|
+
className: cn58(
|
|
7900
7939
|
"w-20 rounded-md border border-input bg-background px-3 py-2 text-2xl",
|
|
7901
7940
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
7902
7941
|
)
|
|
@@ -7917,7 +7956,7 @@ function MosaicModuleForm({
|
|
|
7917
7956
|
}
|
|
7918
7957
|
},
|
|
7919
7958
|
placeholder: field.placeholder ?? "Add item\u2026",
|
|
7920
|
-
className:
|
|
7959
|
+
className: cn58(
|
|
7921
7960
|
"flex-1 rounded-md border border-input bg-background px-3 py-2 min-h-[36px]",
|
|
7922
7961
|
"text-sm placeholder:text-muted-foreground",
|
|
7923
7962
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -8113,7 +8152,7 @@ function LibraryContent({
|
|
|
8113
8152
|
{
|
|
8114
8153
|
type: "button",
|
|
8115
8154
|
onClick: openCreate,
|
|
8116
|
-
className:
|
|
8155
|
+
className: cn58(
|
|
8117
8156
|
"inline-flex items-center gap-2 rounded-md bg-primary px-3 py-2 text-sm font-medium text-primary-foreground",
|
|
8118
8157
|
"hover:bg-primary/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
8119
8158
|
),
|
|
@@ -8133,7 +8172,7 @@ function LibraryContent({
|
|
|
8133
8172
|
value: query,
|
|
8134
8173
|
onChange: (e) => setQuery(e.target.value),
|
|
8135
8174
|
placeholder: searchPlaceholder,
|
|
8136
|
-
className:
|
|
8175
|
+
className: cn58(
|
|
8137
8176
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
8138
8177
|
"text-sm placeholder:text-muted-foreground",
|
|
8139
8178
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -8146,7 +8185,7 @@ function LibraryContent({
|
|
|
8146
8185
|
{
|
|
8147
8186
|
type: "button",
|
|
8148
8187
|
onClick: () => setActiveTab(tab.id),
|
|
8149
|
-
className:
|
|
8188
|
+
className: cn58(
|
|
8150
8189
|
"rounded-md px-3 py-1.5 text-sm font-medium transition-colors",
|
|
8151
8190
|
activeTab === tab.id ? "bg-primary text-primary-foreground" : "bg-muted text-muted-foreground hover:bg-accent hover:text-accent-foreground"
|
|
8152
8191
|
),
|
|
@@ -8180,7 +8219,7 @@ function MosaicModuleLibrary(props) {
|
|
|
8180
8219
|
return /* @__PURE__ */ jsx(LibraryContent, { ...props });
|
|
8181
8220
|
}
|
|
8182
8221
|
MosaicModuleLibrary.displayName = "MosaicModuleLibrary";
|
|
8183
|
-
function
|
|
8222
|
+
function cn59(...classes) {
|
|
8184
8223
|
return classes.filter(Boolean).join(" ");
|
|
8185
8224
|
}
|
|
8186
8225
|
var roleConfig = {
|
|
@@ -8207,7 +8246,7 @@ function MosaicOrgRoleBadge({ role, className }) {
|
|
|
8207
8246
|
{
|
|
8208
8247
|
"data-slot": "org-role-badge",
|
|
8209
8248
|
title: config.description,
|
|
8210
|
-
className:
|
|
8249
|
+
className: cn59(
|
|
8211
8250
|
"inline-flex items-center rounded-full px-2 py-0.5 text-xs font-medium",
|
|
8212
8251
|
config.className,
|
|
8213
8252
|
className
|
|
@@ -8224,13 +8263,13 @@ function MosaicMultiOrgIndicator({
|
|
|
8224
8263
|
className
|
|
8225
8264
|
}) {
|
|
8226
8265
|
if (orgCount <= 1) return null;
|
|
8227
|
-
return /* @__PURE__ */ jsxs("div", { "data-slot": "multi-org-indicator", className:
|
|
8266
|
+
return /* @__PURE__ */ jsxs("div", { "data-slot": "multi-org-indicator", className: cn59("flex items-center gap-2", className), children: [
|
|
8228
8267
|
onSwitchOrg ? /* @__PURE__ */ jsxs(
|
|
8229
8268
|
"button",
|
|
8230
8269
|
{
|
|
8231
8270
|
type: "button",
|
|
8232
8271
|
onClick: onSwitchOrg,
|
|
8233
|
-
className:
|
|
8272
|
+
className: cn59(
|
|
8234
8273
|
"inline-flex items-center gap-1.5 rounded-full bg-secondary px-2.5 py-1 text-xs font-medium text-secondary-foreground",
|
|
8235
8274
|
"hover:bg-secondary/80",
|
|
8236
8275
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -8328,7 +8367,7 @@ function MosaicCreateOrgDialog({
|
|
|
8328
8367
|
onChange: (e) => setName(e.target.value),
|
|
8329
8368
|
placeholder: "Acme Inc.",
|
|
8330
8369
|
required: true,
|
|
8331
|
-
className:
|
|
8370
|
+
className: cn59(
|
|
8332
8371
|
"w-full rounded-md border bg-background px-3 py-2 min-h-[40px] text-sm placeholder:text-muted-foreground",
|
|
8333
8372
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
8334
8373
|
errors.name ? "border-destructive" : "border-input"
|
|
@@ -8348,7 +8387,7 @@ function MosaicCreateOrgDialog({
|
|
|
8348
8387
|
onChange: (e) => setSlug(e.target.value),
|
|
8349
8388
|
placeholder: "acme-inc",
|
|
8350
8389
|
required: true,
|
|
8351
|
-
className:
|
|
8390
|
+
className: cn59(
|
|
8352
8391
|
"w-full rounded-md border bg-background px-3 py-2 min-h-[40px] text-sm placeholder:text-muted-foreground",
|
|
8353
8392
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
8354
8393
|
errors.slug ? "border-destructive" : "border-input"
|
|
@@ -8445,7 +8484,7 @@ function MosaicInviteMemberDialog({
|
|
|
8445
8484
|
onChange: (e) => setEmail(e.target.value),
|
|
8446
8485
|
placeholder: "colleague@example.com",
|
|
8447
8486
|
required: true,
|
|
8448
|
-
className:
|
|
8487
|
+
className: cn59(
|
|
8449
8488
|
"w-full rounded-md border bg-background px-3 py-2 min-h-[40px] text-sm placeholder:text-muted-foreground",
|
|
8450
8489
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
8451
8490
|
errors.email ? "border-destructive" : "border-input"
|
|
@@ -8622,7 +8661,7 @@ function MosaicMemberList({
|
|
|
8622
8661
|
const filtered = members.filter(
|
|
8623
8662
|
(m) => !query || m.name.toLowerCase().includes(query.toLowerCase()) || m.email.toLowerCase().includes(query.toLowerCase())
|
|
8624
8663
|
);
|
|
8625
|
-
return /* @__PURE__ */ jsxs("div", { "data-slot": "member-list", className:
|
|
8664
|
+
return /* @__PURE__ */ jsxs("div", { "data-slot": "member-list", className: cn59("flex flex-col gap-4", className), children: [
|
|
8626
8665
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
8627
8666
|
/* @__PURE__ */ jsxs("div", { className: "relative flex-1", children: [
|
|
8628
8667
|
/* @__PURE__ */ jsx("span", { className: "absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground", children: /* @__PURE__ */ jsxs(
|
|
@@ -8715,7 +8754,7 @@ function MosaicOrgPanel({
|
|
|
8715
8754
|
const { isMobile } = useDevice();
|
|
8716
8755
|
const [activeTab, setActiveTab] = React27.useState(defaultTab ?? tabs[0]?.id ?? "");
|
|
8717
8756
|
const activeContent = tabs.find((t) => t.id === activeTab)?.content;
|
|
8718
|
-
return /* @__PURE__ */ jsxs("div", { "data-slot": "org-panel", className:
|
|
8757
|
+
return /* @__PURE__ */ jsxs("div", { "data-slot": "org-panel", className: cn59("flex h-full flex-col", className), children: [
|
|
8719
8758
|
/* @__PURE__ */ jsxs("div", { className: "border-b border-border px-4 py-4 md:px-6", children: [
|
|
8720
8759
|
/* @__PURE__ */ jsxs("div", { className: "flex items-start justify-between gap-4", children: [
|
|
8721
8760
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
@@ -8737,12 +8776,12 @@ function MosaicOrgPanel({
|
|
|
8737
8776
|
] }),
|
|
8738
8777
|
headerActions
|
|
8739
8778
|
] }),
|
|
8740
|
-
tabs.length > 0 && /* @__PURE__ */ jsx("div", { className:
|
|
8779
|
+
tabs.length > 0 && /* @__PURE__ */ jsx("div", { className: cn59("mt-4 flex gap-1", isMobile && "overflow-x-auto"), children: tabs.map((tab) => /* @__PURE__ */ jsx(
|
|
8741
8780
|
"button",
|
|
8742
8781
|
{
|
|
8743
8782
|
type: "button",
|
|
8744
8783
|
onClick: () => setActiveTab(tab.id),
|
|
8745
|
-
className:
|
|
8784
|
+
className: cn59(
|
|
8746
8785
|
"shrink-0 rounded-md px-3 py-1.5 text-sm font-medium transition-colors",
|
|
8747
8786
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
8748
8787
|
activeTab === tab.id ? "bg-primary text-primary-foreground" : "bg-muted text-muted-foreground hover:bg-accent hover:text-accent-foreground"
|
|
@@ -8756,7 +8795,7 @@ function MosaicOrgPanel({
|
|
|
8756
8795
|
] });
|
|
8757
8796
|
}
|
|
8758
8797
|
MosaicOrgPanel.displayName = "MosaicOrgPanel";
|
|
8759
|
-
function
|
|
8798
|
+
function cn60(...classes) {
|
|
8760
8799
|
return classes.filter(Boolean).join(" ");
|
|
8761
8800
|
}
|
|
8762
8801
|
var ANIM_ID8 = "mosaic-dashboard-content-kf";
|
|
@@ -8793,7 +8832,7 @@ function MosaicDashboardContent({
|
|
|
8793
8832
|
"div",
|
|
8794
8833
|
{
|
|
8795
8834
|
"data-slot": "dashboard-content",
|
|
8796
|
-
className:
|
|
8835
|
+
className: cn60("h-full overflow-auto", isMobile ? "p-4" : "p-6", className),
|
|
8797
8836
|
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: [
|
|
8798
8837
|
"View not found: ",
|
|
8799
8838
|
currentView
|
|
@@ -8802,7 +8841,7 @@ function MosaicDashboardContent({
|
|
|
8802
8841
|
);
|
|
8803
8842
|
}
|
|
8804
8843
|
MosaicDashboardContent.displayName = "MosaicDashboardContent";
|
|
8805
|
-
function
|
|
8844
|
+
function cn61(...classes) {
|
|
8806
8845
|
return classes.filter(Boolean).join(" ");
|
|
8807
8846
|
}
|
|
8808
8847
|
var ANIM_ID9 = "mosaic-dashboard-header2-kf";
|
|
@@ -8912,16 +8951,16 @@ function MosaicDashboardHeader({
|
|
|
8912
8951
|
"header",
|
|
8913
8952
|
{
|
|
8914
8953
|
"data-slot": "dashboard-header",
|
|
8915
|
-
className:
|
|
8954
|
+
className: cn61(
|
|
8916
8955
|
"mosaic-dashboard-header2",
|
|
8917
8956
|
"sticky top-0 z-40 border-b border-border/50 bg-background/80 backdrop-blur-sm",
|
|
8918
8957
|
className
|
|
8919
8958
|
),
|
|
8920
|
-
children: /* @__PURE__ */ jsx("div", { className:
|
|
8959
|
+
children: /* @__PURE__ */ jsx("div", { className: cn61(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: [
|
|
8921
8960
|
/* @__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: [
|
|
8922
8961
|
logoSlot ?? /* @__PURE__ */ jsx(SparklesIcon4, {}),
|
|
8923
8962
|
/* @__PURE__ */ jsxs("div", { className: "min-w-0", children: [
|
|
8924
|
-
/* @__PURE__ */ jsx("h1", { className:
|
|
8963
|
+
/* @__PURE__ */ jsx("h1", { className: cn61("font-semibold truncate", isMobile ? "text-lg" : "text-xl"), children: title }),
|
|
8925
8964
|
subtitle && !isMobile && /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground truncate", children: subtitle })
|
|
8926
8965
|
] })
|
|
8927
8966
|
] }) }),
|
|
@@ -8934,7 +8973,7 @@ function MosaicDashboardHeader({
|
|
|
8934
8973
|
value: searchQuery,
|
|
8935
8974
|
onChange: handleSearch,
|
|
8936
8975
|
placeholder: "Search\u2026",
|
|
8937
|
-
className:
|
|
8976
|
+
className: cn61(
|
|
8938
8977
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
8939
8978
|
"text-sm placeholder:text-muted-foreground",
|
|
8940
8979
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -8974,7 +9013,7 @@ function MosaicDashboardHeader({
|
|
|
8974
9013
|
);
|
|
8975
9014
|
}
|
|
8976
9015
|
MosaicDashboardHeader.displayName = "MosaicDashboardHeader";
|
|
8977
|
-
function
|
|
9016
|
+
function cn62(...classes) {
|
|
8978
9017
|
return classes.filter(Boolean).join(" ");
|
|
8979
9018
|
}
|
|
8980
9019
|
function ChevronDownIcon4() {
|
|
@@ -9055,13 +9094,13 @@ function MosaicOrgSwitcher({
|
|
|
9055
9094
|
}, [open]);
|
|
9056
9095
|
if (!currentOrg && organizations.length === 0 && !onCreateOrg) return null;
|
|
9057
9096
|
const initials = currentOrg?.name.split(" ").map((n) => n[0]).filter(Boolean).slice(0, 2).join("").toUpperCase() ?? "?";
|
|
9058
|
-
return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "org-switcher", className:
|
|
9097
|
+
return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "org-switcher", className: cn62("relative", className), children: [
|
|
9059
9098
|
/* @__PURE__ */ jsxs(
|
|
9060
9099
|
"button",
|
|
9061
9100
|
{
|
|
9062
9101
|
type: "button",
|
|
9063
9102
|
onClick: () => setOpen((v) => !v),
|
|
9064
|
-
className:
|
|
9103
|
+
className: cn62(
|
|
9065
9104
|
"inline-flex items-center gap-2 rounded-md border border-border bg-background px-3 py-1.5",
|
|
9066
9105
|
"text-sm font-medium text-foreground",
|
|
9067
9106
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -9088,7 +9127,7 @@ function MosaicOrgSwitcher({
|
|
|
9088
9127
|
{
|
|
9089
9128
|
role: "menu",
|
|
9090
9129
|
"aria-label": "Select organization",
|
|
9091
|
-
className:
|
|
9130
|
+
className: cn62(
|
|
9092
9131
|
"absolute left-0 top-full z-50 mt-1 min-w-[200px] rounded-md border border-border",
|
|
9093
9132
|
"bg-popover py-1 shadow-md"
|
|
9094
9133
|
),
|
|
@@ -9103,7 +9142,7 @@ function MosaicOrgSwitcher({
|
|
|
9103
9142
|
onSelectOrg?.(org.id);
|
|
9104
9143
|
setOpen(false);
|
|
9105
9144
|
},
|
|
9106
|
-
className:
|
|
9145
|
+
className: cn62(
|
|
9107
9146
|
"flex w-full items-center gap-2.5 px-3 py-2 text-sm text-foreground",
|
|
9108
9147
|
"hover:bg-accent hover:text-accent-foreground",
|
|
9109
9148
|
org.id === currentOrgId && "bg-primary/10 text-primary"
|
|
@@ -9140,7 +9179,7 @@ function MosaicOrgSwitcher({
|
|
|
9140
9179
|
] });
|
|
9141
9180
|
}
|
|
9142
9181
|
MosaicOrgSwitcher.displayName = "MosaicOrgSwitcher";
|
|
9143
|
-
function
|
|
9182
|
+
function cn63(...classes) {
|
|
9144
9183
|
return classes.filter(Boolean).join(" ");
|
|
9145
9184
|
}
|
|
9146
9185
|
function PlusIcon7() {
|
|
@@ -9184,19 +9223,19 @@ function MosaicQuickActionsMenu({
|
|
|
9184
9223
|
document.addEventListener("mousedown", h);
|
|
9185
9224
|
return () => document.removeEventListener("mousedown", h);
|
|
9186
9225
|
}, [open]);
|
|
9187
|
-
const itemClass =
|
|
9226
|
+
const itemClass = cn63(
|
|
9188
9227
|
"flex w-full items-center gap-2 px-3 py-2 text-sm text-foreground",
|
|
9189
9228
|
"hover:bg-accent hover:text-accent-foreground",
|
|
9190
9229
|
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
9191
9230
|
"min-h-[44px]"
|
|
9192
9231
|
);
|
|
9193
|
-
return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "quick-actions-menu", className:
|
|
9232
|
+
return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "quick-actions-menu", className: cn63("relative", className), children: [
|
|
9194
9233
|
/* @__PURE__ */ jsxs(
|
|
9195
9234
|
"button",
|
|
9196
9235
|
{
|
|
9197
9236
|
type: "button",
|
|
9198
9237
|
onClick: () => setOpen((v) => !v),
|
|
9199
|
-
className:
|
|
9238
|
+
className: cn63(
|
|
9200
9239
|
"inline-flex items-center justify-center gap-2 rounded-md border border-border bg-background",
|
|
9201
9240
|
"min-h-[44px] min-w-[44px] px-3 py-2 text-sm font-medium text-foreground",
|
|
9202
9241
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -9207,7 +9246,7 @@ function MosaicQuickActionsMenu({
|
|
|
9207
9246
|
"aria-label": label,
|
|
9208
9247
|
children: [
|
|
9209
9248
|
triggerIcon ?? /* @__PURE__ */ jsx(PlusIcon7, {}),
|
|
9210
|
-
/* @__PURE__ */ jsx("span", { className:
|
|
9249
|
+
/* @__PURE__ */ jsx("span", { className: cn63("hidden md:inline"), children: label })
|
|
9211
9250
|
]
|
|
9212
9251
|
}
|
|
9213
9252
|
),
|
|
@@ -9216,13 +9255,13 @@ function MosaicQuickActionsMenu({
|
|
|
9216
9255
|
{
|
|
9217
9256
|
role: "menu",
|
|
9218
9257
|
"aria-label": menuTitle,
|
|
9219
|
-
className:
|
|
9258
|
+
className: cn63(
|
|
9220
9259
|
"absolute right-0 top-full z-50 mt-1 rounded-md border border-border bg-popover py-1 shadow-md",
|
|
9221
9260
|
isMobile ? "w-[min(90vw,280px)]" : "w-56"
|
|
9222
9261
|
),
|
|
9223
9262
|
children: [
|
|
9224
9263
|
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 }) }),
|
|
9225
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
9264
|
+
/* @__PURE__ */ jsx("div", { className: cn63(menuTitle && "border-t border-border") }),
|
|
9226
9265
|
actions.map((action) => /* @__PURE__ */ jsxs(React27.Fragment, { children: [
|
|
9227
9266
|
action.separator && /* @__PURE__ */ jsx("div", { className: "my-1 border-t border-border" }),
|
|
9228
9267
|
action.href && renderLink ? renderLink(
|
|
@@ -9648,6 +9687,6 @@ async function MosaicClerkWebhookHandler(req, options) {
|
|
|
9648
9687
|
return new Response("OK", { status: 200 });
|
|
9649
9688
|
}
|
|
9650
9689
|
|
|
9651
|
-
export { MosaicAccordion, MosaicAccordionItem, MosaicAccordionPanel, MosaicAccordionTrigger, MosaicActivityFeed, MosaicActivityItem, MosaicAdaptiveGrid, MosaicAdaptiveModal, MosaicAdaptiveNavigation, MosaicAgentCard, MosaicAgentComposer, MosaicAgentComposerDesktop, MosaicAgentComposerMobile, MosaicAgentList, AgentListDesktop as MosaicAgentListDesktop, AgentListMobile as MosaicAgentListMobile, MosaicAgentTeamPreview, MosaicAnimatedList, MosaicAppSidebar, MosaicAvatar, MosaicBadge, MosaicBlurredOrb, MosaicButton, MosaicCard, MosaicCardContent, MosaicCardDescription, MosaicCardFooter, MosaicCardHeader, MosaicCardTitle, MosaicCheckbox, MosaicClerkOrgSwitcher, MosaicClerkWebhookHandler, MosaicCollapsible, MosaicCollapsiblePanel, MosaicCollapsibleTrigger, MosaicCombobox, MosaicCounter, MosaicCreateOrgDialog, MosaicDashboardContent, MosaicDashboardHeader, MosaicDashboardLayout, MosaicDeleteConfirmationDialog, MosaicDeviceProvider, MosaicDropdownMenu, MosaicFallingPattern, MosaicFeature3Col, MosaicFeatureCenteredMedia, MosaicField, MosaicFieldControl, MosaicFieldDescription, MosaicFieldError, MosaicFieldLabel, MosaicFilterSidebar, MosaicFooterSimple, MosaicHeroSplit, MosaicInput, MosaicInputGroup, MosaicIntegrationsBadge, MosaicInviteMemberDialog, MosaicLogosGrid, MosaicMainNav, MosaicMarketplaceList, MarketplaceListDesktop as MosaicMarketplaceListDesktop, MarketplaceListMobile as MosaicMarketplaceListMobile, MosaicMemberList, MosaicMessageCard, MosaicMessageList, MessageListDesktop as MosaicMessageListDesktop, MessageListMobile as MosaicMessageListMobile, MosaicModuleCard, MosaicModuleForm, MosaicModuleLibrary, MosaicMultiOrgIndicator, MosaicMultiTenantProvider, MosaicNavbar, MosaicOrgPanel, MosaicOrgProfilePage, MosaicOrgRoleBadge, MosaicOrgSwitcher, MosaicPreferencesPanel, MosaicPricingCard, MosaicProfilePanel, MosaicProgress, MosaicQuickActionCard, MosaicQuickActionsMenu, MosaicQuickAgentSelector, MosaicQuickStartPanel, MosaicRadioGroup, MosaicRadioGroupItem, MosaicScrollArea, MosaicSelect, MosaicSelectorModal, MosaicSeparator, MosaicSignInLayout, MosaicSignUpLayout, MosaicSlider, MosaicStatsGrid, MosaicSwitch, MosaicTabs, MosaicTabsList, MosaicTabsPanel, MosaicTabsTrigger, MosaicTemplateCard, MosaicTemplateGallery, MosaicTemplatePreview, MosaicTestimonialsGrid, MosaicTextarea, MosaicThemeProvider, MosaicThemeToggle, MosaicTooltip, MosaicUserButton, Placeholder, badgeVariants, buttonVariants, useBreakpoint, useDevice, useMosaicWorkspace as useEffectiveWorkspaceId, useIsDesktop, useIsMobile, useIsTablet, useMediaQuery, useMosaicWorkspace, useOrientation, useViewport, version };
|
|
9690
|
+
export { MosaicAccordion, MosaicAccordionItem, MosaicAccordionPanel, MosaicAccordionTrigger, MosaicActivityFeed, MosaicActivityItem, MosaicAdaptiveGrid, MosaicAdaptiveModal, MosaicAdaptiveNavigation, MosaicAgentCard, MosaicAgentComposer, MosaicAgentComposerDesktop, MosaicAgentComposerMobile, MosaicAgentList, AgentListDesktop as MosaicAgentListDesktop, AgentListMobile as MosaicAgentListMobile, MosaicAgentTeamPreview, MosaicAnimatedList, MosaicAppSidebar, MosaicAvatar, MosaicBadge, MosaicBlurredOrb, MosaicButton, MosaicCard, MosaicCardContent, MosaicCardDescription, MosaicCardFooter, MosaicCardHeader, MosaicCardTitle, MosaicCheckbox, MosaicClerkOrgSwitcher, MosaicClerkWebhookHandler, MosaicCollapsible, MosaicCollapsiblePanel, MosaicCollapsibleTrigger, MosaicCombobox, MosaicCounter, MosaicCreateOrgDialog, MosaicDashboardContent, MosaicDashboardHeader, MosaicDashboardLayout, MosaicDeleteConfirmationDialog, MosaicDeviceProvider, MosaicDropdownMenu, MosaicEmptyState, MosaicFallingPattern, MosaicFeature3Col, MosaicFeatureCenteredMedia, MosaicField, MosaicFieldControl, MosaicFieldDescription, MosaicFieldError, MosaicFieldLabel, MosaicFilterSidebar, MosaicFooterSimple, MosaicHeroSplit, MosaicInput, MosaicInputGroup, MosaicIntegrationsBadge, MosaicInviteMemberDialog, MosaicLogosGrid, MosaicMainNav, MosaicMarketplaceList, MarketplaceListDesktop as MosaicMarketplaceListDesktop, MarketplaceListMobile as MosaicMarketplaceListMobile, MosaicMemberList, MosaicMessageCard, MosaicMessageList, MessageListDesktop as MosaicMessageListDesktop, MessageListMobile as MosaicMessageListMobile, MosaicModuleCard, MosaicModuleForm, MosaicModuleLibrary, MosaicMultiOrgIndicator, MosaicMultiTenantProvider, MosaicNavbar, MosaicOrgPanel, MosaicOrgProfilePage, MosaicOrgRoleBadge, MosaicOrgSwitcher, MosaicPreferencesPanel, MosaicPricingCard, MosaicProfilePanel, MosaicProgress, MosaicQuickActionCard, MosaicQuickActionsMenu, MosaicQuickAgentSelector, MosaicQuickStartPanel, MosaicRadioGroup, MosaicRadioGroupItem, MosaicScrollArea, MosaicSelect, MosaicSelectorModal, MosaicSeparator, MosaicSignInLayout, MosaicSignUpLayout, MosaicSlider, MosaicStatsGrid, MosaicSwitch, MosaicTabs, MosaicTabsList, MosaicTabsPanel, MosaicTabsTrigger, MosaicTemplateCard, MosaicTemplateGallery, MosaicTemplatePreview, MosaicTestimonialsGrid, MosaicTextarea, MosaicThemeProvider, MosaicThemeToggle, MosaicTooltip, MosaicUserButton, Placeholder, badgeVariants, buttonVariants, useBreakpoint, useDevice, useMosaicWorkspace as useEffectiveWorkspaceId, useIsDesktop, useIsMobile, useIsTablet, useMediaQuery, useMosaicWorkspace, useOrientation, useViewport, version };
|
|
9652
9691
|
//# sourceMappingURL=index.js.map
|
|
9653
9692
|
//# sourceMappingURL=index.js.map
|