@vantageos/mosaic-blocks 0.3.3-alpha → 0.3.4-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 +308 -251
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +91 -2
- package/dist/index.d.ts +91 -2
- package/dist/index.js +308 -252
- 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.4-alpha";
|
|
31
31
|
function Placeholder({ label = "mosaic-blocks placeholder" }) {
|
|
32
32
|
return /* @__PURE__ */ jsx("div", { "data-mosaic-block": "placeholder", children: label });
|
|
33
33
|
}
|
|
@@ -1062,6 +1062,62 @@ function useMediaQuery(query) {
|
|
|
1062
1062
|
function cn14(...classes) {
|
|
1063
1063
|
return classes.filter(Boolean).join(" ");
|
|
1064
1064
|
}
|
|
1065
|
+
function MosaicFilterBar({
|
|
1066
|
+
label,
|
|
1067
|
+
children,
|
|
1068
|
+
onClearAll,
|
|
1069
|
+
clearLabel = "Clear",
|
|
1070
|
+
align = "start",
|
|
1071
|
+
className,
|
|
1072
|
+
ref
|
|
1073
|
+
}) {
|
|
1074
|
+
const isBetween = align === "between";
|
|
1075
|
+
return /* @__PURE__ */ jsxs(
|
|
1076
|
+
"div",
|
|
1077
|
+
{
|
|
1078
|
+
ref,
|
|
1079
|
+
"data-slot": "filter-bar",
|
|
1080
|
+
className: cn14(
|
|
1081
|
+
"flex flex-wrap items-center gap-2",
|
|
1082
|
+
isBetween ? "justify-between" : "justify-start",
|
|
1083
|
+
className
|
|
1084
|
+
),
|
|
1085
|
+
children: [
|
|
1086
|
+
label != null && /* @__PURE__ */ jsx(
|
|
1087
|
+
"span",
|
|
1088
|
+
{
|
|
1089
|
+
"data-slot": "filter-bar-label",
|
|
1090
|
+
className: "shrink-0 text-sm font-medium text-muted-foreground",
|
|
1091
|
+
children: label
|
|
1092
|
+
}
|
|
1093
|
+
),
|
|
1094
|
+
/* @__PURE__ */ jsx(
|
|
1095
|
+
"div",
|
|
1096
|
+
{
|
|
1097
|
+
"data-slot": "filter-bar-controls",
|
|
1098
|
+
className: cn14("flex flex-wrap items-center gap-2", isBetween && "flex-1"),
|
|
1099
|
+
children
|
|
1100
|
+
}
|
|
1101
|
+
),
|
|
1102
|
+
onClearAll != null && /* @__PURE__ */ jsx(
|
|
1103
|
+
MosaicButton,
|
|
1104
|
+
{
|
|
1105
|
+
"data-slot": "filter-bar-clear",
|
|
1106
|
+
variant: "ghost",
|
|
1107
|
+
size: "sm",
|
|
1108
|
+
onClick: onClearAll,
|
|
1109
|
+
className: "shrink-0",
|
|
1110
|
+
children: clearLabel
|
|
1111
|
+
}
|
|
1112
|
+
)
|
|
1113
|
+
]
|
|
1114
|
+
}
|
|
1115
|
+
);
|
|
1116
|
+
}
|
|
1117
|
+
MosaicFilterBar.displayName = "MosaicFilterBar";
|
|
1118
|
+
function cn15(...classes) {
|
|
1119
|
+
return classes.filter(Boolean).join(" ");
|
|
1120
|
+
}
|
|
1065
1121
|
function MosaicEmptyState({
|
|
1066
1122
|
icon,
|
|
1067
1123
|
title,
|
|
@@ -1075,7 +1131,7 @@ function MosaicEmptyState({
|
|
|
1075
1131
|
{
|
|
1076
1132
|
ref,
|
|
1077
1133
|
"data-slot": "empty-state",
|
|
1078
|
-
className:
|
|
1134
|
+
className: cn15(
|
|
1079
1135
|
"flex flex-col items-center justify-center gap-4 px-4 py-12 text-center",
|
|
1080
1136
|
className
|
|
1081
1137
|
),
|
|
@@ -1098,7 +1154,7 @@ function MosaicEmptyState({
|
|
|
1098
1154
|
);
|
|
1099
1155
|
}
|
|
1100
1156
|
MosaicEmptyState.displayName = "MosaicEmptyState";
|
|
1101
|
-
function
|
|
1157
|
+
function cn16(...classes) {
|
|
1102
1158
|
return classes.filter(Boolean).join(" ");
|
|
1103
1159
|
}
|
|
1104
1160
|
function MosaicAccordion({ className, ref, ...props }) {
|
|
@@ -1107,7 +1163,7 @@ function MosaicAccordion({ className, ref, ...props }) {
|
|
|
1107
1163
|
{
|
|
1108
1164
|
ref,
|
|
1109
1165
|
"data-slot": "accordion",
|
|
1110
|
-
className:
|
|
1166
|
+
className: cn16("w-full divide-y divide-border", className),
|
|
1111
1167
|
...props
|
|
1112
1168
|
}
|
|
1113
1169
|
);
|
|
@@ -1119,7 +1175,7 @@ function MosaicAccordionItem({ className, ref, ...props }) {
|
|
|
1119
1175
|
{
|
|
1120
1176
|
ref,
|
|
1121
1177
|
"data-slot": "accordion-item",
|
|
1122
|
-
className:
|
|
1178
|
+
className: cn16("py-0", className),
|
|
1123
1179
|
...props
|
|
1124
1180
|
}
|
|
1125
1181
|
);
|
|
@@ -1136,7 +1192,7 @@ function MosaicAccordionTrigger({
|
|
|
1136
1192
|
{
|
|
1137
1193
|
ref,
|
|
1138
1194
|
"data-slot": "accordion-trigger",
|
|
1139
|
-
className:
|
|
1195
|
+
className: cn16(
|
|
1140
1196
|
"flex w-full flex-1 items-center justify-between py-4",
|
|
1141
1197
|
"text-sm font-medium text-foreground",
|
|
1142
1198
|
"outline-none transition-all",
|
|
@@ -1176,13 +1232,13 @@ function MosaicAccordionPanel({ className, ref, ...props }) {
|
|
|
1176
1232
|
{
|
|
1177
1233
|
ref,
|
|
1178
1234
|
"data-slot": "accordion-panel",
|
|
1179
|
-
className:
|
|
1235
|
+
className: cn16("overflow-hidden text-sm text-muted-foreground", "transition-all", className),
|
|
1180
1236
|
...props
|
|
1181
1237
|
}
|
|
1182
1238
|
);
|
|
1183
1239
|
}
|
|
1184
1240
|
MosaicAccordionPanel.displayName = "MosaicAccordionPanel";
|
|
1185
|
-
function
|
|
1241
|
+
function cn17(...classes) {
|
|
1186
1242
|
return classes.filter(Boolean).join(" ");
|
|
1187
1243
|
}
|
|
1188
1244
|
function MosaicCheckbox({ className, ref, ...props }) {
|
|
@@ -1191,7 +1247,7 @@ function MosaicCheckbox({ className, ref, ...props }) {
|
|
|
1191
1247
|
{
|
|
1192
1248
|
ref,
|
|
1193
1249
|
"data-slot": "checkbox",
|
|
1194
|
-
className:
|
|
1250
|
+
className: cn17(
|
|
1195
1251
|
"peer size-4 shrink-0 cursor-pointer",
|
|
1196
1252
|
"rounded-sm border border-border bg-background",
|
|
1197
1253
|
"outline-none transition-colors",
|
|
@@ -1231,7 +1287,7 @@ function MosaicCheckbox({ className, ref, ...props }) {
|
|
|
1231
1287
|
);
|
|
1232
1288
|
}
|
|
1233
1289
|
MosaicCheckbox.displayName = "MosaicCheckbox";
|
|
1234
|
-
function
|
|
1290
|
+
function cn18(...classes) {
|
|
1235
1291
|
return classes.filter(Boolean).join(" ");
|
|
1236
1292
|
}
|
|
1237
1293
|
function MosaicCollapsible({ className, ref, ...props }) {
|
|
@@ -1240,7 +1296,7 @@ function MosaicCollapsible({ className, ref, ...props }) {
|
|
|
1240
1296
|
{
|
|
1241
1297
|
ref,
|
|
1242
1298
|
"data-slot": "collapsible",
|
|
1243
|
-
className:
|
|
1299
|
+
className: cn18("w-full", className),
|
|
1244
1300
|
...props
|
|
1245
1301
|
}
|
|
1246
1302
|
);
|
|
@@ -1256,7 +1312,7 @@ function MosaicCollapsibleTrigger({
|
|
|
1256
1312
|
{
|
|
1257
1313
|
ref,
|
|
1258
1314
|
"data-slot": "collapsible-trigger",
|
|
1259
|
-
className:
|
|
1315
|
+
className: cn18(
|
|
1260
1316
|
"inline-flex w-full items-center justify-between gap-2",
|
|
1261
1317
|
"rounded-md px-0 py-2 text-sm font-medium",
|
|
1262
1318
|
"text-foreground outline-none transition-colors",
|
|
@@ -1278,7 +1334,7 @@ function MosaicCollapsiblePanel({ className, ref, ...props }) {
|
|
|
1278
1334
|
{
|
|
1279
1335
|
ref,
|
|
1280
1336
|
"data-slot": "collapsible-panel",
|
|
1281
|
-
className:
|
|
1337
|
+
className: cn18(
|
|
1282
1338
|
"overflow-hidden text-sm transition-all",
|
|
1283
1339
|
"data-[open]:animate-in data-[closed]:animate-out",
|
|
1284
1340
|
className
|
|
@@ -1288,7 +1344,7 @@ function MosaicCollapsiblePanel({ className, ref, ...props }) {
|
|
|
1288
1344
|
);
|
|
1289
1345
|
}
|
|
1290
1346
|
MosaicCollapsiblePanel.displayName = "MosaicCollapsiblePanel";
|
|
1291
|
-
function
|
|
1347
|
+
function cn19(...classes) {
|
|
1292
1348
|
return classes.filter(Boolean).join(" ");
|
|
1293
1349
|
}
|
|
1294
1350
|
function MosaicProgress({
|
|
@@ -1305,7 +1361,7 @@ function MosaicProgress({
|
|
|
1305
1361
|
"data-slot": "progress",
|
|
1306
1362
|
value,
|
|
1307
1363
|
max,
|
|
1308
|
-
className:
|
|
1364
|
+
className: cn19("w-full", className),
|
|
1309
1365
|
...props,
|
|
1310
1366
|
children: /* @__PURE__ */ jsx(
|
|
1311
1367
|
Progress.Track,
|
|
@@ -1326,7 +1382,7 @@ function MosaicProgress({
|
|
|
1326
1382
|
);
|
|
1327
1383
|
}
|
|
1328
1384
|
MosaicProgress.displayName = "MosaicProgress";
|
|
1329
|
-
function
|
|
1385
|
+
function cn20(...classes) {
|
|
1330
1386
|
return classes.filter(Boolean).join(" ");
|
|
1331
1387
|
}
|
|
1332
1388
|
function MosaicRadioGroup({ className, ref, ...props }) {
|
|
@@ -1335,7 +1391,7 @@ function MosaicRadioGroup({ className, ref, ...props }) {
|
|
|
1335
1391
|
{
|
|
1336
1392
|
ref,
|
|
1337
1393
|
"data-slot": "radio-group",
|
|
1338
|
-
className:
|
|
1394
|
+
className: cn20("flex flex-col gap-2", className),
|
|
1339
1395
|
...props
|
|
1340
1396
|
}
|
|
1341
1397
|
);
|
|
@@ -1352,7 +1408,7 @@ function MosaicRadioGroupItem({
|
|
|
1352
1408
|
{
|
|
1353
1409
|
ref,
|
|
1354
1410
|
"data-slot": "radio",
|
|
1355
|
-
className:
|
|
1411
|
+
className: cn20(
|
|
1356
1412
|
"flex items-center gap-2 text-sm font-medium",
|
|
1357
1413
|
"cursor-pointer select-none",
|
|
1358
1414
|
"data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50",
|
|
@@ -1363,7 +1419,7 @@ function MosaicRadioGroupItem({
|
|
|
1363
1419
|
/* @__PURE__ */ jsx(
|
|
1364
1420
|
"span",
|
|
1365
1421
|
{
|
|
1366
|
-
className:
|
|
1422
|
+
className: cn20(
|
|
1367
1423
|
"flex size-4 shrink-0 items-center justify-center",
|
|
1368
1424
|
"rounded-full border border-border bg-background",
|
|
1369
1425
|
"outline-none transition-colors",
|
|
@@ -1379,7 +1435,7 @@ function MosaicRadioGroupItem({
|
|
|
1379
1435
|
);
|
|
1380
1436
|
}
|
|
1381
1437
|
MosaicRadioGroupItem.displayName = "MosaicRadioGroupItem";
|
|
1382
|
-
function
|
|
1438
|
+
function cn21(...classes) {
|
|
1383
1439
|
return classes.filter(Boolean).join(" ");
|
|
1384
1440
|
}
|
|
1385
1441
|
function MosaicScrollArea({
|
|
@@ -1394,7 +1450,7 @@ function MosaicScrollArea({
|
|
|
1394
1450
|
{
|
|
1395
1451
|
ref,
|
|
1396
1452
|
"data-slot": "scroll-area",
|
|
1397
|
-
className:
|
|
1453
|
+
className: cn21("relative overflow-hidden", className),
|
|
1398
1454
|
...props,
|
|
1399
1455
|
children: [
|
|
1400
1456
|
/* @__PURE__ */ jsx(ScrollArea.Viewport, { "data-slot": "scroll-area-viewport", className: "size-full rounded-[inherit]", children: /* @__PURE__ */ jsx(ScrollArea.Content, { children }) }),
|
|
@@ -1422,7 +1478,7 @@ function MosaicScrollArea({
|
|
|
1422
1478
|
);
|
|
1423
1479
|
}
|
|
1424
1480
|
MosaicScrollArea.displayName = "MosaicScrollArea";
|
|
1425
|
-
function
|
|
1481
|
+
function cn22(...classes) {
|
|
1426
1482
|
return classes.filter(Boolean).join(" ");
|
|
1427
1483
|
}
|
|
1428
1484
|
function MosaicSeparator({
|
|
@@ -1437,7 +1493,7 @@ function MosaicSeparator({
|
|
|
1437
1493
|
ref,
|
|
1438
1494
|
"data-slot": "separator",
|
|
1439
1495
|
orientation,
|
|
1440
|
-
className:
|
|
1496
|
+
className: cn22(
|
|
1441
1497
|
"shrink-0 bg-border",
|
|
1442
1498
|
orientation === "vertical" ? "h-full w-px" : "h-px w-full",
|
|
1443
1499
|
className
|
|
@@ -1447,7 +1503,7 @@ function MosaicSeparator({
|
|
|
1447
1503
|
);
|
|
1448
1504
|
}
|
|
1449
1505
|
MosaicSeparator.displayName = "MosaicSeparator";
|
|
1450
|
-
function
|
|
1506
|
+
function cn23(...classes) {
|
|
1451
1507
|
return classes.filter(Boolean).join(" ");
|
|
1452
1508
|
}
|
|
1453
1509
|
function MosaicSlider({ className, ref, ...props }) {
|
|
@@ -1458,7 +1514,7 @@ function MosaicSlider({ className, ref, ...props }) {
|
|
|
1458
1514
|
{
|
|
1459
1515
|
ref,
|
|
1460
1516
|
"data-slot": "slider",
|
|
1461
|
-
className:
|
|
1517
|
+
className: cn23("w-full touch-none select-none", className),
|
|
1462
1518
|
...props,
|
|
1463
1519
|
children: /* @__PURE__ */ jsx(Slider.Control, { className: "flex items-center", children: /* @__PURE__ */ jsxs(
|
|
1464
1520
|
Slider.Track,
|
|
@@ -1477,7 +1533,7 @@ function MosaicSlider({ className, ref, ...props }) {
|
|
|
1477
1533
|
Slider.Thumb,
|
|
1478
1534
|
{
|
|
1479
1535
|
"data-slot": "slider-thumb",
|
|
1480
|
-
className:
|
|
1536
|
+
className: cn23(
|
|
1481
1537
|
"block size-5 rounded-full",
|
|
1482
1538
|
"border-2 border-foreground bg-background",
|
|
1483
1539
|
"shadow-sm outline-none transition-colors",
|
|
@@ -1494,7 +1550,7 @@ function MosaicSlider({ className, ref, ...props }) {
|
|
|
1494
1550
|
);
|
|
1495
1551
|
}
|
|
1496
1552
|
MosaicSlider.displayName = "MosaicSlider";
|
|
1497
|
-
function
|
|
1553
|
+
function cn24(...classes) {
|
|
1498
1554
|
return classes.filter(Boolean).join(" ");
|
|
1499
1555
|
}
|
|
1500
1556
|
function MosaicTabs({ className, ref, ...props }) {
|
|
@@ -1503,7 +1559,7 @@ function MosaicTabs({ className, ref, ...props }) {
|
|
|
1503
1559
|
{
|
|
1504
1560
|
ref,
|
|
1505
1561
|
"data-slot": "tabs",
|
|
1506
|
-
className:
|
|
1562
|
+
className: cn24("flex flex-col gap-2", className),
|
|
1507
1563
|
...props
|
|
1508
1564
|
}
|
|
1509
1565
|
);
|
|
@@ -1515,7 +1571,7 @@ function MosaicTabsList({ className, ref, ...props }) {
|
|
|
1515
1571
|
{
|
|
1516
1572
|
ref,
|
|
1517
1573
|
"data-slot": "tabs-list",
|
|
1518
|
-
className:
|
|
1574
|
+
className: cn24(
|
|
1519
1575
|
"relative inline-flex items-center justify-start gap-1",
|
|
1520
1576
|
"rounded-lg bg-muted p-1 text-muted-foreground",
|
|
1521
1577
|
className
|
|
@@ -1531,7 +1587,7 @@ function MosaicTabsTrigger({ className, ref, ...props }) {
|
|
|
1531
1587
|
{
|
|
1532
1588
|
ref,
|
|
1533
1589
|
"data-slot": "tabs-trigger",
|
|
1534
|
-
className:
|
|
1590
|
+
className: cn24(
|
|
1535
1591
|
"inline-flex items-center justify-center gap-1.5 whitespace-nowrap",
|
|
1536
1592
|
"rounded-md px-3 py-1.5 text-sm font-medium",
|
|
1537
1593
|
"outline-none transition-all",
|
|
@@ -1554,7 +1610,7 @@ function MosaicTabsPanel({ className, ref, ...props }) {
|
|
|
1554
1610
|
{
|
|
1555
1611
|
ref,
|
|
1556
1612
|
"data-slot": "tabs-panel",
|
|
1557
|
-
className:
|
|
1613
|
+
className: cn24(
|
|
1558
1614
|
"flex-1 outline-none",
|
|
1559
1615
|
"focus-visible:ring-ring focus-visible:ring-[3px] focus-visible:rounded-md",
|
|
1560
1616
|
className
|
|
@@ -1564,7 +1620,7 @@ function MosaicTabsPanel({ className, ref, ...props }) {
|
|
|
1564
1620
|
);
|
|
1565
1621
|
}
|
|
1566
1622
|
MosaicTabsPanel.displayName = "MosaicTabsPanel";
|
|
1567
|
-
function
|
|
1623
|
+
function cn25(...classes) {
|
|
1568
1624
|
return classes.filter(Boolean).join(" ");
|
|
1569
1625
|
}
|
|
1570
1626
|
function MosaicTextarea({ className, ref, ...props }) {
|
|
@@ -1573,7 +1629,7 @@ function MosaicTextarea({ className, ref, ...props }) {
|
|
|
1573
1629
|
{
|
|
1574
1630
|
ref,
|
|
1575
1631
|
"data-slot": "textarea",
|
|
1576
|
-
className:
|
|
1632
|
+
className: cn25(
|
|
1577
1633
|
"flex min-h-[80px] w-full resize-y",
|
|
1578
1634
|
"rounded-md border border-border bg-background px-3 py-2",
|
|
1579
1635
|
"text-sm text-foreground shadow-xs",
|
|
@@ -1588,7 +1644,7 @@ function MosaicTextarea({ className, ref, ...props }) {
|
|
|
1588
1644
|
);
|
|
1589
1645
|
}
|
|
1590
1646
|
MosaicTextarea.displayName = "MosaicTextarea";
|
|
1591
|
-
function
|
|
1647
|
+
function cn26(...classes) {
|
|
1592
1648
|
return classes.filter(Boolean).join(" ");
|
|
1593
1649
|
}
|
|
1594
1650
|
function MosaicTooltip({
|
|
@@ -1605,7 +1661,7 @@ function MosaicTooltip({
|
|
|
1605
1661
|
Tooltip.Popup,
|
|
1606
1662
|
{
|
|
1607
1663
|
"data-slot": "tooltip-content",
|
|
1608
|
-
className:
|
|
1664
|
+
className: cn26(
|
|
1609
1665
|
"z-50 max-w-xs overflow-hidden rounded-md",
|
|
1610
1666
|
"border border-border bg-foreground px-3 py-1.5",
|
|
1611
1667
|
"text-xs text-background shadow-md",
|
|
@@ -1622,7 +1678,7 @@ function MosaicTooltip({
|
|
|
1622
1678
|
] }) });
|
|
1623
1679
|
}
|
|
1624
1680
|
MosaicTooltip.displayName = "MosaicTooltip";
|
|
1625
|
-
function
|
|
1681
|
+
function cn27(...classes) {
|
|
1626
1682
|
return classes.filter(Boolean).join(" ");
|
|
1627
1683
|
}
|
|
1628
1684
|
function MosaicCard({ className, ref, ...props }) {
|
|
@@ -1631,7 +1687,7 @@ function MosaicCard({ className, ref, ...props }) {
|
|
|
1631
1687
|
{
|
|
1632
1688
|
ref,
|
|
1633
1689
|
"data-slot": "card",
|
|
1634
|
-
className:
|
|
1690
|
+
className: cn27(
|
|
1635
1691
|
"bg-card text-card-foreground rounded-xl border border-border shadow-sm",
|
|
1636
1692
|
className
|
|
1637
1693
|
),
|
|
@@ -1646,7 +1702,7 @@ function MosaicCardHeader({ className, ref, ...props }) {
|
|
|
1646
1702
|
{
|
|
1647
1703
|
ref,
|
|
1648
1704
|
"data-slot": "card-header",
|
|
1649
|
-
className:
|
|
1705
|
+
className: cn27("flex flex-col gap-1.5 p-6", className),
|
|
1650
1706
|
...props
|
|
1651
1707
|
}
|
|
1652
1708
|
);
|
|
@@ -1658,7 +1714,7 @@ function MosaicCardTitle({ className, ref, ...props }) {
|
|
|
1658
1714
|
{
|
|
1659
1715
|
ref,
|
|
1660
1716
|
"data-slot": "card-title",
|
|
1661
|
-
className:
|
|
1717
|
+
className: cn27("text-lg font-semibold leading-none tracking-tight", className),
|
|
1662
1718
|
...props
|
|
1663
1719
|
}
|
|
1664
1720
|
);
|
|
@@ -1670,14 +1726,14 @@ function MosaicCardDescription({ className, ref, ...props }) {
|
|
|
1670
1726
|
{
|
|
1671
1727
|
ref,
|
|
1672
1728
|
"data-slot": "card-description",
|
|
1673
|
-
className:
|
|
1729
|
+
className: cn27("text-sm text-muted-foreground", className),
|
|
1674
1730
|
...props
|
|
1675
1731
|
}
|
|
1676
1732
|
);
|
|
1677
1733
|
}
|
|
1678
1734
|
MosaicCardDescription.displayName = "MosaicCardDescription";
|
|
1679
1735
|
function MosaicCardContent({ className, ref, ...props }) {
|
|
1680
|
-
return /* @__PURE__ */ jsx("div", { ref, "data-slot": "card-content", className:
|
|
1736
|
+
return /* @__PURE__ */ jsx("div", { ref, "data-slot": "card-content", className: cn27("p-6 pt-0", className), ...props });
|
|
1681
1737
|
}
|
|
1682
1738
|
MosaicCardContent.displayName = "MosaicCardContent";
|
|
1683
1739
|
function MosaicCardFooter({ className, ref, ...props }) {
|
|
@@ -1686,7 +1742,7 @@ function MosaicCardFooter({ className, ref, ...props }) {
|
|
|
1686
1742
|
{
|
|
1687
1743
|
ref,
|
|
1688
1744
|
"data-slot": "card-footer",
|
|
1689
|
-
className:
|
|
1745
|
+
className: cn27("flex items-center p-6 pt-0", className),
|
|
1690
1746
|
...props
|
|
1691
1747
|
}
|
|
1692
1748
|
);
|
|
@@ -1715,7 +1771,7 @@ var badgeVariants = cva(
|
|
|
1715
1771
|
}
|
|
1716
1772
|
}
|
|
1717
1773
|
);
|
|
1718
|
-
function
|
|
1774
|
+
function cn28(...classes) {
|
|
1719
1775
|
return classes.filter(Boolean).join(" ");
|
|
1720
1776
|
}
|
|
1721
1777
|
function MosaicBadge({ className, variant, ref, ...props }) {
|
|
@@ -1724,13 +1780,13 @@ function MosaicBadge({ className, variant, ref, ...props }) {
|
|
|
1724
1780
|
{
|
|
1725
1781
|
ref,
|
|
1726
1782
|
"data-slot": "badge",
|
|
1727
|
-
className:
|
|
1783
|
+
className: cn28(badgeVariants({ variant }), className),
|
|
1728
1784
|
...props
|
|
1729
1785
|
}
|
|
1730
1786
|
);
|
|
1731
1787
|
}
|
|
1732
1788
|
MosaicBadge.displayName = "MosaicBadge";
|
|
1733
|
-
function
|
|
1789
|
+
function cn29(...classes) {
|
|
1734
1790
|
return classes.filter(Boolean).join(" ");
|
|
1735
1791
|
}
|
|
1736
1792
|
function MosaicAvatar({ src, alt, fallback, className, ref, ...props }) {
|
|
@@ -1739,7 +1795,7 @@ function MosaicAvatar({ src, alt, fallback, className, ref, ...props }) {
|
|
|
1739
1795
|
{
|
|
1740
1796
|
ref,
|
|
1741
1797
|
"data-slot": "avatar",
|
|
1742
|
-
className:
|
|
1798
|
+
className: cn29(
|
|
1743
1799
|
"relative flex size-10 shrink-0 overflow-hidden rounded-full",
|
|
1744
1800
|
"bg-muted text-muted-foreground",
|
|
1745
1801
|
className
|
|
@@ -1768,7 +1824,7 @@ function MosaicAvatar({ src, alt, fallback, className, ref, ...props }) {
|
|
|
1768
1824
|
);
|
|
1769
1825
|
}
|
|
1770
1826
|
MosaicAvatar.displayName = "MosaicAvatar";
|
|
1771
|
-
function
|
|
1827
|
+
function cn30(...classes) {
|
|
1772
1828
|
return classes.filter(Boolean).join(" ");
|
|
1773
1829
|
}
|
|
1774
1830
|
function MosaicInput({ className, ref, ...props }) {
|
|
@@ -1777,7 +1833,7 @@ function MosaicInput({ className, ref, ...props }) {
|
|
|
1777
1833
|
{
|
|
1778
1834
|
ref,
|
|
1779
1835
|
"data-slot": "input",
|
|
1780
|
-
className:
|
|
1836
|
+
className: cn30(
|
|
1781
1837
|
"flex h-9 w-full rounded-md border border-border bg-background px-3 py-1",
|
|
1782
1838
|
"text-sm text-foreground shadow-xs",
|
|
1783
1839
|
"placeholder:text-muted-foreground",
|
|
@@ -1791,7 +1847,7 @@ function MosaicInput({ className, ref, ...props }) {
|
|
|
1791
1847
|
);
|
|
1792
1848
|
}
|
|
1793
1849
|
MosaicInput.displayName = "MosaicInput";
|
|
1794
|
-
function
|
|
1850
|
+
function cn31(...classes) {
|
|
1795
1851
|
return classes.filter(Boolean).join(" ");
|
|
1796
1852
|
}
|
|
1797
1853
|
function MosaicInputGroup({
|
|
@@ -1807,7 +1863,7 @@ function MosaicInputGroup({
|
|
|
1807
1863
|
{
|
|
1808
1864
|
ref,
|
|
1809
1865
|
"data-slot": "input-group",
|
|
1810
|
-
className:
|
|
1866
|
+
className: cn31("flex items-center", className),
|
|
1811
1867
|
...props,
|
|
1812
1868
|
children: [
|
|
1813
1869
|
prefix ? /* @__PURE__ */ jsx(
|
|
@@ -1832,7 +1888,7 @@ function MosaicInputGroup({
|
|
|
1832
1888
|
);
|
|
1833
1889
|
}
|
|
1834
1890
|
MosaicInputGroup.displayName = "MosaicInputGroup";
|
|
1835
|
-
function
|
|
1891
|
+
function cn32(...classes) {
|
|
1836
1892
|
return classes.filter(Boolean).join(" ");
|
|
1837
1893
|
}
|
|
1838
1894
|
function MosaicFieldRoot({ className, children, ref, ...props }) {
|
|
@@ -1841,7 +1897,7 @@ function MosaicFieldRoot({ className, children, ref, ...props }) {
|
|
|
1841
1897
|
{
|
|
1842
1898
|
ref,
|
|
1843
1899
|
"data-slot": "field",
|
|
1844
|
-
className:
|
|
1900
|
+
className: cn32("flex flex-col gap-1.5", className),
|
|
1845
1901
|
...props,
|
|
1846
1902
|
children
|
|
1847
1903
|
}
|
|
@@ -1853,7 +1909,7 @@ function MosaicFieldLabel({ className, children, ref, ...props }) {
|
|
|
1853
1909
|
Field.Label,
|
|
1854
1910
|
{
|
|
1855
1911
|
ref,
|
|
1856
|
-
className:
|
|
1912
|
+
className: cn32(
|
|
1857
1913
|
"text-sm font-medium leading-none text-foreground",
|
|
1858
1914
|
"data-[disabled]:opacity-50",
|
|
1859
1915
|
className
|
|
@@ -1865,7 +1921,7 @@ function MosaicFieldLabel({ className, children, ref, ...props }) {
|
|
|
1865
1921
|
}
|
|
1866
1922
|
MosaicFieldLabel.displayName = "MosaicField.Label";
|
|
1867
1923
|
function MosaicFieldControl({ className, ref, ...props }) {
|
|
1868
|
-
return /* @__PURE__ */ jsx(Field.Control, { ref, className:
|
|
1924
|
+
return /* @__PURE__ */ jsx(Field.Control, { ref, className: cn32(className), ...props });
|
|
1869
1925
|
}
|
|
1870
1926
|
MosaicFieldControl.displayName = "MosaicField.Control";
|
|
1871
1927
|
function MosaicFieldDescription({
|
|
@@ -1878,7 +1934,7 @@ function MosaicFieldDescription({
|
|
|
1878
1934
|
Field.Description,
|
|
1879
1935
|
{
|
|
1880
1936
|
ref,
|
|
1881
|
-
className:
|
|
1937
|
+
className: cn32("text-xs text-muted-foreground", className),
|
|
1882
1938
|
...props,
|
|
1883
1939
|
children
|
|
1884
1940
|
}
|
|
@@ -1898,7 +1954,7 @@ function MosaicFieldError({
|
|
|
1898
1954
|
{
|
|
1899
1955
|
ref,
|
|
1900
1956
|
match: show === true ? true : void 0,
|
|
1901
|
-
className:
|
|
1957
|
+
className: cn32("text-xs font-medium text-destructive", className),
|
|
1902
1958
|
...props,
|
|
1903
1959
|
children
|
|
1904
1960
|
}
|
|
@@ -1911,7 +1967,7 @@ var MosaicField = Object.assign(MosaicFieldRoot, {
|
|
|
1911
1967
|
Description: MosaicFieldDescription,
|
|
1912
1968
|
Error: MosaicFieldError
|
|
1913
1969
|
});
|
|
1914
|
-
function
|
|
1970
|
+
function cn33(...classes) {
|
|
1915
1971
|
return classes.filter(Boolean).join(" ");
|
|
1916
1972
|
}
|
|
1917
1973
|
function MosaicSwitch({ className, ref, ...props }) {
|
|
@@ -1920,7 +1976,7 @@ function MosaicSwitch({ className, ref, ...props }) {
|
|
|
1920
1976
|
{
|
|
1921
1977
|
ref,
|
|
1922
1978
|
"data-slot": "switch",
|
|
1923
|
-
className:
|
|
1979
|
+
className: cn33(
|
|
1924
1980
|
// Track
|
|
1925
1981
|
"relative inline-flex h-6 w-10 shrink-0 cursor-pointer items-center",
|
|
1926
1982
|
"rounded-full border-2 border-transparent outline-none",
|
|
@@ -1938,7 +1994,7 @@ function MosaicSwitch({ className, ref, ...props }) {
|
|
|
1938
1994
|
Switch.Thumb,
|
|
1939
1995
|
{
|
|
1940
1996
|
"data-slot": "switch-thumb",
|
|
1941
|
-
className:
|
|
1997
|
+
className: cn33(
|
|
1942
1998
|
"pointer-events-none block h-4 w-4 rounded-full",
|
|
1943
1999
|
"bg-background shadow-sm",
|
|
1944
2000
|
"translate-x-0 transition-transform",
|
|
@@ -1950,7 +2006,7 @@ function MosaicSwitch({ className, ref, ...props }) {
|
|
|
1950
2006
|
);
|
|
1951
2007
|
}
|
|
1952
2008
|
MosaicSwitch.displayName = "MosaicSwitch";
|
|
1953
|
-
function
|
|
2009
|
+
function cn34(...classes) {
|
|
1954
2010
|
return classes.filter(Boolean).join(" ");
|
|
1955
2011
|
}
|
|
1956
2012
|
function MosaicSelect({
|
|
@@ -1982,7 +2038,7 @@ function MosaicSelect({
|
|
|
1982
2038
|
Select.Trigger,
|
|
1983
2039
|
{
|
|
1984
2040
|
"data-slot": "select",
|
|
1985
|
-
className:
|
|
2041
|
+
className: cn34(
|
|
1986
2042
|
"inline-flex h-9 w-full min-w-[8rem] items-center justify-between gap-2",
|
|
1987
2043
|
"rounded-md border border-border bg-background px-3 py-2",
|
|
1988
2044
|
"text-sm text-foreground shadow-xs outline-none",
|
|
@@ -2002,7 +2058,7 @@ function MosaicSelect({
|
|
|
2002
2058
|
Select.Popup,
|
|
2003
2059
|
{
|
|
2004
2060
|
"data-slot": "select-popup",
|
|
2005
|
-
className:
|
|
2061
|
+
className: cn34(
|
|
2006
2062
|
"z-50 min-w-[8rem] overflow-hidden rounded-md border border-border",
|
|
2007
2063
|
"bg-popover p-1 text-popover-foreground shadow-md",
|
|
2008
2064
|
"origin-[var(--transform-origin)]",
|
|
@@ -2016,7 +2072,7 @@ function MosaicSelect({
|
|
|
2016
2072
|
{
|
|
2017
2073
|
value: item.value,
|
|
2018
2074
|
disabled: item.disabled,
|
|
2019
|
-
className:
|
|
2075
|
+
className: cn34(
|
|
2020
2076
|
"relative flex cursor-pointer select-none items-center rounded-sm px-2 py-1.5",
|
|
2021
2077
|
"text-sm text-popover-foreground outline-none",
|
|
2022
2078
|
"data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground",
|
|
@@ -2070,7 +2126,7 @@ function CheckIcon() {
|
|
|
2070
2126
|
}
|
|
2071
2127
|
);
|
|
2072
2128
|
}
|
|
2073
|
-
function
|
|
2129
|
+
function cn35(...classes) {
|
|
2074
2130
|
return classes.filter(Boolean).join(" ");
|
|
2075
2131
|
}
|
|
2076
2132
|
function MosaicCombobox({
|
|
@@ -2099,12 +2155,12 @@ function MosaicCombobox({
|
|
|
2099
2155
|
name,
|
|
2100
2156
|
onInputValueChange: setInputValue,
|
|
2101
2157
|
autoHighlight: true,
|
|
2102
|
-
children: /* @__PURE__ */ jsxs("div", { "data-slot": "combobox", className:
|
|
2158
|
+
children: /* @__PURE__ */ jsxs("div", { "data-slot": "combobox", className: cn35("relative w-full", className), children: [
|
|
2103
2159
|
/* @__PURE__ */ jsx(
|
|
2104
2160
|
Combobox.Input,
|
|
2105
2161
|
{
|
|
2106
2162
|
placeholder,
|
|
2107
|
-
className:
|
|
2163
|
+
className: cn35(
|
|
2108
2164
|
"h-9 w-full rounded-md border border-border bg-background px-3 py-2",
|
|
2109
2165
|
"text-sm text-foreground shadow-xs outline-none",
|
|
2110
2166
|
"placeholder:text-muted-foreground",
|
|
@@ -2116,7 +2172,7 @@ function MosaicCombobox({
|
|
|
2116
2172
|
/* @__PURE__ */ jsx(Combobox.Portal, { children: /* @__PURE__ */ jsx(Combobox.Positioner, { sideOffset: 4, children: /* @__PURE__ */ jsx(
|
|
2117
2173
|
Combobox.Popup,
|
|
2118
2174
|
{
|
|
2119
|
-
className:
|
|
2175
|
+
className: cn35(
|
|
2120
2176
|
"z-50 min-w-[8rem] overflow-hidden rounded-md border border-border",
|
|
2121
2177
|
"bg-popover p-1 text-popover-foreground shadow-md",
|
|
2122
2178
|
"origin-[var(--transform-origin)]",
|
|
@@ -2131,7 +2187,7 @@ function MosaicCombobox({
|
|
|
2131
2187
|
{
|
|
2132
2188
|
value: item.value,
|
|
2133
2189
|
disabled: item.disabled,
|
|
2134
|
-
className:
|
|
2190
|
+
className: cn35(
|
|
2135
2191
|
"relative flex cursor-pointer select-none items-center rounded-sm px-2 py-1.5",
|
|
2136
2192
|
"text-sm text-popover-foreground outline-none",
|
|
2137
2193
|
"data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground",
|
|
@@ -2150,7 +2206,7 @@ function MosaicCombobox({
|
|
|
2150
2206
|
}
|
|
2151
2207
|
);
|
|
2152
2208
|
}
|
|
2153
|
-
function
|
|
2209
|
+
function cn36(...classes) {
|
|
2154
2210
|
return classes.filter(Boolean).join(" ");
|
|
2155
2211
|
}
|
|
2156
2212
|
function MosaicDropdownMenu({
|
|
@@ -2167,7 +2223,7 @@ function MosaicDropdownMenu({
|
|
|
2167
2223
|
Menu.Popup,
|
|
2168
2224
|
{
|
|
2169
2225
|
"data-slot": "dropdown-menu",
|
|
2170
|
-
className:
|
|
2226
|
+
className: cn36(
|
|
2171
2227
|
"z-50 min-w-[8rem] overflow-hidden rounded-md border border-border",
|
|
2172
2228
|
"bg-popover p-1 text-popover-foreground shadow-md",
|
|
2173
2229
|
"origin-[var(--transform-origin)]",
|
|
@@ -2184,7 +2240,7 @@ function MosaicDropdownMenu({
|
|
|
2184
2240
|
{
|
|
2185
2241
|
disabled: item.disabled,
|
|
2186
2242
|
onClick: () => onItemSelect?.(item.id),
|
|
2187
|
-
className:
|
|
2243
|
+
className: cn36(
|
|
2188
2244
|
"relative flex cursor-pointer select-none items-center rounded-sm px-2 py-1.5",
|
|
2189
2245
|
"text-sm text-popover-foreground outline-none",
|
|
2190
2246
|
"data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground",
|
|
@@ -2326,7 +2382,7 @@ function useDevice() {
|
|
|
2326
2382
|
}
|
|
2327
2383
|
return ctx;
|
|
2328
2384
|
}
|
|
2329
|
-
function
|
|
2385
|
+
function cn37(...classes) {
|
|
2330
2386
|
return classes.filter(Boolean).join(" ");
|
|
2331
2387
|
}
|
|
2332
2388
|
function MosaicAdaptiveGrid({
|
|
@@ -2345,14 +2401,14 @@ function MosaicAdaptiveGrid({
|
|
|
2345
2401
|
{
|
|
2346
2402
|
ref,
|
|
2347
2403
|
"data-slot": "adaptive-grid",
|
|
2348
|
-
className:
|
|
2404
|
+
className: cn37("grid", gap, className),
|
|
2349
2405
|
style: { gridTemplateColumns: `repeat(${cols}, minmax(0, 1fr))` },
|
|
2350
2406
|
children
|
|
2351
2407
|
}
|
|
2352
2408
|
);
|
|
2353
2409
|
}
|
|
2354
2410
|
MosaicAdaptiveGrid.displayName = "MosaicAdaptiveGrid";
|
|
2355
|
-
function
|
|
2411
|
+
function cn38(...classes) {
|
|
2356
2412
|
return classes.filter(Boolean).join(" ");
|
|
2357
2413
|
}
|
|
2358
2414
|
var ANIM_ID = "mosaic-adaptive-modal-kf";
|
|
@@ -2457,7 +2513,7 @@ function MosaicAdaptiveModal({
|
|
|
2457
2513
|
children: /* @__PURE__ */ jsxs(
|
|
2458
2514
|
"div",
|
|
2459
2515
|
{
|
|
2460
|
-
className:
|
|
2516
|
+
className: cn38(
|
|
2461
2517
|
"mosaic-sheet-panel relative w-full rounded-t-2xl border-t border-border bg-background",
|
|
2462
2518
|
"max-h-[90dvh] flex flex-col",
|
|
2463
2519
|
className
|
|
@@ -2490,7 +2546,7 @@ function MosaicAdaptiveModal({
|
|
|
2490
2546
|
children: /* @__PURE__ */ jsxs(
|
|
2491
2547
|
"div",
|
|
2492
2548
|
{
|
|
2493
|
-
className:
|
|
2549
|
+
className: cn38(
|
|
2494
2550
|
"mosaic-modal-panel relative w-[min(90vw,42rem)] rounded-xl border border-border bg-background shadow-xl",
|
|
2495
2551
|
"max-h-[90vh] flex flex-col",
|
|
2496
2552
|
className
|
|
@@ -2538,7 +2594,7 @@ function MosaicAdaptiveModal({
|
|
|
2538
2594
|
);
|
|
2539
2595
|
}
|
|
2540
2596
|
MosaicAdaptiveModal.displayName = "MosaicAdaptiveModal";
|
|
2541
|
-
function
|
|
2597
|
+
function cn39(...classes) {
|
|
2542
2598
|
return classes.filter(Boolean).join(" ");
|
|
2543
2599
|
}
|
|
2544
2600
|
function CheckIcon2() {
|
|
@@ -2595,7 +2651,7 @@ function MosaicAdaptiveNavigation({
|
|
|
2595
2651
|
{
|
|
2596
2652
|
ref,
|
|
2597
2653
|
"data-slot": "adaptive-navigation",
|
|
2598
|
-
className:
|
|
2654
|
+
className: cn39("space-y-3", className),
|
|
2599
2655
|
"aria-label": "Step navigation",
|
|
2600
2656
|
children: items.map((item, idx) => {
|
|
2601
2657
|
const isExpanded = expandedItems?.has(item.id) ?? false;
|
|
@@ -2613,7 +2669,7 @@ function MosaicAdaptiveNavigation({
|
|
|
2613
2669
|
/* @__PURE__ */ jsx(
|
|
2614
2670
|
"div",
|
|
2615
2671
|
{
|
|
2616
|
-
className:
|
|
2672
|
+
className: cn39(
|
|
2617
2673
|
"flex h-8 w-8 shrink-0 items-center justify-center rounded-full text-xs font-bold",
|
|
2618
2674
|
item.isComplete ? "bg-green-500 text-white" : "bg-muted text-muted-foreground"
|
|
2619
2675
|
),
|
|
@@ -2647,7 +2703,7 @@ function MosaicAdaptiveNavigation({
|
|
|
2647
2703
|
{
|
|
2648
2704
|
ref,
|
|
2649
2705
|
"data-slot": "adaptive-navigation",
|
|
2650
|
-
className:
|
|
2706
|
+
className: cn39("w-full", className),
|
|
2651
2707
|
"aria-label": "Tab navigation",
|
|
2652
2708
|
children: /* @__PURE__ */ jsx(
|
|
2653
2709
|
"div",
|
|
@@ -2664,7 +2720,7 @@ function MosaicAdaptiveNavigation({
|
|
|
2664
2720
|
role: "tab",
|
|
2665
2721
|
"aria-selected": isActive,
|
|
2666
2722
|
onClick: () => onItemChange(item.id),
|
|
2667
|
-
className:
|
|
2723
|
+
className: cn39(
|
|
2668
2724
|
"flex items-center justify-center gap-2 rounded-md px-3 py-2 text-sm font-medium transition-colors",
|
|
2669
2725
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1",
|
|
2670
2726
|
isActive ? "bg-primary text-primary-foreground shadow-sm" : "text-muted-foreground hover:text-foreground"
|
|
@@ -2673,7 +2729,7 @@ function MosaicAdaptiveNavigation({
|
|
|
2673
2729
|
/* @__PURE__ */ jsx(
|
|
2674
2730
|
"div",
|
|
2675
2731
|
{
|
|
2676
|
-
className:
|
|
2732
|
+
className: cn39(
|
|
2677
2733
|
"flex h-6 w-6 shrink-0 items-center justify-center rounded-full text-xs font-bold",
|
|
2678
2734
|
item.isComplete ? "bg-green-500 text-white" : isActive ? "bg-primary-foreground/20 text-primary-foreground" : "bg-background text-muted-foreground"
|
|
2679
2735
|
),
|
|
@@ -2685,7 +2741,7 @@ function MosaicAdaptiveNavigation({
|
|
|
2685
2741
|
item.duration !== void 0 && /* @__PURE__ */ jsxs(
|
|
2686
2742
|
"span",
|
|
2687
2743
|
{
|
|
2688
|
-
className:
|
|
2744
|
+
className: cn39(
|
|
2689
2745
|
"rounded px-1 py-0.5 text-xs",
|
|
2690
2746
|
isActive ? "bg-primary-foreground/20" : "bg-muted"
|
|
2691
2747
|
),
|
|
@@ -2706,7 +2762,7 @@ function MosaicAdaptiveNavigation({
|
|
|
2706
2762
|
);
|
|
2707
2763
|
}
|
|
2708
2764
|
MosaicAdaptiveNavigation.displayName = "MosaicAdaptiveNavigation";
|
|
2709
|
-
function
|
|
2765
|
+
function cn40(...classes) {
|
|
2710
2766
|
return classes.filter(Boolean).join(" ");
|
|
2711
2767
|
}
|
|
2712
2768
|
var ANIM_ID2 = "mosaic-sidebar-kf";
|
|
@@ -2876,7 +2932,7 @@ function MosaicAppSidebar({
|
|
|
2876
2932
|
{
|
|
2877
2933
|
ref,
|
|
2878
2934
|
"data-slot": "app-sidebar",
|
|
2879
|
-
className:
|
|
2935
|
+
className: cn40(
|
|
2880
2936
|
"flex h-full flex-col bg-sidebar border-r border-sidebar-border",
|
|
2881
2937
|
isMobile && "border-r-0",
|
|
2882
2938
|
className
|
|
@@ -2896,7 +2952,7 @@ function MosaicAppSidebar({
|
|
|
2896
2952
|
type: "button",
|
|
2897
2953
|
onClick: onToggleCollapse,
|
|
2898
2954
|
"aria-label": isCollapsed ? "Expand sidebar" : "Collapse sidebar",
|
|
2899
|
-
className:
|
|
2955
|
+
className: cn40(
|
|
2900
2956
|
"flex h-9 w-9 items-center justify-center rounded-lg transition-colors",
|
|
2901
2957
|
"hover:bg-sidebar-accent text-sidebar-foreground",
|
|
2902
2958
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -2926,7 +2982,7 @@ function MosaicAppSidebar({
|
|
|
2926
2982
|
},
|
|
2927
2983
|
"aria-current": isActive ? "page" : void 0,
|
|
2928
2984
|
"aria-expanded": hasSubmenu && !isCollapsed ? isExpanded : void 0,
|
|
2929
|
-
className:
|
|
2985
|
+
className: cn40(
|
|
2930
2986
|
"group flex w-full min-h-[44px] items-center rounded-lg p-3 transition-colors",
|
|
2931
2987
|
"hover:bg-sidebar-accent",
|
|
2932
2988
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -2953,7 +3009,7 @@ function MosaicAppSidebar({
|
|
|
2953
3009
|
type: "button",
|
|
2954
3010
|
onClick: () => handleNavClick(sub.href),
|
|
2955
3011
|
"aria-current": isSubActive ? "page" : void 0,
|
|
2956
|
-
className:
|
|
3012
|
+
className: cn40(
|
|
2957
3013
|
"flex w-full min-h-[40px] items-center gap-3 rounded-lg px-3 py-2 text-sm transition-colors",
|
|
2958
3014
|
"hover:bg-sidebar-accent/50 text-sidebar-foreground",
|
|
2959
3015
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -2976,7 +3032,7 @@ function MosaicAppSidebar({
|
|
|
2976
3032
|
{
|
|
2977
3033
|
type: "button",
|
|
2978
3034
|
onClick: action.onClick,
|
|
2979
|
-
className:
|
|
3035
|
+
className: cn40(
|
|
2980
3036
|
"flex w-full min-h-[44px] items-center gap-3 rounded-lg px-3 py-2 text-sm font-medium",
|
|
2981
3037
|
"text-sidebar-foreground transition-colors hover:bg-sidebar-accent",
|
|
2982
3038
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -3023,7 +3079,7 @@ function MosaicAppSidebar({
|
|
|
3023
3079
|
);
|
|
3024
3080
|
}
|
|
3025
3081
|
MosaicAppSidebar.displayName = "MosaicAppSidebar";
|
|
3026
|
-
function
|
|
3082
|
+
function cn41(...classes) {
|
|
3027
3083
|
return classes.filter(Boolean).join(" ");
|
|
3028
3084
|
}
|
|
3029
3085
|
var ANIM_ID3 = "mosaic-dashboard-kf";
|
|
@@ -3113,7 +3169,7 @@ function MosaicDashboardLayout({
|
|
|
3113
3169
|
{
|
|
3114
3170
|
ref,
|
|
3115
3171
|
"data-slot": "dashboard-layout",
|
|
3116
|
-
className:
|
|
3172
|
+
className: cn41("flex h-screen w-full bg-background", className),
|
|
3117
3173
|
children: [
|
|
3118
3174
|
!isMobile && /* @__PURE__ */ jsx(
|
|
3119
3175
|
MosaicAppSidebar,
|
|
@@ -3137,7 +3193,7 @@ function MosaicDashboardLayout({
|
|
|
3137
3193
|
type: "button",
|
|
3138
3194
|
"aria-label": "Open navigation",
|
|
3139
3195
|
onClick: () => setIsMobileSidebarOpen(true),
|
|
3140
|
-
className:
|
|
3196
|
+
className: cn41(
|
|
3141
3197
|
"flex h-11 w-11 shrink-0 items-center justify-center rounded-lg",
|
|
3142
3198
|
"text-foreground transition-colors hover:bg-muted",
|
|
3143
3199
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -3189,7 +3245,7 @@ function MosaicDashboardLayout({
|
|
|
3189
3245
|
);
|
|
3190
3246
|
}
|
|
3191
3247
|
MosaicDashboardLayout.displayName = "MosaicDashboardLayout";
|
|
3192
|
-
function
|
|
3248
|
+
function cn42(...classes) {
|
|
3193
3249
|
return classes.filter(Boolean).join(" ");
|
|
3194
3250
|
}
|
|
3195
3251
|
var ANIM_ID4 = "mosaic-quick-action-kf";
|
|
@@ -3244,7 +3300,7 @@ function MosaicQuickActionCard({
|
|
|
3244
3300
|
{
|
|
3245
3301
|
ref,
|
|
3246
3302
|
"data-slot": "quick-action-card",
|
|
3247
|
-
className:
|
|
3303
|
+
className: cn42("rounded-xl border border-border bg-card", className),
|
|
3248
3304
|
children: [
|
|
3249
3305
|
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 }) }),
|
|
3250
3306
|
/* @__PURE__ */ jsx(
|
|
@@ -3269,7 +3325,7 @@ function MosaicQuickActionCard({
|
|
|
3269
3325
|
/* @__PURE__ */ jsxs(
|
|
3270
3326
|
"div",
|
|
3271
3327
|
{
|
|
3272
|
-
className:
|
|
3328
|
+
className: cn42(
|
|
3273
3329
|
"flex min-h-[100px] cursor-pointer flex-col items-center justify-center gap-2 rounded-xl border p-4",
|
|
3274
3330
|
"transition-transform duration-150 hover:scale-105 active:scale-[0.98]",
|
|
3275
3331
|
accentClass
|
|
@@ -3302,7 +3358,7 @@ function MosaicQuickActionCard({
|
|
|
3302
3358
|
);
|
|
3303
3359
|
}
|
|
3304
3360
|
MosaicQuickActionCard.displayName = "MosaicQuickActionCard";
|
|
3305
|
-
function
|
|
3361
|
+
function cn43(...classes) {
|
|
3306
3362
|
return classes.filter(Boolean).join(" ");
|
|
3307
3363
|
}
|
|
3308
3364
|
var ANIM_ID5 = "mosaic-activity-feed-kf";
|
|
@@ -3391,7 +3447,7 @@ function MosaicActivityItem({ activity, icon, className }) {
|
|
|
3391
3447
|
"div",
|
|
3392
3448
|
{
|
|
3393
3449
|
"data-slot": "activity-item",
|
|
3394
|
-
className:
|
|
3450
|
+
className: cn43(
|
|
3395
3451
|
"flex cursor-pointer items-start gap-4 rounded-lg p-3 transition-colors hover:bg-muted/50",
|
|
3396
3452
|
className
|
|
3397
3453
|
),
|
|
@@ -3425,7 +3481,7 @@ function MosaicActivityItem({ activity, icon, className }) {
|
|
|
3425
3481
|
/* @__PURE__ */ jsx(
|
|
3426
3482
|
"span",
|
|
3427
3483
|
{
|
|
3428
|
-
className:
|
|
3484
|
+
className: cn43(
|
|
3429
3485
|
"rounded-full px-2 py-0.5 text-xs font-medium",
|
|
3430
3486
|
getStatusClass(activity.status)
|
|
3431
3487
|
),
|
|
@@ -3466,7 +3522,7 @@ function MosaicActivityFeed({
|
|
|
3466
3522
|
{
|
|
3467
3523
|
ref,
|
|
3468
3524
|
"data-slot": "activity-feed",
|
|
3469
|
-
className:
|
|
3525
|
+
className: cn43("rounded-xl border border-border bg-card", className),
|
|
3470
3526
|
children: [
|
|
3471
3527
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between border-b border-border px-6 py-4", children: [
|
|
3472
3528
|
/* @__PURE__ */ jsx("h3", { className: "text-lg font-semibold text-foreground", children: heading }),
|
|
@@ -3492,7 +3548,7 @@ function MosaicActivityFeed({
|
|
|
3492
3548
|
);
|
|
3493
3549
|
}
|
|
3494
3550
|
MosaicActivityFeed.displayName = "MosaicActivityFeed";
|
|
3495
|
-
function
|
|
3551
|
+
function cn44(...classes) {
|
|
3496
3552
|
return classes.filter(Boolean).join(" ");
|
|
3497
3553
|
}
|
|
3498
3554
|
function SparklesIcon() {
|
|
@@ -3701,7 +3757,7 @@ function MosaicAgentComposerDesktop({
|
|
|
3701
3757
|
value: agentName,
|
|
3702
3758
|
onChange: (e) => onAgentNameChange(e.target.value),
|
|
3703
3759
|
placeholder: "Enter agent name\u2026",
|
|
3704
|
-
className:
|
|
3760
|
+
className: cn44(
|
|
3705
3761
|
"flex min-h-[48px] w-full rounded-lg border border-input bg-transparent px-3 py-2 text-sm",
|
|
3706
3762
|
"placeholder:text-muted-foreground",
|
|
3707
3763
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -3802,7 +3858,7 @@ function MosaicAgentComposerDesktop({
|
|
|
3802
3858
|
onChange: (e) => onCustomInstructionsChange(e.target.value),
|
|
3803
3859
|
placeholder: "Add any specific instructions or behaviors\u2026",
|
|
3804
3860
|
rows: 5,
|
|
3805
|
-
className:
|
|
3861
|
+
className: cn44(
|
|
3806
3862
|
"flex w-full resize-y rounded-lg border border-input bg-transparent px-3 py-2 text-sm",
|
|
3807
3863
|
"placeholder:text-muted-foreground",
|
|
3808
3864
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -3870,7 +3926,7 @@ function MosaicAgentComposerDesktop({
|
|
|
3870
3926
|
/* @__PURE__ */ jsx(SparklesIcon, {}),
|
|
3871
3927
|
/* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: "Select all modules to see preview" })
|
|
3872
3928
|
] }) }),
|
|
3873
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
3929
|
+
/* @__PURE__ */ jsxs("div", { className: cn44("flex gap-2", isEditMode && onCancel ? "flex-row" : "flex-col"), children: [
|
|
3874
3930
|
isEditMode && onCancel && /* @__PURE__ */ jsx(
|
|
3875
3931
|
"button",
|
|
3876
3932
|
{
|
|
@@ -3886,7 +3942,7 @@ function MosaicAgentComposerDesktop({
|
|
|
3886
3942
|
type: "button",
|
|
3887
3943
|
onClick: onSave,
|
|
3888
3944
|
disabled: !canSave,
|
|
3889
|
-
className:
|
|
3945
|
+
className: cn44(
|
|
3890
3946
|
"flex min-h-[48px] items-center justify-center gap-2 rounded-lg text-sm font-medium transition-colors",
|
|
3891
3947
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
3892
3948
|
"bg-primary text-primary-foreground hover:bg-primary/90",
|
|
@@ -3907,7 +3963,7 @@ function MosaicAgentComposerDesktop({
|
|
|
3907
3963
|
] });
|
|
3908
3964
|
}
|
|
3909
3965
|
MosaicAgentComposerDesktop.displayName = "MosaicAgentComposerDesktop";
|
|
3910
|
-
function
|
|
3966
|
+
function cn45(...classes) {
|
|
3911
3967
|
return classes.filter(Boolean).join(" ");
|
|
3912
3968
|
}
|
|
3913
3969
|
function SparklesIcon2() {
|
|
@@ -4163,7 +4219,7 @@ function MosaicAgentComposerMobile({
|
|
|
4163
4219
|
disabled: isLoading,
|
|
4164
4220
|
"aria-required": "true",
|
|
4165
4221
|
"aria-invalid": canSave && !agentName ? "true" : "false",
|
|
4166
|
-
className:
|
|
4222
|
+
className: cn45(
|
|
4167
4223
|
"flex min-h-[48px] w-full rounded-lg border border-input bg-transparent px-3 py-2 text-sm",
|
|
4168
4224
|
"placeholder:text-muted-foreground",
|
|
4169
4225
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -4267,7 +4323,7 @@ function MosaicAgentComposerMobile({
|
|
|
4267
4323
|
disabled: isLoading,
|
|
4268
4324
|
"aria-describedby": `${instructionsId}-help`,
|
|
4269
4325
|
rows: 4,
|
|
4270
|
-
className:
|
|
4326
|
+
className: cn45(
|
|
4271
4327
|
"flex w-full resize-y rounded-lg border border-input bg-transparent px-3 py-2 text-sm",
|
|
4272
4328
|
"placeholder:text-muted-foreground",
|
|
4273
4329
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -4323,7 +4379,7 @@ function MosaicAgentComposer(props) {
|
|
|
4323
4379
|
return isMobile ? /* @__PURE__ */ jsx(MosaicAgentComposerMobile, { ...props }) : /* @__PURE__ */ jsx(MosaicAgentComposerDesktop, { ...props });
|
|
4324
4380
|
}
|
|
4325
4381
|
MosaicAgentComposer.displayName = "MosaicAgentComposer";
|
|
4326
|
-
function
|
|
4382
|
+
function cn46(...classes) {
|
|
4327
4383
|
return classes.filter(Boolean).join(" ");
|
|
4328
4384
|
}
|
|
4329
4385
|
function EditIcon() {
|
|
@@ -4381,7 +4437,7 @@ function MosaicModuleCard({
|
|
|
4381
4437
|
{
|
|
4382
4438
|
ref,
|
|
4383
4439
|
"data-slot": "module-card",
|
|
4384
|
-
className:
|
|
4440
|
+
className: cn46(
|
|
4385
4441
|
"min-h-[80px] rounded-xl border border-border bg-card p-4 transition-all",
|
|
4386
4442
|
"flex items-start gap-3",
|
|
4387
4443
|
isSelected && "ring-2 ring-primary bg-primary/5",
|
|
@@ -4443,7 +4499,7 @@ function MosaicThemeProvider({
|
|
|
4443
4499
|
return /* @__PURE__ */ jsx("div", { "data-slot": "theme-provider", children });
|
|
4444
4500
|
}
|
|
4445
4501
|
MosaicThemeProvider.displayName = "MosaicThemeProvider";
|
|
4446
|
-
function
|
|
4502
|
+
function cn47(...classes) {
|
|
4447
4503
|
return classes.filter(Boolean).join(" ");
|
|
4448
4504
|
}
|
|
4449
4505
|
var ANIM_ID6 = "mosaic-delete-dialog-kf";
|
|
@@ -4497,14 +4553,14 @@ function MosaicDeleteConfirmationDialog({
|
|
|
4497
4553
|
/* @__PURE__ */ jsx(
|
|
4498
4554
|
AlertDialog.Backdrop,
|
|
4499
4555
|
{
|
|
4500
|
-
className:
|
|
4556
|
+
className: cn47("mosaic-delete-overlay", "fixed inset-0 z-50 bg-black/50")
|
|
4501
4557
|
}
|
|
4502
4558
|
),
|
|
4503
4559
|
/* @__PURE__ */ jsxs(
|
|
4504
4560
|
AlertDialog.Popup,
|
|
4505
4561
|
{
|
|
4506
4562
|
"data-slot": "delete-confirmation-dialog",
|
|
4507
|
-
className:
|
|
4563
|
+
className: cn47(
|
|
4508
4564
|
"mosaic-delete-content",
|
|
4509
4565
|
"fixed left-1/2 top-1/2 z-50",
|
|
4510
4566
|
"w-full max-w-[92vw] sm:max-w-md",
|
|
@@ -4517,7 +4573,7 @@ function MosaicDeleteConfirmationDialog({
|
|
|
4517
4573
|
/* @__PURE__ */ jsx(
|
|
4518
4574
|
AlertDialog.Close,
|
|
4519
4575
|
{
|
|
4520
|
-
className:
|
|
4576
|
+
className: cn47(
|
|
4521
4577
|
"inline-flex min-h-[44px] w-full items-center justify-center rounded-md border border-border",
|
|
4522
4578
|
"bg-background px-4 py-2 text-sm font-medium text-foreground",
|
|
4523
4579
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -4531,7 +4587,7 @@ function MosaicDeleteConfirmationDialog({
|
|
|
4531
4587
|
AlertDialog.Close,
|
|
4532
4588
|
{
|
|
4533
4589
|
onClick: onConfirm,
|
|
4534
|
-
className:
|
|
4590
|
+
className: cn47(
|
|
4535
4591
|
"inline-flex min-h-[44px] w-full items-center justify-center rounded-md",
|
|
4536
4592
|
"bg-destructive px-4 py-2 text-sm font-medium text-destructive-foreground",
|
|
4537
4593
|
"hover:bg-destructive/90",
|
|
@@ -4548,7 +4604,7 @@ function MosaicDeleteConfirmationDialog({
|
|
|
4548
4604
|
] }) });
|
|
4549
4605
|
}
|
|
4550
4606
|
MosaicDeleteConfirmationDialog.displayName = "MosaicDeleteConfirmationDialog";
|
|
4551
|
-
function
|
|
4607
|
+
function cn48(...classes) {
|
|
4552
4608
|
return classes.filter(Boolean).join(" ");
|
|
4553
4609
|
}
|
|
4554
4610
|
function Toggle({
|
|
@@ -4564,7 +4620,7 @@ function Toggle({
|
|
|
4564
4620
|
id,
|
|
4565
4621
|
"aria-checked": checked,
|
|
4566
4622
|
onClick: () => onChange(!checked),
|
|
4567
|
-
className:
|
|
4623
|
+
className: cn48(
|
|
4568
4624
|
"relative inline-flex h-6 w-11 shrink-0 cursor-pointer rounded-full border-2 border-transparent",
|
|
4569
4625
|
"transition-colors duration-200 ease-in-out",
|
|
4570
4626
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
@@ -4573,7 +4629,7 @@ function Toggle({
|
|
|
4573
4629
|
children: /* @__PURE__ */ jsx(
|
|
4574
4630
|
"span",
|
|
4575
4631
|
{
|
|
4576
|
-
className:
|
|
4632
|
+
className: cn48(
|
|
4577
4633
|
"pointer-events-none inline-block h-5 w-5 rounded-full bg-background shadow-lg",
|
|
4578
4634
|
"transform transition duration-200 ease-in-out",
|
|
4579
4635
|
checked ? "translate-x-5" : "translate-x-0"
|
|
@@ -4595,7 +4651,7 @@ function NativeSelect({
|
|
|
4595
4651
|
id,
|
|
4596
4652
|
value,
|
|
4597
4653
|
onChange: (e) => onChange(e.target.value),
|
|
4598
|
-
className:
|
|
4654
|
+
className: cn48(
|
|
4599
4655
|
"flex min-h-[48px] w-full rounded-md border border-input bg-background px-3 py-2",
|
|
4600
4656
|
"text-sm text-foreground",
|
|
4601
4657
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -4614,7 +4670,7 @@ function MosaicPreferencesPanel({
|
|
|
4614
4670
|
className
|
|
4615
4671
|
}) {
|
|
4616
4672
|
const { isMobile } = useDevice();
|
|
4617
|
-
return /* @__PURE__ */ jsxs("div", { "data-slot": "preferences-panel", className:
|
|
4673
|
+
return /* @__PURE__ */ jsxs("div", { "data-slot": "preferences-panel", className: cn48("space-y-4 md:space-y-6", className), children: [
|
|
4618
4674
|
groups.map((group) => /* @__PURE__ */ jsxs(
|
|
4619
4675
|
"div",
|
|
4620
4676
|
{
|
|
@@ -4657,13 +4713,13 @@ function MosaicPreferencesPanel({
|
|
|
4657
4713
|
},
|
|
4658
4714
|
group.id
|
|
4659
4715
|
)),
|
|
4660
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
4716
|
+
/* @__PURE__ */ jsx("div", { className: cn48("flex", isMobile ? "flex-col" : "justify-end"), children: /* @__PURE__ */ jsxs(
|
|
4661
4717
|
"button",
|
|
4662
4718
|
{
|
|
4663
4719
|
type: "button",
|
|
4664
4720
|
onClick: onSave,
|
|
4665
4721
|
disabled: isSaving,
|
|
4666
|
-
className:
|
|
4722
|
+
className: cn48(
|
|
4667
4723
|
"inline-flex min-h-[44px] items-center justify-center gap-2 rounded-md",
|
|
4668
4724
|
"bg-primary px-4 py-2 text-sm font-medium text-primary-foreground",
|
|
4669
4725
|
"hover:bg-primary/90",
|
|
@@ -4699,7 +4755,7 @@ function MosaicPreferencesPanel({
|
|
|
4699
4755
|
] });
|
|
4700
4756
|
}
|
|
4701
4757
|
MosaicPreferencesPanel.displayName = "MosaicPreferencesPanel";
|
|
4702
|
-
function
|
|
4758
|
+
function cn49(...classes) {
|
|
4703
4759
|
return classes.filter(Boolean).join(" ");
|
|
4704
4760
|
}
|
|
4705
4761
|
function AvatarDisplay({
|
|
@@ -4712,7 +4768,7 @@ function AvatarDisplay({
|
|
|
4712
4768
|
return /* @__PURE__ */ jsx(
|
|
4713
4769
|
"span",
|
|
4714
4770
|
{
|
|
4715
|
-
className:
|
|
4771
|
+
className: cn49(
|
|
4716
4772
|
"inline-flex shrink-0 items-center justify-center rounded-full bg-muted text-muted-foreground font-semibold overflow-hidden",
|
|
4717
4773
|
sizeClass
|
|
4718
4774
|
),
|
|
@@ -4734,7 +4790,7 @@ function MosaicProfilePanel({
|
|
|
4734
4790
|
className
|
|
4735
4791
|
}) {
|
|
4736
4792
|
const { isMobile } = useDevice();
|
|
4737
|
-
return /* @__PURE__ */ jsxs("div", { "data-slot": "profile-panel", className:
|
|
4793
|
+
return /* @__PURE__ */ jsxs("div", { "data-slot": "profile-panel", className: cn49("space-y-4 md:space-y-6", className), children: [
|
|
4738
4794
|
/* @__PURE__ */ jsxs("div", { className: "rounded-lg border border-border bg-card text-card-foreground shadow-sm", children: [
|
|
4739
4795
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-col space-y-1.5 p-6", children: [
|
|
4740
4796
|
/* @__PURE__ */ jsx("h3", { className: "text-lg font-semibold leading-none tracking-tight md:text-xl", children: "Profile Picture" }),
|
|
@@ -4754,7 +4810,7 @@ function MosaicProfilePanel({
|
|
|
4754
4810
|
{
|
|
4755
4811
|
type: "button",
|
|
4756
4812
|
onClick: onAvatarUpload,
|
|
4757
|
-
className:
|
|
4813
|
+
className: cn49(
|
|
4758
4814
|
"inline-flex min-h-[44px] items-center justify-center gap-2 rounded-md border border-border",
|
|
4759
4815
|
"bg-background px-4 py-2 text-sm font-medium text-foreground",
|
|
4760
4816
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -4804,7 +4860,7 @@ function MosaicProfilePanel({
|
|
|
4804
4860
|
placeholder: field.placeholder,
|
|
4805
4861
|
onChange: (e) => onFieldChange?.(field.id, e.target.value),
|
|
4806
4862
|
rows: 4,
|
|
4807
|
-
className:
|
|
4863
|
+
className: cn49(
|
|
4808
4864
|
"flex min-h-[120px] w-full rounded-md border border-input bg-background px-3 py-2",
|
|
4809
4865
|
"text-sm text-foreground placeholder:text-muted-foreground",
|
|
4810
4866
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -4820,7 +4876,7 @@ function MosaicProfilePanel({
|
|
|
4820
4876
|
readOnly: field.readOnly,
|
|
4821
4877
|
placeholder: field.placeholder,
|
|
4822
4878
|
onChange: (e) => onFieldChange?.(field.id, e.target.value),
|
|
4823
|
-
className:
|
|
4879
|
+
className: cn49(
|
|
4824
4880
|
"flex min-h-[48px] w-full rounded-md border border-input bg-background px-3 py-2",
|
|
4825
4881
|
"text-sm text-foreground placeholder:text-muted-foreground",
|
|
4826
4882
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -4840,7 +4896,7 @@ function MosaicProfilePanel({
|
|
|
4840
4896
|
{
|
|
4841
4897
|
type: "button",
|
|
4842
4898
|
onClick: onChangePassword,
|
|
4843
|
-
className:
|
|
4899
|
+
className: cn49(
|
|
4844
4900
|
"inline-flex min-h-[44px] items-center justify-center rounded-md border border-border",
|
|
4845
4901
|
"bg-background px-4 py-2 text-sm font-medium text-foreground",
|
|
4846
4902
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -4852,13 +4908,13 @@ function MosaicProfilePanel({
|
|
|
4852
4908
|
) })
|
|
4853
4909
|
] }),
|
|
4854
4910
|
extraSections,
|
|
4855
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
4911
|
+
/* @__PURE__ */ jsx("div", { className: cn49("flex", isMobile ? "flex-col" : "justify-end"), children: /* @__PURE__ */ jsxs(
|
|
4856
4912
|
"button",
|
|
4857
4913
|
{
|
|
4858
4914
|
type: "button",
|
|
4859
4915
|
onClick: onSave,
|
|
4860
4916
|
disabled: isSaving,
|
|
4861
|
-
className:
|
|
4917
|
+
className: cn49(
|
|
4862
4918
|
"inline-flex min-h-[44px] items-center justify-center gap-2 rounded-md",
|
|
4863
4919
|
"bg-primary px-4 py-2 text-sm font-medium text-primary-foreground",
|
|
4864
4920
|
"hover:bg-primary/90",
|
|
@@ -4894,7 +4950,7 @@ function MosaicProfilePanel({
|
|
|
4894
4950
|
] });
|
|
4895
4951
|
}
|
|
4896
4952
|
MosaicProfilePanel.displayName = "MosaicProfilePanel";
|
|
4897
|
-
function
|
|
4953
|
+
function cn50(...classes) {
|
|
4898
4954
|
return classes.filter(Boolean).join(" ");
|
|
4899
4955
|
}
|
|
4900
4956
|
var ANIM_ID7 = "mosaic-main-nav-kf";
|
|
@@ -5002,7 +5058,7 @@ function MosaicMainNav({
|
|
|
5002
5058
|
{
|
|
5003
5059
|
type: "button",
|
|
5004
5060
|
onClick: () => setIsOpen(!isOpen),
|
|
5005
|
-
className:
|
|
5061
|
+
className: cn50(
|
|
5006
5062
|
"inline-flex min-h-[44px] min-w-[44px] items-center justify-center rounded-md p-0",
|
|
5007
5063
|
"text-foreground hover:bg-accent hover:text-accent-foreground",
|
|
5008
5064
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -5028,7 +5084,7 @@ function MosaicMainNav({
|
|
|
5028
5084
|
"aria-label": "Navigation",
|
|
5029
5085
|
open: isOpen,
|
|
5030
5086
|
"data-open": isOpen ? "true" : "false",
|
|
5031
|
-
className:
|
|
5087
|
+
className: cn50(
|
|
5032
5088
|
"mosaic-nav-drawer",
|
|
5033
5089
|
"fixed inset-y-0 left-0 z-50 m-0 w-[280px] max-h-none h-full p-0",
|
|
5034
5090
|
"border-r border-border bg-background shadow-xl",
|
|
@@ -5045,7 +5101,7 @@ function MosaicMainNav({
|
|
|
5045
5101
|
{
|
|
5046
5102
|
type: "button",
|
|
5047
5103
|
onClick: () => setIsOpen(false),
|
|
5048
|
-
className:
|
|
5104
|
+
className: cn50(
|
|
5049
5105
|
"inline-flex h-8 w-8 items-center justify-center rounded-md",
|
|
5050
5106
|
"text-muted-foreground hover:bg-accent hover:text-accent-foreground",
|
|
5051
5107
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -5058,7 +5114,7 @@ function MosaicMainNav({
|
|
|
5058
5114
|
/* @__PURE__ */ jsx("nav", { className: "flex flex-col gap-1 p-4", "aria-label": "Main navigation", children: filteredItems.map((item) => {
|
|
5059
5115
|
const Icon = item.icon;
|
|
5060
5116
|
const active = isItemActive(item);
|
|
5061
|
-
const itemClass =
|
|
5117
|
+
const itemClass = cn50(
|
|
5062
5118
|
"flex items-center gap-3 rounded-lg px-3 py-3 text-sm font-medium transition-colors",
|
|
5063
5119
|
"hover:bg-accent hover:text-accent-foreground",
|
|
5064
5120
|
"min-h-[44px]",
|
|
@@ -5084,12 +5140,12 @@ function MosaicMainNav({
|
|
|
5084
5140
|
"nav",
|
|
5085
5141
|
{
|
|
5086
5142
|
"data-slot": "main-nav",
|
|
5087
|
-
className:
|
|
5143
|
+
className: cn50("flex items-center gap-1", className),
|
|
5088
5144
|
"aria-label": "Main navigation",
|
|
5089
5145
|
children: filteredItems.map((item) => {
|
|
5090
5146
|
const Icon = item.icon;
|
|
5091
5147
|
const active = isItemActive(item);
|
|
5092
|
-
const itemClass =
|
|
5148
|
+
const itemClass = cn50(
|
|
5093
5149
|
"flex items-center gap-2 rounded-lg px-3 py-2 text-sm font-medium transition-colors",
|
|
5094
5150
|
"hover:bg-accent hover:text-accent-foreground",
|
|
5095
5151
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -5109,7 +5165,7 @@ function MosaicMainNav({
|
|
|
5109
5165
|
);
|
|
5110
5166
|
}
|
|
5111
5167
|
MosaicMainNav.displayName = "MosaicMainNav";
|
|
5112
|
-
function
|
|
5168
|
+
function cn51(...classes) {
|
|
5113
5169
|
return classes.filter(Boolean).join(" ");
|
|
5114
5170
|
}
|
|
5115
5171
|
function MoreVertIcon() {
|
|
@@ -5240,7 +5296,7 @@ function MosaicAgentCard({
|
|
|
5240
5296
|
"div",
|
|
5241
5297
|
{
|
|
5242
5298
|
"data-slot": "agent-card",
|
|
5243
|
-
className:
|
|
5299
|
+
className: cn51(
|
|
5244
5300
|
"relative overflow-hidden rounded-lg border border-border bg-card text-card-foreground shadow-sm",
|
|
5245
5301
|
"transition-shadow hover:shadow-md",
|
|
5246
5302
|
agent.isActive && "ring-2 ring-primary",
|
|
@@ -5250,7 +5306,7 @@ function MosaicAgentCard({
|
|
|
5250
5306
|
/* @__PURE__ */ jsx(
|
|
5251
5307
|
"div",
|
|
5252
5308
|
{
|
|
5253
|
-
className:
|
|
5309
|
+
className: cn51(
|
|
5254
5310
|
"absolute left-0 top-0 h-1 w-full",
|
|
5255
5311
|
agent.isActive ? "bg-primary" : "bg-muted"
|
|
5256
5312
|
)
|
|
@@ -5262,7 +5318,7 @@ function MosaicAgentCard({
|
|
|
5262
5318
|
agent.accentColor && /* @__PURE__ */ jsx(
|
|
5263
5319
|
"span",
|
|
5264
5320
|
{
|
|
5265
|
-
className:
|
|
5321
|
+
className: cn51("h-3 w-3 shrink-0 rounded-full", agent.accentColor),
|
|
5266
5322
|
"aria-hidden": "true"
|
|
5267
5323
|
}
|
|
5268
5324
|
),
|
|
@@ -5280,7 +5336,7 @@ function MosaicAgentCard({
|
|
|
5280
5336
|
{
|
|
5281
5337
|
type: "button",
|
|
5282
5338
|
onClick: () => setMenuOpen((v) => !v),
|
|
5283
|
-
className:
|
|
5339
|
+
className: cn51(
|
|
5284
5340
|
"inline-flex h-8 w-8 items-center justify-center rounded-md",
|
|
5285
5341
|
"text-muted-foreground hover:bg-accent hover:text-accent-foreground",
|
|
5286
5342
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -5295,7 +5351,7 @@ function MosaicAgentCard({
|
|
|
5295
5351
|
"div",
|
|
5296
5352
|
{
|
|
5297
5353
|
role: "menu",
|
|
5298
|
-
className:
|
|
5354
|
+
className: cn51(
|
|
5299
5355
|
"absolute right-0 top-full z-50 mt-1 min-w-[140px] rounded-md border border-border",
|
|
5300
5356
|
"bg-popover py-1 shadow-md"
|
|
5301
5357
|
),
|
|
@@ -5310,7 +5366,7 @@ function MosaicAgentCard({
|
|
|
5310
5366
|
onToggleStatus(agent.id);
|
|
5311
5367
|
setMenuOpen(false);
|
|
5312
5368
|
},
|
|
5313
|
-
className:
|
|
5369
|
+
className: cn51(
|
|
5314
5370
|
"flex w-full items-center gap-2 px-3 py-2 text-sm text-foreground",
|
|
5315
5371
|
"hover:bg-accent hover:text-accent-foreground",
|
|
5316
5372
|
"disabled:pointer-events-none disabled:opacity-50"
|
|
@@ -5372,7 +5428,7 @@ function MosaicAgentCard({
|
|
|
5372
5428
|
type: "button",
|
|
5373
5429
|
disabled: isLoading,
|
|
5374
5430
|
onClick: () => onToggleStatus(agent.id),
|
|
5375
|
-
className:
|
|
5431
|
+
className: cn51(
|
|
5376
5432
|
"inline-flex h-7 items-center justify-center rounded-md px-3 text-xs font-medium",
|
|
5377
5433
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
5378
5434
|
"disabled:pointer-events-none disabled:opacity-50",
|
|
@@ -5388,7 +5444,7 @@ function MosaicAgentCard({
|
|
|
5388
5444
|
);
|
|
5389
5445
|
}
|
|
5390
5446
|
MosaicAgentCard.displayName = "MosaicAgentCard";
|
|
5391
|
-
function
|
|
5447
|
+
function cn52(...classes) {
|
|
5392
5448
|
return classes.filter(Boolean).join(" ");
|
|
5393
5449
|
}
|
|
5394
5450
|
function PlusIcon3() {
|
|
@@ -5468,7 +5524,7 @@ function PickerContent({
|
|
|
5468
5524
|
{
|
|
5469
5525
|
type: "button",
|
|
5470
5526
|
onClick: () => onAdd(agent.id),
|
|
5471
|
-
className:
|
|
5527
|
+
className: cn52(
|
|
5472
5528
|
"flex w-full items-center gap-3 rounded-lg px-3 py-2.5 text-sm",
|
|
5473
5529
|
"hover:bg-accent hover:text-accent-foreground",
|
|
5474
5530
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -5477,7 +5533,7 @@ function PickerContent({
|
|
|
5477
5533
|
agent.accentColor && /* @__PURE__ */ jsx(
|
|
5478
5534
|
"span",
|
|
5479
5535
|
{
|
|
5480
|
-
className:
|
|
5536
|
+
className: cn52("h-3 w-3 shrink-0 rounded-full", agent.accentColor),
|
|
5481
5537
|
"aria-hidden": "true"
|
|
5482
5538
|
}
|
|
5483
5539
|
),
|
|
@@ -5494,7 +5550,7 @@ function PickerContent({
|
|
|
5494
5550
|
{
|
|
5495
5551
|
type: "button",
|
|
5496
5552
|
onClick: onOpenBuilder,
|
|
5497
|
-
className:
|
|
5553
|
+
className: cn52(
|
|
5498
5554
|
"flex w-full items-center gap-3 rounded-lg px-3 py-2.5 text-sm",
|
|
5499
5555
|
"hover:bg-accent hover:text-accent-foreground",
|
|
5500
5556
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -5544,11 +5600,11 @@ function MosaicQuickAgentSelector({
|
|
|
5544
5600
|
setPickerOpen(false);
|
|
5545
5601
|
};
|
|
5546
5602
|
const canAdd = selectedAgents.length < maxAgents;
|
|
5547
|
-
return /* @__PURE__ */ jsxs("div", { "data-slot": "quick-agent-selector", className:
|
|
5603
|
+
return /* @__PURE__ */ jsxs("div", { "data-slot": "quick-agent-selector", className: cn52("flex items-center gap-2", className), children: [
|
|
5548
5604
|
/* @__PURE__ */ jsx("div", { className: "flex items-center gap-2 overflow-x-auto", children: selectedAgents.map((agent) => /* @__PURE__ */ jsxs(
|
|
5549
5605
|
"div",
|
|
5550
5606
|
{
|
|
5551
|
-
className:
|
|
5607
|
+
className: cn52(
|
|
5552
5608
|
"group flex shrink-0 items-center gap-2 rounded-md border border-border bg-card",
|
|
5553
5609
|
isMobile ? "px-2 py-1" : "px-3 py-1.5"
|
|
5554
5610
|
),
|
|
@@ -5556,17 +5612,17 @@ function MosaicQuickAgentSelector({
|
|
|
5556
5612
|
agent.accentColor && /* @__PURE__ */ jsx(
|
|
5557
5613
|
"span",
|
|
5558
5614
|
{
|
|
5559
|
-
className:
|
|
5615
|
+
className: cn52("h-2 w-2 shrink-0 rounded-full", agent.accentColor),
|
|
5560
5616
|
"aria-hidden": "true"
|
|
5561
5617
|
}
|
|
5562
5618
|
),
|
|
5563
|
-
/* @__PURE__ */ jsx("span", { className:
|
|
5619
|
+
/* @__PURE__ */ jsx("span", { className: cn52("whitespace-nowrap font-medium", isMobile ? "text-xs" : "text-sm"), children: isMobile ? agent.type.split("-")[0] : agent.name }),
|
|
5564
5620
|
/* @__PURE__ */ jsx(
|
|
5565
5621
|
"button",
|
|
5566
5622
|
{
|
|
5567
5623
|
type: "button",
|
|
5568
5624
|
onClick: () => onRemoveAgent(agent.id),
|
|
5569
|
-
className:
|
|
5625
|
+
className: cn52(
|
|
5570
5626
|
"inline-flex h-4 w-4 items-center justify-center rounded",
|
|
5571
5627
|
"text-muted-foreground hover:text-foreground",
|
|
5572
5628
|
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
@@ -5586,7 +5642,7 @@ function MosaicQuickAgentSelector({
|
|
|
5586
5642
|
{
|
|
5587
5643
|
type: "button",
|
|
5588
5644
|
onClick: () => setPickerOpen((v) => !v),
|
|
5589
|
-
className:
|
|
5645
|
+
className: cn52(
|
|
5590
5646
|
"inline-flex items-center justify-center gap-2 rounded-md border border-border bg-background",
|
|
5591
5647
|
"px-3 py-1.5 text-sm font-medium text-foreground",
|
|
5592
5648
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -5601,7 +5657,7 @@ function MosaicQuickAgentSelector({
|
|
|
5601
5657
|
!isMobile && pickerOpen && /* @__PURE__ */ jsx(
|
|
5602
5658
|
"div",
|
|
5603
5659
|
{
|
|
5604
|
-
className:
|
|
5660
|
+
className: cn52(
|
|
5605
5661
|
"absolute left-0 top-full z-50 mt-2 w-72 rounded-lg border border-border",
|
|
5606
5662
|
"bg-popover shadow-lg"
|
|
5607
5663
|
),
|
|
@@ -5643,7 +5699,7 @@ function MosaicQuickAgentSelector({
|
|
|
5643
5699
|
/* @__PURE__ */ jsxs(
|
|
5644
5700
|
"span",
|
|
5645
5701
|
{
|
|
5646
|
-
className:
|
|
5702
|
+
className: cn52(
|
|
5647
5703
|
"shrink-0 rounded-md bg-secondary px-2 py-0.5 text-xs font-medium text-secondary-foreground"
|
|
5648
5704
|
),
|
|
5649
5705
|
children: [
|
|
@@ -5656,7 +5712,7 @@ function MosaicQuickAgentSelector({
|
|
|
5656
5712
|
] });
|
|
5657
5713
|
}
|
|
5658
5714
|
MosaicQuickAgentSelector.displayName = "MosaicQuickAgentSelector";
|
|
5659
|
-
function
|
|
5715
|
+
function cn53(...classes) {
|
|
5660
5716
|
return classes.filter(Boolean).join(" ");
|
|
5661
5717
|
}
|
|
5662
5718
|
function SearchIcon() {
|
|
@@ -5746,7 +5802,7 @@ function MosaicSelectorModal({
|
|
|
5746
5802
|
value: query,
|
|
5747
5803
|
onChange: (e) => setQuery(e.target.value),
|
|
5748
5804
|
placeholder: searchPlaceholder,
|
|
5749
|
-
className:
|
|
5805
|
+
className: cn53(
|
|
5750
5806
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
5751
5807
|
"text-sm text-foreground placeholder:text-muted-foreground",
|
|
5752
5808
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -5760,7 +5816,7 @@ function MosaicSelectorModal({
|
|
|
5760
5816
|
{
|
|
5761
5817
|
type: "button",
|
|
5762
5818
|
onClick: () => setActiveCategory("all"),
|
|
5763
|
-
className:
|
|
5819
|
+
className: cn53(
|
|
5764
5820
|
"shrink-0 rounded-md px-3 py-1.5 text-sm font-medium transition-colors",
|
|
5765
5821
|
activeCategory === "all" ? "bg-primary text-primary-foreground" : "bg-muted text-muted-foreground hover:bg-accent hover:text-accent-foreground"
|
|
5766
5822
|
),
|
|
@@ -5772,7 +5828,7 @@ function MosaicSelectorModal({
|
|
|
5772
5828
|
{
|
|
5773
5829
|
type: "button",
|
|
5774
5830
|
onClick: () => setActiveCategory(cat.id),
|
|
5775
|
-
className:
|
|
5831
|
+
className: cn53(
|
|
5776
5832
|
"shrink-0 rounded-md px-3 py-1.5 text-sm font-medium transition-colors",
|
|
5777
5833
|
activeCategory === cat.id ? "bg-primary text-primary-foreground" : "bg-muted text-muted-foreground hover:bg-accent hover:text-accent-foreground"
|
|
5778
5834
|
),
|
|
@@ -5784,7 +5840,7 @@ function MosaicSelectorModal({
|
|
|
5784
5840
|
/* @__PURE__ */ jsxs(
|
|
5785
5841
|
"div",
|
|
5786
5842
|
{
|
|
5787
|
-
className:
|
|
5843
|
+
className: cn53(
|
|
5788
5844
|
"max-h-[50vh] overflow-y-auto",
|
|
5789
5845
|
columns === 2 ? "grid grid-cols-1 gap-3 sm:grid-cols-2" : "flex flex-col gap-3"
|
|
5790
5846
|
),
|
|
@@ -5796,7 +5852,7 @@ function MosaicSelectorModal({
|
|
|
5796
5852
|
{
|
|
5797
5853
|
type: "button",
|
|
5798
5854
|
onClick: () => setPendingId(item.id),
|
|
5799
|
-
className:
|
|
5855
|
+
className: cn53(
|
|
5800
5856
|
"group relative rounded-lg border p-4 text-left transition-all duration-150",
|
|
5801
5857
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
5802
5858
|
isSelected ? "border-primary bg-primary/5 ring-2 ring-primary" : "border-border bg-card hover:border-primary/50"
|
|
@@ -5834,7 +5890,7 @@ function MosaicSelectorModal({
|
|
|
5834
5890
|
{
|
|
5835
5891
|
type: "button",
|
|
5836
5892
|
onClick: onClose,
|
|
5837
|
-
className:
|
|
5893
|
+
className: cn53(
|
|
5838
5894
|
"inline-flex min-h-[44px] items-center justify-center rounded-md border border-border",
|
|
5839
5895
|
"bg-background px-4 py-2 text-sm font-medium text-foreground",
|
|
5840
5896
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -5849,7 +5905,7 @@ function MosaicSelectorModal({
|
|
|
5849
5905
|
type: "button",
|
|
5850
5906
|
onClick: handleConfirm,
|
|
5851
5907
|
disabled: !pendingItem,
|
|
5852
|
-
className:
|
|
5908
|
+
className: cn53(
|
|
5853
5909
|
"inline-flex min-h-[44px] items-center justify-center rounded-md",
|
|
5854
5910
|
"bg-primary px-4 py-2 text-sm font-medium text-primary-foreground",
|
|
5855
5911
|
"hover:bg-primary/90",
|
|
@@ -5863,7 +5919,7 @@ function MosaicSelectorModal({
|
|
|
5863
5919
|
] }) });
|
|
5864
5920
|
}
|
|
5865
5921
|
MosaicSelectorModal.displayName = "MosaicSelectorModal";
|
|
5866
|
-
function
|
|
5922
|
+
function cn54(...classes) {
|
|
5867
5923
|
return classes.filter(Boolean).join(" ");
|
|
5868
5924
|
}
|
|
5869
5925
|
function relativeTime(ts) {
|
|
@@ -6112,7 +6168,7 @@ function MosaicMessageCard({
|
|
|
6112
6168
|
"div",
|
|
6113
6169
|
{
|
|
6114
6170
|
"data-slot": "message-card",
|
|
6115
|
-
className:
|
|
6171
|
+
className: cn54(
|
|
6116
6172
|
"rounded-lg border border-border bg-card p-4 shadow-sm transition-shadow hover:shadow-md",
|
|
6117
6173
|
compact && "p-3",
|
|
6118
6174
|
message.sender.type === "user" && "bg-primary/5",
|
|
@@ -6122,7 +6178,7 @@ function MosaicMessageCard({
|
|
|
6122
6178
|
/* @__PURE__ */ jsx(
|
|
6123
6179
|
"span",
|
|
6124
6180
|
{
|
|
6125
|
-
className:
|
|
6181
|
+
className: cn54(
|
|
6126
6182
|
"inline-flex shrink-0 items-center justify-center rounded-full text-white font-semibold",
|
|
6127
6183
|
compact ? "h-8 w-8 text-xs" : "h-10 w-10 text-sm",
|
|
6128
6184
|
message.sender.accentColor ?? "bg-muted text-muted-foreground"
|
|
@@ -6140,7 +6196,7 @@ function MosaicMessageCard({
|
|
|
6140
6196
|
/* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1", children: [
|
|
6141
6197
|
/* @__PURE__ */ jsxs("div", { className: "mb-2 flex items-center justify-between gap-2", children: [
|
|
6142
6198
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
6143
|
-
/* @__PURE__ */ jsx("span", { className:
|
|
6199
|
+
/* @__PURE__ */ jsx("span", { className: cn54("font-medium", compact ? "text-sm" : "text-base"), children: message.sender.name }),
|
|
6144
6200
|
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" })
|
|
6145
6201
|
] }),
|
|
6146
6202
|
/* @__PURE__ */ jsx("span", { className: "shrink-0 text-xs text-muted-foreground", children: relativeTime(message.timestamp) })
|
|
@@ -6148,7 +6204,7 @@ function MosaicMessageCard({
|
|
|
6148
6204
|
/* @__PURE__ */ jsx(
|
|
6149
6205
|
"p",
|
|
6150
6206
|
{
|
|
6151
|
-
className:
|
|
6207
|
+
className: cn54(
|
|
6152
6208
|
"leading-relaxed text-foreground mb-3",
|
|
6153
6209
|
compact ? "text-sm" : "text-base"
|
|
6154
6210
|
),
|
|
@@ -6163,7 +6219,7 @@ function MosaicMessageCard({
|
|
|
6163
6219
|
{
|
|
6164
6220
|
type: "button",
|
|
6165
6221
|
onClick: handleLike,
|
|
6166
|
-
className:
|
|
6222
|
+
className: cn54(
|
|
6167
6223
|
"inline-flex h-8 items-center gap-1 rounded-md px-2 text-xs",
|
|
6168
6224
|
"hover:bg-accent hover:text-accent-foreground",
|
|
6169
6225
|
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
@@ -6181,7 +6237,7 @@ function MosaicMessageCard({
|
|
|
6181
6237
|
{
|
|
6182
6238
|
type: "button",
|
|
6183
6239
|
onClick: handleDislike,
|
|
6184
|
-
className:
|
|
6240
|
+
className: cn54(
|
|
6185
6241
|
"inline-flex h-8 items-center gap-1 rounded-md px-2 text-xs",
|
|
6186
6242
|
"hover:bg-accent hover:text-accent-foreground",
|
|
6187
6243
|
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
@@ -6226,7 +6282,7 @@ function MosaicMessageCard({
|
|
|
6226
6282
|
{
|
|
6227
6283
|
type: "button",
|
|
6228
6284
|
onClick: handleBookmark,
|
|
6229
|
-
className:
|
|
6285
|
+
className: cn54(
|
|
6230
6286
|
"inline-flex h-8 w-8 items-center justify-center rounded-md",
|
|
6231
6287
|
"hover:bg-accent hover:text-accent-foreground",
|
|
6232
6288
|
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
@@ -6327,7 +6383,7 @@ function MosaicMessageCard({
|
|
|
6327
6383
|
);
|
|
6328
6384
|
}
|
|
6329
6385
|
MosaicMessageCard.displayName = "MosaicMessageCard";
|
|
6330
|
-
function
|
|
6386
|
+
function cn55(...classes) {
|
|
6331
6387
|
return classes.filter(Boolean).join(" ");
|
|
6332
6388
|
}
|
|
6333
6389
|
function SearchIcon2() {
|
|
@@ -6367,7 +6423,7 @@ function MessageListDesktop({
|
|
|
6367
6423
|
const filtered = query ? messages.filter(
|
|
6368
6424
|
(m) => m.content.toLowerCase().includes(query.toLowerCase()) || m.sender.name.toLowerCase().includes(query.toLowerCase())
|
|
6369
6425
|
) : messages;
|
|
6370
|
-
return /* @__PURE__ */ jsxs("div", { "data-slot": "message-list-desktop", className:
|
|
6426
|
+
return /* @__PURE__ */ jsxs("div", { "data-slot": "message-list-desktop", className: cn55("flex h-full flex-col", className), children: [
|
|
6371
6427
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between border-b border-border px-6 py-4", children: [
|
|
6372
6428
|
title && /* @__PURE__ */ jsx("h2", { className: "text-lg font-semibold", children: title }),
|
|
6373
6429
|
/* @__PURE__ */ jsxs("div", { className: "relative ml-auto max-w-xs flex-1", children: [
|
|
@@ -6379,7 +6435,7 @@ function MessageListDesktop({
|
|
|
6379
6435
|
value: query,
|
|
6380
6436
|
onChange: (e) => setQuery(e.target.value),
|
|
6381
6437
|
placeholder: "Search messages\u2026",
|
|
6382
|
-
className:
|
|
6438
|
+
className: cn55(
|
|
6383
6439
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
6384
6440
|
"text-sm placeholder:text-muted-foreground",
|
|
6385
6441
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -6408,7 +6464,7 @@ function MessageListDesktop({
|
|
|
6408
6464
|
{
|
|
6409
6465
|
type: "button",
|
|
6410
6466
|
onClick: onLoadMore,
|
|
6411
|
-
className:
|
|
6467
|
+
className: cn55(
|
|
6412
6468
|
"w-full rounded-md border border-border bg-background px-4 py-2 text-sm font-medium",
|
|
6413
6469
|
"hover:bg-accent hover:text-accent-foreground",
|
|
6414
6470
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -6430,7 +6486,7 @@ function MessageListMobile({
|
|
|
6430
6486
|
isLoading,
|
|
6431
6487
|
className
|
|
6432
6488
|
}) {
|
|
6433
|
-
return /* @__PURE__ */ jsxs("div", { "data-slot": "message-list-mobile", className:
|
|
6489
|
+
return /* @__PURE__ */ jsxs("div", { "data-slot": "message-list-mobile", className: cn55("flex flex-col", className), children: [
|
|
6434
6490
|
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 }) }),
|
|
6435
6491
|
/* @__PURE__ */ jsxs("div", { className: "space-y-3 p-4", children: [
|
|
6436
6492
|
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)) }),
|
|
@@ -6453,7 +6509,7 @@ function MessageListMobile({
|
|
|
6453
6509
|
{
|
|
6454
6510
|
type: "button",
|
|
6455
6511
|
onClick: onLoadMore,
|
|
6456
|
-
className:
|
|
6512
|
+
className: cn55(
|
|
6457
6513
|
"w-full min-h-[44px] rounded-md border border-border bg-background px-4 py-2 text-sm font-medium",
|
|
6458
6514
|
"hover:bg-accent hover:text-accent-foreground",
|
|
6459
6515
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -6468,7 +6524,7 @@ function MosaicMessageList(props) {
|
|
|
6468
6524
|
return isMobile ? /* @__PURE__ */ jsx(MessageListMobile, { ...props }) : /* @__PURE__ */ jsx(MessageListDesktop, { ...props });
|
|
6469
6525
|
}
|
|
6470
6526
|
MosaicMessageList.displayName = "MosaicMessageList";
|
|
6471
|
-
function
|
|
6527
|
+
function cn56(...classes) {
|
|
6472
6528
|
return classes.filter(Boolean).join(" ");
|
|
6473
6529
|
}
|
|
6474
6530
|
function ChevronLeftIcon2() {
|
|
@@ -6544,7 +6600,7 @@ function MosaicFilterSidebar({
|
|
|
6544
6600
|
{
|
|
6545
6601
|
"data-slot": "filter-sidebar",
|
|
6546
6602
|
style: { width, minWidth: isCollapsed && !isMobile ? "64px" : void 0 },
|
|
6547
|
-
className:
|
|
6603
|
+
className: cn56(
|
|
6548
6604
|
"relative flex flex-col border-r border-border bg-card",
|
|
6549
6605
|
"transition-[width] duration-200 ease-in-out",
|
|
6550
6606
|
"overflow-hidden",
|
|
@@ -6556,7 +6612,7 @@ function MosaicFilterSidebar({
|
|
|
6556
6612
|
{
|
|
6557
6613
|
type: "button",
|
|
6558
6614
|
onClick: onToggleCollapse,
|
|
6559
|
-
className:
|
|
6615
|
+
className: cn56(
|
|
6560
6616
|
"absolute -right-3 top-6 z-10 flex h-6 w-6 items-center justify-center rounded-full",
|
|
6561
6617
|
"border border-border bg-background shadow-sm",
|
|
6562
6618
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -6586,7 +6642,7 @@ function MosaicFilterSidebar({
|
|
|
6586
6642
|
{
|
|
6587
6643
|
type: "button",
|
|
6588
6644
|
onClick: () => onFilterChange(f.id),
|
|
6589
|
-
className:
|
|
6645
|
+
className: cn56(
|
|
6590
6646
|
"flex min-h-[40px] items-center justify-between rounded-md px-3 py-2 text-sm font-medium",
|
|
6591
6647
|
"transition-colors hover:bg-accent hover:text-accent-foreground",
|
|
6592
6648
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -6606,7 +6662,7 @@ function MosaicFilterSidebar({
|
|
|
6606
6662
|
{
|
|
6607
6663
|
type: "button",
|
|
6608
6664
|
onClick: () => onCategoryChange(cat.id),
|
|
6609
|
-
className:
|
|
6665
|
+
className: cn56(
|
|
6610
6666
|
"flex min-h-[36px] items-center justify-between rounded-md px-3 py-1.5 text-sm",
|
|
6611
6667
|
"transition-colors hover:bg-accent hover:text-accent-foreground",
|
|
6612
6668
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -6626,7 +6682,7 @@ function MosaicFilterSidebar({
|
|
|
6626
6682
|
);
|
|
6627
6683
|
}
|
|
6628
6684
|
MosaicFilterSidebar.displayName = "MosaicFilterSidebar";
|
|
6629
|
-
function
|
|
6685
|
+
function cn57(...classes) {
|
|
6630
6686
|
return classes.filter(Boolean).join(" ");
|
|
6631
6687
|
}
|
|
6632
6688
|
function SearchIcon3() {
|
|
@@ -6741,7 +6797,7 @@ function AgentListDesktop({
|
|
|
6741
6797
|
value: query,
|
|
6742
6798
|
onChange: (e) => setQuery(e.target.value),
|
|
6743
6799
|
placeholder: searchPlaceholder,
|
|
6744
|
-
className:
|
|
6800
|
+
className: cn57(
|
|
6745
6801
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
6746
6802
|
"text-sm placeholder:text-muted-foreground",
|
|
6747
6803
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -6754,7 +6810,7 @@ function AgentListDesktop({
|
|
|
6754
6810
|
{
|
|
6755
6811
|
type: "button",
|
|
6756
6812
|
onClick: onCreateAgent,
|
|
6757
|
-
className:
|
|
6813
|
+
className: cn57(
|
|
6758
6814
|
"inline-flex items-center gap-2 rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground",
|
|
6759
6815
|
"hover:bg-primary/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
6760
6816
|
),
|
|
@@ -6813,7 +6869,7 @@ function AgentListMobile({
|
|
|
6813
6869
|
{
|
|
6814
6870
|
type: "button",
|
|
6815
6871
|
onClick: () => setFilterOpen(true),
|
|
6816
|
-
className:
|
|
6872
|
+
className: cn57(
|
|
6817
6873
|
"inline-flex h-9 w-9 items-center justify-center rounded-md",
|
|
6818
6874
|
"border border-border bg-background text-foreground",
|
|
6819
6875
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -6828,7 +6884,7 @@ function AgentListMobile({
|
|
|
6828
6884
|
{
|
|
6829
6885
|
type: "button",
|
|
6830
6886
|
onClick: onCreateAgent,
|
|
6831
|
-
className:
|
|
6887
|
+
className: cn57(
|
|
6832
6888
|
"inline-flex h-9 items-center gap-1.5 rounded-md bg-primary px-3 text-sm font-medium text-primary-foreground",
|
|
6833
6889
|
"hover:bg-primary/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
6834
6890
|
),
|
|
@@ -6849,7 +6905,7 @@ function AgentListMobile({
|
|
|
6849
6905
|
value: query,
|
|
6850
6906
|
onChange: (e) => setQuery(e.target.value),
|
|
6851
6907
|
placeholder: searchPlaceholder,
|
|
6852
|
-
className:
|
|
6908
|
+
className: cn57(
|
|
6853
6909
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
6854
6910
|
"text-sm placeholder:text-muted-foreground",
|
|
6855
6911
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -6897,7 +6953,7 @@ function MosaicAgentList(props) {
|
|
|
6897
6953
|
return isMobile ? /* @__PURE__ */ jsx(AgentListMobile, { ...props }) : /* @__PURE__ */ jsx(AgentListDesktop, { ...props });
|
|
6898
6954
|
}
|
|
6899
6955
|
MosaicAgentList.displayName = "MosaicAgentList";
|
|
6900
|
-
function
|
|
6956
|
+
function cn58(...classes) {
|
|
6901
6957
|
return classes.filter(Boolean).join(" ");
|
|
6902
6958
|
}
|
|
6903
6959
|
function StarIcon({ filled }) {
|
|
@@ -6993,7 +7049,7 @@ function MarketplaceCard({
|
|
|
6993
7049
|
"div",
|
|
6994
7050
|
{
|
|
6995
7051
|
"data-slot": "marketplace-card",
|
|
6996
|
-
className:
|
|
7052
|
+
className: cn58(
|
|
6997
7053
|
"rounded-lg border border-border bg-card p-4 transition-shadow hover:shadow-md",
|
|
6998
7054
|
compact ? "flex items-center gap-3" : "flex flex-col gap-3"
|
|
6999
7055
|
),
|
|
@@ -7001,7 +7057,7 @@ function MarketplaceCard({
|
|
|
7001
7057
|
item.icon && /* @__PURE__ */ jsx(
|
|
7002
7058
|
"div",
|
|
7003
7059
|
{
|
|
7004
|
-
className:
|
|
7060
|
+
className: cn58(
|
|
7005
7061
|
"flex shrink-0 items-center justify-center rounded-lg",
|
|
7006
7062
|
compact ? "h-10 w-10" : "h-12 w-12",
|
|
7007
7063
|
item.accentClass ?? "bg-muted text-muted-foreground"
|
|
@@ -7012,7 +7068,7 @@ function MarketplaceCard({
|
|
|
7012
7068
|
/* @__PURE__ */ jsxs("div", { className: "flex-1 min-w-0", children: [
|
|
7013
7069
|
/* @__PURE__ */ jsxs("div", { className: "flex items-start justify-between gap-2", children: [
|
|
7014
7070
|
/* @__PURE__ */ jsxs("div", { className: "min-w-0", children: [
|
|
7015
|
-
/* @__PURE__ */ jsx("p", { className:
|
|
7071
|
+
/* @__PURE__ */ jsx("p", { className: cn58("font-semibold leading-tight", compact ? "text-sm" : "text-base"), children: item.title }),
|
|
7016
7072
|
item.description && !compact && /* @__PURE__ */ jsx("p", { className: "mt-1 text-sm text-muted-foreground line-clamp-2", children: item.description })
|
|
7017
7073
|
] }),
|
|
7018
7074
|
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 })
|
|
@@ -7029,13 +7085,13 @@ function MarketplaceCard({
|
|
|
7029
7085
|
] })
|
|
7030
7086
|
] })
|
|
7031
7087
|
] }),
|
|
7032
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
7088
|
+
/* @__PURE__ */ jsxs("div", { className: cn58("flex gap-2", compact ? "shrink-0" : "mt-1"), children: [
|
|
7033
7089
|
onPreview && /* @__PURE__ */ jsx(
|
|
7034
7090
|
"button",
|
|
7035
7091
|
{
|
|
7036
7092
|
type: "button",
|
|
7037
7093
|
onClick: () => onPreview(item.id),
|
|
7038
|
-
className:
|
|
7094
|
+
className: cn58(
|
|
7039
7095
|
"inline-flex min-h-[36px] items-center justify-center rounded-md border border-border",
|
|
7040
7096
|
"bg-background px-3 text-xs font-medium text-foreground",
|
|
7041
7097
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -7049,7 +7105,7 @@ function MarketplaceCard({
|
|
|
7049
7105
|
{
|
|
7050
7106
|
type: "button",
|
|
7051
7107
|
onClick: () => onUninstall(item.id),
|
|
7052
|
-
className:
|
|
7108
|
+
className: cn58(
|
|
7053
7109
|
"inline-flex min-h-[36px] items-center justify-center rounded-md",
|
|
7054
7110
|
"bg-secondary px-3 text-xs font-medium text-secondary-foreground",
|
|
7055
7111
|
"hover:bg-secondary/80",
|
|
@@ -7062,7 +7118,7 @@ function MarketplaceCard({
|
|
|
7062
7118
|
{
|
|
7063
7119
|
type: "button",
|
|
7064
7120
|
onClick: () => onInstall(item.id),
|
|
7065
|
-
className:
|
|
7121
|
+
className: cn58(
|
|
7066
7122
|
"inline-flex min-h-[36px] items-center justify-center rounded-md",
|
|
7067
7123
|
"bg-primary px-3 text-xs font-medium text-primary-foreground",
|
|
7068
7124
|
"hover:bg-primary/90",
|
|
@@ -7124,7 +7180,7 @@ function MarketplaceListDesktop(props) {
|
|
|
7124
7180
|
value: query,
|
|
7125
7181
|
onChange: (e) => setQuery(e.target.value),
|
|
7126
7182
|
placeholder: searchPlaceholder,
|
|
7127
|
-
className:
|
|
7183
|
+
className: cn58(
|
|
7128
7184
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
7129
7185
|
"text-sm placeholder:text-muted-foreground",
|
|
7130
7186
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -7197,7 +7253,7 @@ function MarketplaceListMobile(props) {
|
|
|
7197
7253
|
value: query,
|
|
7198
7254
|
onChange: (e) => setQuery(e.target.value),
|
|
7199
7255
|
placeholder: searchPlaceholder,
|
|
7200
|
-
className:
|
|
7256
|
+
className: cn58(
|
|
7201
7257
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
7202
7258
|
"text-sm placeholder:text-muted-foreground",
|
|
7203
7259
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -7248,7 +7304,7 @@ function MosaicMarketplaceList(props) {
|
|
|
7248
7304
|
return isMobile ? /* @__PURE__ */ jsx(MarketplaceListMobile, { ...props }) : /* @__PURE__ */ jsx(MarketplaceListDesktop, { ...props });
|
|
7249
7305
|
}
|
|
7250
7306
|
MosaicMarketplaceList.displayName = "MosaicMarketplaceList";
|
|
7251
|
-
function
|
|
7307
|
+
function cn59(...classes) {
|
|
7252
7308
|
return classes.filter(Boolean).join(" ");
|
|
7253
7309
|
}
|
|
7254
7310
|
function StarIcon2() {
|
|
@@ -7367,7 +7423,7 @@ function MosaicTemplateCard({
|
|
|
7367
7423
|
type: "button",
|
|
7368
7424
|
onClick: () => onSelect(template),
|
|
7369
7425
|
"data-slot": "template-card",
|
|
7370
|
-
className:
|
|
7426
|
+
className: cn59(
|
|
7371
7427
|
"w-full text-left rounded-lg border transition-all duration-200",
|
|
7372
7428
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
7373
7429
|
isSelected ? "border-primary bg-primary/5 ring-2 ring-primary" : "border-border bg-card hover:border-primary/50",
|
|
@@ -7467,7 +7523,7 @@ function MosaicTemplatePreview({
|
|
|
7467
7523
|
agent.accentColor && /* @__PURE__ */ jsx(
|
|
7468
7524
|
"span",
|
|
7469
7525
|
{
|
|
7470
|
-
className:
|
|
7526
|
+
className: cn59("h-2 w-2 rounded-full", agent.accentColor),
|
|
7471
7527
|
"aria-hidden": "true"
|
|
7472
7528
|
}
|
|
7473
7529
|
),
|
|
@@ -7527,7 +7583,7 @@ function MosaicAgentTeamPreview({ agents, label }) {
|
|
|
7527
7583
|
agent.accentColor && /* @__PURE__ */ jsx(
|
|
7528
7584
|
"span",
|
|
7529
7585
|
{
|
|
7530
|
-
className:
|
|
7586
|
+
className: cn59("h-2.5 w-2.5 rounded-full", agent.accentColor),
|
|
7531
7587
|
"aria-hidden": "true"
|
|
7532
7588
|
}
|
|
7533
7589
|
),
|
|
@@ -7551,7 +7607,7 @@ function MosaicQuickStartPanel({
|
|
|
7551
7607
|
scratchLabel = "Start from Scratch",
|
|
7552
7608
|
className
|
|
7553
7609
|
}) {
|
|
7554
|
-
return /* @__PURE__ */ jsxs("div", { "data-slot": "quick-start-panel", className:
|
|
7610
|
+
return /* @__PURE__ */ jsxs("div", { "data-slot": "quick-start-panel", className: cn59("flex flex-col gap-6", className), children: [
|
|
7555
7611
|
scenarios.length > 0 && /* @__PURE__ */ jsxs("div", { children: [
|
|
7556
7612
|
/* @__PURE__ */ jsx("h3", { className: "mb-3 text-sm font-semibold text-foreground", children: scenariosTitle }),
|
|
7557
7613
|
/* @__PURE__ */ jsx("div", { className: "grid gap-3 sm:grid-cols-2", children: scenarios.map((scenario) => /* @__PURE__ */ jsxs(
|
|
@@ -7559,7 +7615,7 @@ function MosaicQuickStartPanel({
|
|
|
7559
7615
|
{
|
|
7560
7616
|
type: "button",
|
|
7561
7617
|
onClick: () => onSelectScenario(scenario),
|
|
7562
|
-
className:
|
|
7618
|
+
className: cn59(
|
|
7563
7619
|
"flex items-start gap-3 rounded-lg border border-border bg-card p-4 text-left",
|
|
7564
7620
|
"hover:border-primary/50 hover:bg-primary/5",
|
|
7565
7621
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -7591,7 +7647,7 @@ function MosaicQuickStartPanel({
|
|
|
7591
7647
|
{
|
|
7592
7648
|
type: "button",
|
|
7593
7649
|
onClick: () => onSelectPreset(preset),
|
|
7594
|
-
className:
|
|
7650
|
+
className: cn59(
|
|
7595
7651
|
"flex items-center justify-between gap-3 rounded-lg border border-border bg-card px-4 py-3 text-left",
|
|
7596
7652
|
"hover:border-primary/50",
|
|
7597
7653
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -7605,7 +7661,7 @@ function MosaicQuickStartPanel({
|
|
|
7605
7661
|
a.accentColor && /* @__PURE__ */ jsx(
|
|
7606
7662
|
"span",
|
|
7607
7663
|
{
|
|
7608
|
-
className:
|
|
7664
|
+
className: cn59("h-2 w-2 rounded-full", a.accentColor),
|
|
7609
7665
|
"aria-hidden": "true"
|
|
7610
7666
|
}
|
|
7611
7667
|
),
|
|
@@ -7623,7 +7679,7 @@ function MosaicQuickStartPanel({
|
|
|
7623
7679
|
{
|
|
7624
7680
|
type: "button",
|
|
7625
7681
|
onClick: onStartFromScratch,
|
|
7626
|
-
className:
|
|
7682
|
+
className: cn59(
|
|
7627
7683
|
"inline-flex min-h-[44px] w-full items-center justify-center rounded-md border border-border",
|
|
7628
7684
|
"bg-background px-4 text-sm font-medium text-foreground",
|
|
7629
7685
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -7703,7 +7759,7 @@ function TemplateGalleryContent({
|
|
|
7703
7759
|
value: query,
|
|
7704
7760
|
onChange: (e) => setQuery(e.target.value),
|
|
7705
7761
|
placeholder: searchPlaceholder,
|
|
7706
|
-
className:
|
|
7762
|
+
className: cn59(
|
|
7707
7763
|
"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"
|
|
7708
7764
|
)
|
|
7709
7765
|
}
|
|
@@ -7751,7 +7807,7 @@ function TemplateGalleryContent({
|
|
|
7751
7807
|
value: query,
|
|
7752
7808
|
onChange: (e) => setQuery(e.target.value),
|
|
7753
7809
|
placeholder: searchPlaceholder,
|
|
7754
|
-
className:
|
|
7810
|
+
className: cn59(
|
|
7755
7811
|
"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"
|
|
7756
7812
|
)
|
|
7757
7813
|
}
|
|
@@ -7781,7 +7837,7 @@ function MosaicTemplateGallery(props) {
|
|
|
7781
7837
|
return /* @__PURE__ */ jsx(TemplateGalleryContent, { ...props, isMobile });
|
|
7782
7838
|
}
|
|
7783
7839
|
MosaicTemplateGallery.displayName = "MosaicTemplateGallery";
|
|
7784
|
-
function
|
|
7840
|
+
function cn60(...classes) {
|
|
7785
7841
|
return classes.filter(Boolean).join(" ");
|
|
7786
7842
|
}
|
|
7787
7843
|
function PlusIcon5() {
|
|
@@ -7925,7 +7981,7 @@ function MosaicModuleForm({
|
|
|
7925
7981
|
onChange: (e) => update("name", e.target.value),
|
|
7926
7982
|
placeholder: "Module name\u2026",
|
|
7927
7983
|
required: true,
|
|
7928
|
-
className:
|
|
7984
|
+
className: cn60(
|
|
7929
7985
|
"w-full rounded-md border border-input bg-background px-3 py-2 min-h-[40px]",
|
|
7930
7986
|
"text-sm placeholder:text-muted-foreground",
|
|
7931
7987
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -7943,7 +7999,7 @@ function MosaicModuleForm({
|
|
|
7943
7999
|
onChange: (e) => update("description", e.target.value),
|
|
7944
8000
|
placeholder: "Describe this module\u2026",
|
|
7945
8001
|
rows: 3,
|
|
7946
|
-
className:
|
|
8002
|
+
className: cn60(
|
|
7947
8003
|
"w-full rounded-md border border-input bg-background px-3 py-2",
|
|
7948
8004
|
"text-sm placeholder:text-muted-foreground resize-none",
|
|
7949
8005
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -7965,7 +8021,7 @@ function MosaicModuleForm({
|
|
|
7965
8021
|
value: formData[field.id] ?? "",
|
|
7966
8022
|
onChange: (e) => update(field.id, e.target.value),
|
|
7967
8023
|
placeholder: field.placeholder,
|
|
7968
|
-
className:
|
|
8024
|
+
className: cn60(
|
|
7969
8025
|
"w-full rounded-md border border-input bg-background px-3 py-2 min-h-[40px]",
|
|
7970
8026
|
"text-sm placeholder:text-muted-foreground",
|
|
7971
8027
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -7980,7 +8036,7 @@ function MosaicModuleForm({
|
|
|
7980
8036
|
onChange: (e) => update(field.id, e.target.value),
|
|
7981
8037
|
placeholder: field.placeholder,
|
|
7982
8038
|
rows: 3,
|
|
7983
|
-
className:
|
|
8039
|
+
className: cn60(
|
|
7984
8040
|
"w-full rounded-md border border-input bg-background px-3 py-2",
|
|
7985
8041
|
"text-sm placeholder:text-muted-foreground resize-none",
|
|
7986
8042
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -7996,7 +8052,7 @@ function MosaicModuleForm({
|
|
|
7996
8052
|
onChange: (e) => update(field.id, e.target.value),
|
|
7997
8053
|
placeholder: field.placeholder ?? "\u{1F9E0}",
|
|
7998
8054
|
maxLength: 4,
|
|
7999
|
-
className:
|
|
8055
|
+
className: cn60(
|
|
8000
8056
|
"w-20 rounded-md border border-input bg-background px-3 py-2 text-2xl",
|
|
8001
8057
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
8002
8058
|
)
|
|
@@ -8017,7 +8073,7 @@ function MosaicModuleForm({
|
|
|
8017
8073
|
}
|
|
8018
8074
|
},
|
|
8019
8075
|
placeholder: field.placeholder ?? "Add item\u2026",
|
|
8020
|
-
className:
|
|
8076
|
+
className: cn60(
|
|
8021
8077
|
"flex-1 rounded-md border border-input bg-background px-3 py-2 min-h-[36px]",
|
|
8022
8078
|
"text-sm placeholder:text-muted-foreground",
|
|
8023
8079
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -8213,7 +8269,7 @@ function LibraryContent({
|
|
|
8213
8269
|
{
|
|
8214
8270
|
type: "button",
|
|
8215
8271
|
onClick: openCreate,
|
|
8216
|
-
className:
|
|
8272
|
+
className: cn60(
|
|
8217
8273
|
"inline-flex items-center gap-2 rounded-md bg-primary px-3 py-2 text-sm font-medium text-primary-foreground",
|
|
8218
8274
|
"hover:bg-primary/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
8219
8275
|
),
|
|
@@ -8233,7 +8289,7 @@ function LibraryContent({
|
|
|
8233
8289
|
value: query,
|
|
8234
8290
|
onChange: (e) => setQuery(e.target.value),
|
|
8235
8291
|
placeholder: searchPlaceholder,
|
|
8236
|
-
className:
|
|
8292
|
+
className: cn60(
|
|
8237
8293
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
8238
8294
|
"text-sm placeholder:text-muted-foreground",
|
|
8239
8295
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -8246,7 +8302,7 @@ function LibraryContent({
|
|
|
8246
8302
|
{
|
|
8247
8303
|
type: "button",
|
|
8248
8304
|
onClick: () => setActiveTab(tab.id),
|
|
8249
|
-
className:
|
|
8305
|
+
className: cn60(
|
|
8250
8306
|
"rounded-md px-3 py-1.5 text-sm font-medium transition-colors",
|
|
8251
8307
|
activeTab === tab.id ? "bg-primary text-primary-foreground" : "bg-muted text-muted-foreground hover:bg-accent hover:text-accent-foreground"
|
|
8252
8308
|
),
|
|
@@ -8280,7 +8336,7 @@ function MosaicModuleLibrary(props) {
|
|
|
8280
8336
|
return /* @__PURE__ */ jsx(LibraryContent, { ...props });
|
|
8281
8337
|
}
|
|
8282
8338
|
MosaicModuleLibrary.displayName = "MosaicModuleLibrary";
|
|
8283
|
-
function
|
|
8339
|
+
function cn61(...classes) {
|
|
8284
8340
|
return classes.filter(Boolean).join(" ");
|
|
8285
8341
|
}
|
|
8286
8342
|
var roleConfig = {
|
|
@@ -8307,7 +8363,7 @@ function MosaicOrgRoleBadge({ role, className }) {
|
|
|
8307
8363
|
{
|
|
8308
8364
|
"data-slot": "org-role-badge",
|
|
8309
8365
|
title: config.description,
|
|
8310
|
-
className:
|
|
8366
|
+
className: cn61(
|
|
8311
8367
|
"inline-flex items-center rounded-full px-2 py-0.5 text-xs font-medium",
|
|
8312
8368
|
config.className,
|
|
8313
8369
|
className
|
|
@@ -8324,13 +8380,13 @@ function MosaicMultiOrgIndicator({
|
|
|
8324
8380
|
className
|
|
8325
8381
|
}) {
|
|
8326
8382
|
if (orgCount <= 1) return null;
|
|
8327
|
-
return /* @__PURE__ */ jsxs("div", { "data-slot": "multi-org-indicator", className:
|
|
8383
|
+
return /* @__PURE__ */ jsxs("div", { "data-slot": "multi-org-indicator", className: cn61("flex items-center gap-2", className), children: [
|
|
8328
8384
|
onSwitchOrg ? /* @__PURE__ */ jsxs(
|
|
8329
8385
|
"button",
|
|
8330
8386
|
{
|
|
8331
8387
|
type: "button",
|
|
8332
8388
|
onClick: onSwitchOrg,
|
|
8333
|
-
className:
|
|
8389
|
+
className: cn61(
|
|
8334
8390
|
"inline-flex items-center gap-1.5 rounded-full bg-secondary px-2.5 py-1 text-xs font-medium text-secondary-foreground",
|
|
8335
8391
|
"hover:bg-secondary/80",
|
|
8336
8392
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -8428,7 +8484,7 @@ function MosaicCreateOrgDialog({
|
|
|
8428
8484
|
onChange: (e) => setName(e.target.value),
|
|
8429
8485
|
placeholder: "Acme Inc.",
|
|
8430
8486
|
required: true,
|
|
8431
|
-
className:
|
|
8487
|
+
className: cn61(
|
|
8432
8488
|
"w-full rounded-md border bg-background px-3 py-2 min-h-[40px] text-sm placeholder:text-muted-foreground",
|
|
8433
8489
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
8434
8490
|
errors.name ? "border-destructive" : "border-input"
|
|
@@ -8448,7 +8504,7 @@ function MosaicCreateOrgDialog({
|
|
|
8448
8504
|
onChange: (e) => setSlug(e.target.value),
|
|
8449
8505
|
placeholder: "acme-inc",
|
|
8450
8506
|
required: true,
|
|
8451
|
-
className:
|
|
8507
|
+
className: cn61(
|
|
8452
8508
|
"w-full rounded-md border bg-background px-3 py-2 min-h-[40px] text-sm placeholder:text-muted-foreground",
|
|
8453
8509
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
8454
8510
|
errors.slug ? "border-destructive" : "border-input"
|
|
@@ -8545,7 +8601,7 @@ function MosaicInviteMemberDialog({
|
|
|
8545
8601
|
onChange: (e) => setEmail(e.target.value),
|
|
8546
8602
|
placeholder: "colleague@example.com",
|
|
8547
8603
|
required: true,
|
|
8548
|
-
className:
|
|
8604
|
+
className: cn61(
|
|
8549
8605
|
"w-full rounded-md border bg-background px-3 py-2 min-h-[40px] text-sm placeholder:text-muted-foreground",
|
|
8550
8606
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
8551
8607
|
errors.email ? "border-destructive" : "border-input"
|
|
@@ -8722,7 +8778,7 @@ function MosaicMemberList({
|
|
|
8722
8778
|
const filtered = members.filter(
|
|
8723
8779
|
(m) => !query || m.name.toLowerCase().includes(query.toLowerCase()) || m.email.toLowerCase().includes(query.toLowerCase())
|
|
8724
8780
|
);
|
|
8725
|
-
return /* @__PURE__ */ jsxs("div", { "data-slot": "member-list", className:
|
|
8781
|
+
return /* @__PURE__ */ jsxs("div", { "data-slot": "member-list", className: cn61("flex flex-col gap-4", className), children: [
|
|
8726
8782
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
8727
8783
|
/* @__PURE__ */ jsxs("div", { className: "relative flex-1", children: [
|
|
8728
8784
|
/* @__PURE__ */ jsx("span", { className: "absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground", children: /* @__PURE__ */ jsxs(
|
|
@@ -8815,7 +8871,7 @@ function MosaicOrgPanel({
|
|
|
8815
8871
|
const { isMobile } = useDevice();
|
|
8816
8872
|
const [activeTab, setActiveTab] = React27.useState(defaultTab ?? tabs[0]?.id ?? "");
|
|
8817
8873
|
const activeContent = tabs.find((t) => t.id === activeTab)?.content;
|
|
8818
|
-
return /* @__PURE__ */ jsxs("div", { "data-slot": "org-panel", className:
|
|
8874
|
+
return /* @__PURE__ */ jsxs("div", { "data-slot": "org-panel", className: cn61("flex h-full flex-col", className), children: [
|
|
8819
8875
|
/* @__PURE__ */ jsxs("div", { className: "border-b border-border px-4 py-4 md:px-6", children: [
|
|
8820
8876
|
/* @__PURE__ */ jsxs("div", { className: "flex items-start justify-between gap-4", children: [
|
|
8821
8877
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
@@ -8837,12 +8893,12 @@ function MosaicOrgPanel({
|
|
|
8837
8893
|
] }),
|
|
8838
8894
|
headerActions
|
|
8839
8895
|
] }),
|
|
8840
|
-
tabs.length > 0 && /* @__PURE__ */ jsx("div", { className:
|
|
8896
|
+
tabs.length > 0 && /* @__PURE__ */ jsx("div", { className: cn61("mt-4 flex gap-1", isMobile && "overflow-x-auto"), children: tabs.map((tab) => /* @__PURE__ */ jsx(
|
|
8841
8897
|
"button",
|
|
8842
8898
|
{
|
|
8843
8899
|
type: "button",
|
|
8844
8900
|
onClick: () => setActiveTab(tab.id),
|
|
8845
|
-
className:
|
|
8901
|
+
className: cn61(
|
|
8846
8902
|
"shrink-0 rounded-md px-3 py-1.5 text-sm font-medium transition-colors",
|
|
8847
8903
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
8848
8904
|
activeTab === tab.id ? "bg-primary text-primary-foreground" : "bg-muted text-muted-foreground hover:bg-accent hover:text-accent-foreground"
|
|
@@ -8856,7 +8912,7 @@ function MosaicOrgPanel({
|
|
|
8856
8912
|
] });
|
|
8857
8913
|
}
|
|
8858
8914
|
MosaicOrgPanel.displayName = "MosaicOrgPanel";
|
|
8859
|
-
function
|
|
8915
|
+
function cn62(...classes) {
|
|
8860
8916
|
return classes.filter(Boolean).join(" ");
|
|
8861
8917
|
}
|
|
8862
8918
|
var ANIM_ID8 = "mosaic-dashboard-content-kf";
|
|
@@ -8893,7 +8949,7 @@ function MosaicDashboardContent({
|
|
|
8893
8949
|
"div",
|
|
8894
8950
|
{
|
|
8895
8951
|
"data-slot": "dashboard-content",
|
|
8896
|
-
className:
|
|
8952
|
+
className: cn62("h-full overflow-auto", isMobile ? "p-4" : "p-6", className),
|
|
8897
8953
|
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: [
|
|
8898
8954
|
"View not found: ",
|
|
8899
8955
|
currentView
|
|
@@ -8902,7 +8958,7 @@ function MosaicDashboardContent({
|
|
|
8902
8958
|
);
|
|
8903
8959
|
}
|
|
8904
8960
|
MosaicDashboardContent.displayName = "MosaicDashboardContent";
|
|
8905
|
-
function
|
|
8961
|
+
function cn63(...classes) {
|
|
8906
8962
|
return classes.filter(Boolean).join(" ");
|
|
8907
8963
|
}
|
|
8908
8964
|
var ANIM_ID9 = "mosaic-dashboard-header2-kf";
|
|
@@ -9012,16 +9068,16 @@ function MosaicDashboardHeader({
|
|
|
9012
9068
|
"header",
|
|
9013
9069
|
{
|
|
9014
9070
|
"data-slot": "dashboard-header",
|
|
9015
|
-
className:
|
|
9071
|
+
className: cn63(
|
|
9016
9072
|
"mosaic-dashboard-header2",
|
|
9017
9073
|
"sticky top-0 z-40 border-b border-border/50 bg-background/80 backdrop-blur-sm",
|
|
9018
9074
|
className
|
|
9019
9075
|
),
|
|
9020
|
-
children: /* @__PURE__ */ jsx("div", { className:
|
|
9076
|
+
children: /* @__PURE__ */ jsx("div", { className: cn63(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: [
|
|
9021
9077
|
/* @__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: [
|
|
9022
9078
|
logoSlot ?? /* @__PURE__ */ jsx(SparklesIcon4, {}),
|
|
9023
9079
|
/* @__PURE__ */ jsxs("div", { className: "min-w-0", children: [
|
|
9024
|
-
/* @__PURE__ */ jsx("h1", { className:
|
|
9080
|
+
/* @__PURE__ */ jsx("h1", { className: cn63("font-semibold truncate", isMobile ? "text-lg" : "text-xl"), children: title }),
|
|
9025
9081
|
subtitle && !isMobile && /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground truncate", children: subtitle })
|
|
9026
9082
|
] })
|
|
9027
9083
|
] }) }),
|
|
@@ -9034,7 +9090,7 @@ function MosaicDashboardHeader({
|
|
|
9034
9090
|
value: searchQuery,
|
|
9035
9091
|
onChange: handleSearch,
|
|
9036
9092
|
placeholder: "Search\u2026",
|
|
9037
|
-
className:
|
|
9093
|
+
className: cn63(
|
|
9038
9094
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
9039
9095
|
"text-sm placeholder:text-muted-foreground",
|
|
9040
9096
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -9074,7 +9130,7 @@ function MosaicDashboardHeader({
|
|
|
9074
9130
|
);
|
|
9075
9131
|
}
|
|
9076
9132
|
MosaicDashboardHeader.displayName = "MosaicDashboardHeader";
|
|
9077
|
-
function
|
|
9133
|
+
function cn64(...classes) {
|
|
9078
9134
|
return classes.filter(Boolean).join(" ");
|
|
9079
9135
|
}
|
|
9080
9136
|
function ChevronDownIcon4() {
|
|
@@ -9155,13 +9211,13 @@ function MosaicOrgSwitcher({
|
|
|
9155
9211
|
}, [open]);
|
|
9156
9212
|
if (!currentOrg && organizations.length === 0 && !onCreateOrg) return null;
|
|
9157
9213
|
const initials = currentOrg?.name.split(" ").map((n) => n[0]).filter(Boolean).slice(0, 2).join("").toUpperCase() ?? "?";
|
|
9158
|
-
return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "org-switcher", className:
|
|
9214
|
+
return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "org-switcher", className: cn64("relative", className), children: [
|
|
9159
9215
|
/* @__PURE__ */ jsxs(
|
|
9160
9216
|
"button",
|
|
9161
9217
|
{
|
|
9162
9218
|
type: "button",
|
|
9163
9219
|
onClick: () => setOpen((v) => !v),
|
|
9164
|
-
className:
|
|
9220
|
+
className: cn64(
|
|
9165
9221
|
"inline-flex items-center gap-2 rounded-md border border-border bg-background px-3 py-1.5",
|
|
9166
9222
|
"text-sm font-medium text-foreground",
|
|
9167
9223
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -9188,7 +9244,7 @@ function MosaicOrgSwitcher({
|
|
|
9188
9244
|
{
|
|
9189
9245
|
role: "menu",
|
|
9190
9246
|
"aria-label": "Select organization",
|
|
9191
|
-
className:
|
|
9247
|
+
className: cn64(
|
|
9192
9248
|
"absolute left-0 top-full z-50 mt-1 min-w-[200px] rounded-md border border-border",
|
|
9193
9249
|
"bg-popover py-1 shadow-md"
|
|
9194
9250
|
),
|
|
@@ -9203,7 +9259,7 @@ function MosaicOrgSwitcher({
|
|
|
9203
9259
|
onSelectOrg?.(org.id);
|
|
9204
9260
|
setOpen(false);
|
|
9205
9261
|
},
|
|
9206
|
-
className:
|
|
9262
|
+
className: cn64(
|
|
9207
9263
|
"flex w-full items-center gap-2.5 px-3 py-2 text-sm text-foreground",
|
|
9208
9264
|
"hover:bg-accent hover:text-accent-foreground",
|
|
9209
9265
|
org.id === currentOrgId && "bg-primary/10 text-primary"
|
|
@@ -9240,7 +9296,7 @@ function MosaicOrgSwitcher({
|
|
|
9240
9296
|
] });
|
|
9241
9297
|
}
|
|
9242
9298
|
MosaicOrgSwitcher.displayName = "MosaicOrgSwitcher";
|
|
9243
|
-
function
|
|
9299
|
+
function cn65(...classes) {
|
|
9244
9300
|
return classes.filter(Boolean).join(" ");
|
|
9245
9301
|
}
|
|
9246
9302
|
function PlusIcon7() {
|
|
@@ -9284,19 +9340,19 @@ function MosaicQuickActionsMenu({
|
|
|
9284
9340
|
document.addEventListener("mousedown", h);
|
|
9285
9341
|
return () => document.removeEventListener("mousedown", h);
|
|
9286
9342
|
}, [open]);
|
|
9287
|
-
const itemClass =
|
|
9343
|
+
const itemClass = cn65(
|
|
9288
9344
|
"flex w-full items-center gap-2 px-3 py-2 text-sm text-foreground",
|
|
9289
9345
|
"hover:bg-accent hover:text-accent-foreground",
|
|
9290
9346
|
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
9291
9347
|
"min-h-[44px]"
|
|
9292
9348
|
);
|
|
9293
|
-
return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "quick-actions-menu", className:
|
|
9349
|
+
return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "quick-actions-menu", className: cn65("relative", className), children: [
|
|
9294
9350
|
/* @__PURE__ */ jsxs(
|
|
9295
9351
|
"button",
|
|
9296
9352
|
{
|
|
9297
9353
|
type: "button",
|
|
9298
9354
|
onClick: () => setOpen((v) => !v),
|
|
9299
|
-
className:
|
|
9355
|
+
className: cn65(
|
|
9300
9356
|
"inline-flex items-center justify-center gap-2 rounded-md border border-border bg-background",
|
|
9301
9357
|
"min-h-[44px] min-w-[44px] px-3 py-2 text-sm font-medium text-foreground",
|
|
9302
9358
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -9307,7 +9363,7 @@ function MosaicQuickActionsMenu({
|
|
|
9307
9363
|
"aria-label": label,
|
|
9308
9364
|
children: [
|
|
9309
9365
|
triggerIcon ?? /* @__PURE__ */ jsx(PlusIcon7, {}),
|
|
9310
|
-
/* @__PURE__ */ jsx("span", { className:
|
|
9366
|
+
/* @__PURE__ */ jsx("span", { className: cn65("hidden md:inline"), children: label })
|
|
9311
9367
|
]
|
|
9312
9368
|
}
|
|
9313
9369
|
),
|
|
@@ -9316,13 +9372,13 @@ function MosaicQuickActionsMenu({
|
|
|
9316
9372
|
{
|
|
9317
9373
|
role: "menu",
|
|
9318
9374
|
"aria-label": menuTitle,
|
|
9319
|
-
className:
|
|
9375
|
+
className: cn65(
|
|
9320
9376
|
"absolute right-0 top-full z-50 mt-1 rounded-md border border-border bg-popover py-1 shadow-md",
|
|
9321
9377
|
isMobile ? "w-[min(90vw,280px)]" : "w-56"
|
|
9322
9378
|
),
|
|
9323
9379
|
children: [
|
|
9324
9380
|
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 }) }),
|
|
9325
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
9381
|
+
/* @__PURE__ */ jsx("div", { className: cn65(menuTitle && "border-t border-border") }),
|
|
9326
9382
|
actions.map((action) => /* @__PURE__ */ jsxs(React27.Fragment, { children: [
|
|
9327
9383
|
action.separator && /* @__PURE__ */ jsx("div", { className: "my-1 border-t border-border" }),
|
|
9328
9384
|
action.href && renderLink ? renderLink(
|
|
@@ -9748,6 +9804,6 @@ async function MosaicClerkWebhookHandler(req, options) {
|
|
|
9748
9804
|
return new Response("OK", { status: 200 });
|
|
9749
9805
|
}
|
|
9750
9806
|
|
|
9751
|
-
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, MosaicSkeleton, MosaicSlider, MosaicStatsGrid, MosaicSwitch, MosaicTabs, MosaicTabsList, MosaicTabsPanel, MosaicTabsTrigger, MosaicTemplateCard, MosaicTemplateGallery, MosaicTemplatePreview, MosaicTestimonialsGrid, MosaicTextarea, MosaicThemeProvider, MosaicThemeToggle, MosaicTooltip, MosaicUserButton, Placeholder, badgeVariants, buttonVariants, skeletonVariants, useBreakpoint, useDevice, useMosaicWorkspace as useEffectiveWorkspaceId, useIsDesktop, useIsMobile, useIsTablet, useMediaQuery, useMosaicWorkspace, useOrientation, useViewport, version };
|
|
9807
|
+
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, MosaicFilterBar, 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, MosaicSkeleton, MosaicSlider, MosaicStatsGrid, MosaicSwitch, MosaicTabs, MosaicTabsList, MosaicTabsPanel, MosaicTabsTrigger, MosaicTemplateCard, MosaicTemplateGallery, MosaicTemplatePreview, MosaicTestimonialsGrid, MosaicTextarea, MosaicThemeProvider, MosaicThemeToggle, MosaicTooltip, MosaicUserButton, Placeholder, badgeVariants, buttonVariants, skeletonVariants, useBreakpoint, useDevice, useMosaicWorkspace as useEffectiveWorkspaceId, useIsDesktop, useIsMobile, useIsTablet, useMediaQuery, useMosaicWorkspace, useOrientation, useViewport, version };
|
|
9752
9808
|
//# sourceMappingURL=index.js.map
|
|
9753
9809
|
//# sourceMappingURL=index.js.map
|