@vantageos/mosaic-blocks 0.3.0-alpha → 0.3.2-alpha
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +289 -249
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +52 -2
- package/dist/index.d.ts +52 -2
- package/dist/index.js +289 -250
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -46,7 +46,7 @@ function _interopNamespace(e) {
|
|
|
46
46
|
var React27__namespace = /*#__PURE__*/_interopNamespace(React27);
|
|
47
47
|
|
|
48
48
|
// src/version.ts
|
|
49
|
-
var version = "0.3.
|
|
49
|
+
var version = "0.3.2-alpha";
|
|
50
50
|
function Placeholder({ label = "mosaic-blocks placeholder" }) {
|
|
51
51
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { "data-mosaic-block": "placeholder", children: label });
|
|
52
52
|
}
|
|
@@ -1020,13 +1020,52 @@ function useMediaQuery(query) {
|
|
|
1020
1020
|
function cn13(...classes) {
|
|
1021
1021
|
return classes.filter(Boolean).join(" ");
|
|
1022
1022
|
}
|
|
1023
|
+
function MosaicEmptyState({
|
|
1024
|
+
icon,
|
|
1025
|
+
title,
|
|
1026
|
+
description,
|
|
1027
|
+
action,
|
|
1028
|
+
className,
|
|
1029
|
+
ref
|
|
1030
|
+
}) {
|
|
1031
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1032
|
+
"div",
|
|
1033
|
+
{
|
|
1034
|
+
ref,
|
|
1035
|
+
"data-slot": "empty-state",
|
|
1036
|
+
className: cn13(
|
|
1037
|
+
"flex flex-col items-center justify-center gap-4 px-4 py-12 text-center",
|
|
1038
|
+
className
|
|
1039
|
+
),
|
|
1040
|
+
children: [
|
|
1041
|
+
icon != null && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1042
|
+
"div",
|
|
1043
|
+
{
|
|
1044
|
+
"data-slot": "empty-state-icon",
|
|
1045
|
+
className: "flex items-center justify-center text-muted-foreground",
|
|
1046
|
+
children: icon
|
|
1047
|
+
}
|
|
1048
|
+
),
|
|
1049
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "empty-state-text", className: "flex flex-col gap-1.5", children: [
|
|
1050
|
+
/* @__PURE__ */ jsxRuntime.jsx("h3", { "data-slot": "empty-state-title", className: "text-base font-medium text-foreground", children: title }),
|
|
1051
|
+
description != null && /* @__PURE__ */ jsxRuntime.jsx("p", { "data-slot": "empty-state-description", className: "text-sm text-muted-foreground", children: description })
|
|
1052
|
+
] }),
|
|
1053
|
+
action != null && /* @__PURE__ */ jsxRuntime.jsx("div", { "data-slot": "empty-state-action", className: "mt-2", children: action })
|
|
1054
|
+
]
|
|
1055
|
+
}
|
|
1056
|
+
);
|
|
1057
|
+
}
|
|
1058
|
+
MosaicEmptyState.displayName = "MosaicEmptyState";
|
|
1059
|
+
function cn14(...classes) {
|
|
1060
|
+
return classes.filter(Boolean).join(" ");
|
|
1061
|
+
}
|
|
1023
1062
|
function MosaicAccordion({ className, ref, ...props }) {
|
|
1024
1063
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1025
1064
|
accordion.Accordion.Root,
|
|
1026
1065
|
{
|
|
1027
1066
|
ref,
|
|
1028
1067
|
"data-slot": "accordion",
|
|
1029
|
-
className:
|
|
1068
|
+
className: cn14("w-full divide-y divide-border", className),
|
|
1030
1069
|
...props
|
|
1031
1070
|
}
|
|
1032
1071
|
);
|
|
@@ -1038,7 +1077,7 @@ function MosaicAccordionItem({ className, ref, ...props }) {
|
|
|
1038
1077
|
{
|
|
1039
1078
|
ref,
|
|
1040
1079
|
"data-slot": "accordion-item",
|
|
1041
|
-
className:
|
|
1080
|
+
className: cn14("py-0", className),
|
|
1042
1081
|
...props
|
|
1043
1082
|
}
|
|
1044
1083
|
);
|
|
@@ -1055,7 +1094,7 @@ function MosaicAccordionTrigger({
|
|
|
1055
1094
|
{
|
|
1056
1095
|
ref,
|
|
1057
1096
|
"data-slot": "accordion-trigger",
|
|
1058
|
-
className:
|
|
1097
|
+
className: cn14(
|
|
1059
1098
|
"flex w-full flex-1 items-center justify-between py-4",
|
|
1060
1099
|
"text-sm font-medium text-foreground",
|
|
1061
1100
|
"outline-none transition-all",
|
|
@@ -1095,13 +1134,13 @@ function MosaicAccordionPanel({ className, ref, ...props }) {
|
|
|
1095
1134
|
{
|
|
1096
1135
|
ref,
|
|
1097
1136
|
"data-slot": "accordion-panel",
|
|
1098
|
-
className:
|
|
1137
|
+
className: cn14("overflow-hidden text-sm text-muted-foreground", "transition-all", className),
|
|
1099
1138
|
...props
|
|
1100
1139
|
}
|
|
1101
1140
|
);
|
|
1102
1141
|
}
|
|
1103
1142
|
MosaicAccordionPanel.displayName = "MosaicAccordionPanel";
|
|
1104
|
-
function
|
|
1143
|
+
function cn15(...classes) {
|
|
1105
1144
|
return classes.filter(Boolean).join(" ");
|
|
1106
1145
|
}
|
|
1107
1146
|
function MosaicCheckbox({ className, ref, ...props }) {
|
|
@@ -1110,7 +1149,7 @@ function MosaicCheckbox({ className, ref, ...props }) {
|
|
|
1110
1149
|
{
|
|
1111
1150
|
ref,
|
|
1112
1151
|
"data-slot": "checkbox",
|
|
1113
|
-
className:
|
|
1152
|
+
className: cn15(
|
|
1114
1153
|
"peer size-4 shrink-0 cursor-pointer",
|
|
1115
1154
|
"rounded-sm border border-border bg-background",
|
|
1116
1155
|
"outline-none transition-colors",
|
|
@@ -1150,7 +1189,7 @@ function MosaicCheckbox({ className, ref, ...props }) {
|
|
|
1150
1189
|
);
|
|
1151
1190
|
}
|
|
1152
1191
|
MosaicCheckbox.displayName = "MosaicCheckbox";
|
|
1153
|
-
function
|
|
1192
|
+
function cn16(...classes) {
|
|
1154
1193
|
return classes.filter(Boolean).join(" ");
|
|
1155
1194
|
}
|
|
1156
1195
|
function MosaicCollapsible({ className, ref, ...props }) {
|
|
@@ -1159,7 +1198,7 @@ function MosaicCollapsible({ className, ref, ...props }) {
|
|
|
1159
1198
|
{
|
|
1160
1199
|
ref,
|
|
1161
1200
|
"data-slot": "collapsible",
|
|
1162
|
-
className:
|
|
1201
|
+
className: cn16("w-full", className),
|
|
1163
1202
|
...props
|
|
1164
1203
|
}
|
|
1165
1204
|
);
|
|
@@ -1175,7 +1214,7 @@ function MosaicCollapsibleTrigger({
|
|
|
1175
1214
|
{
|
|
1176
1215
|
ref,
|
|
1177
1216
|
"data-slot": "collapsible-trigger",
|
|
1178
|
-
className:
|
|
1217
|
+
className: cn16(
|
|
1179
1218
|
"inline-flex w-full items-center justify-between gap-2",
|
|
1180
1219
|
"rounded-md px-0 py-2 text-sm font-medium",
|
|
1181
1220
|
"text-foreground outline-none transition-colors",
|
|
@@ -1197,7 +1236,7 @@ function MosaicCollapsiblePanel({ className, ref, ...props }) {
|
|
|
1197
1236
|
{
|
|
1198
1237
|
ref,
|
|
1199
1238
|
"data-slot": "collapsible-panel",
|
|
1200
|
-
className:
|
|
1239
|
+
className: cn16(
|
|
1201
1240
|
"overflow-hidden text-sm transition-all",
|
|
1202
1241
|
"data-[open]:animate-in data-[closed]:animate-out",
|
|
1203
1242
|
className
|
|
@@ -1207,7 +1246,7 @@ function MosaicCollapsiblePanel({ className, ref, ...props }) {
|
|
|
1207
1246
|
);
|
|
1208
1247
|
}
|
|
1209
1248
|
MosaicCollapsiblePanel.displayName = "MosaicCollapsiblePanel";
|
|
1210
|
-
function
|
|
1249
|
+
function cn17(...classes) {
|
|
1211
1250
|
return classes.filter(Boolean).join(" ");
|
|
1212
1251
|
}
|
|
1213
1252
|
function MosaicProgress({
|
|
@@ -1224,7 +1263,7 @@ function MosaicProgress({
|
|
|
1224
1263
|
"data-slot": "progress",
|
|
1225
1264
|
value,
|
|
1226
1265
|
max,
|
|
1227
|
-
className:
|
|
1266
|
+
className: cn17("w-full", className),
|
|
1228
1267
|
...props,
|
|
1229
1268
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1230
1269
|
progress.Progress.Track,
|
|
@@ -1245,7 +1284,7 @@ function MosaicProgress({
|
|
|
1245
1284
|
);
|
|
1246
1285
|
}
|
|
1247
1286
|
MosaicProgress.displayName = "MosaicProgress";
|
|
1248
|
-
function
|
|
1287
|
+
function cn18(...classes) {
|
|
1249
1288
|
return classes.filter(Boolean).join(" ");
|
|
1250
1289
|
}
|
|
1251
1290
|
function MosaicRadioGroup({ className, ref, ...props }) {
|
|
@@ -1254,7 +1293,7 @@ function MosaicRadioGroup({ className, ref, ...props }) {
|
|
|
1254
1293
|
{
|
|
1255
1294
|
ref,
|
|
1256
1295
|
"data-slot": "radio-group",
|
|
1257
|
-
className:
|
|
1296
|
+
className: cn18("flex flex-col gap-2", className),
|
|
1258
1297
|
...props
|
|
1259
1298
|
}
|
|
1260
1299
|
);
|
|
@@ -1271,7 +1310,7 @@ function MosaicRadioGroupItem({
|
|
|
1271
1310
|
{
|
|
1272
1311
|
ref,
|
|
1273
1312
|
"data-slot": "radio",
|
|
1274
|
-
className:
|
|
1313
|
+
className: cn18(
|
|
1275
1314
|
"flex items-center gap-2 text-sm font-medium",
|
|
1276
1315
|
"cursor-pointer select-none",
|
|
1277
1316
|
"data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50",
|
|
@@ -1282,7 +1321,7 @@ function MosaicRadioGroupItem({
|
|
|
1282
1321
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1283
1322
|
"span",
|
|
1284
1323
|
{
|
|
1285
|
-
className:
|
|
1324
|
+
className: cn18(
|
|
1286
1325
|
"flex size-4 shrink-0 items-center justify-center",
|
|
1287
1326
|
"rounded-full border border-border bg-background",
|
|
1288
1327
|
"outline-none transition-colors",
|
|
@@ -1298,7 +1337,7 @@ function MosaicRadioGroupItem({
|
|
|
1298
1337
|
);
|
|
1299
1338
|
}
|
|
1300
1339
|
MosaicRadioGroupItem.displayName = "MosaicRadioGroupItem";
|
|
1301
|
-
function
|
|
1340
|
+
function cn19(...classes) {
|
|
1302
1341
|
return classes.filter(Boolean).join(" ");
|
|
1303
1342
|
}
|
|
1304
1343
|
function MosaicScrollArea({
|
|
@@ -1313,7 +1352,7 @@ function MosaicScrollArea({
|
|
|
1313
1352
|
{
|
|
1314
1353
|
ref,
|
|
1315
1354
|
"data-slot": "scroll-area",
|
|
1316
|
-
className:
|
|
1355
|
+
className: cn19("relative overflow-hidden", className),
|
|
1317
1356
|
...props,
|
|
1318
1357
|
children: [
|
|
1319
1358
|
/* @__PURE__ */ jsxRuntime.jsx(scrollArea.ScrollArea.Viewport, { "data-slot": "scroll-area-viewport", className: "size-full rounded-[inherit]", children: /* @__PURE__ */ jsxRuntime.jsx(scrollArea.ScrollArea.Content, { children }) }),
|
|
@@ -1341,7 +1380,7 @@ function MosaicScrollArea({
|
|
|
1341
1380
|
);
|
|
1342
1381
|
}
|
|
1343
1382
|
MosaicScrollArea.displayName = "MosaicScrollArea";
|
|
1344
|
-
function
|
|
1383
|
+
function cn20(...classes) {
|
|
1345
1384
|
return classes.filter(Boolean).join(" ");
|
|
1346
1385
|
}
|
|
1347
1386
|
function MosaicSeparator({
|
|
@@ -1356,7 +1395,7 @@ function MosaicSeparator({
|
|
|
1356
1395
|
ref,
|
|
1357
1396
|
"data-slot": "separator",
|
|
1358
1397
|
orientation,
|
|
1359
|
-
className:
|
|
1398
|
+
className: cn20(
|
|
1360
1399
|
"shrink-0 bg-border",
|
|
1361
1400
|
orientation === "vertical" ? "h-full w-px" : "h-px w-full",
|
|
1362
1401
|
className
|
|
@@ -1366,7 +1405,7 @@ function MosaicSeparator({
|
|
|
1366
1405
|
);
|
|
1367
1406
|
}
|
|
1368
1407
|
MosaicSeparator.displayName = "MosaicSeparator";
|
|
1369
|
-
function
|
|
1408
|
+
function cn21(...classes) {
|
|
1370
1409
|
return classes.filter(Boolean).join(" ");
|
|
1371
1410
|
}
|
|
1372
1411
|
function MosaicSlider({ className, ref, ...props }) {
|
|
@@ -1377,7 +1416,7 @@ function MosaicSlider({ className, ref, ...props }) {
|
|
|
1377
1416
|
{
|
|
1378
1417
|
ref,
|
|
1379
1418
|
"data-slot": "slider",
|
|
1380
|
-
className:
|
|
1419
|
+
className: cn21("w-full touch-none select-none", className),
|
|
1381
1420
|
...props,
|
|
1382
1421
|
children: /* @__PURE__ */ jsxRuntime.jsx(slider.Slider.Control, { className: "flex items-center", children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1383
1422
|
slider.Slider.Track,
|
|
@@ -1396,7 +1435,7 @@ function MosaicSlider({ className, ref, ...props }) {
|
|
|
1396
1435
|
slider.Slider.Thumb,
|
|
1397
1436
|
{
|
|
1398
1437
|
"data-slot": "slider-thumb",
|
|
1399
|
-
className:
|
|
1438
|
+
className: cn21(
|
|
1400
1439
|
"block size-5 rounded-full",
|
|
1401
1440
|
"border-2 border-foreground bg-background",
|
|
1402
1441
|
"shadow-sm outline-none transition-colors",
|
|
@@ -1413,7 +1452,7 @@ function MosaicSlider({ className, ref, ...props }) {
|
|
|
1413
1452
|
);
|
|
1414
1453
|
}
|
|
1415
1454
|
MosaicSlider.displayName = "MosaicSlider";
|
|
1416
|
-
function
|
|
1455
|
+
function cn22(...classes) {
|
|
1417
1456
|
return classes.filter(Boolean).join(" ");
|
|
1418
1457
|
}
|
|
1419
1458
|
function MosaicTabs({ className, ref, ...props }) {
|
|
@@ -1422,7 +1461,7 @@ function MosaicTabs({ className, ref, ...props }) {
|
|
|
1422
1461
|
{
|
|
1423
1462
|
ref,
|
|
1424
1463
|
"data-slot": "tabs",
|
|
1425
|
-
className:
|
|
1464
|
+
className: cn22("flex flex-col gap-2", className),
|
|
1426
1465
|
...props
|
|
1427
1466
|
}
|
|
1428
1467
|
);
|
|
@@ -1434,7 +1473,7 @@ function MosaicTabsList({ className, ref, ...props }) {
|
|
|
1434
1473
|
{
|
|
1435
1474
|
ref,
|
|
1436
1475
|
"data-slot": "tabs-list",
|
|
1437
|
-
className:
|
|
1476
|
+
className: cn22(
|
|
1438
1477
|
"relative inline-flex items-center justify-start gap-1",
|
|
1439
1478
|
"rounded-lg bg-muted p-1 text-muted-foreground",
|
|
1440
1479
|
className
|
|
@@ -1450,7 +1489,7 @@ function MosaicTabsTrigger({ className, ref, ...props }) {
|
|
|
1450
1489
|
{
|
|
1451
1490
|
ref,
|
|
1452
1491
|
"data-slot": "tabs-trigger",
|
|
1453
|
-
className:
|
|
1492
|
+
className: cn22(
|
|
1454
1493
|
"inline-flex items-center justify-center gap-1.5 whitespace-nowrap",
|
|
1455
1494
|
"rounded-md px-3 py-1.5 text-sm font-medium",
|
|
1456
1495
|
"outline-none transition-all",
|
|
@@ -1473,7 +1512,7 @@ function MosaicTabsPanel({ className, ref, ...props }) {
|
|
|
1473
1512
|
{
|
|
1474
1513
|
ref,
|
|
1475
1514
|
"data-slot": "tabs-panel",
|
|
1476
|
-
className:
|
|
1515
|
+
className: cn22(
|
|
1477
1516
|
"flex-1 outline-none",
|
|
1478
1517
|
"focus-visible:ring-ring focus-visible:ring-[3px] focus-visible:rounded-md",
|
|
1479
1518
|
className
|
|
@@ -1483,7 +1522,7 @@ function MosaicTabsPanel({ className, ref, ...props }) {
|
|
|
1483
1522
|
);
|
|
1484
1523
|
}
|
|
1485
1524
|
MosaicTabsPanel.displayName = "MosaicTabsPanel";
|
|
1486
|
-
function
|
|
1525
|
+
function cn23(...classes) {
|
|
1487
1526
|
return classes.filter(Boolean).join(" ");
|
|
1488
1527
|
}
|
|
1489
1528
|
function MosaicTextarea({ className, ref, ...props }) {
|
|
@@ -1492,7 +1531,7 @@ function MosaicTextarea({ className, ref, ...props }) {
|
|
|
1492
1531
|
{
|
|
1493
1532
|
ref,
|
|
1494
1533
|
"data-slot": "textarea",
|
|
1495
|
-
className:
|
|
1534
|
+
className: cn23(
|
|
1496
1535
|
"flex min-h-[80px] w-full resize-y",
|
|
1497
1536
|
"rounded-md border border-border bg-background px-3 py-2",
|
|
1498
1537
|
"text-sm text-foreground shadow-xs",
|
|
@@ -1507,7 +1546,7 @@ function MosaicTextarea({ className, ref, ...props }) {
|
|
|
1507
1546
|
);
|
|
1508
1547
|
}
|
|
1509
1548
|
MosaicTextarea.displayName = "MosaicTextarea";
|
|
1510
|
-
function
|
|
1549
|
+
function cn24(...classes) {
|
|
1511
1550
|
return classes.filter(Boolean).join(" ");
|
|
1512
1551
|
}
|
|
1513
1552
|
function MosaicTooltip({
|
|
@@ -1524,7 +1563,7 @@ function MosaicTooltip({
|
|
|
1524
1563
|
tooltip.Tooltip.Popup,
|
|
1525
1564
|
{
|
|
1526
1565
|
"data-slot": "tooltip-content",
|
|
1527
|
-
className:
|
|
1566
|
+
className: cn24(
|
|
1528
1567
|
"z-50 max-w-xs overflow-hidden rounded-md",
|
|
1529
1568
|
"border border-border bg-foreground px-3 py-1.5",
|
|
1530
1569
|
"text-xs text-background shadow-md",
|
|
@@ -1541,7 +1580,7 @@ function MosaicTooltip({
|
|
|
1541
1580
|
] }) });
|
|
1542
1581
|
}
|
|
1543
1582
|
MosaicTooltip.displayName = "MosaicTooltip";
|
|
1544
|
-
function
|
|
1583
|
+
function cn25(...classes) {
|
|
1545
1584
|
return classes.filter(Boolean).join(" ");
|
|
1546
1585
|
}
|
|
1547
1586
|
function MosaicCard({ className, ref, ...props }) {
|
|
@@ -1550,7 +1589,7 @@ function MosaicCard({ className, ref, ...props }) {
|
|
|
1550
1589
|
{
|
|
1551
1590
|
ref,
|
|
1552
1591
|
"data-slot": "card",
|
|
1553
|
-
className:
|
|
1592
|
+
className: cn25(
|
|
1554
1593
|
"bg-card text-card-foreground rounded-xl border border-border shadow-sm",
|
|
1555
1594
|
className
|
|
1556
1595
|
),
|
|
@@ -1565,7 +1604,7 @@ function MosaicCardHeader({ className, ref, ...props }) {
|
|
|
1565
1604
|
{
|
|
1566
1605
|
ref,
|
|
1567
1606
|
"data-slot": "card-header",
|
|
1568
|
-
className:
|
|
1607
|
+
className: cn25("flex flex-col gap-1.5 p-6", className),
|
|
1569
1608
|
...props
|
|
1570
1609
|
}
|
|
1571
1610
|
);
|
|
@@ -1577,7 +1616,7 @@ function MosaicCardTitle({ className, ref, ...props }) {
|
|
|
1577
1616
|
{
|
|
1578
1617
|
ref,
|
|
1579
1618
|
"data-slot": "card-title",
|
|
1580
|
-
className:
|
|
1619
|
+
className: cn25("text-lg font-semibold leading-none tracking-tight", className),
|
|
1581
1620
|
...props
|
|
1582
1621
|
}
|
|
1583
1622
|
);
|
|
@@ -1589,14 +1628,14 @@ function MosaicCardDescription({ className, ref, ...props }) {
|
|
|
1589
1628
|
{
|
|
1590
1629
|
ref,
|
|
1591
1630
|
"data-slot": "card-description",
|
|
1592
|
-
className:
|
|
1631
|
+
className: cn25("text-sm text-muted-foreground", className),
|
|
1593
1632
|
...props
|
|
1594
1633
|
}
|
|
1595
1634
|
);
|
|
1596
1635
|
}
|
|
1597
1636
|
MosaicCardDescription.displayName = "MosaicCardDescription";
|
|
1598
1637
|
function MosaicCardContent({ className, ref, ...props }) {
|
|
1599
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { ref, "data-slot": "card-content", className:
|
|
1638
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { ref, "data-slot": "card-content", className: cn25("p-6 pt-0", className), ...props });
|
|
1600
1639
|
}
|
|
1601
1640
|
MosaicCardContent.displayName = "MosaicCardContent";
|
|
1602
1641
|
function MosaicCardFooter({ className, ref, ...props }) {
|
|
@@ -1605,7 +1644,7 @@ function MosaicCardFooter({ className, ref, ...props }) {
|
|
|
1605
1644
|
{
|
|
1606
1645
|
ref,
|
|
1607
1646
|
"data-slot": "card-footer",
|
|
1608
|
-
className:
|
|
1647
|
+
className: cn25("flex items-center p-6 pt-0", className),
|
|
1609
1648
|
...props
|
|
1610
1649
|
}
|
|
1611
1650
|
);
|
|
@@ -1634,7 +1673,7 @@ var badgeVariants = classVarianceAuthority.cva(
|
|
|
1634
1673
|
}
|
|
1635
1674
|
}
|
|
1636
1675
|
);
|
|
1637
|
-
function
|
|
1676
|
+
function cn26(...classes) {
|
|
1638
1677
|
return classes.filter(Boolean).join(" ");
|
|
1639
1678
|
}
|
|
1640
1679
|
function MosaicBadge({ className, variant, ref, ...props }) {
|
|
@@ -1643,13 +1682,13 @@ function MosaicBadge({ className, variant, ref, ...props }) {
|
|
|
1643
1682
|
{
|
|
1644
1683
|
ref,
|
|
1645
1684
|
"data-slot": "badge",
|
|
1646
|
-
className:
|
|
1685
|
+
className: cn26(badgeVariants({ variant }), className),
|
|
1647
1686
|
...props
|
|
1648
1687
|
}
|
|
1649
1688
|
);
|
|
1650
1689
|
}
|
|
1651
1690
|
MosaicBadge.displayName = "MosaicBadge";
|
|
1652
|
-
function
|
|
1691
|
+
function cn27(...classes) {
|
|
1653
1692
|
return classes.filter(Boolean).join(" ");
|
|
1654
1693
|
}
|
|
1655
1694
|
function MosaicAvatar({ src, alt, fallback, className, ref, ...props }) {
|
|
@@ -1658,7 +1697,7 @@ function MosaicAvatar({ src, alt, fallback, className, ref, ...props }) {
|
|
|
1658
1697
|
{
|
|
1659
1698
|
ref,
|
|
1660
1699
|
"data-slot": "avatar",
|
|
1661
|
-
className:
|
|
1700
|
+
className: cn27(
|
|
1662
1701
|
"relative flex size-10 shrink-0 overflow-hidden rounded-full",
|
|
1663
1702
|
"bg-muted text-muted-foreground",
|
|
1664
1703
|
className
|
|
@@ -1687,7 +1726,7 @@ function MosaicAvatar({ src, alt, fallback, className, ref, ...props }) {
|
|
|
1687
1726
|
);
|
|
1688
1727
|
}
|
|
1689
1728
|
MosaicAvatar.displayName = "MosaicAvatar";
|
|
1690
|
-
function
|
|
1729
|
+
function cn28(...classes) {
|
|
1691
1730
|
return classes.filter(Boolean).join(" ");
|
|
1692
1731
|
}
|
|
1693
1732
|
function MosaicInput({ className, ref, ...props }) {
|
|
@@ -1696,7 +1735,7 @@ function MosaicInput({ className, ref, ...props }) {
|
|
|
1696
1735
|
{
|
|
1697
1736
|
ref,
|
|
1698
1737
|
"data-slot": "input",
|
|
1699
|
-
className:
|
|
1738
|
+
className: cn28(
|
|
1700
1739
|
"flex h-9 w-full rounded-md border border-border bg-background px-3 py-1",
|
|
1701
1740
|
"text-sm text-foreground shadow-xs",
|
|
1702
1741
|
"placeholder:text-muted-foreground",
|
|
@@ -1710,7 +1749,7 @@ function MosaicInput({ className, ref, ...props }) {
|
|
|
1710
1749
|
);
|
|
1711
1750
|
}
|
|
1712
1751
|
MosaicInput.displayName = "MosaicInput";
|
|
1713
|
-
function
|
|
1752
|
+
function cn29(...classes) {
|
|
1714
1753
|
return classes.filter(Boolean).join(" ");
|
|
1715
1754
|
}
|
|
1716
1755
|
function MosaicInputGroup({
|
|
@@ -1726,7 +1765,7 @@ function MosaicInputGroup({
|
|
|
1726
1765
|
{
|
|
1727
1766
|
ref,
|
|
1728
1767
|
"data-slot": "input-group",
|
|
1729
|
-
className:
|
|
1768
|
+
className: cn29("flex items-center", className),
|
|
1730
1769
|
...props,
|
|
1731
1770
|
children: [
|
|
1732
1771
|
prefix ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -1751,7 +1790,7 @@ function MosaicInputGroup({
|
|
|
1751
1790
|
);
|
|
1752
1791
|
}
|
|
1753
1792
|
MosaicInputGroup.displayName = "MosaicInputGroup";
|
|
1754
|
-
function
|
|
1793
|
+
function cn30(...classes) {
|
|
1755
1794
|
return classes.filter(Boolean).join(" ");
|
|
1756
1795
|
}
|
|
1757
1796
|
function MosaicFieldRoot({ className, children, ref, ...props }) {
|
|
@@ -1760,7 +1799,7 @@ function MosaicFieldRoot({ className, children, ref, ...props }) {
|
|
|
1760
1799
|
{
|
|
1761
1800
|
ref,
|
|
1762
1801
|
"data-slot": "field",
|
|
1763
|
-
className:
|
|
1802
|
+
className: cn30("flex flex-col gap-1.5", className),
|
|
1764
1803
|
...props,
|
|
1765
1804
|
children
|
|
1766
1805
|
}
|
|
@@ -1772,7 +1811,7 @@ function MosaicFieldLabel({ className, children, ref, ...props }) {
|
|
|
1772
1811
|
field.Field.Label,
|
|
1773
1812
|
{
|
|
1774
1813
|
ref,
|
|
1775
|
-
className:
|
|
1814
|
+
className: cn30(
|
|
1776
1815
|
"text-sm font-medium leading-none text-foreground",
|
|
1777
1816
|
"data-[disabled]:opacity-50",
|
|
1778
1817
|
className
|
|
@@ -1784,7 +1823,7 @@ function MosaicFieldLabel({ className, children, ref, ...props }) {
|
|
|
1784
1823
|
}
|
|
1785
1824
|
MosaicFieldLabel.displayName = "MosaicField.Label";
|
|
1786
1825
|
function MosaicFieldControl({ className, ref, ...props }) {
|
|
1787
|
-
return /* @__PURE__ */ jsxRuntime.jsx(field.Field.Control, { ref, className:
|
|
1826
|
+
return /* @__PURE__ */ jsxRuntime.jsx(field.Field.Control, { ref, className: cn30(className), ...props });
|
|
1788
1827
|
}
|
|
1789
1828
|
MosaicFieldControl.displayName = "MosaicField.Control";
|
|
1790
1829
|
function MosaicFieldDescription({
|
|
@@ -1797,7 +1836,7 @@ function MosaicFieldDescription({
|
|
|
1797
1836
|
field.Field.Description,
|
|
1798
1837
|
{
|
|
1799
1838
|
ref,
|
|
1800
|
-
className:
|
|
1839
|
+
className: cn30("text-xs text-muted-foreground", className),
|
|
1801
1840
|
...props,
|
|
1802
1841
|
children
|
|
1803
1842
|
}
|
|
@@ -1817,7 +1856,7 @@ function MosaicFieldError({
|
|
|
1817
1856
|
{
|
|
1818
1857
|
ref,
|
|
1819
1858
|
match: show === true ? true : void 0,
|
|
1820
|
-
className:
|
|
1859
|
+
className: cn30("text-xs font-medium text-destructive", className),
|
|
1821
1860
|
...props,
|
|
1822
1861
|
children
|
|
1823
1862
|
}
|
|
@@ -1830,7 +1869,7 @@ var MosaicField = Object.assign(MosaicFieldRoot, {
|
|
|
1830
1869
|
Description: MosaicFieldDescription,
|
|
1831
1870
|
Error: MosaicFieldError
|
|
1832
1871
|
});
|
|
1833
|
-
function
|
|
1872
|
+
function cn31(...classes) {
|
|
1834
1873
|
return classes.filter(Boolean).join(" ");
|
|
1835
1874
|
}
|
|
1836
1875
|
function MosaicSwitch({ className, ref, ...props }) {
|
|
@@ -1839,7 +1878,7 @@ function MosaicSwitch({ className, ref, ...props }) {
|
|
|
1839
1878
|
{
|
|
1840
1879
|
ref,
|
|
1841
1880
|
"data-slot": "switch",
|
|
1842
|
-
className:
|
|
1881
|
+
className: cn31(
|
|
1843
1882
|
// Track
|
|
1844
1883
|
"relative inline-flex h-6 w-10 shrink-0 cursor-pointer items-center",
|
|
1845
1884
|
"rounded-full border-2 border-transparent outline-none",
|
|
@@ -1857,7 +1896,7 @@ function MosaicSwitch({ className, ref, ...props }) {
|
|
|
1857
1896
|
_switch.Switch.Thumb,
|
|
1858
1897
|
{
|
|
1859
1898
|
"data-slot": "switch-thumb",
|
|
1860
|
-
className:
|
|
1899
|
+
className: cn31(
|
|
1861
1900
|
"pointer-events-none block h-4 w-4 rounded-full",
|
|
1862
1901
|
"bg-background shadow-sm",
|
|
1863
1902
|
"translate-x-0 transition-transform",
|
|
@@ -1869,7 +1908,7 @@ function MosaicSwitch({ className, ref, ...props }) {
|
|
|
1869
1908
|
);
|
|
1870
1909
|
}
|
|
1871
1910
|
MosaicSwitch.displayName = "MosaicSwitch";
|
|
1872
|
-
function
|
|
1911
|
+
function cn32(...classes) {
|
|
1873
1912
|
return classes.filter(Boolean).join(" ");
|
|
1874
1913
|
}
|
|
1875
1914
|
function MosaicSelect({
|
|
@@ -1901,7 +1940,7 @@ function MosaicSelect({
|
|
|
1901
1940
|
select.Select.Trigger,
|
|
1902
1941
|
{
|
|
1903
1942
|
"data-slot": "select",
|
|
1904
|
-
className:
|
|
1943
|
+
className: cn32(
|
|
1905
1944
|
"inline-flex h-9 w-full min-w-[8rem] items-center justify-between gap-2",
|
|
1906
1945
|
"rounded-md border border-border bg-background px-3 py-2",
|
|
1907
1946
|
"text-sm text-foreground shadow-xs outline-none",
|
|
@@ -1921,7 +1960,7 @@ function MosaicSelect({
|
|
|
1921
1960
|
select.Select.Popup,
|
|
1922
1961
|
{
|
|
1923
1962
|
"data-slot": "select-popup",
|
|
1924
|
-
className:
|
|
1963
|
+
className: cn32(
|
|
1925
1964
|
"z-50 min-w-[8rem] overflow-hidden rounded-md border border-border",
|
|
1926
1965
|
"bg-popover p-1 text-popover-foreground shadow-md",
|
|
1927
1966
|
"origin-[var(--transform-origin)]",
|
|
@@ -1935,7 +1974,7 @@ function MosaicSelect({
|
|
|
1935
1974
|
{
|
|
1936
1975
|
value: item.value,
|
|
1937
1976
|
disabled: item.disabled,
|
|
1938
|
-
className:
|
|
1977
|
+
className: cn32(
|
|
1939
1978
|
"relative flex cursor-pointer select-none items-center rounded-sm px-2 py-1.5",
|
|
1940
1979
|
"text-sm text-popover-foreground outline-none",
|
|
1941
1980
|
"data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground",
|
|
@@ -1989,7 +2028,7 @@ function CheckIcon() {
|
|
|
1989
2028
|
}
|
|
1990
2029
|
);
|
|
1991
2030
|
}
|
|
1992
|
-
function
|
|
2031
|
+
function cn33(...classes) {
|
|
1993
2032
|
return classes.filter(Boolean).join(" ");
|
|
1994
2033
|
}
|
|
1995
2034
|
function MosaicCombobox({
|
|
@@ -2018,12 +2057,12 @@ function MosaicCombobox({
|
|
|
2018
2057
|
name,
|
|
2019
2058
|
onInputValueChange: setInputValue,
|
|
2020
2059
|
autoHighlight: true,
|
|
2021
|
-
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "combobox", className:
|
|
2060
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "combobox", className: cn33("relative w-full", className), children: [
|
|
2022
2061
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2023
2062
|
combobox.Combobox.Input,
|
|
2024
2063
|
{
|
|
2025
2064
|
placeholder,
|
|
2026
|
-
className:
|
|
2065
|
+
className: cn33(
|
|
2027
2066
|
"h-9 w-full rounded-md border border-border bg-background px-3 py-2",
|
|
2028
2067
|
"text-sm text-foreground shadow-xs outline-none",
|
|
2029
2068
|
"placeholder:text-muted-foreground",
|
|
@@ -2035,7 +2074,7 @@ function MosaicCombobox({
|
|
|
2035
2074
|
/* @__PURE__ */ jsxRuntime.jsx(combobox.Combobox.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(combobox.Combobox.Positioner, { sideOffset: 4, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2036
2075
|
combobox.Combobox.Popup,
|
|
2037
2076
|
{
|
|
2038
|
-
className:
|
|
2077
|
+
className: cn33(
|
|
2039
2078
|
"z-50 min-w-[8rem] overflow-hidden rounded-md border border-border",
|
|
2040
2079
|
"bg-popover p-1 text-popover-foreground shadow-md",
|
|
2041
2080
|
"origin-[var(--transform-origin)]",
|
|
@@ -2050,7 +2089,7 @@ function MosaicCombobox({
|
|
|
2050
2089
|
{
|
|
2051
2090
|
value: item.value,
|
|
2052
2091
|
disabled: item.disabled,
|
|
2053
|
-
className:
|
|
2092
|
+
className: cn33(
|
|
2054
2093
|
"relative flex cursor-pointer select-none items-center rounded-sm px-2 py-1.5",
|
|
2055
2094
|
"text-sm text-popover-foreground outline-none",
|
|
2056
2095
|
"data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground",
|
|
@@ -2069,7 +2108,7 @@ function MosaicCombobox({
|
|
|
2069
2108
|
}
|
|
2070
2109
|
);
|
|
2071
2110
|
}
|
|
2072
|
-
function
|
|
2111
|
+
function cn34(...classes) {
|
|
2073
2112
|
return classes.filter(Boolean).join(" ");
|
|
2074
2113
|
}
|
|
2075
2114
|
function MosaicDropdownMenu({
|
|
@@ -2086,7 +2125,7 @@ function MosaicDropdownMenu({
|
|
|
2086
2125
|
menu.Menu.Popup,
|
|
2087
2126
|
{
|
|
2088
2127
|
"data-slot": "dropdown-menu",
|
|
2089
|
-
className:
|
|
2128
|
+
className: cn34(
|
|
2090
2129
|
"z-50 min-w-[8rem] overflow-hidden rounded-md border border-border",
|
|
2091
2130
|
"bg-popover p-1 text-popover-foreground shadow-md",
|
|
2092
2131
|
"origin-[var(--transform-origin)]",
|
|
@@ -2103,7 +2142,7 @@ function MosaicDropdownMenu({
|
|
|
2103
2142
|
{
|
|
2104
2143
|
disabled: item.disabled,
|
|
2105
2144
|
onClick: () => onItemSelect?.(item.id),
|
|
2106
|
-
className:
|
|
2145
|
+
className: cn34(
|
|
2107
2146
|
"relative flex cursor-pointer select-none items-center rounded-sm px-2 py-1.5",
|
|
2108
2147
|
"text-sm text-popover-foreground outline-none",
|
|
2109
2148
|
"data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground",
|
|
@@ -2245,7 +2284,7 @@ function useDevice() {
|
|
|
2245
2284
|
}
|
|
2246
2285
|
return ctx;
|
|
2247
2286
|
}
|
|
2248
|
-
function
|
|
2287
|
+
function cn35(...classes) {
|
|
2249
2288
|
return classes.filter(Boolean).join(" ");
|
|
2250
2289
|
}
|
|
2251
2290
|
function MosaicAdaptiveGrid({
|
|
@@ -2264,14 +2303,14 @@ function MosaicAdaptiveGrid({
|
|
|
2264
2303
|
{
|
|
2265
2304
|
ref,
|
|
2266
2305
|
"data-slot": "adaptive-grid",
|
|
2267
|
-
className:
|
|
2306
|
+
className: cn35("grid", gap, className),
|
|
2268
2307
|
style: { gridTemplateColumns: `repeat(${cols}, minmax(0, 1fr))` },
|
|
2269
2308
|
children
|
|
2270
2309
|
}
|
|
2271
2310
|
);
|
|
2272
2311
|
}
|
|
2273
2312
|
MosaicAdaptiveGrid.displayName = "MosaicAdaptiveGrid";
|
|
2274
|
-
function
|
|
2313
|
+
function cn36(...classes) {
|
|
2275
2314
|
return classes.filter(Boolean).join(" ");
|
|
2276
2315
|
}
|
|
2277
2316
|
var ANIM_ID = "mosaic-adaptive-modal-kf";
|
|
@@ -2376,7 +2415,7 @@ function MosaicAdaptiveModal({
|
|
|
2376
2415
|
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2377
2416
|
"div",
|
|
2378
2417
|
{
|
|
2379
|
-
className:
|
|
2418
|
+
className: cn36(
|
|
2380
2419
|
"mosaic-sheet-panel relative w-full rounded-t-2xl border-t border-border bg-background",
|
|
2381
2420
|
"max-h-[90dvh] flex flex-col",
|
|
2382
2421
|
className
|
|
@@ -2409,7 +2448,7 @@ function MosaicAdaptiveModal({
|
|
|
2409
2448
|
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2410
2449
|
"div",
|
|
2411
2450
|
{
|
|
2412
|
-
className:
|
|
2451
|
+
className: cn36(
|
|
2413
2452
|
"mosaic-modal-panel relative w-[min(90vw,42rem)] rounded-xl border border-border bg-background shadow-xl",
|
|
2414
2453
|
"max-h-[90vh] flex flex-col",
|
|
2415
2454
|
className
|
|
@@ -2457,7 +2496,7 @@ function MosaicAdaptiveModal({
|
|
|
2457
2496
|
);
|
|
2458
2497
|
}
|
|
2459
2498
|
MosaicAdaptiveModal.displayName = "MosaicAdaptiveModal";
|
|
2460
|
-
function
|
|
2499
|
+
function cn37(...classes) {
|
|
2461
2500
|
return classes.filter(Boolean).join(" ");
|
|
2462
2501
|
}
|
|
2463
2502
|
function CheckIcon2() {
|
|
@@ -2514,7 +2553,7 @@ function MosaicAdaptiveNavigation({
|
|
|
2514
2553
|
{
|
|
2515
2554
|
ref,
|
|
2516
2555
|
"data-slot": "adaptive-navigation",
|
|
2517
|
-
className:
|
|
2556
|
+
className: cn37("space-y-3", className),
|
|
2518
2557
|
"aria-label": "Step navigation",
|
|
2519
2558
|
children: items.map((item, idx) => {
|
|
2520
2559
|
const isExpanded = expandedItems?.has(item.id) ?? false;
|
|
@@ -2532,7 +2571,7 @@ function MosaicAdaptiveNavigation({
|
|
|
2532
2571
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2533
2572
|
"div",
|
|
2534
2573
|
{
|
|
2535
|
-
className:
|
|
2574
|
+
className: cn37(
|
|
2536
2575
|
"flex h-8 w-8 shrink-0 items-center justify-center rounded-full text-xs font-bold",
|
|
2537
2576
|
item.isComplete ? "bg-green-500 text-white" : "bg-muted text-muted-foreground"
|
|
2538
2577
|
),
|
|
@@ -2566,7 +2605,7 @@ function MosaicAdaptiveNavigation({
|
|
|
2566
2605
|
{
|
|
2567
2606
|
ref,
|
|
2568
2607
|
"data-slot": "adaptive-navigation",
|
|
2569
|
-
className:
|
|
2608
|
+
className: cn37("w-full", className),
|
|
2570
2609
|
"aria-label": "Tab navigation",
|
|
2571
2610
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2572
2611
|
"div",
|
|
@@ -2583,7 +2622,7 @@ function MosaicAdaptiveNavigation({
|
|
|
2583
2622
|
role: "tab",
|
|
2584
2623
|
"aria-selected": isActive,
|
|
2585
2624
|
onClick: () => onItemChange(item.id),
|
|
2586
|
-
className:
|
|
2625
|
+
className: cn37(
|
|
2587
2626
|
"flex items-center justify-center gap-2 rounded-md px-3 py-2 text-sm font-medium transition-colors",
|
|
2588
2627
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1",
|
|
2589
2628
|
isActive ? "bg-primary text-primary-foreground shadow-sm" : "text-muted-foreground hover:text-foreground"
|
|
@@ -2592,7 +2631,7 @@ function MosaicAdaptiveNavigation({
|
|
|
2592
2631
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2593
2632
|
"div",
|
|
2594
2633
|
{
|
|
2595
|
-
className:
|
|
2634
|
+
className: cn37(
|
|
2596
2635
|
"flex h-6 w-6 shrink-0 items-center justify-center rounded-full text-xs font-bold",
|
|
2597
2636
|
item.isComplete ? "bg-green-500 text-white" : isActive ? "bg-primary-foreground/20 text-primary-foreground" : "bg-background text-muted-foreground"
|
|
2598
2637
|
),
|
|
@@ -2604,7 +2643,7 @@ function MosaicAdaptiveNavigation({
|
|
|
2604
2643
|
item.duration !== void 0 && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2605
2644
|
"span",
|
|
2606
2645
|
{
|
|
2607
|
-
className:
|
|
2646
|
+
className: cn37(
|
|
2608
2647
|
"rounded px-1 py-0.5 text-xs",
|
|
2609
2648
|
isActive ? "bg-primary-foreground/20" : "bg-muted"
|
|
2610
2649
|
),
|
|
@@ -2625,7 +2664,7 @@ function MosaicAdaptiveNavigation({
|
|
|
2625
2664
|
);
|
|
2626
2665
|
}
|
|
2627
2666
|
MosaicAdaptiveNavigation.displayName = "MosaicAdaptiveNavigation";
|
|
2628
|
-
function
|
|
2667
|
+
function cn38(...classes) {
|
|
2629
2668
|
return classes.filter(Boolean).join(" ");
|
|
2630
2669
|
}
|
|
2631
2670
|
var ANIM_ID2 = "mosaic-sidebar-kf";
|
|
@@ -2795,7 +2834,7 @@ function MosaicAppSidebar({
|
|
|
2795
2834
|
{
|
|
2796
2835
|
ref,
|
|
2797
2836
|
"data-slot": "app-sidebar",
|
|
2798
|
-
className:
|
|
2837
|
+
className: cn38(
|
|
2799
2838
|
"flex h-full flex-col bg-sidebar border-r border-sidebar-border",
|
|
2800
2839
|
isMobile && "border-r-0",
|
|
2801
2840
|
className
|
|
@@ -2815,7 +2854,7 @@ function MosaicAppSidebar({
|
|
|
2815
2854
|
type: "button",
|
|
2816
2855
|
onClick: onToggleCollapse,
|
|
2817
2856
|
"aria-label": isCollapsed ? "Expand sidebar" : "Collapse sidebar",
|
|
2818
|
-
className:
|
|
2857
|
+
className: cn38(
|
|
2819
2858
|
"flex h-9 w-9 items-center justify-center rounded-lg transition-colors",
|
|
2820
2859
|
"hover:bg-sidebar-accent text-sidebar-foreground",
|
|
2821
2860
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -2845,7 +2884,7 @@ function MosaicAppSidebar({
|
|
|
2845
2884
|
},
|
|
2846
2885
|
"aria-current": isActive ? "page" : void 0,
|
|
2847
2886
|
"aria-expanded": hasSubmenu && !isCollapsed ? isExpanded : void 0,
|
|
2848
|
-
className:
|
|
2887
|
+
className: cn38(
|
|
2849
2888
|
"group flex w-full min-h-[44px] items-center rounded-lg p-3 transition-colors",
|
|
2850
2889
|
"hover:bg-sidebar-accent",
|
|
2851
2890
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -2872,7 +2911,7 @@ function MosaicAppSidebar({
|
|
|
2872
2911
|
type: "button",
|
|
2873
2912
|
onClick: () => handleNavClick(sub.href),
|
|
2874
2913
|
"aria-current": isSubActive ? "page" : void 0,
|
|
2875
|
-
className:
|
|
2914
|
+
className: cn38(
|
|
2876
2915
|
"flex w-full min-h-[40px] items-center gap-3 rounded-lg px-3 py-2 text-sm transition-colors",
|
|
2877
2916
|
"hover:bg-sidebar-accent/50 text-sidebar-foreground",
|
|
2878
2917
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -2895,7 +2934,7 @@ function MosaicAppSidebar({
|
|
|
2895
2934
|
{
|
|
2896
2935
|
type: "button",
|
|
2897
2936
|
onClick: action.onClick,
|
|
2898
|
-
className:
|
|
2937
|
+
className: cn38(
|
|
2899
2938
|
"flex w-full min-h-[44px] items-center gap-3 rounded-lg px-3 py-2 text-sm font-medium",
|
|
2900
2939
|
"text-sidebar-foreground transition-colors hover:bg-sidebar-accent",
|
|
2901
2940
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -2942,7 +2981,7 @@ function MosaicAppSidebar({
|
|
|
2942
2981
|
);
|
|
2943
2982
|
}
|
|
2944
2983
|
MosaicAppSidebar.displayName = "MosaicAppSidebar";
|
|
2945
|
-
function
|
|
2984
|
+
function cn39(...classes) {
|
|
2946
2985
|
return classes.filter(Boolean).join(" ");
|
|
2947
2986
|
}
|
|
2948
2987
|
var ANIM_ID3 = "mosaic-dashboard-kf";
|
|
@@ -3032,7 +3071,7 @@ function MosaicDashboardLayout({
|
|
|
3032
3071
|
{
|
|
3033
3072
|
ref,
|
|
3034
3073
|
"data-slot": "dashboard-layout",
|
|
3035
|
-
className:
|
|
3074
|
+
className: cn39("flex h-screen w-full bg-background", className),
|
|
3036
3075
|
children: [
|
|
3037
3076
|
!isMobile && /* @__PURE__ */ jsxRuntime.jsx(
|
|
3038
3077
|
MosaicAppSidebar,
|
|
@@ -3056,7 +3095,7 @@ function MosaicDashboardLayout({
|
|
|
3056
3095
|
type: "button",
|
|
3057
3096
|
"aria-label": "Open navigation",
|
|
3058
3097
|
onClick: () => setIsMobileSidebarOpen(true),
|
|
3059
|
-
className:
|
|
3098
|
+
className: cn39(
|
|
3060
3099
|
"flex h-11 w-11 shrink-0 items-center justify-center rounded-lg",
|
|
3061
3100
|
"text-foreground transition-colors hover:bg-muted",
|
|
3062
3101
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -3108,7 +3147,7 @@ function MosaicDashboardLayout({
|
|
|
3108
3147
|
);
|
|
3109
3148
|
}
|
|
3110
3149
|
MosaicDashboardLayout.displayName = "MosaicDashboardLayout";
|
|
3111
|
-
function
|
|
3150
|
+
function cn40(...classes) {
|
|
3112
3151
|
return classes.filter(Boolean).join(" ");
|
|
3113
3152
|
}
|
|
3114
3153
|
var ANIM_ID4 = "mosaic-quick-action-kf";
|
|
@@ -3163,7 +3202,7 @@ function MosaicQuickActionCard({
|
|
|
3163
3202
|
{
|
|
3164
3203
|
ref,
|
|
3165
3204
|
"data-slot": "quick-action-card",
|
|
3166
|
-
className:
|
|
3205
|
+
className: cn40("rounded-xl border border-border bg-card", className),
|
|
3167
3206
|
children: [
|
|
3168
3207
|
heading && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "border-b border-border px-6 py-4", children: /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "text-lg font-semibold text-foreground", children: heading }) }),
|
|
3169
3208
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -3188,7 +3227,7 @@ function MosaicQuickActionCard({
|
|
|
3188
3227
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
3189
3228
|
"div",
|
|
3190
3229
|
{
|
|
3191
|
-
className:
|
|
3230
|
+
className: cn40(
|
|
3192
3231
|
"flex min-h-[100px] cursor-pointer flex-col items-center justify-center gap-2 rounded-xl border p-4",
|
|
3193
3232
|
"transition-transform duration-150 hover:scale-105 active:scale-[0.98]",
|
|
3194
3233
|
accentClass
|
|
@@ -3221,7 +3260,7 @@ function MosaicQuickActionCard({
|
|
|
3221
3260
|
);
|
|
3222
3261
|
}
|
|
3223
3262
|
MosaicQuickActionCard.displayName = "MosaicQuickActionCard";
|
|
3224
|
-
function
|
|
3263
|
+
function cn41(...classes) {
|
|
3225
3264
|
return classes.filter(Boolean).join(" ");
|
|
3226
3265
|
}
|
|
3227
3266
|
var ANIM_ID5 = "mosaic-activity-feed-kf";
|
|
@@ -3310,7 +3349,7 @@ function MosaicActivityItem({ activity, icon, className }) {
|
|
|
3310
3349
|
"div",
|
|
3311
3350
|
{
|
|
3312
3351
|
"data-slot": "activity-item",
|
|
3313
|
-
className:
|
|
3352
|
+
className: cn41(
|
|
3314
3353
|
"flex cursor-pointer items-start gap-4 rounded-lg p-3 transition-colors hover:bg-muted/50",
|
|
3315
3354
|
className
|
|
3316
3355
|
),
|
|
@@ -3344,7 +3383,7 @@ function MosaicActivityItem({ activity, icon, className }) {
|
|
|
3344
3383
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3345
3384
|
"span",
|
|
3346
3385
|
{
|
|
3347
|
-
className:
|
|
3386
|
+
className: cn41(
|
|
3348
3387
|
"rounded-full px-2 py-0.5 text-xs font-medium",
|
|
3349
3388
|
getStatusClass(activity.status)
|
|
3350
3389
|
),
|
|
@@ -3385,7 +3424,7 @@ function MosaicActivityFeed({
|
|
|
3385
3424
|
{
|
|
3386
3425
|
ref,
|
|
3387
3426
|
"data-slot": "activity-feed",
|
|
3388
|
-
className:
|
|
3427
|
+
className: cn41("rounded-xl border border-border bg-card", className),
|
|
3389
3428
|
children: [
|
|
3390
3429
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between border-b border-border px-6 py-4", children: [
|
|
3391
3430
|
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "text-lg font-semibold text-foreground", children: heading }),
|
|
@@ -3411,7 +3450,7 @@ function MosaicActivityFeed({
|
|
|
3411
3450
|
);
|
|
3412
3451
|
}
|
|
3413
3452
|
MosaicActivityFeed.displayName = "MosaicActivityFeed";
|
|
3414
|
-
function
|
|
3453
|
+
function cn42(...classes) {
|
|
3415
3454
|
return classes.filter(Boolean).join(" ");
|
|
3416
3455
|
}
|
|
3417
3456
|
function SparklesIcon() {
|
|
@@ -3620,7 +3659,7 @@ function MosaicAgentComposerDesktop({
|
|
|
3620
3659
|
value: agentName,
|
|
3621
3660
|
onChange: (e) => onAgentNameChange(e.target.value),
|
|
3622
3661
|
placeholder: "Enter agent name\u2026",
|
|
3623
|
-
className:
|
|
3662
|
+
className: cn42(
|
|
3624
3663
|
"flex min-h-[48px] w-full rounded-lg border border-input bg-transparent px-3 py-2 text-sm",
|
|
3625
3664
|
"placeholder:text-muted-foreground",
|
|
3626
3665
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -3721,7 +3760,7 @@ function MosaicAgentComposerDesktop({
|
|
|
3721
3760
|
onChange: (e) => onCustomInstructionsChange(e.target.value),
|
|
3722
3761
|
placeholder: "Add any specific instructions or behaviors\u2026",
|
|
3723
3762
|
rows: 5,
|
|
3724
|
-
className:
|
|
3763
|
+
className: cn42(
|
|
3725
3764
|
"flex w-full resize-y rounded-lg border border-input bg-transparent px-3 py-2 text-sm",
|
|
3726
3765
|
"placeholder:text-muted-foreground",
|
|
3727
3766
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -3789,7 +3828,7 @@ function MosaicAgentComposerDesktop({
|
|
|
3789
3828
|
/* @__PURE__ */ jsxRuntime.jsx(SparklesIcon, {}),
|
|
3790
3829
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-muted-foreground", children: "Select all modules to see preview" })
|
|
3791
3830
|
] }) }),
|
|
3792
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
3831
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn42("flex gap-2", isEditMode && onCancel ? "flex-row" : "flex-col"), children: [
|
|
3793
3832
|
isEditMode && onCancel && /* @__PURE__ */ jsxRuntime.jsx(
|
|
3794
3833
|
"button",
|
|
3795
3834
|
{
|
|
@@ -3805,7 +3844,7 @@ function MosaicAgentComposerDesktop({
|
|
|
3805
3844
|
type: "button",
|
|
3806
3845
|
onClick: onSave,
|
|
3807
3846
|
disabled: !canSave,
|
|
3808
|
-
className:
|
|
3847
|
+
className: cn42(
|
|
3809
3848
|
"flex min-h-[48px] items-center justify-center gap-2 rounded-lg text-sm font-medium transition-colors",
|
|
3810
3849
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
3811
3850
|
"bg-primary text-primary-foreground hover:bg-primary/90",
|
|
@@ -3826,7 +3865,7 @@ function MosaicAgentComposerDesktop({
|
|
|
3826
3865
|
] });
|
|
3827
3866
|
}
|
|
3828
3867
|
MosaicAgentComposerDesktop.displayName = "MosaicAgentComposerDesktop";
|
|
3829
|
-
function
|
|
3868
|
+
function cn43(...classes) {
|
|
3830
3869
|
return classes.filter(Boolean).join(" ");
|
|
3831
3870
|
}
|
|
3832
3871
|
function SparklesIcon2() {
|
|
@@ -4082,7 +4121,7 @@ function MosaicAgentComposerMobile({
|
|
|
4082
4121
|
disabled: isLoading,
|
|
4083
4122
|
"aria-required": "true",
|
|
4084
4123
|
"aria-invalid": canSave && !agentName ? "true" : "false",
|
|
4085
|
-
className:
|
|
4124
|
+
className: cn43(
|
|
4086
4125
|
"flex min-h-[48px] w-full rounded-lg border border-input bg-transparent px-3 py-2 text-sm",
|
|
4087
4126
|
"placeholder:text-muted-foreground",
|
|
4088
4127
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -4186,7 +4225,7 @@ function MosaicAgentComposerMobile({
|
|
|
4186
4225
|
disabled: isLoading,
|
|
4187
4226
|
"aria-describedby": `${instructionsId}-help`,
|
|
4188
4227
|
rows: 4,
|
|
4189
|
-
className:
|
|
4228
|
+
className: cn43(
|
|
4190
4229
|
"flex w-full resize-y rounded-lg border border-input bg-transparent px-3 py-2 text-sm",
|
|
4191
4230
|
"placeholder:text-muted-foreground",
|
|
4192
4231
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -4242,7 +4281,7 @@ function MosaicAgentComposer(props) {
|
|
|
4242
4281
|
return isMobile ? /* @__PURE__ */ jsxRuntime.jsx(MosaicAgentComposerMobile, { ...props }) : /* @__PURE__ */ jsxRuntime.jsx(MosaicAgentComposerDesktop, { ...props });
|
|
4243
4282
|
}
|
|
4244
4283
|
MosaicAgentComposer.displayName = "MosaicAgentComposer";
|
|
4245
|
-
function
|
|
4284
|
+
function cn44(...classes) {
|
|
4246
4285
|
return classes.filter(Boolean).join(" ");
|
|
4247
4286
|
}
|
|
4248
4287
|
function EditIcon() {
|
|
@@ -4300,7 +4339,7 @@ function MosaicModuleCard({
|
|
|
4300
4339
|
{
|
|
4301
4340
|
ref,
|
|
4302
4341
|
"data-slot": "module-card",
|
|
4303
|
-
className:
|
|
4342
|
+
className: cn44(
|
|
4304
4343
|
"min-h-[80px] rounded-xl border border-border bg-card p-4 transition-all",
|
|
4305
4344
|
"flex items-start gap-3",
|
|
4306
4345
|
isSelected && "ring-2 ring-primary bg-primary/5",
|
|
@@ -4362,7 +4401,7 @@ function MosaicThemeProvider({
|
|
|
4362
4401
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { "data-slot": "theme-provider", children });
|
|
4363
4402
|
}
|
|
4364
4403
|
MosaicThemeProvider.displayName = "MosaicThemeProvider";
|
|
4365
|
-
function
|
|
4404
|
+
function cn45(...classes) {
|
|
4366
4405
|
return classes.filter(Boolean).join(" ");
|
|
4367
4406
|
}
|
|
4368
4407
|
var ANIM_ID6 = "mosaic-delete-dialog-kf";
|
|
@@ -4416,14 +4455,14 @@ function MosaicDeleteConfirmationDialog({
|
|
|
4416
4455
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4417
4456
|
alertDialog.AlertDialog.Backdrop,
|
|
4418
4457
|
{
|
|
4419
|
-
className:
|
|
4458
|
+
className: cn45("mosaic-delete-overlay", "fixed inset-0 z-50 bg-black/50")
|
|
4420
4459
|
}
|
|
4421
4460
|
),
|
|
4422
4461
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
4423
4462
|
alertDialog.AlertDialog.Popup,
|
|
4424
4463
|
{
|
|
4425
4464
|
"data-slot": "delete-confirmation-dialog",
|
|
4426
|
-
className:
|
|
4465
|
+
className: cn45(
|
|
4427
4466
|
"mosaic-delete-content",
|
|
4428
4467
|
"fixed left-1/2 top-1/2 z-50",
|
|
4429
4468
|
"w-full max-w-[92vw] sm:max-w-md",
|
|
@@ -4436,7 +4475,7 @@ function MosaicDeleteConfirmationDialog({
|
|
|
4436
4475
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4437
4476
|
alertDialog.AlertDialog.Close,
|
|
4438
4477
|
{
|
|
4439
|
-
className:
|
|
4478
|
+
className: cn45(
|
|
4440
4479
|
"inline-flex min-h-[44px] w-full items-center justify-center rounded-md border border-border",
|
|
4441
4480
|
"bg-background px-4 py-2 text-sm font-medium text-foreground",
|
|
4442
4481
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -4450,7 +4489,7 @@ function MosaicDeleteConfirmationDialog({
|
|
|
4450
4489
|
alertDialog.AlertDialog.Close,
|
|
4451
4490
|
{
|
|
4452
4491
|
onClick: onConfirm,
|
|
4453
|
-
className:
|
|
4492
|
+
className: cn45(
|
|
4454
4493
|
"inline-flex min-h-[44px] w-full items-center justify-center rounded-md",
|
|
4455
4494
|
"bg-destructive px-4 py-2 text-sm font-medium text-destructive-foreground",
|
|
4456
4495
|
"hover:bg-destructive/90",
|
|
@@ -4467,7 +4506,7 @@ function MosaicDeleteConfirmationDialog({
|
|
|
4467
4506
|
] }) });
|
|
4468
4507
|
}
|
|
4469
4508
|
MosaicDeleteConfirmationDialog.displayName = "MosaicDeleteConfirmationDialog";
|
|
4470
|
-
function
|
|
4509
|
+
function cn46(...classes) {
|
|
4471
4510
|
return classes.filter(Boolean).join(" ");
|
|
4472
4511
|
}
|
|
4473
4512
|
function Toggle({
|
|
@@ -4483,7 +4522,7 @@ function Toggle({
|
|
|
4483
4522
|
id,
|
|
4484
4523
|
"aria-checked": checked,
|
|
4485
4524
|
onClick: () => onChange(!checked),
|
|
4486
|
-
className:
|
|
4525
|
+
className: cn46(
|
|
4487
4526
|
"relative inline-flex h-6 w-11 shrink-0 cursor-pointer rounded-full border-2 border-transparent",
|
|
4488
4527
|
"transition-colors duration-200 ease-in-out",
|
|
4489
4528
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
@@ -4492,7 +4531,7 @@ function Toggle({
|
|
|
4492
4531
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
4493
4532
|
"span",
|
|
4494
4533
|
{
|
|
4495
|
-
className:
|
|
4534
|
+
className: cn46(
|
|
4496
4535
|
"pointer-events-none inline-block h-5 w-5 rounded-full bg-background shadow-lg",
|
|
4497
4536
|
"transform transition duration-200 ease-in-out",
|
|
4498
4537
|
checked ? "translate-x-5" : "translate-x-0"
|
|
@@ -4514,7 +4553,7 @@ function NativeSelect({
|
|
|
4514
4553
|
id,
|
|
4515
4554
|
value,
|
|
4516
4555
|
onChange: (e) => onChange(e.target.value),
|
|
4517
|
-
className:
|
|
4556
|
+
className: cn46(
|
|
4518
4557
|
"flex min-h-[48px] w-full rounded-md border border-input bg-background px-3 py-2",
|
|
4519
4558
|
"text-sm text-foreground",
|
|
4520
4559
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -4533,7 +4572,7 @@ function MosaicPreferencesPanel({
|
|
|
4533
4572
|
className
|
|
4534
4573
|
}) {
|
|
4535
4574
|
const { isMobile } = useDevice();
|
|
4536
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "preferences-panel", className:
|
|
4575
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "preferences-panel", className: cn46("space-y-4 md:space-y-6", className), children: [
|
|
4537
4576
|
groups.map((group) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
4538
4577
|
"div",
|
|
4539
4578
|
{
|
|
@@ -4576,13 +4615,13 @@ function MosaicPreferencesPanel({
|
|
|
4576
4615
|
},
|
|
4577
4616
|
group.id
|
|
4578
4617
|
)),
|
|
4579
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
4618
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: cn46("flex", isMobile ? "flex-col" : "justify-end"), children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
4580
4619
|
"button",
|
|
4581
4620
|
{
|
|
4582
4621
|
type: "button",
|
|
4583
4622
|
onClick: onSave,
|
|
4584
4623
|
disabled: isSaving,
|
|
4585
|
-
className:
|
|
4624
|
+
className: cn46(
|
|
4586
4625
|
"inline-flex min-h-[44px] items-center justify-center gap-2 rounded-md",
|
|
4587
4626
|
"bg-primary px-4 py-2 text-sm font-medium text-primary-foreground",
|
|
4588
4627
|
"hover:bg-primary/90",
|
|
@@ -4618,7 +4657,7 @@ function MosaicPreferencesPanel({
|
|
|
4618
4657
|
] });
|
|
4619
4658
|
}
|
|
4620
4659
|
MosaicPreferencesPanel.displayName = "MosaicPreferencesPanel";
|
|
4621
|
-
function
|
|
4660
|
+
function cn47(...classes) {
|
|
4622
4661
|
return classes.filter(Boolean).join(" ");
|
|
4623
4662
|
}
|
|
4624
4663
|
function AvatarDisplay({
|
|
@@ -4631,7 +4670,7 @@ function AvatarDisplay({
|
|
|
4631
4670
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4632
4671
|
"span",
|
|
4633
4672
|
{
|
|
4634
|
-
className:
|
|
4673
|
+
className: cn47(
|
|
4635
4674
|
"inline-flex shrink-0 items-center justify-center rounded-full bg-muted text-muted-foreground font-semibold overflow-hidden",
|
|
4636
4675
|
sizeClass
|
|
4637
4676
|
),
|
|
@@ -4653,7 +4692,7 @@ function MosaicProfilePanel({
|
|
|
4653
4692
|
className
|
|
4654
4693
|
}) {
|
|
4655
4694
|
const { isMobile } = useDevice();
|
|
4656
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "profile-panel", className:
|
|
4695
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "profile-panel", className: cn47("space-y-4 md:space-y-6", className), children: [
|
|
4657
4696
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "rounded-lg border border-border bg-card text-card-foreground shadow-sm", children: [
|
|
4658
4697
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col space-y-1.5 p-6", children: [
|
|
4659
4698
|
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "text-lg font-semibold leading-none tracking-tight md:text-xl", children: "Profile Picture" }),
|
|
@@ -4673,7 +4712,7 @@ function MosaicProfilePanel({
|
|
|
4673
4712
|
{
|
|
4674
4713
|
type: "button",
|
|
4675
4714
|
onClick: onAvatarUpload,
|
|
4676
|
-
className:
|
|
4715
|
+
className: cn47(
|
|
4677
4716
|
"inline-flex min-h-[44px] items-center justify-center gap-2 rounded-md border border-border",
|
|
4678
4717
|
"bg-background px-4 py-2 text-sm font-medium text-foreground",
|
|
4679
4718
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -4723,7 +4762,7 @@ function MosaicProfilePanel({
|
|
|
4723
4762
|
placeholder: field.placeholder,
|
|
4724
4763
|
onChange: (e) => onFieldChange?.(field.id, e.target.value),
|
|
4725
4764
|
rows: 4,
|
|
4726
|
-
className:
|
|
4765
|
+
className: cn47(
|
|
4727
4766
|
"flex min-h-[120px] w-full rounded-md border border-input bg-background px-3 py-2",
|
|
4728
4767
|
"text-sm text-foreground placeholder:text-muted-foreground",
|
|
4729
4768
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -4739,7 +4778,7 @@ function MosaicProfilePanel({
|
|
|
4739
4778
|
readOnly: field.readOnly,
|
|
4740
4779
|
placeholder: field.placeholder,
|
|
4741
4780
|
onChange: (e) => onFieldChange?.(field.id, e.target.value),
|
|
4742
|
-
className:
|
|
4781
|
+
className: cn47(
|
|
4743
4782
|
"flex min-h-[48px] w-full rounded-md border border-input bg-background px-3 py-2",
|
|
4744
4783
|
"text-sm text-foreground placeholder:text-muted-foreground",
|
|
4745
4784
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -4759,7 +4798,7 @@ function MosaicProfilePanel({
|
|
|
4759
4798
|
{
|
|
4760
4799
|
type: "button",
|
|
4761
4800
|
onClick: onChangePassword,
|
|
4762
|
-
className:
|
|
4801
|
+
className: cn47(
|
|
4763
4802
|
"inline-flex min-h-[44px] items-center justify-center rounded-md border border-border",
|
|
4764
4803
|
"bg-background px-4 py-2 text-sm font-medium text-foreground",
|
|
4765
4804
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -4771,13 +4810,13 @@ function MosaicProfilePanel({
|
|
|
4771
4810
|
) })
|
|
4772
4811
|
] }),
|
|
4773
4812
|
extraSections,
|
|
4774
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
4813
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: cn47("flex", isMobile ? "flex-col" : "justify-end"), children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
4775
4814
|
"button",
|
|
4776
4815
|
{
|
|
4777
4816
|
type: "button",
|
|
4778
4817
|
onClick: onSave,
|
|
4779
4818
|
disabled: isSaving,
|
|
4780
|
-
className:
|
|
4819
|
+
className: cn47(
|
|
4781
4820
|
"inline-flex min-h-[44px] items-center justify-center gap-2 rounded-md",
|
|
4782
4821
|
"bg-primary px-4 py-2 text-sm font-medium text-primary-foreground",
|
|
4783
4822
|
"hover:bg-primary/90",
|
|
@@ -4813,7 +4852,7 @@ function MosaicProfilePanel({
|
|
|
4813
4852
|
] });
|
|
4814
4853
|
}
|
|
4815
4854
|
MosaicProfilePanel.displayName = "MosaicProfilePanel";
|
|
4816
|
-
function
|
|
4855
|
+
function cn48(...classes) {
|
|
4817
4856
|
return classes.filter(Boolean).join(" ");
|
|
4818
4857
|
}
|
|
4819
4858
|
var ANIM_ID7 = "mosaic-main-nav-kf";
|
|
@@ -4921,7 +4960,7 @@ function MosaicMainNav({
|
|
|
4921
4960
|
{
|
|
4922
4961
|
type: "button",
|
|
4923
4962
|
onClick: () => setIsOpen(!isOpen),
|
|
4924
|
-
className:
|
|
4963
|
+
className: cn48(
|
|
4925
4964
|
"inline-flex min-h-[44px] min-w-[44px] items-center justify-center rounded-md p-0",
|
|
4926
4965
|
"text-foreground hover:bg-accent hover:text-accent-foreground",
|
|
4927
4966
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -4947,7 +4986,7 @@ function MosaicMainNav({
|
|
|
4947
4986
|
"aria-label": "Navigation",
|
|
4948
4987
|
open: isOpen,
|
|
4949
4988
|
"data-open": isOpen ? "true" : "false",
|
|
4950
|
-
className:
|
|
4989
|
+
className: cn48(
|
|
4951
4990
|
"mosaic-nav-drawer",
|
|
4952
4991
|
"fixed inset-y-0 left-0 z-50 m-0 w-[280px] max-h-none h-full p-0",
|
|
4953
4992
|
"border-r border-border bg-background shadow-xl",
|
|
@@ -4964,7 +5003,7 @@ function MosaicMainNav({
|
|
|
4964
5003
|
{
|
|
4965
5004
|
type: "button",
|
|
4966
5005
|
onClick: () => setIsOpen(false),
|
|
4967
|
-
className:
|
|
5006
|
+
className: cn48(
|
|
4968
5007
|
"inline-flex h-8 w-8 items-center justify-center rounded-md",
|
|
4969
5008
|
"text-muted-foreground hover:bg-accent hover:text-accent-foreground",
|
|
4970
5009
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -4977,7 +5016,7 @@ function MosaicMainNav({
|
|
|
4977
5016
|
/* @__PURE__ */ jsxRuntime.jsx("nav", { className: "flex flex-col gap-1 p-4", "aria-label": "Main navigation", children: filteredItems.map((item) => {
|
|
4978
5017
|
const Icon = item.icon;
|
|
4979
5018
|
const active = isItemActive(item);
|
|
4980
|
-
const itemClass =
|
|
5019
|
+
const itemClass = cn48(
|
|
4981
5020
|
"flex items-center gap-3 rounded-lg px-3 py-3 text-sm font-medium transition-colors",
|
|
4982
5021
|
"hover:bg-accent hover:text-accent-foreground",
|
|
4983
5022
|
"min-h-[44px]",
|
|
@@ -5003,12 +5042,12 @@ function MosaicMainNav({
|
|
|
5003
5042
|
"nav",
|
|
5004
5043
|
{
|
|
5005
5044
|
"data-slot": "main-nav",
|
|
5006
|
-
className:
|
|
5045
|
+
className: cn48("flex items-center gap-1", className),
|
|
5007
5046
|
"aria-label": "Main navigation",
|
|
5008
5047
|
children: filteredItems.map((item) => {
|
|
5009
5048
|
const Icon = item.icon;
|
|
5010
5049
|
const active = isItemActive(item);
|
|
5011
|
-
const itemClass =
|
|
5050
|
+
const itemClass = cn48(
|
|
5012
5051
|
"flex items-center gap-2 rounded-lg px-3 py-2 text-sm font-medium transition-colors",
|
|
5013
5052
|
"hover:bg-accent hover:text-accent-foreground",
|
|
5014
5053
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -5028,7 +5067,7 @@ function MosaicMainNav({
|
|
|
5028
5067
|
);
|
|
5029
5068
|
}
|
|
5030
5069
|
MosaicMainNav.displayName = "MosaicMainNav";
|
|
5031
|
-
function
|
|
5070
|
+
function cn49(...classes) {
|
|
5032
5071
|
return classes.filter(Boolean).join(" ");
|
|
5033
5072
|
}
|
|
5034
5073
|
function MoreVertIcon() {
|
|
@@ -5159,7 +5198,7 @@ function MosaicAgentCard({
|
|
|
5159
5198
|
"div",
|
|
5160
5199
|
{
|
|
5161
5200
|
"data-slot": "agent-card",
|
|
5162
|
-
className:
|
|
5201
|
+
className: cn49(
|
|
5163
5202
|
"relative overflow-hidden rounded-lg border border-border bg-card text-card-foreground shadow-sm",
|
|
5164
5203
|
"transition-shadow hover:shadow-md",
|
|
5165
5204
|
agent.isActive && "ring-2 ring-primary",
|
|
@@ -5169,7 +5208,7 @@ function MosaicAgentCard({
|
|
|
5169
5208
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5170
5209
|
"div",
|
|
5171
5210
|
{
|
|
5172
|
-
className:
|
|
5211
|
+
className: cn49(
|
|
5173
5212
|
"absolute left-0 top-0 h-1 w-full",
|
|
5174
5213
|
agent.isActive ? "bg-primary" : "bg-muted"
|
|
5175
5214
|
)
|
|
@@ -5181,7 +5220,7 @@ function MosaicAgentCard({
|
|
|
5181
5220
|
agent.accentColor && /* @__PURE__ */ jsxRuntime.jsx(
|
|
5182
5221
|
"span",
|
|
5183
5222
|
{
|
|
5184
|
-
className:
|
|
5223
|
+
className: cn49("h-3 w-3 shrink-0 rounded-full", agent.accentColor),
|
|
5185
5224
|
"aria-hidden": "true"
|
|
5186
5225
|
}
|
|
5187
5226
|
),
|
|
@@ -5199,7 +5238,7 @@ function MosaicAgentCard({
|
|
|
5199
5238
|
{
|
|
5200
5239
|
type: "button",
|
|
5201
5240
|
onClick: () => setMenuOpen((v) => !v),
|
|
5202
|
-
className:
|
|
5241
|
+
className: cn49(
|
|
5203
5242
|
"inline-flex h-8 w-8 items-center justify-center rounded-md",
|
|
5204
5243
|
"text-muted-foreground hover:bg-accent hover:text-accent-foreground",
|
|
5205
5244
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -5214,7 +5253,7 @@ function MosaicAgentCard({
|
|
|
5214
5253
|
"div",
|
|
5215
5254
|
{
|
|
5216
5255
|
role: "menu",
|
|
5217
|
-
className:
|
|
5256
|
+
className: cn49(
|
|
5218
5257
|
"absolute right-0 top-full z-50 mt-1 min-w-[140px] rounded-md border border-border",
|
|
5219
5258
|
"bg-popover py-1 shadow-md"
|
|
5220
5259
|
),
|
|
@@ -5229,7 +5268,7 @@ function MosaicAgentCard({
|
|
|
5229
5268
|
onToggleStatus(agent.id);
|
|
5230
5269
|
setMenuOpen(false);
|
|
5231
5270
|
},
|
|
5232
|
-
className:
|
|
5271
|
+
className: cn49(
|
|
5233
5272
|
"flex w-full items-center gap-2 px-3 py-2 text-sm text-foreground",
|
|
5234
5273
|
"hover:bg-accent hover:text-accent-foreground",
|
|
5235
5274
|
"disabled:pointer-events-none disabled:opacity-50"
|
|
@@ -5291,7 +5330,7 @@ function MosaicAgentCard({
|
|
|
5291
5330
|
type: "button",
|
|
5292
5331
|
disabled: isLoading,
|
|
5293
5332
|
onClick: () => onToggleStatus(agent.id),
|
|
5294
|
-
className:
|
|
5333
|
+
className: cn49(
|
|
5295
5334
|
"inline-flex h-7 items-center justify-center rounded-md px-3 text-xs font-medium",
|
|
5296
5335
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
5297
5336
|
"disabled:pointer-events-none disabled:opacity-50",
|
|
@@ -5307,7 +5346,7 @@ function MosaicAgentCard({
|
|
|
5307
5346
|
);
|
|
5308
5347
|
}
|
|
5309
5348
|
MosaicAgentCard.displayName = "MosaicAgentCard";
|
|
5310
|
-
function
|
|
5349
|
+
function cn50(...classes) {
|
|
5311
5350
|
return classes.filter(Boolean).join(" ");
|
|
5312
5351
|
}
|
|
5313
5352
|
function PlusIcon3() {
|
|
@@ -5387,7 +5426,7 @@ function PickerContent({
|
|
|
5387
5426
|
{
|
|
5388
5427
|
type: "button",
|
|
5389
5428
|
onClick: () => onAdd(agent.id),
|
|
5390
|
-
className:
|
|
5429
|
+
className: cn50(
|
|
5391
5430
|
"flex w-full items-center gap-3 rounded-lg px-3 py-2.5 text-sm",
|
|
5392
5431
|
"hover:bg-accent hover:text-accent-foreground",
|
|
5393
5432
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -5396,7 +5435,7 @@ function PickerContent({
|
|
|
5396
5435
|
agent.accentColor && /* @__PURE__ */ jsxRuntime.jsx(
|
|
5397
5436
|
"span",
|
|
5398
5437
|
{
|
|
5399
|
-
className:
|
|
5438
|
+
className: cn50("h-3 w-3 shrink-0 rounded-full", agent.accentColor),
|
|
5400
5439
|
"aria-hidden": "true"
|
|
5401
5440
|
}
|
|
5402
5441
|
),
|
|
@@ -5413,7 +5452,7 @@ function PickerContent({
|
|
|
5413
5452
|
{
|
|
5414
5453
|
type: "button",
|
|
5415
5454
|
onClick: onOpenBuilder,
|
|
5416
|
-
className:
|
|
5455
|
+
className: cn50(
|
|
5417
5456
|
"flex w-full items-center gap-3 rounded-lg px-3 py-2.5 text-sm",
|
|
5418
5457
|
"hover:bg-accent hover:text-accent-foreground",
|
|
5419
5458
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -5463,11 +5502,11 @@ function MosaicQuickAgentSelector({
|
|
|
5463
5502
|
setPickerOpen(false);
|
|
5464
5503
|
};
|
|
5465
5504
|
const canAdd = selectedAgents.length < maxAgents;
|
|
5466
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "quick-agent-selector", className:
|
|
5505
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "quick-agent-selector", className: cn50("flex items-center gap-2", className), children: [
|
|
5467
5506
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-2 overflow-x-auto", children: selectedAgents.map((agent) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
5468
5507
|
"div",
|
|
5469
5508
|
{
|
|
5470
|
-
className:
|
|
5509
|
+
className: cn50(
|
|
5471
5510
|
"group flex shrink-0 items-center gap-2 rounded-md border border-border bg-card",
|
|
5472
5511
|
isMobile ? "px-2 py-1" : "px-3 py-1.5"
|
|
5473
5512
|
),
|
|
@@ -5475,17 +5514,17 @@ function MosaicQuickAgentSelector({
|
|
|
5475
5514
|
agent.accentColor && /* @__PURE__ */ jsxRuntime.jsx(
|
|
5476
5515
|
"span",
|
|
5477
5516
|
{
|
|
5478
|
-
className:
|
|
5517
|
+
className: cn50("h-2 w-2 shrink-0 rounded-full", agent.accentColor),
|
|
5479
5518
|
"aria-hidden": "true"
|
|
5480
5519
|
}
|
|
5481
5520
|
),
|
|
5482
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
5521
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: cn50("whitespace-nowrap font-medium", isMobile ? "text-xs" : "text-sm"), children: isMobile ? agent.type.split("-")[0] : agent.name }),
|
|
5483
5522
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5484
5523
|
"button",
|
|
5485
5524
|
{
|
|
5486
5525
|
type: "button",
|
|
5487
5526
|
onClick: () => onRemoveAgent(agent.id),
|
|
5488
|
-
className:
|
|
5527
|
+
className: cn50(
|
|
5489
5528
|
"inline-flex h-4 w-4 items-center justify-center rounded",
|
|
5490
5529
|
"text-muted-foreground hover:text-foreground",
|
|
5491
5530
|
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
@@ -5505,7 +5544,7 @@ function MosaicQuickAgentSelector({
|
|
|
5505
5544
|
{
|
|
5506
5545
|
type: "button",
|
|
5507
5546
|
onClick: () => setPickerOpen((v) => !v),
|
|
5508
|
-
className:
|
|
5547
|
+
className: cn50(
|
|
5509
5548
|
"inline-flex items-center justify-center gap-2 rounded-md border border-border bg-background",
|
|
5510
5549
|
"px-3 py-1.5 text-sm font-medium text-foreground",
|
|
5511
5550
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -5520,7 +5559,7 @@ function MosaicQuickAgentSelector({
|
|
|
5520
5559
|
!isMobile && pickerOpen && /* @__PURE__ */ jsxRuntime.jsx(
|
|
5521
5560
|
"div",
|
|
5522
5561
|
{
|
|
5523
|
-
className:
|
|
5562
|
+
className: cn50(
|
|
5524
5563
|
"absolute left-0 top-full z-50 mt-2 w-72 rounded-lg border border-border",
|
|
5525
5564
|
"bg-popover shadow-lg"
|
|
5526
5565
|
),
|
|
@@ -5562,7 +5601,7 @@ function MosaicQuickAgentSelector({
|
|
|
5562
5601
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
5563
5602
|
"span",
|
|
5564
5603
|
{
|
|
5565
|
-
className:
|
|
5604
|
+
className: cn50(
|
|
5566
5605
|
"shrink-0 rounded-md bg-secondary px-2 py-0.5 text-xs font-medium text-secondary-foreground"
|
|
5567
5606
|
),
|
|
5568
5607
|
children: [
|
|
@@ -5575,7 +5614,7 @@ function MosaicQuickAgentSelector({
|
|
|
5575
5614
|
] });
|
|
5576
5615
|
}
|
|
5577
5616
|
MosaicQuickAgentSelector.displayName = "MosaicQuickAgentSelector";
|
|
5578
|
-
function
|
|
5617
|
+
function cn51(...classes) {
|
|
5579
5618
|
return classes.filter(Boolean).join(" ");
|
|
5580
5619
|
}
|
|
5581
5620
|
function SearchIcon() {
|
|
@@ -5665,7 +5704,7 @@ function MosaicSelectorModal({
|
|
|
5665
5704
|
value: query,
|
|
5666
5705
|
onChange: (e) => setQuery(e.target.value),
|
|
5667
5706
|
placeholder: searchPlaceholder,
|
|
5668
|
-
className:
|
|
5707
|
+
className: cn51(
|
|
5669
5708
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
5670
5709
|
"text-sm text-foreground placeholder:text-muted-foreground",
|
|
5671
5710
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -5679,7 +5718,7 @@ function MosaicSelectorModal({
|
|
|
5679
5718
|
{
|
|
5680
5719
|
type: "button",
|
|
5681
5720
|
onClick: () => setActiveCategory("all"),
|
|
5682
|
-
className:
|
|
5721
|
+
className: cn51(
|
|
5683
5722
|
"shrink-0 rounded-md px-3 py-1.5 text-sm font-medium transition-colors",
|
|
5684
5723
|
activeCategory === "all" ? "bg-primary text-primary-foreground" : "bg-muted text-muted-foreground hover:bg-accent hover:text-accent-foreground"
|
|
5685
5724
|
),
|
|
@@ -5691,7 +5730,7 @@ function MosaicSelectorModal({
|
|
|
5691
5730
|
{
|
|
5692
5731
|
type: "button",
|
|
5693
5732
|
onClick: () => setActiveCategory(cat.id),
|
|
5694
|
-
className:
|
|
5733
|
+
className: cn51(
|
|
5695
5734
|
"shrink-0 rounded-md px-3 py-1.5 text-sm font-medium transition-colors",
|
|
5696
5735
|
activeCategory === cat.id ? "bg-primary text-primary-foreground" : "bg-muted text-muted-foreground hover:bg-accent hover:text-accent-foreground"
|
|
5697
5736
|
),
|
|
@@ -5703,7 +5742,7 @@ function MosaicSelectorModal({
|
|
|
5703
5742
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
5704
5743
|
"div",
|
|
5705
5744
|
{
|
|
5706
|
-
className:
|
|
5745
|
+
className: cn51(
|
|
5707
5746
|
"max-h-[50vh] overflow-y-auto",
|
|
5708
5747
|
columns === 2 ? "grid grid-cols-1 gap-3 sm:grid-cols-2" : "flex flex-col gap-3"
|
|
5709
5748
|
),
|
|
@@ -5715,7 +5754,7 @@ function MosaicSelectorModal({
|
|
|
5715
5754
|
{
|
|
5716
5755
|
type: "button",
|
|
5717
5756
|
onClick: () => setPendingId(item.id),
|
|
5718
|
-
className:
|
|
5757
|
+
className: cn51(
|
|
5719
5758
|
"group relative rounded-lg border p-4 text-left transition-all duration-150",
|
|
5720
5759
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
5721
5760
|
isSelected ? "border-primary bg-primary/5 ring-2 ring-primary" : "border-border bg-card hover:border-primary/50"
|
|
@@ -5753,7 +5792,7 @@ function MosaicSelectorModal({
|
|
|
5753
5792
|
{
|
|
5754
5793
|
type: "button",
|
|
5755
5794
|
onClick: onClose,
|
|
5756
|
-
className:
|
|
5795
|
+
className: cn51(
|
|
5757
5796
|
"inline-flex min-h-[44px] items-center justify-center rounded-md border border-border",
|
|
5758
5797
|
"bg-background px-4 py-2 text-sm font-medium text-foreground",
|
|
5759
5798
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -5768,7 +5807,7 @@ function MosaicSelectorModal({
|
|
|
5768
5807
|
type: "button",
|
|
5769
5808
|
onClick: handleConfirm,
|
|
5770
5809
|
disabled: !pendingItem,
|
|
5771
|
-
className:
|
|
5810
|
+
className: cn51(
|
|
5772
5811
|
"inline-flex min-h-[44px] items-center justify-center rounded-md",
|
|
5773
5812
|
"bg-primary px-4 py-2 text-sm font-medium text-primary-foreground",
|
|
5774
5813
|
"hover:bg-primary/90",
|
|
@@ -5782,7 +5821,7 @@ function MosaicSelectorModal({
|
|
|
5782
5821
|
] }) });
|
|
5783
5822
|
}
|
|
5784
5823
|
MosaicSelectorModal.displayName = "MosaicSelectorModal";
|
|
5785
|
-
function
|
|
5824
|
+
function cn52(...classes) {
|
|
5786
5825
|
return classes.filter(Boolean).join(" ");
|
|
5787
5826
|
}
|
|
5788
5827
|
function relativeTime(ts) {
|
|
@@ -6031,7 +6070,7 @@ function MosaicMessageCard({
|
|
|
6031
6070
|
"div",
|
|
6032
6071
|
{
|
|
6033
6072
|
"data-slot": "message-card",
|
|
6034
|
-
className:
|
|
6073
|
+
className: cn52(
|
|
6035
6074
|
"rounded-lg border border-border bg-card p-4 shadow-sm transition-shadow hover:shadow-md",
|
|
6036
6075
|
compact && "p-3",
|
|
6037
6076
|
message.sender.type === "user" && "bg-primary/5",
|
|
@@ -6041,7 +6080,7 @@ function MosaicMessageCard({
|
|
|
6041
6080
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6042
6081
|
"span",
|
|
6043
6082
|
{
|
|
6044
|
-
className:
|
|
6083
|
+
className: cn52(
|
|
6045
6084
|
"inline-flex shrink-0 items-center justify-center rounded-full text-white font-semibold",
|
|
6046
6085
|
compact ? "h-8 w-8 text-xs" : "h-10 w-10 text-sm",
|
|
6047
6086
|
message.sender.accentColor ?? "bg-muted text-muted-foreground"
|
|
@@ -6059,7 +6098,7 @@ function MosaicMessageCard({
|
|
|
6059
6098
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-w-0 flex-1", children: [
|
|
6060
6099
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mb-2 flex items-center justify-between gap-2", children: [
|
|
6061
6100
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
6062
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
6101
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: cn52("font-medium", compact ? "text-sm" : "text-base"), children: message.sender.name }),
|
|
6063
6102
|
message.sender.type === "ai" && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "rounded-full bg-secondary px-2 py-0.5 text-xs font-medium text-secondary-foreground", children: "AI" })
|
|
6064
6103
|
] }),
|
|
6065
6104
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "shrink-0 text-xs text-muted-foreground", children: relativeTime(message.timestamp) })
|
|
@@ -6067,7 +6106,7 @@ function MosaicMessageCard({
|
|
|
6067
6106
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6068
6107
|
"p",
|
|
6069
6108
|
{
|
|
6070
|
-
className:
|
|
6109
|
+
className: cn52(
|
|
6071
6110
|
"leading-relaxed text-foreground mb-3",
|
|
6072
6111
|
compact ? "text-sm" : "text-base"
|
|
6073
6112
|
),
|
|
@@ -6082,7 +6121,7 @@ function MosaicMessageCard({
|
|
|
6082
6121
|
{
|
|
6083
6122
|
type: "button",
|
|
6084
6123
|
onClick: handleLike,
|
|
6085
|
-
className:
|
|
6124
|
+
className: cn52(
|
|
6086
6125
|
"inline-flex h-8 items-center gap-1 rounded-md px-2 text-xs",
|
|
6087
6126
|
"hover:bg-accent hover:text-accent-foreground",
|
|
6088
6127
|
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
@@ -6100,7 +6139,7 @@ function MosaicMessageCard({
|
|
|
6100
6139
|
{
|
|
6101
6140
|
type: "button",
|
|
6102
6141
|
onClick: handleDislike,
|
|
6103
|
-
className:
|
|
6142
|
+
className: cn52(
|
|
6104
6143
|
"inline-flex h-8 items-center gap-1 rounded-md px-2 text-xs",
|
|
6105
6144
|
"hover:bg-accent hover:text-accent-foreground",
|
|
6106
6145
|
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
@@ -6145,7 +6184,7 @@ function MosaicMessageCard({
|
|
|
6145
6184
|
{
|
|
6146
6185
|
type: "button",
|
|
6147
6186
|
onClick: handleBookmark,
|
|
6148
|
-
className:
|
|
6187
|
+
className: cn52(
|
|
6149
6188
|
"inline-flex h-8 w-8 items-center justify-center rounded-md",
|
|
6150
6189
|
"hover:bg-accent hover:text-accent-foreground",
|
|
6151
6190
|
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
@@ -6246,7 +6285,7 @@ function MosaicMessageCard({
|
|
|
6246
6285
|
);
|
|
6247
6286
|
}
|
|
6248
6287
|
MosaicMessageCard.displayName = "MosaicMessageCard";
|
|
6249
|
-
function
|
|
6288
|
+
function cn53(...classes) {
|
|
6250
6289
|
return classes.filter(Boolean).join(" ");
|
|
6251
6290
|
}
|
|
6252
6291
|
function SearchIcon2() {
|
|
@@ -6286,7 +6325,7 @@ function MessageListDesktop({
|
|
|
6286
6325
|
const filtered = query ? messages.filter(
|
|
6287
6326
|
(m) => m.content.toLowerCase().includes(query.toLowerCase()) || m.sender.name.toLowerCase().includes(query.toLowerCase())
|
|
6288
6327
|
) : messages;
|
|
6289
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "message-list-desktop", className:
|
|
6328
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "message-list-desktop", className: cn53("flex h-full flex-col", className), children: [
|
|
6290
6329
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between border-b border-border px-6 py-4", children: [
|
|
6291
6330
|
title && /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-lg font-semibold", children: title }),
|
|
6292
6331
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative ml-auto max-w-xs flex-1", children: [
|
|
@@ -6298,7 +6337,7 @@ function MessageListDesktop({
|
|
|
6298
6337
|
value: query,
|
|
6299
6338
|
onChange: (e) => setQuery(e.target.value),
|
|
6300
6339
|
placeholder: "Search messages\u2026",
|
|
6301
|
-
className:
|
|
6340
|
+
className: cn53(
|
|
6302
6341
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
6303
6342
|
"text-sm placeholder:text-muted-foreground",
|
|
6304
6343
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -6327,7 +6366,7 @@ function MessageListDesktop({
|
|
|
6327
6366
|
{
|
|
6328
6367
|
type: "button",
|
|
6329
6368
|
onClick: onLoadMore,
|
|
6330
|
-
className:
|
|
6369
|
+
className: cn53(
|
|
6331
6370
|
"w-full rounded-md border border-border bg-background px-4 py-2 text-sm font-medium",
|
|
6332
6371
|
"hover:bg-accent hover:text-accent-foreground",
|
|
6333
6372
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -6349,7 +6388,7 @@ function MessageListMobile({
|
|
|
6349
6388
|
isLoading,
|
|
6350
6389
|
className
|
|
6351
6390
|
}) {
|
|
6352
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "message-list-mobile", className:
|
|
6391
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "message-list-mobile", className: cn53("flex flex-col", className), children: [
|
|
6353
6392
|
title && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "sticky top-0 z-10 border-b border-border bg-background px-4 py-3", children: /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-base font-semibold", children: title }) }),
|
|
6354
6393
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-3 p-4", children: [
|
|
6355
6394
|
isLoading && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "space-y-3", children: [0, 1, 2].map((i) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-20 animate-pulse rounded-lg bg-muted" }, i)) }),
|
|
@@ -6372,7 +6411,7 @@ function MessageListMobile({
|
|
|
6372
6411
|
{
|
|
6373
6412
|
type: "button",
|
|
6374
6413
|
onClick: onLoadMore,
|
|
6375
|
-
className:
|
|
6414
|
+
className: cn53(
|
|
6376
6415
|
"w-full min-h-[44px] rounded-md border border-border bg-background px-4 py-2 text-sm font-medium",
|
|
6377
6416
|
"hover:bg-accent hover:text-accent-foreground",
|
|
6378
6417
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -6387,7 +6426,7 @@ function MosaicMessageList(props) {
|
|
|
6387
6426
|
return isMobile ? /* @__PURE__ */ jsxRuntime.jsx(MessageListMobile, { ...props }) : /* @__PURE__ */ jsxRuntime.jsx(MessageListDesktop, { ...props });
|
|
6388
6427
|
}
|
|
6389
6428
|
MosaicMessageList.displayName = "MosaicMessageList";
|
|
6390
|
-
function
|
|
6429
|
+
function cn54(...classes) {
|
|
6391
6430
|
return classes.filter(Boolean).join(" ");
|
|
6392
6431
|
}
|
|
6393
6432
|
function ChevronLeftIcon2() {
|
|
@@ -6463,7 +6502,7 @@ function MosaicFilterSidebar({
|
|
|
6463
6502
|
{
|
|
6464
6503
|
"data-slot": "filter-sidebar",
|
|
6465
6504
|
style: { width, minWidth: isCollapsed && !isMobile ? "64px" : void 0 },
|
|
6466
|
-
className:
|
|
6505
|
+
className: cn54(
|
|
6467
6506
|
"relative flex flex-col border-r border-border bg-card",
|
|
6468
6507
|
"transition-[width] duration-200 ease-in-out",
|
|
6469
6508
|
"overflow-hidden",
|
|
@@ -6475,7 +6514,7 @@ function MosaicFilterSidebar({
|
|
|
6475
6514
|
{
|
|
6476
6515
|
type: "button",
|
|
6477
6516
|
onClick: onToggleCollapse,
|
|
6478
|
-
className:
|
|
6517
|
+
className: cn54(
|
|
6479
6518
|
"absolute -right-3 top-6 z-10 flex h-6 w-6 items-center justify-center rounded-full",
|
|
6480
6519
|
"border border-border bg-background shadow-sm",
|
|
6481
6520
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -6505,7 +6544,7 @@ function MosaicFilterSidebar({
|
|
|
6505
6544
|
{
|
|
6506
6545
|
type: "button",
|
|
6507
6546
|
onClick: () => onFilterChange(f.id),
|
|
6508
|
-
className:
|
|
6547
|
+
className: cn54(
|
|
6509
6548
|
"flex min-h-[40px] items-center justify-between rounded-md px-3 py-2 text-sm font-medium",
|
|
6510
6549
|
"transition-colors hover:bg-accent hover:text-accent-foreground",
|
|
6511
6550
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -6525,7 +6564,7 @@ function MosaicFilterSidebar({
|
|
|
6525
6564
|
{
|
|
6526
6565
|
type: "button",
|
|
6527
6566
|
onClick: () => onCategoryChange(cat.id),
|
|
6528
|
-
className:
|
|
6567
|
+
className: cn54(
|
|
6529
6568
|
"flex min-h-[36px] items-center justify-between rounded-md px-3 py-1.5 text-sm",
|
|
6530
6569
|
"transition-colors hover:bg-accent hover:text-accent-foreground",
|
|
6531
6570
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -6545,7 +6584,7 @@ function MosaicFilterSidebar({
|
|
|
6545
6584
|
);
|
|
6546
6585
|
}
|
|
6547
6586
|
MosaicFilterSidebar.displayName = "MosaicFilterSidebar";
|
|
6548
|
-
function
|
|
6587
|
+
function cn55(...classes) {
|
|
6549
6588
|
return classes.filter(Boolean).join(" ");
|
|
6550
6589
|
}
|
|
6551
6590
|
function SearchIcon3() {
|
|
@@ -6660,7 +6699,7 @@ function AgentListDesktop({
|
|
|
6660
6699
|
value: query,
|
|
6661
6700
|
onChange: (e) => setQuery(e.target.value),
|
|
6662
6701
|
placeholder: searchPlaceholder,
|
|
6663
|
-
className:
|
|
6702
|
+
className: cn55(
|
|
6664
6703
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
6665
6704
|
"text-sm placeholder:text-muted-foreground",
|
|
6666
6705
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -6673,7 +6712,7 @@ function AgentListDesktop({
|
|
|
6673
6712
|
{
|
|
6674
6713
|
type: "button",
|
|
6675
6714
|
onClick: onCreateAgent,
|
|
6676
|
-
className:
|
|
6715
|
+
className: cn55(
|
|
6677
6716
|
"inline-flex items-center gap-2 rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground",
|
|
6678
6717
|
"hover:bg-primary/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
6679
6718
|
),
|
|
@@ -6732,7 +6771,7 @@ function AgentListMobile({
|
|
|
6732
6771
|
{
|
|
6733
6772
|
type: "button",
|
|
6734
6773
|
onClick: () => setFilterOpen(true),
|
|
6735
|
-
className:
|
|
6774
|
+
className: cn55(
|
|
6736
6775
|
"inline-flex h-9 w-9 items-center justify-center rounded-md",
|
|
6737
6776
|
"border border-border bg-background text-foreground",
|
|
6738
6777
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -6747,7 +6786,7 @@ function AgentListMobile({
|
|
|
6747
6786
|
{
|
|
6748
6787
|
type: "button",
|
|
6749
6788
|
onClick: onCreateAgent,
|
|
6750
|
-
className:
|
|
6789
|
+
className: cn55(
|
|
6751
6790
|
"inline-flex h-9 items-center gap-1.5 rounded-md bg-primary px-3 text-sm font-medium text-primary-foreground",
|
|
6752
6791
|
"hover:bg-primary/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
6753
6792
|
),
|
|
@@ -6768,7 +6807,7 @@ function AgentListMobile({
|
|
|
6768
6807
|
value: query,
|
|
6769
6808
|
onChange: (e) => setQuery(e.target.value),
|
|
6770
6809
|
placeholder: searchPlaceholder,
|
|
6771
|
-
className:
|
|
6810
|
+
className: cn55(
|
|
6772
6811
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
6773
6812
|
"text-sm placeholder:text-muted-foreground",
|
|
6774
6813
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -6816,7 +6855,7 @@ function MosaicAgentList(props) {
|
|
|
6816
6855
|
return isMobile ? /* @__PURE__ */ jsxRuntime.jsx(AgentListMobile, { ...props }) : /* @__PURE__ */ jsxRuntime.jsx(AgentListDesktop, { ...props });
|
|
6817
6856
|
}
|
|
6818
6857
|
MosaicAgentList.displayName = "MosaicAgentList";
|
|
6819
|
-
function
|
|
6858
|
+
function cn56(...classes) {
|
|
6820
6859
|
return classes.filter(Boolean).join(" ");
|
|
6821
6860
|
}
|
|
6822
6861
|
function StarIcon({ filled }) {
|
|
@@ -6912,7 +6951,7 @@ function MarketplaceCard({
|
|
|
6912
6951
|
"div",
|
|
6913
6952
|
{
|
|
6914
6953
|
"data-slot": "marketplace-card",
|
|
6915
|
-
className:
|
|
6954
|
+
className: cn56(
|
|
6916
6955
|
"rounded-lg border border-border bg-card p-4 transition-shadow hover:shadow-md",
|
|
6917
6956
|
compact ? "flex items-center gap-3" : "flex flex-col gap-3"
|
|
6918
6957
|
),
|
|
@@ -6920,7 +6959,7 @@ function MarketplaceCard({
|
|
|
6920
6959
|
item.icon && /* @__PURE__ */ jsxRuntime.jsx(
|
|
6921
6960
|
"div",
|
|
6922
6961
|
{
|
|
6923
|
-
className:
|
|
6962
|
+
className: cn56(
|
|
6924
6963
|
"flex shrink-0 items-center justify-center rounded-lg",
|
|
6925
6964
|
compact ? "h-10 w-10" : "h-12 w-12",
|
|
6926
6965
|
item.accentClass ?? "bg-muted text-muted-foreground"
|
|
@@ -6931,7 +6970,7 @@ function MarketplaceCard({
|
|
|
6931
6970
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex-1 min-w-0", children: [
|
|
6932
6971
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start justify-between gap-2", children: [
|
|
6933
6972
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-w-0", children: [
|
|
6934
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className:
|
|
6973
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: cn56("font-semibold leading-tight", compact ? "text-sm" : "text-base"), children: item.title }),
|
|
6935
6974
|
item.description && !compact && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-1 text-sm text-muted-foreground line-clamp-2", children: item.description })
|
|
6936
6975
|
] }),
|
|
6937
6976
|
item.price && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "shrink-0 rounded-full bg-muted px-2 py-0.5 text-xs font-medium text-muted-foreground", children: item.price })
|
|
@@ -6948,13 +6987,13 @@ function MarketplaceCard({
|
|
|
6948
6987
|
] })
|
|
6949
6988
|
] })
|
|
6950
6989
|
] }),
|
|
6951
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
6990
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn56("flex gap-2", compact ? "shrink-0" : "mt-1"), children: [
|
|
6952
6991
|
onPreview && /* @__PURE__ */ jsxRuntime.jsx(
|
|
6953
6992
|
"button",
|
|
6954
6993
|
{
|
|
6955
6994
|
type: "button",
|
|
6956
6995
|
onClick: () => onPreview(item.id),
|
|
6957
|
-
className:
|
|
6996
|
+
className: cn56(
|
|
6958
6997
|
"inline-flex min-h-[36px] items-center justify-center rounded-md border border-border",
|
|
6959
6998
|
"bg-background px-3 text-xs font-medium text-foreground",
|
|
6960
6999
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -6968,7 +7007,7 @@ function MarketplaceCard({
|
|
|
6968
7007
|
{
|
|
6969
7008
|
type: "button",
|
|
6970
7009
|
onClick: () => onUninstall(item.id),
|
|
6971
|
-
className:
|
|
7010
|
+
className: cn56(
|
|
6972
7011
|
"inline-flex min-h-[36px] items-center justify-center rounded-md",
|
|
6973
7012
|
"bg-secondary px-3 text-xs font-medium text-secondary-foreground",
|
|
6974
7013
|
"hover:bg-secondary/80",
|
|
@@ -6981,7 +7020,7 @@ function MarketplaceCard({
|
|
|
6981
7020
|
{
|
|
6982
7021
|
type: "button",
|
|
6983
7022
|
onClick: () => onInstall(item.id),
|
|
6984
|
-
className:
|
|
7023
|
+
className: cn56(
|
|
6985
7024
|
"inline-flex min-h-[36px] items-center justify-center rounded-md",
|
|
6986
7025
|
"bg-primary px-3 text-xs font-medium text-primary-foreground",
|
|
6987
7026
|
"hover:bg-primary/90",
|
|
@@ -7043,7 +7082,7 @@ function MarketplaceListDesktop(props) {
|
|
|
7043
7082
|
value: query,
|
|
7044
7083
|
onChange: (e) => setQuery(e.target.value),
|
|
7045
7084
|
placeholder: searchPlaceholder,
|
|
7046
|
-
className:
|
|
7085
|
+
className: cn56(
|
|
7047
7086
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
7048
7087
|
"text-sm placeholder:text-muted-foreground",
|
|
7049
7088
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -7116,7 +7155,7 @@ function MarketplaceListMobile(props) {
|
|
|
7116
7155
|
value: query,
|
|
7117
7156
|
onChange: (e) => setQuery(e.target.value),
|
|
7118
7157
|
placeholder: searchPlaceholder,
|
|
7119
|
-
className:
|
|
7158
|
+
className: cn56(
|
|
7120
7159
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
7121
7160
|
"text-sm placeholder:text-muted-foreground",
|
|
7122
7161
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -7167,7 +7206,7 @@ function MosaicMarketplaceList(props) {
|
|
|
7167
7206
|
return isMobile ? /* @__PURE__ */ jsxRuntime.jsx(MarketplaceListMobile, { ...props }) : /* @__PURE__ */ jsxRuntime.jsx(MarketplaceListDesktop, { ...props });
|
|
7168
7207
|
}
|
|
7169
7208
|
MosaicMarketplaceList.displayName = "MosaicMarketplaceList";
|
|
7170
|
-
function
|
|
7209
|
+
function cn57(...classes) {
|
|
7171
7210
|
return classes.filter(Boolean).join(" ");
|
|
7172
7211
|
}
|
|
7173
7212
|
function StarIcon2() {
|
|
@@ -7286,7 +7325,7 @@ function MosaicTemplateCard({
|
|
|
7286
7325
|
type: "button",
|
|
7287
7326
|
onClick: () => onSelect(template),
|
|
7288
7327
|
"data-slot": "template-card",
|
|
7289
|
-
className:
|
|
7328
|
+
className: cn57(
|
|
7290
7329
|
"w-full text-left rounded-lg border transition-all duration-200",
|
|
7291
7330
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
7292
7331
|
isSelected ? "border-primary bg-primary/5 ring-2 ring-primary" : "border-border bg-card hover:border-primary/50",
|
|
@@ -7386,7 +7425,7 @@ function MosaicTemplatePreview({
|
|
|
7386
7425
|
agent.accentColor && /* @__PURE__ */ jsxRuntime.jsx(
|
|
7387
7426
|
"span",
|
|
7388
7427
|
{
|
|
7389
|
-
className:
|
|
7428
|
+
className: cn57("h-2 w-2 rounded-full", agent.accentColor),
|
|
7390
7429
|
"aria-hidden": "true"
|
|
7391
7430
|
}
|
|
7392
7431
|
),
|
|
@@ -7446,7 +7485,7 @@ function MosaicAgentTeamPreview({ agents, label }) {
|
|
|
7446
7485
|
agent.accentColor && /* @__PURE__ */ jsxRuntime.jsx(
|
|
7447
7486
|
"span",
|
|
7448
7487
|
{
|
|
7449
|
-
className:
|
|
7488
|
+
className: cn57("h-2.5 w-2.5 rounded-full", agent.accentColor),
|
|
7450
7489
|
"aria-hidden": "true"
|
|
7451
7490
|
}
|
|
7452
7491
|
),
|
|
@@ -7470,7 +7509,7 @@ function MosaicQuickStartPanel({
|
|
|
7470
7509
|
scratchLabel = "Start from Scratch",
|
|
7471
7510
|
className
|
|
7472
7511
|
}) {
|
|
7473
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "quick-start-panel", className:
|
|
7512
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "quick-start-panel", className: cn57("flex flex-col gap-6", className), children: [
|
|
7474
7513
|
scenarios.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
7475
7514
|
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "mb-3 text-sm font-semibold text-foreground", children: scenariosTitle }),
|
|
7476
7515
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "grid gap-3 sm:grid-cols-2", children: scenarios.map((scenario) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -7478,7 +7517,7 @@ function MosaicQuickStartPanel({
|
|
|
7478
7517
|
{
|
|
7479
7518
|
type: "button",
|
|
7480
7519
|
onClick: () => onSelectScenario(scenario),
|
|
7481
|
-
className:
|
|
7520
|
+
className: cn57(
|
|
7482
7521
|
"flex items-start gap-3 rounded-lg border border-border bg-card p-4 text-left",
|
|
7483
7522
|
"hover:border-primary/50 hover:bg-primary/5",
|
|
7484
7523
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -7510,7 +7549,7 @@ function MosaicQuickStartPanel({
|
|
|
7510
7549
|
{
|
|
7511
7550
|
type: "button",
|
|
7512
7551
|
onClick: () => onSelectPreset(preset),
|
|
7513
|
-
className:
|
|
7552
|
+
className: cn57(
|
|
7514
7553
|
"flex items-center justify-between gap-3 rounded-lg border border-border bg-card px-4 py-3 text-left",
|
|
7515
7554
|
"hover:border-primary/50",
|
|
7516
7555
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -7524,7 +7563,7 @@ function MosaicQuickStartPanel({
|
|
|
7524
7563
|
a.accentColor && /* @__PURE__ */ jsxRuntime.jsx(
|
|
7525
7564
|
"span",
|
|
7526
7565
|
{
|
|
7527
|
-
className:
|
|
7566
|
+
className: cn57("h-2 w-2 rounded-full", a.accentColor),
|
|
7528
7567
|
"aria-hidden": "true"
|
|
7529
7568
|
}
|
|
7530
7569
|
),
|
|
@@ -7542,7 +7581,7 @@ function MosaicQuickStartPanel({
|
|
|
7542
7581
|
{
|
|
7543
7582
|
type: "button",
|
|
7544
7583
|
onClick: onStartFromScratch,
|
|
7545
|
-
className:
|
|
7584
|
+
className: cn57(
|
|
7546
7585
|
"inline-flex min-h-[44px] w-full items-center justify-center rounded-md border border-border",
|
|
7547
7586
|
"bg-background px-4 text-sm font-medium text-foreground",
|
|
7548
7587
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -7622,7 +7661,7 @@ function TemplateGalleryContent({
|
|
|
7622
7661
|
value: query,
|
|
7623
7662
|
onChange: (e) => setQuery(e.target.value),
|
|
7624
7663
|
placeholder: searchPlaceholder,
|
|
7625
|
-
className:
|
|
7664
|
+
className: cn57(
|
|
7626
7665
|
"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"
|
|
7627
7666
|
)
|
|
7628
7667
|
}
|
|
@@ -7670,7 +7709,7 @@ function TemplateGalleryContent({
|
|
|
7670
7709
|
value: query,
|
|
7671
7710
|
onChange: (e) => setQuery(e.target.value),
|
|
7672
7711
|
placeholder: searchPlaceholder,
|
|
7673
|
-
className:
|
|
7712
|
+
className: cn57(
|
|
7674
7713
|
"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"
|
|
7675
7714
|
)
|
|
7676
7715
|
}
|
|
@@ -7700,7 +7739,7 @@ function MosaicTemplateGallery(props) {
|
|
|
7700
7739
|
return /* @__PURE__ */ jsxRuntime.jsx(TemplateGalleryContent, { ...props, isMobile });
|
|
7701
7740
|
}
|
|
7702
7741
|
MosaicTemplateGallery.displayName = "MosaicTemplateGallery";
|
|
7703
|
-
function
|
|
7742
|
+
function cn58(...classes) {
|
|
7704
7743
|
return classes.filter(Boolean).join(" ");
|
|
7705
7744
|
}
|
|
7706
7745
|
function PlusIcon5() {
|
|
@@ -7844,7 +7883,7 @@ function MosaicModuleForm({
|
|
|
7844
7883
|
onChange: (e) => update("name", e.target.value),
|
|
7845
7884
|
placeholder: "Module name\u2026",
|
|
7846
7885
|
required: true,
|
|
7847
|
-
className:
|
|
7886
|
+
className: cn58(
|
|
7848
7887
|
"w-full rounded-md border border-input bg-background px-3 py-2 min-h-[40px]",
|
|
7849
7888
|
"text-sm placeholder:text-muted-foreground",
|
|
7850
7889
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -7862,7 +7901,7 @@ function MosaicModuleForm({
|
|
|
7862
7901
|
onChange: (e) => update("description", e.target.value),
|
|
7863
7902
|
placeholder: "Describe this module\u2026",
|
|
7864
7903
|
rows: 3,
|
|
7865
|
-
className:
|
|
7904
|
+
className: cn58(
|
|
7866
7905
|
"w-full rounded-md border border-input bg-background px-3 py-2",
|
|
7867
7906
|
"text-sm placeholder:text-muted-foreground resize-none",
|
|
7868
7907
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -7884,7 +7923,7 @@ function MosaicModuleForm({
|
|
|
7884
7923
|
value: formData[field.id] ?? "",
|
|
7885
7924
|
onChange: (e) => update(field.id, e.target.value),
|
|
7886
7925
|
placeholder: field.placeholder,
|
|
7887
|
-
className:
|
|
7926
|
+
className: cn58(
|
|
7888
7927
|
"w-full rounded-md border border-input bg-background px-3 py-2 min-h-[40px]",
|
|
7889
7928
|
"text-sm placeholder:text-muted-foreground",
|
|
7890
7929
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -7899,7 +7938,7 @@ function MosaicModuleForm({
|
|
|
7899
7938
|
onChange: (e) => update(field.id, e.target.value),
|
|
7900
7939
|
placeholder: field.placeholder,
|
|
7901
7940
|
rows: 3,
|
|
7902
|
-
className:
|
|
7941
|
+
className: cn58(
|
|
7903
7942
|
"w-full rounded-md border border-input bg-background px-3 py-2",
|
|
7904
7943
|
"text-sm placeholder:text-muted-foreground resize-none",
|
|
7905
7944
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -7915,7 +7954,7 @@ function MosaicModuleForm({
|
|
|
7915
7954
|
onChange: (e) => update(field.id, e.target.value),
|
|
7916
7955
|
placeholder: field.placeholder ?? "\u{1F9E0}",
|
|
7917
7956
|
maxLength: 4,
|
|
7918
|
-
className:
|
|
7957
|
+
className: cn58(
|
|
7919
7958
|
"w-20 rounded-md border border-input bg-background px-3 py-2 text-2xl",
|
|
7920
7959
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
7921
7960
|
)
|
|
@@ -7936,7 +7975,7 @@ function MosaicModuleForm({
|
|
|
7936
7975
|
}
|
|
7937
7976
|
},
|
|
7938
7977
|
placeholder: field.placeholder ?? "Add item\u2026",
|
|
7939
|
-
className:
|
|
7978
|
+
className: cn58(
|
|
7940
7979
|
"flex-1 rounded-md border border-input bg-background px-3 py-2 min-h-[36px]",
|
|
7941
7980
|
"text-sm placeholder:text-muted-foreground",
|
|
7942
7981
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -8132,7 +8171,7 @@ function LibraryContent({
|
|
|
8132
8171
|
{
|
|
8133
8172
|
type: "button",
|
|
8134
8173
|
onClick: openCreate,
|
|
8135
|
-
className:
|
|
8174
|
+
className: cn58(
|
|
8136
8175
|
"inline-flex items-center gap-2 rounded-md bg-primary px-3 py-2 text-sm font-medium text-primary-foreground",
|
|
8137
8176
|
"hover:bg-primary/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
8138
8177
|
),
|
|
@@ -8152,7 +8191,7 @@ function LibraryContent({
|
|
|
8152
8191
|
value: query,
|
|
8153
8192
|
onChange: (e) => setQuery(e.target.value),
|
|
8154
8193
|
placeholder: searchPlaceholder,
|
|
8155
|
-
className:
|
|
8194
|
+
className: cn58(
|
|
8156
8195
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
8157
8196
|
"text-sm placeholder:text-muted-foreground",
|
|
8158
8197
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -8165,7 +8204,7 @@ function LibraryContent({
|
|
|
8165
8204
|
{
|
|
8166
8205
|
type: "button",
|
|
8167
8206
|
onClick: () => setActiveTab(tab.id),
|
|
8168
|
-
className:
|
|
8207
|
+
className: cn58(
|
|
8169
8208
|
"rounded-md px-3 py-1.5 text-sm font-medium transition-colors",
|
|
8170
8209
|
activeTab === tab.id ? "bg-primary text-primary-foreground" : "bg-muted text-muted-foreground hover:bg-accent hover:text-accent-foreground"
|
|
8171
8210
|
),
|
|
@@ -8199,7 +8238,7 @@ function MosaicModuleLibrary(props) {
|
|
|
8199
8238
|
return /* @__PURE__ */ jsxRuntime.jsx(LibraryContent, { ...props });
|
|
8200
8239
|
}
|
|
8201
8240
|
MosaicModuleLibrary.displayName = "MosaicModuleLibrary";
|
|
8202
|
-
function
|
|
8241
|
+
function cn59(...classes) {
|
|
8203
8242
|
return classes.filter(Boolean).join(" ");
|
|
8204
8243
|
}
|
|
8205
8244
|
var roleConfig = {
|
|
@@ -8226,7 +8265,7 @@ function MosaicOrgRoleBadge({ role, className }) {
|
|
|
8226
8265
|
{
|
|
8227
8266
|
"data-slot": "org-role-badge",
|
|
8228
8267
|
title: config.description,
|
|
8229
|
-
className:
|
|
8268
|
+
className: cn59(
|
|
8230
8269
|
"inline-flex items-center rounded-full px-2 py-0.5 text-xs font-medium",
|
|
8231
8270
|
config.className,
|
|
8232
8271
|
className
|
|
@@ -8243,13 +8282,13 @@ function MosaicMultiOrgIndicator({
|
|
|
8243
8282
|
className
|
|
8244
8283
|
}) {
|
|
8245
8284
|
if (orgCount <= 1) return null;
|
|
8246
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "multi-org-indicator", className:
|
|
8285
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "multi-org-indicator", className: cn59("flex items-center gap-2", className), children: [
|
|
8247
8286
|
onSwitchOrg ? /* @__PURE__ */ jsxRuntime.jsxs(
|
|
8248
8287
|
"button",
|
|
8249
8288
|
{
|
|
8250
8289
|
type: "button",
|
|
8251
8290
|
onClick: onSwitchOrg,
|
|
8252
|
-
className:
|
|
8291
|
+
className: cn59(
|
|
8253
8292
|
"inline-flex items-center gap-1.5 rounded-full bg-secondary px-2.5 py-1 text-xs font-medium text-secondary-foreground",
|
|
8254
8293
|
"hover:bg-secondary/80",
|
|
8255
8294
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -8347,7 +8386,7 @@ function MosaicCreateOrgDialog({
|
|
|
8347
8386
|
onChange: (e) => setName(e.target.value),
|
|
8348
8387
|
placeholder: "Acme Inc.",
|
|
8349
8388
|
required: true,
|
|
8350
|
-
className:
|
|
8389
|
+
className: cn59(
|
|
8351
8390
|
"w-full rounded-md border bg-background px-3 py-2 min-h-[40px] text-sm placeholder:text-muted-foreground",
|
|
8352
8391
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
8353
8392
|
errors.name ? "border-destructive" : "border-input"
|
|
@@ -8367,7 +8406,7 @@ function MosaicCreateOrgDialog({
|
|
|
8367
8406
|
onChange: (e) => setSlug(e.target.value),
|
|
8368
8407
|
placeholder: "acme-inc",
|
|
8369
8408
|
required: true,
|
|
8370
|
-
className:
|
|
8409
|
+
className: cn59(
|
|
8371
8410
|
"w-full rounded-md border bg-background px-3 py-2 min-h-[40px] text-sm placeholder:text-muted-foreground",
|
|
8372
8411
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
8373
8412
|
errors.slug ? "border-destructive" : "border-input"
|
|
@@ -8464,7 +8503,7 @@ function MosaicInviteMemberDialog({
|
|
|
8464
8503
|
onChange: (e) => setEmail(e.target.value),
|
|
8465
8504
|
placeholder: "colleague@example.com",
|
|
8466
8505
|
required: true,
|
|
8467
|
-
className:
|
|
8506
|
+
className: cn59(
|
|
8468
8507
|
"w-full rounded-md border bg-background px-3 py-2 min-h-[40px] text-sm placeholder:text-muted-foreground",
|
|
8469
8508
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
8470
8509
|
errors.email ? "border-destructive" : "border-input"
|
|
@@ -8641,7 +8680,7 @@ function MosaicMemberList({
|
|
|
8641
8680
|
const filtered = members.filter(
|
|
8642
8681
|
(m) => !query || m.name.toLowerCase().includes(query.toLowerCase()) || m.email.toLowerCase().includes(query.toLowerCase())
|
|
8643
8682
|
);
|
|
8644
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "member-list", className:
|
|
8683
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "member-list", className: cn59("flex flex-col gap-4", className), children: [
|
|
8645
8684
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
8646
8685
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative flex-1", children: [
|
|
8647
8686
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground", children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -8734,7 +8773,7 @@ function MosaicOrgPanel({
|
|
|
8734
8773
|
const { isMobile } = useDevice();
|
|
8735
8774
|
const [activeTab, setActiveTab] = React27__namespace.useState(defaultTab ?? tabs[0]?.id ?? "");
|
|
8736
8775
|
const activeContent = tabs.find((t) => t.id === activeTab)?.content;
|
|
8737
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "org-panel", className:
|
|
8776
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "org-panel", className: cn59("flex h-full flex-col", className), children: [
|
|
8738
8777
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "border-b border-border px-4 py-4 md:px-6", children: [
|
|
8739
8778
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start justify-between gap-4", children: [
|
|
8740
8779
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
@@ -8756,12 +8795,12 @@ function MosaicOrgPanel({
|
|
|
8756
8795
|
] }),
|
|
8757
8796
|
headerActions
|
|
8758
8797
|
] }),
|
|
8759
|
-
tabs.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
8798
|
+
tabs.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn59("mt-4 flex gap-1", isMobile && "overflow-x-auto"), children: tabs.map((tab) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
8760
8799
|
"button",
|
|
8761
8800
|
{
|
|
8762
8801
|
type: "button",
|
|
8763
8802
|
onClick: () => setActiveTab(tab.id),
|
|
8764
|
-
className:
|
|
8803
|
+
className: cn59(
|
|
8765
8804
|
"shrink-0 rounded-md px-3 py-1.5 text-sm font-medium transition-colors",
|
|
8766
8805
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
8767
8806
|
activeTab === tab.id ? "bg-primary text-primary-foreground" : "bg-muted text-muted-foreground hover:bg-accent hover:text-accent-foreground"
|
|
@@ -8775,7 +8814,7 @@ function MosaicOrgPanel({
|
|
|
8775
8814
|
] });
|
|
8776
8815
|
}
|
|
8777
8816
|
MosaicOrgPanel.displayName = "MosaicOrgPanel";
|
|
8778
|
-
function
|
|
8817
|
+
function cn60(...classes) {
|
|
8779
8818
|
return classes.filter(Boolean).join(" ");
|
|
8780
8819
|
}
|
|
8781
8820
|
var ANIM_ID8 = "mosaic-dashboard-content-kf";
|
|
@@ -8812,7 +8851,7 @@ function MosaicDashboardContent({
|
|
|
8812
8851
|
"div",
|
|
8813
8852
|
{
|
|
8814
8853
|
"data-slot": "dashboard-content",
|
|
8815
|
-
className:
|
|
8854
|
+
className: cn60("h-full overflow-auto", isMobile ? "p-4" : "p-6", className),
|
|
8816
8855
|
children: activeView ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mosaic-content-view space-y-6", children: activeView.content }, currentView) : /* @__PURE__ */ jsxRuntime.jsxs("p", { className: "py-12 text-center text-sm text-muted-foreground", children: [
|
|
8817
8856
|
"View not found: ",
|
|
8818
8857
|
currentView
|
|
@@ -8821,7 +8860,7 @@ function MosaicDashboardContent({
|
|
|
8821
8860
|
);
|
|
8822
8861
|
}
|
|
8823
8862
|
MosaicDashboardContent.displayName = "MosaicDashboardContent";
|
|
8824
|
-
function
|
|
8863
|
+
function cn61(...classes) {
|
|
8825
8864
|
return classes.filter(Boolean).join(" ");
|
|
8826
8865
|
}
|
|
8827
8866
|
var ANIM_ID9 = "mosaic-dashboard-header2-kf";
|
|
@@ -8931,16 +8970,16 @@ function MosaicDashboardHeader({
|
|
|
8931
8970
|
"header",
|
|
8932
8971
|
{
|
|
8933
8972
|
"data-slot": "dashboard-header",
|
|
8934
|
-
className:
|
|
8973
|
+
className: cn61(
|
|
8935
8974
|
"mosaic-dashboard-header2",
|
|
8936
8975
|
"sticky top-0 z-40 border-b border-border/50 bg-background/80 backdrop-blur-sm",
|
|
8937
8976
|
className
|
|
8938
8977
|
),
|
|
8939
|
-
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
8978
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn61(isMobile ? "px-4 py-3" : "container mx-auto px-4 py-4"), children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between gap-4", children: [
|
|
8940
8979
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex min-w-0 flex-1 items-center gap-2 md:gap-4", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
8941
8980
|
logoSlot ?? /* @__PURE__ */ jsxRuntime.jsx(SparklesIcon4, {}),
|
|
8942
8981
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-w-0", children: [
|
|
8943
|
-
/* @__PURE__ */ jsxRuntime.jsx("h1", { className:
|
|
8982
|
+
/* @__PURE__ */ jsxRuntime.jsx("h1", { className: cn61("font-semibold truncate", isMobile ? "text-lg" : "text-xl"), children: title }),
|
|
8944
8983
|
subtitle && !isMobile && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-muted-foreground truncate", children: subtitle })
|
|
8945
8984
|
] })
|
|
8946
8985
|
] }) }),
|
|
@@ -8953,7 +8992,7 @@ function MosaicDashboardHeader({
|
|
|
8953
8992
|
value: searchQuery,
|
|
8954
8993
|
onChange: handleSearch,
|
|
8955
8994
|
placeholder: "Search\u2026",
|
|
8956
|
-
className:
|
|
8995
|
+
className: cn61(
|
|
8957
8996
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
8958
8997
|
"text-sm placeholder:text-muted-foreground",
|
|
8959
8998
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -8993,7 +9032,7 @@ function MosaicDashboardHeader({
|
|
|
8993
9032
|
);
|
|
8994
9033
|
}
|
|
8995
9034
|
MosaicDashboardHeader.displayName = "MosaicDashboardHeader";
|
|
8996
|
-
function
|
|
9035
|
+
function cn62(...classes) {
|
|
8997
9036
|
return classes.filter(Boolean).join(" ");
|
|
8998
9037
|
}
|
|
8999
9038
|
function ChevronDownIcon4() {
|
|
@@ -9074,13 +9113,13 @@ function MosaicOrgSwitcher({
|
|
|
9074
9113
|
}, [open]);
|
|
9075
9114
|
if (!currentOrg && organizations.length === 0 && !onCreateOrg) return null;
|
|
9076
9115
|
const initials = currentOrg?.name.split(" ").map((n) => n[0]).filter(Boolean).slice(0, 2).join("").toUpperCase() ?? "?";
|
|
9077
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, "data-slot": "org-switcher", className:
|
|
9116
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, "data-slot": "org-switcher", className: cn62("relative", className), children: [
|
|
9078
9117
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
9079
9118
|
"button",
|
|
9080
9119
|
{
|
|
9081
9120
|
type: "button",
|
|
9082
9121
|
onClick: () => setOpen((v) => !v),
|
|
9083
|
-
className:
|
|
9122
|
+
className: cn62(
|
|
9084
9123
|
"inline-flex items-center gap-2 rounded-md border border-border bg-background px-3 py-1.5",
|
|
9085
9124
|
"text-sm font-medium text-foreground",
|
|
9086
9125
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -9107,7 +9146,7 @@ function MosaicOrgSwitcher({
|
|
|
9107
9146
|
{
|
|
9108
9147
|
role: "menu",
|
|
9109
9148
|
"aria-label": "Select organization",
|
|
9110
|
-
className:
|
|
9149
|
+
className: cn62(
|
|
9111
9150
|
"absolute left-0 top-full z-50 mt-1 min-w-[200px] rounded-md border border-border",
|
|
9112
9151
|
"bg-popover py-1 shadow-md"
|
|
9113
9152
|
),
|
|
@@ -9122,7 +9161,7 @@ function MosaicOrgSwitcher({
|
|
|
9122
9161
|
onSelectOrg?.(org.id);
|
|
9123
9162
|
setOpen(false);
|
|
9124
9163
|
},
|
|
9125
|
-
className:
|
|
9164
|
+
className: cn62(
|
|
9126
9165
|
"flex w-full items-center gap-2.5 px-3 py-2 text-sm text-foreground",
|
|
9127
9166
|
"hover:bg-accent hover:text-accent-foreground",
|
|
9128
9167
|
org.id === currentOrgId && "bg-primary/10 text-primary"
|
|
@@ -9159,7 +9198,7 @@ function MosaicOrgSwitcher({
|
|
|
9159
9198
|
] });
|
|
9160
9199
|
}
|
|
9161
9200
|
MosaicOrgSwitcher.displayName = "MosaicOrgSwitcher";
|
|
9162
|
-
function
|
|
9201
|
+
function cn63(...classes) {
|
|
9163
9202
|
return classes.filter(Boolean).join(" ");
|
|
9164
9203
|
}
|
|
9165
9204
|
function PlusIcon7() {
|
|
@@ -9203,19 +9242,19 @@ function MosaicQuickActionsMenu({
|
|
|
9203
9242
|
document.addEventListener("mousedown", h);
|
|
9204
9243
|
return () => document.removeEventListener("mousedown", h);
|
|
9205
9244
|
}, [open]);
|
|
9206
|
-
const itemClass =
|
|
9245
|
+
const itemClass = cn63(
|
|
9207
9246
|
"flex w-full items-center gap-2 px-3 py-2 text-sm text-foreground",
|
|
9208
9247
|
"hover:bg-accent hover:text-accent-foreground",
|
|
9209
9248
|
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
9210
9249
|
"min-h-[44px]"
|
|
9211
9250
|
);
|
|
9212
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, "data-slot": "quick-actions-menu", className:
|
|
9251
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, "data-slot": "quick-actions-menu", className: cn63("relative", className), children: [
|
|
9213
9252
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
9214
9253
|
"button",
|
|
9215
9254
|
{
|
|
9216
9255
|
type: "button",
|
|
9217
9256
|
onClick: () => setOpen((v) => !v),
|
|
9218
|
-
className:
|
|
9257
|
+
className: cn63(
|
|
9219
9258
|
"inline-flex items-center justify-center gap-2 rounded-md border border-border bg-background",
|
|
9220
9259
|
"min-h-[44px] min-w-[44px] px-3 py-2 text-sm font-medium text-foreground",
|
|
9221
9260
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -9226,7 +9265,7 @@ function MosaicQuickActionsMenu({
|
|
|
9226
9265
|
"aria-label": label,
|
|
9227
9266
|
children: [
|
|
9228
9267
|
triggerIcon ?? /* @__PURE__ */ jsxRuntime.jsx(PlusIcon7, {}),
|
|
9229
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
9268
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: cn63("hidden md:inline"), children: label })
|
|
9230
9269
|
]
|
|
9231
9270
|
}
|
|
9232
9271
|
),
|
|
@@ -9235,13 +9274,13 @@ function MosaicQuickActionsMenu({
|
|
|
9235
9274
|
{
|
|
9236
9275
|
role: "menu",
|
|
9237
9276
|
"aria-label": menuTitle,
|
|
9238
|
-
className:
|
|
9277
|
+
className: cn63(
|
|
9239
9278
|
"absolute right-0 top-full z-50 mt-1 rounded-md border border-border bg-popover py-1 shadow-md",
|
|
9240
9279
|
isMobile ? "w-[min(90vw,280px)]" : "w-56"
|
|
9241
9280
|
),
|
|
9242
9281
|
children: [
|
|
9243
9282
|
menuTitle && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "px-3 py-1.5", children: /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs font-semibold text-muted-foreground uppercase tracking-wide", children: menuTitle }) }),
|
|
9244
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
9283
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: cn63(menuTitle && "border-t border-border") }),
|
|
9245
9284
|
actions.map((action) => /* @__PURE__ */ jsxRuntime.jsxs(React27__namespace.Fragment, { children: [
|
|
9246
9285
|
action.separator && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "my-1 border-t border-border" }),
|
|
9247
9286
|
action.href && renderLink ? renderLink(
|
|
@@ -9719,6 +9758,7 @@ exports.MosaicDashboardLayout = MosaicDashboardLayout;
|
|
|
9719
9758
|
exports.MosaicDeleteConfirmationDialog = MosaicDeleteConfirmationDialog;
|
|
9720
9759
|
exports.MosaicDeviceProvider = MosaicDeviceProvider;
|
|
9721
9760
|
exports.MosaicDropdownMenu = MosaicDropdownMenu;
|
|
9761
|
+
exports.MosaicEmptyState = MosaicEmptyState;
|
|
9722
9762
|
exports.MosaicFallingPattern = MosaicFallingPattern;
|
|
9723
9763
|
exports.MosaicFeature3Col = MosaicFeature3Col;
|
|
9724
9764
|
exports.MosaicFeatureCenteredMedia = MosaicFeatureCenteredMedia;
|