@vantageos/mosaic-blocks 0.3.3-alpha → 0.3.4-alpha
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +308 -251
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +91 -2
- package/dist/index.d.ts +91 -2
- package/dist/index.js +308 -252
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.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.4-alpha";
|
|
50
50
|
function Placeholder({ label = "mosaic-blocks placeholder" }) {
|
|
51
51
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { "data-mosaic-block": "placeholder", children: label });
|
|
52
52
|
}
|
|
@@ -1081,6 +1081,62 @@ function useMediaQuery(query) {
|
|
|
1081
1081
|
function cn14(...classes) {
|
|
1082
1082
|
return classes.filter(Boolean).join(" ");
|
|
1083
1083
|
}
|
|
1084
|
+
function MosaicFilterBar({
|
|
1085
|
+
label,
|
|
1086
|
+
children,
|
|
1087
|
+
onClearAll,
|
|
1088
|
+
clearLabel = "Clear",
|
|
1089
|
+
align = "start",
|
|
1090
|
+
className,
|
|
1091
|
+
ref
|
|
1092
|
+
}) {
|
|
1093
|
+
const isBetween = align === "between";
|
|
1094
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1095
|
+
"div",
|
|
1096
|
+
{
|
|
1097
|
+
ref,
|
|
1098
|
+
"data-slot": "filter-bar",
|
|
1099
|
+
className: cn14(
|
|
1100
|
+
"flex flex-wrap items-center gap-2",
|
|
1101
|
+
isBetween ? "justify-between" : "justify-start",
|
|
1102
|
+
className
|
|
1103
|
+
),
|
|
1104
|
+
children: [
|
|
1105
|
+
label != null && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1106
|
+
"span",
|
|
1107
|
+
{
|
|
1108
|
+
"data-slot": "filter-bar-label",
|
|
1109
|
+
className: "shrink-0 text-sm font-medium text-muted-foreground",
|
|
1110
|
+
children: label
|
|
1111
|
+
}
|
|
1112
|
+
),
|
|
1113
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1114
|
+
"div",
|
|
1115
|
+
{
|
|
1116
|
+
"data-slot": "filter-bar-controls",
|
|
1117
|
+
className: cn14("flex flex-wrap items-center gap-2", isBetween && "flex-1"),
|
|
1118
|
+
children
|
|
1119
|
+
}
|
|
1120
|
+
),
|
|
1121
|
+
onClearAll != null && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1122
|
+
MosaicButton,
|
|
1123
|
+
{
|
|
1124
|
+
"data-slot": "filter-bar-clear",
|
|
1125
|
+
variant: "ghost",
|
|
1126
|
+
size: "sm",
|
|
1127
|
+
onClick: onClearAll,
|
|
1128
|
+
className: "shrink-0",
|
|
1129
|
+
children: clearLabel
|
|
1130
|
+
}
|
|
1131
|
+
)
|
|
1132
|
+
]
|
|
1133
|
+
}
|
|
1134
|
+
);
|
|
1135
|
+
}
|
|
1136
|
+
MosaicFilterBar.displayName = "MosaicFilterBar";
|
|
1137
|
+
function cn15(...classes) {
|
|
1138
|
+
return classes.filter(Boolean).join(" ");
|
|
1139
|
+
}
|
|
1084
1140
|
function MosaicEmptyState({
|
|
1085
1141
|
icon,
|
|
1086
1142
|
title,
|
|
@@ -1094,7 +1150,7 @@ function MosaicEmptyState({
|
|
|
1094
1150
|
{
|
|
1095
1151
|
ref,
|
|
1096
1152
|
"data-slot": "empty-state",
|
|
1097
|
-
className:
|
|
1153
|
+
className: cn15(
|
|
1098
1154
|
"flex flex-col items-center justify-center gap-4 px-4 py-12 text-center",
|
|
1099
1155
|
className
|
|
1100
1156
|
),
|
|
@@ -1117,7 +1173,7 @@ function MosaicEmptyState({
|
|
|
1117
1173
|
);
|
|
1118
1174
|
}
|
|
1119
1175
|
MosaicEmptyState.displayName = "MosaicEmptyState";
|
|
1120
|
-
function
|
|
1176
|
+
function cn16(...classes) {
|
|
1121
1177
|
return classes.filter(Boolean).join(" ");
|
|
1122
1178
|
}
|
|
1123
1179
|
function MosaicAccordion({ className, ref, ...props }) {
|
|
@@ -1126,7 +1182,7 @@ function MosaicAccordion({ className, ref, ...props }) {
|
|
|
1126
1182
|
{
|
|
1127
1183
|
ref,
|
|
1128
1184
|
"data-slot": "accordion",
|
|
1129
|
-
className:
|
|
1185
|
+
className: cn16("w-full divide-y divide-border", className),
|
|
1130
1186
|
...props
|
|
1131
1187
|
}
|
|
1132
1188
|
);
|
|
@@ -1138,7 +1194,7 @@ function MosaicAccordionItem({ className, ref, ...props }) {
|
|
|
1138
1194
|
{
|
|
1139
1195
|
ref,
|
|
1140
1196
|
"data-slot": "accordion-item",
|
|
1141
|
-
className:
|
|
1197
|
+
className: cn16("py-0", className),
|
|
1142
1198
|
...props
|
|
1143
1199
|
}
|
|
1144
1200
|
);
|
|
@@ -1155,7 +1211,7 @@ function MosaicAccordionTrigger({
|
|
|
1155
1211
|
{
|
|
1156
1212
|
ref,
|
|
1157
1213
|
"data-slot": "accordion-trigger",
|
|
1158
|
-
className:
|
|
1214
|
+
className: cn16(
|
|
1159
1215
|
"flex w-full flex-1 items-center justify-between py-4",
|
|
1160
1216
|
"text-sm font-medium text-foreground",
|
|
1161
1217
|
"outline-none transition-all",
|
|
@@ -1195,13 +1251,13 @@ function MosaicAccordionPanel({ className, ref, ...props }) {
|
|
|
1195
1251
|
{
|
|
1196
1252
|
ref,
|
|
1197
1253
|
"data-slot": "accordion-panel",
|
|
1198
|
-
className:
|
|
1254
|
+
className: cn16("overflow-hidden text-sm text-muted-foreground", "transition-all", className),
|
|
1199
1255
|
...props
|
|
1200
1256
|
}
|
|
1201
1257
|
);
|
|
1202
1258
|
}
|
|
1203
1259
|
MosaicAccordionPanel.displayName = "MosaicAccordionPanel";
|
|
1204
|
-
function
|
|
1260
|
+
function cn17(...classes) {
|
|
1205
1261
|
return classes.filter(Boolean).join(" ");
|
|
1206
1262
|
}
|
|
1207
1263
|
function MosaicCheckbox({ className, ref, ...props }) {
|
|
@@ -1210,7 +1266,7 @@ function MosaicCheckbox({ className, ref, ...props }) {
|
|
|
1210
1266
|
{
|
|
1211
1267
|
ref,
|
|
1212
1268
|
"data-slot": "checkbox",
|
|
1213
|
-
className:
|
|
1269
|
+
className: cn17(
|
|
1214
1270
|
"peer size-4 shrink-0 cursor-pointer",
|
|
1215
1271
|
"rounded-sm border border-border bg-background",
|
|
1216
1272
|
"outline-none transition-colors",
|
|
@@ -1250,7 +1306,7 @@ function MosaicCheckbox({ className, ref, ...props }) {
|
|
|
1250
1306
|
);
|
|
1251
1307
|
}
|
|
1252
1308
|
MosaicCheckbox.displayName = "MosaicCheckbox";
|
|
1253
|
-
function
|
|
1309
|
+
function cn18(...classes) {
|
|
1254
1310
|
return classes.filter(Boolean).join(" ");
|
|
1255
1311
|
}
|
|
1256
1312
|
function MosaicCollapsible({ className, ref, ...props }) {
|
|
@@ -1259,7 +1315,7 @@ function MosaicCollapsible({ className, ref, ...props }) {
|
|
|
1259
1315
|
{
|
|
1260
1316
|
ref,
|
|
1261
1317
|
"data-slot": "collapsible",
|
|
1262
|
-
className:
|
|
1318
|
+
className: cn18("w-full", className),
|
|
1263
1319
|
...props
|
|
1264
1320
|
}
|
|
1265
1321
|
);
|
|
@@ -1275,7 +1331,7 @@ function MosaicCollapsibleTrigger({
|
|
|
1275
1331
|
{
|
|
1276
1332
|
ref,
|
|
1277
1333
|
"data-slot": "collapsible-trigger",
|
|
1278
|
-
className:
|
|
1334
|
+
className: cn18(
|
|
1279
1335
|
"inline-flex w-full items-center justify-between gap-2",
|
|
1280
1336
|
"rounded-md px-0 py-2 text-sm font-medium",
|
|
1281
1337
|
"text-foreground outline-none transition-colors",
|
|
@@ -1297,7 +1353,7 @@ function MosaicCollapsiblePanel({ className, ref, ...props }) {
|
|
|
1297
1353
|
{
|
|
1298
1354
|
ref,
|
|
1299
1355
|
"data-slot": "collapsible-panel",
|
|
1300
|
-
className:
|
|
1356
|
+
className: cn18(
|
|
1301
1357
|
"overflow-hidden text-sm transition-all",
|
|
1302
1358
|
"data-[open]:animate-in data-[closed]:animate-out",
|
|
1303
1359
|
className
|
|
@@ -1307,7 +1363,7 @@ function MosaicCollapsiblePanel({ className, ref, ...props }) {
|
|
|
1307
1363
|
);
|
|
1308
1364
|
}
|
|
1309
1365
|
MosaicCollapsiblePanel.displayName = "MosaicCollapsiblePanel";
|
|
1310
|
-
function
|
|
1366
|
+
function cn19(...classes) {
|
|
1311
1367
|
return classes.filter(Boolean).join(" ");
|
|
1312
1368
|
}
|
|
1313
1369
|
function MosaicProgress({
|
|
@@ -1324,7 +1380,7 @@ function MosaicProgress({
|
|
|
1324
1380
|
"data-slot": "progress",
|
|
1325
1381
|
value,
|
|
1326
1382
|
max,
|
|
1327
|
-
className:
|
|
1383
|
+
className: cn19("w-full", className),
|
|
1328
1384
|
...props,
|
|
1329
1385
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1330
1386
|
progress.Progress.Track,
|
|
@@ -1345,7 +1401,7 @@ function MosaicProgress({
|
|
|
1345
1401
|
);
|
|
1346
1402
|
}
|
|
1347
1403
|
MosaicProgress.displayName = "MosaicProgress";
|
|
1348
|
-
function
|
|
1404
|
+
function cn20(...classes) {
|
|
1349
1405
|
return classes.filter(Boolean).join(" ");
|
|
1350
1406
|
}
|
|
1351
1407
|
function MosaicRadioGroup({ className, ref, ...props }) {
|
|
@@ -1354,7 +1410,7 @@ function MosaicRadioGroup({ className, ref, ...props }) {
|
|
|
1354
1410
|
{
|
|
1355
1411
|
ref,
|
|
1356
1412
|
"data-slot": "radio-group",
|
|
1357
|
-
className:
|
|
1413
|
+
className: cn20("flex flex-col gap-2", className),
|
|
1358
1414
|
...props
|
|
1359
1415
|
}
|
|
1360
1416
|
);
|
|
@@ -1371,7 +1427,7 @@ function MosaicRadioGroupItem({
|
|
|
1371
1427
|
{
|
|
1372
1428
|
ref,
|
|
1373
1429
|
"data-slot": "radio",
|
|
1374
|
-
className:
|
|
1430
|
+
className: cn20(
|
|
1375
1431
|
"flex items-center gap-2 text-sm font-medium",
|
|
1376
1432
|
"cursor-pointer select-none",
|
|
1377
1433
|
"data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50",
|
|
@@ -1382,7 +1438,7 @@ function MosaicRadioGroupItem({
|
|
|
1382
1438
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1383
1439
|
"span",
|
|
1384
1440
|
{
|
|
1385
|
-
className:
|
|
1441
|
+
className: cn20(
|
|
1386
1442
|
"flex size-4 shrink-0 items-center justify-center",
|
|
1387
1443
|
"rounded-full border border-border bg-background",
|
|
1388
1444
|
"outline-none transition-colors",
|
|
@@ -1398,7 +1454,7 @@ function MosaicRadioGroupItem({
|
|
|
1398
1454
|
);
|
|
1399
1455
|
}
|
|
1400
1456
|
MosaicRadioGroupItem.displayName = "MosaicRadioGroupItem";
|
|
1401
|
-
function
|
|
1457
|
+
function cn21(...classes) {
|
|
1402
1458
|
return classes.filter(Boolean).join(" ");
|
|
1403
1459
|
}
|
|
1404
1460
|
function MosaicScrollArea({
|
|
@@ -1413,7 +1469,7 @@ function MosaicScrollArea({
|
|
|
1413
1469
|
{
|
|
1414
1470
|
ref,
|
|
1415
1471
|
"data-slot": "scroll-area",
|
|
1416
|
-
className:
|
|
1472
|
+
className: cn21("relative overflow-hidden", className),
|
|
1417
1473
|
...props,
|
|
1418
1474
|
children: [
|
|
1419
1475
|
/* @__PURE__ */ jsxRuntime.jsx(scrollArea.ScrollArea.Viewport, { "data-slot": "scroll-area-viewport", className: "size-full rounded-[inherit]", children: /* @__PURE__ */ jsxRuntime.jsx(scrollArea.ScrollArea.Content, { children }) }),
|
|
@@ -1441,7 +1497,7 @@ function MosaicScrollArea({
|
|
|
1441
1497
|
);
|
|
1442
1498
|
}
|
|
1443
1499
|
MosaicScrollArea.displayName = "MosaicScrollArea";
|
|
1444
|
-
function
|
|
1500
|
+
function cn22(...classes) {
|
|
1445
1501
|
return classes.filter(Boolean).join(" ");
|
|
1446
1502
|
}
|
|
1447
1503
|
function MosaicSeparator({
|
|
@@ -1456,7 +1512,7 @@ function MosaicSeparator({
|
|
|
1456
1512
|
ref,
|
|
1457
1513
|
"data-slot": "separator",
|
|
1458
1514
|
orientation,
|
|
1459
|
-
className:
|
|
1515
|
+
className: cn22(
|
|
1460
1516
|
"shrink-0 bg-border",
|
|
1461
1517
|
orientation === "vertical" ? "h-full w-px" : "h-px w-full",
|
|
1462
1518
|
className
|
|
@@ -1466,7 +1522,7 @@ function MosaicSeparator({
|
|
|
1466
1522
|
);
|
|
1467
1523
|
}
|
|
1468
1524
|
MosaicSeparator.displayName = "MosaicSeparator";
|
|
1469
|
-
function
|
|
1525
|
+
function cn23(...classes) {
|
|
1470
1526
|
return classes.filter(Boolean).join(" ");
|
|
1471
1527
|
}
|
|
1472
1528
|
function MosaicSlider({ className, ref, ...props }) {
|
|
@@ -1477,7 +1533,7 @@ function MosaicSlider({ className, ref, ...props }) {
|
|
|
1477
1533
|
{
|
|
1478
1534
|
ref,
|
|
1479
1535
|
"data-slot": "slider",
|
|
1480
|
-
className:
|
|
1536
|
+
className: cn23("w-full touch-none select-none", className),
|
|
1481
1537
|
...props,
|
|
1482
1538
|
children: /* @__PURE__ */ jsxRuntime.jsx(slider.Slider.Control, { className: "flex items-center", children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1483
1539
|
slider.Slider.Track,
|
|
@@ -1496,7 +1552,7 @@ function MosaicSlider({ className, ref, ...props }) {
|
|
|
1496
1552
|
slider.Slider.Thumb,
|
|
1497
1553
|
{
|
|
1498
1554
|
"data-slot": "slider-thumb",
|
|
1499
|
-
className:
|
|
1555
|
+
className: cn23(
|
|
1500
1556
|
"block size-5 rounded-full",
|
|
1501
1557
|
"border-2 border-foreground bg-background",
|
|
1502
1558
|
"shadow-sm outline-none transition-colors",
|
|
@@ -1513,7 +1569,7 @@ function MosaicSlider({ className, ref, ...props }) {
|
|
|
1513
1569
|
);
|
|
1514
1570
|
}
|
|
1515
1571
|
MosaicSlider.displayName = "MosaicSlider";
|
|
1516
|
-
function
|
|
1572
|
+
function cn24(...classes) {
|
|
1517
1573
|
return classes.filter(Boolean).join(" ");
|
|
1518
1574
|
}
|
|
1519
1575
|
function MosaicTabs({ className, ref, ...props }) {
|
|
@@ -1522,7 +1578,7 @@ function MosaicTabs({ className, ref, ...props }) {
|
|
|
1522
1578
|
{
|
|
1523
1579
|
ref,
|
|
1524
1580
|
"data-slot": "tabs",
|
|
1525
|
-
className:
|
|
1581
|
+
className: cn24("flex flex-col gap-2", className),
|
|
1526
1582
|
...props
|
|
1527
1583
|
}
|
|
1528
1584
|
);
|
|
@@ -1534,7 +1590,7 @@ function MosaicTabsList({ className, ref, ...props }) {
|
|
|
1534
1590
|
{
|
|
1535
1591
|
ref,
|
|
1536
1592
|
"data-slot": "tabs-list",
|
|
1537
|
-
className:
|
|
1593
|
+
className: cn24(
|
|
1538
1594
|
"relative inline-flex items-center justify-start gap-1",
|
|
1539
1595
|
"rounded-lg bg-muted p-1 text-muted-foreground",
|
|
1540
1596
|
className
|
|
@@ -1550,7 +1606,7 @@ function MosaicTabsTrigger({ className, ref, ...props }) {
|
|
|
1550
1606
|
{
|
|
1551
1607
|
ref,
|
|
1552
1608
|
"data-slot": "tabs-trigger",
|
|
1553
|
-
className:
|
|
1609
|
+
className: cn24(
|
|
1554
1610
|
"inline-flex items-center justify-center gap-1.5 whitespace-nowrap",
|
|
1555
1611
|
"rounded-md px-3 py-1.5 text-sm font-medium",
|
|
1556
1612
|
"outline-none transition-all",
|
|
@@ -1573,7 +1629,7 @@ function MosaicTabsPanel({ className, ref, ...props }) {
|
|
|
1573
1629
|
{
|
|
1574
1630
|
ref,
|
|
1575
1631
|
"data-slot": "tabs-panel",
|
|
1576
|
-
className:
|
|
1632
|
+
className: cn24(
|
|
1577
1633
|
"flex-1 outline-none",
|
|
1578
1634
|
"focus-visible:ring-ring focus-visible:ring-[3px] focus-visible:rounded-md",
|
|
1579
1635
|
className
|
|
@@ -1583,7 +1639,7 @@ function MosaicTabsPanel({ className, ref, ...props }) {
|
|
|
1583
1639
|
);
|
|
1584
1640
|
}
|
|
1585
1641
|
MosaicTabsPanel.displayName = "MosaicTabsPanel";
|
|
1586
|
-
function
|
|
1642
|
+
function cn25(...classes) {
|
|
1587
1643
|
return classes.filter(Boolean).join(" ");
|
|
1588
1644
|
}
|
|
1589
1645
|
function MosaicTextarea({ className, ref, ...props }) {
|
|
@@ -1592,7 +1648,7 @@ function MosaicTextarea({ className, ref, ...props }) {
|
|
|
1592
1648
|
{
|
|
1593
1649
|
ref,
|
|
1594
1650
|
"data-slot": "textarea",
|
|
1595
|
-
className:
|
|
1651
|
+
className: cn25(
|
|
1596
1652
|
"flex min-h-[80px] w-full resize-y",
|
|
1597
1653
|
"rounded-md border border-border bg-background px-3 py-2",
|
|
1598
1654
|
"text-sm text-foreground shadow-xs",
|
|
@@ -1607,7 +1663,7 @@ function MosaicTextarea({ className, ref, ...props }) {
|
|
|
1607
1663
|
);
|
|
1608
1664
|
}
|
|
1609
1665
|
MosaicTextarea.displayName = "MosaicTextarea";
|
|
1610
|
-
function
|
|
1666
|
+
function cn26(...classes) {
|
|
1611
1667
|
return classes.filter(Boolean).join(" ");
|
|
1612
1668
|
}
|
|
1613
1669
|
function MosaicTooltip({
|
|
@@ -1624,7 +1680,7 @@ function MosaicTooltip({
|
|
|
1624
1680
|
tooltip.Tooltip.Popup,
|
|
1625
1681
|
{
|
|
1626
1682
|
"data-slot": "tooltip-content",
|
|
1627
|
-
className:
|
|
1683
|
+
className: cn26(
|
|
1628
1684
|
"z-50 max-w-xs overflow-hidden rounded-md",
|
|
1629
1685
|
"border border-border bg-foreground px-3 py-1.5",
|
|
1630
1686
|
"text-xs text-background shadow-md",
|
|
@@ -1641,7 +1697,7 @@ function MosaicTooltip({
|
|
|
1641
1697
|
] }) });
|
|
1642
1698
|
}
|
|
1643
1699
|
MosaicTooltip.displayName = "MosaicTooltip";
|
|
1644
|
-
function
|
|
1700
|
+
function cn27(...classes) {
|
|
1645
1701
|
return classes.filter(Boolean).join(" ");
|
|
1646
1702
|
}
|
|
1647
1703
|
function MosaicCard({ className, ref, ...props }) {
|
|
@@ -1650,7 +1706,7 @@ function MosaicCard({ className, ref, ...props }) {
|
|
|
1650
1706
|
{
|
|
1651
1707
|
ref,
|
|
1652
1708
|
"data-slot": "card",
|
|
1653
|
-
className:
|
|
1709
|
+
className: cn27(
|
|
1654
1710
|
"bg-card text-card-foreground rounded-xl border border-border shadow-sm",
|
|
1655
1711
|
className
|
|
1656
1712
|
),
|
|
@@ -1665,7 +1721,7 @@ function MosaicCardHeader({ className, ref, ...props }) {
|
|
|
1665
1721
|
{
|
|
1666
1722
|
ref,
|
|
1667
1723
|
"data-slot": "card-header",
|
|
1668
|
-
className:
|
|
1724
|
+
className: cn27("flex flex-col gap-1.5 p-6", className),
|
|
1669
1725
|
...props
|
|
1670
1726
|
}
|
|
1671
1727
|
);
|
|
@@ -1677,7 +1733,7 @@ function MosaicCardTitle({ className, ref, ...props }) {
|
|
|
1677
1733
|
{
|
|
1678
1734
|
ref,
|
|
1679
1735
|
"data-slot": "card-title",
|
|
1680
|
-
className:
|
|
1736
|
+
className: cn27("text-lg font-semibold leading-none tracking-tight", className),
|
|
1681
1737
|
...props
|
|
1682
1738
|
}
|
|
1683
1739
|
);
|
|
@@ -1689,14 +1745,14 @@ function MosaicCardDescription({ className, ref, ...props }) {
|
|
|
1689
1745
|
{
|
|
1690
1746
|
ref,
|
|
1691
1747
|
"data-slot": "card-description",
|
|
1692
|
-
className:
|
|
1748
|
+
className: cn27("text-sm text-muted-foreground", className),
|
|
1693
1749
|
...props
|
|
1694
1750
|
}
|
|
1695
1751
|
);
|
|
1696
1752
|
}
|
|
1697
1753
|
MosaicCardDescription.displayName = "MosaicCardDescription";
|
|
1698
1754
|
function MosaicCardContent({ className, ref, ...props }) {
|
|
1699
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { ref, "data-slot": "card-content", className:
|
|
1755
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { ref, "data-slot": "card-content", className: cn27("p-6 pt-0", className), ...props });
|
|
1700
1756
|
}
|
|
1701
1757
|
MosaicCardContent.displayName = "MosaicCardContent";
|
|
1702
1758
|
function MosaicCardFooter({ className, ref, ...props }) {
|
|
@@ -1705,7 +1761,7 @@ function MosaicCardFooter({ className, ref, ...props }) {
|
|
|
1705
1761
|
{
|
|
1706
1762
|
ref,
|
|
1707
1763
|
"data-slot": "card-footer",
|
|
1708
|
-
className:
|
|
1764
|
+
className: cn27("flex items-center p-6 pt-0", className),
|
|
1709
1765
|
...props
|
|
1710
1766
|
}
|
|
1711
1767
|
);
|
|
@@ -1734,7 +1790,7 @@ var badgeVariants = classVarianceAuthority.cva(
|
|
|
1734
1790
|
}
|
|
1735
1791
|
}
|
|
1736
1792
|
);
|
|
1737
|
-
function
|
|
1793
|
+
function cn28(...classes) {
|
|
1738
1794
|
return classes.filter(Boolean).join(" ");
|
|
1739
1795
|
}
|
|
1740
1796
|
function MosaicBadge({ className, variant, ref, ...props }) {
|
|
@@ -1743,13 +1799,13 @@ function MosaicBadge({ className, variant, ref, ...props }) {
|
|
|
1743
1799
|
{
|
|
1744
1800
|
ref,
|
|
1745
1801
|
"data-slot": "badge",
|
|
1746
|
-
className:
|
|
1802
|
+
className: cn28(badgeVariants({ variant }), className),
|
|
1747
1803
|
...props
|
|
1748
1804
|
}
|
|
1749
1805
|
);
|
|
1750
1806
|
}
|
|
1751
1807
|
MosaicBadge.displayName = "MosaicBadge";
|
|
1752
|
-
function
|
|
1808
|
+
function cn29(...classes) {
|
|
1753
1809
|
return classes.filter(Boolean).join(" ");
|
|
1754
1810
|
}
|
|
1755
1811
|
function MosaicAvatar({ src, alt, fallback, className, ref, ...props }) {
|
|
@@ -1758,7 +1814,7 @@ function MosaicAvatar({ src, alt, fallback, className, ref, ...props }) {
|
|
|
1758
1814
|
{
|
|
1759
1815
|
ref,
|
|
1760
1816
|
"data-slot": "avatar",
|
|
1761
|
-
className:
|
|
1817
|
+
className: cn29(
|
|
1762
1818
|
"relative flex size-10 shrink-0 overflow-hidden rounded-full",
|
|
1763
1819
|
"bg-muted text-muted-foreground",
|
|
1764
1820
|
className
|
|
@@ -1787,7 +1843,7 @@ function MosaicAvatar({ src, alt, fallback, className, ref, ...props }) {
|
|
|
1787
1843
|
);
|
|
1788
1844
|
}
|
|
1789
1845
|
MosaicAvatar.displayName = "MosaicAvatar";
|
|
1790
|
-
function
|
|
1846
|
+
function cn30(...classes) {
|
|
1791
1847
|
return classes.filter(Boolean).join(" ");
|
|
1792
1848
|
}
|
|
1793
1849
|
function MosaicInput({ className, ref, ...props }) {
|
|
@@ -1796,7 +1852,7 @@ function MosaicInput({ className, ref, ...props }) {
|
|
|
1796
1852
|
{
|
|
1797
1853
|
ref,
|
|
1798
1854
|
"data-slot": "input",
|
|
1799
|
-
className:
|
|
1855
|
+
className: cn30(
|
|
1800
1856
|
"flex h-9 w-full rounded-md border border-border bg-background px-3 py-1",
|
|
1801
1857
|
"text-sm text-foreground shadow-xs",
|
|
1802
1858
|
"placeholder:text-muted-foreground",
|
|
@@ -1810,7 +1866,7 @@ function MosaicInput({ className, ref, ...props }) {
|
|
|
1810
1866
|
);
|
|
1811
1867
|
}
|
|
1812
1868
|
MosaicInput.displayName = "MosaicInput";
|
|
1813
|
-
function
|
|
1869
|
+
function cn31(...classes) {
|
|
1814
1870
|
return classes.filter(Boolean).join(" ");
|
|
1815
1871
|
}
|
|
1816
1872
|
function MosaicInputGroup({
|
|
@@ -1826,7 +1882,7 @@ function MosaicInputGroup({
|
|
|
1826
1882
|
{
|
|
1827
1883
|
ref,
|
|
1828
1884
|
"data-slot": "input-group",
|
|
1829
|
-
className:
|
|
1885
|
+
className: cn31("flex items-center", className),
|
|
1830
1886
|
...props,
|
|
1831
1887
|
children: [
|
|
1832
1888
|
prefix ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -1851,7 +1907,7 @@ function MosaicInputGroup({
|
|
|
1851
1907
|
);
|
|
1852
1908
|
}
|
|
1853
1909
|
MosaicInputGroup.displayName = "MosaicInputGroup";
|
|
1854
|
-
function
|
|
1910
|
+
function cn32(...classes) {
|
|
1855
1911
|
return classes.filter(Boolean).join(" ");
|
|
1856
1912
|
}
|
|
1857
1913
|
function MosaicFieldRoot({ className, children, ref, ...props }) {
|
|
@@ -1860,7 +1916,7 @@ function MosaicFieldRoot({ className, children, ref, ...props }) {
|
|
|
1860
1916
|
{
|
|
1861
1917
|
ref,
|
|
1862
1918
|
"data-slot": "field",
|
|
1863
|
-
className:
|
|
1919
|
+
className: cn32("flex flex-col gap-1.5", className),
|
|
1864
1920
|
...props,
|
|
1865
1921
|
children
|
|
1866
1922
|
}
|
|
@@ -1872,7 +1928,7 @@ function MosaicFieldLabel({ className, children, ref, ...props }) {
|
|
|
1872
1928
|
field.Field.Label,
|
|
1873
1929
|
{
|
|
1874
1930
|
ref,
|
|
1875
|
-
className:
|
|
1931
|
+
className: cn32(
|
|
1876
1932
|
"text-sm font-medium leading-none text-foreground",
|
|
1877
1933
|
"data-[disabled]:opacity-50",
|
|
1878
1934
|
className
|
|
@@ -1884,7 +1940,7 @@ function MosaicFieldLabel({ className, children, ref, ...props }) {
|
|
|
1884
1940
|
}
|
|
1885
1941
|
MosaicFieldLabel.displayName = "MosaicField.Label";
|
|
1886
1942
|
function MosaicFieldControl({ className, ref, ...props }) {
|
|
1887
|
-
return /* @__PURE__ */ jsxRuntime.jsx(field.Field.Control, { ref, className:
|
|
1943
|
+
return /* @__PURE__ */ jsxRuntime.jsx(field.Field.Control, { ref, className: cn32(className), ...props });
|
|
1888
1944
|
}
|
|
1889
1945
|
MosaicFieldControl.displayName = "MosaicField.Control";
|
|
1890
1946
|
function MosaicFieldDescription({
|
|
@@ -1897,7 +1953,7 @@ function MosaicFieldDescription({
|
|
|
1897
1953
|
field.Field.Description,
|
|
1898
1954
|
{
|
|
1899
1955
|
ref,
|
|
1900
|
-
className:
|
|
1956
|
+
className: cn32("text-xs text-muted-foreground", className),
|
|
1901
1957
|
...props,
|
|
1902
1958
|
children
|
|
1903
1959
|
}
|
|
@@ -1917,7 +1973,7 @@ function MosaicFieldError({
|
|
|
1917
1973
|
{
|
|
1918
1974
|
ref,
|
|
1919
1975
|
match: show === true ? true : void 0,
|
|
1920
|
-
className:
|
|
1976
|
+
className: cn32("text-xs font-medium text-destructive", className),
|
|
1921
1977
|
...props,
|
|
1922
1978
|
children
|
|
1923
1979
|
}
|
|
@@ -1930,7 +1986,7 @@ var MosaicField = Object.assign(MosaicFieldRoot, {
|
|
|
1930
1986
|
Description: MosaicFieldDescription,
|
|
1931
1987
|
Error: MosaicFieldError
|
|
1932
1988
|
});
|
|
1933
|
-
function
|
|
1989
|
+
function cn33(...classes) {
|
|
1934
1990
|
return classes.filter(Boolean).join(" ");
|
|
1935
1991
|
}
|
|
1936
1992
|
function MosaicSwitch({ className, ref, ...props }) {
|
|
@@ -1939,7 +1995,7 @@ function MosaicSwitch({ className, ref, ...props }) {
|
|
|
1939
1995
|
{
|
|
1940
1996
|
ref,
|
|
1941
1997
|
"data-slot": "switch",
|
|
1942
|
-
className:
|
|
1998
|
+
className: cn33(
|
|
1943
1999
|
// Track
|
|
1944
2000
|
"relative inline-flex h-6 w-10 shrink-0 cursor-pointer items-center",
|
|
1945
2001
|
"rounded-full border-2 border-transparent outline-none",
|
|
@@ -1957,7 +2013,7 @@ function MosaicSwitch({ className, ref, ...props }) {
|
|
|
1957
2013
|
_switch.Switch.Thumb,
|
|
1958
2014
|
{
|
|
1959
2015
|
"data-slot": "switch-thumb",
|
|
1960
|
-
className:
|
|
2016
|
+
className: cn33(
|
|
1961
2017
|
"pointer-events-none block h-4 w-4 rounded-full",
|
|
1962
2018
|
"bg-background shadow-sm",
|
|
1963
2019
|
"translate-x-0 transition-transform",
|
|
@@ -1969,7 +2025,7 @@ function MosaicSwitch({ className, ref, ...props }) {
|
|
|
1969
2025
|
);
|
|
1970
2026
|
}
|
|
1971
2027
|
MosaicSwitch.displayName = "MosaicSwitch";
|
|
1972
|
-
function
|
|
2028
|
+
function cn34(...classes) {
|
|
1973
2029
|
return classes.filter(Boolean).join(" ");
|
|
1974
2030
|
}
|
|
1975
2031
|
function MosaicSelect({
|
|
@@ -2001,7 +2057,7 @@ function MosaicSelect({
|
|
|
2001
2057
|
select.Select.Trigger,
|
|
2002
2058
|
{
|
|
2003
2059
|
"data-slot": "select",
|
|
2004
|
-
className:
|
|
2060
|
+
className: cn34(
|
|
2005
2061
|
"inline-flex h-9 w-full min-w-[8rem] items-center justify-between gap-2",
|
|
2006
2062
|
"rounded-md border border-border bg-background px-3 py-2",
|
|
2007
2063
|
"text-sm text-foreground shadow-xs outline-none",
|
|
@@ -2021,7 +2077,7 @@ function MosaicSelect({
|
|
|
2021
2077
|
select.Select.Popup,
|
|
2022
2078
|
{
|
|
2023
2079
|
"data-slot": "select-popup",
|
|
2024
|
-
className:
|
|
2080
|
+
className: cn34(
|
|
2025
2081
|
"z-50 min-w-[8rem] overflow-hidden rounded-md border border-border",
|
|
2026
2082
|
"bg-popover p-1 text-popover-foreground shadow-md",
|
|
2027
2083
|
"origin-[var(--transform-origin)]",
|
|
@@ -2035,7 +2091,7 @@ function MosaicSelect({
|
|
|
2035
2091
|
{
|
|
2036
2092
|
value: item.value,
|
|
2037
2093
|
disabled: item.disabled,
|
|
2038
|
-
className:
|
|
2094
|
+
className: cn34(
|
|
2039
2095
|
"relative flex cursor-pointer select-none items-center rounded-sm px-2 py-1.5",
|
|
2040
2096
|
"text-sm text-popover-foreground outline-none",
|
|
2041
2097
|
"data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground",
|
|
@@ -2089,7 +2145,7 @@ function CheckIcon() {
|
|
|
2089
2145
|
}
|
|
2090
2146
|
);
|
|
2091
2147
|
}
|
|
2092
|
-
function
|
|
2148
|
+
function cn35(...classes) {
|
|
2093
2149
|
return classes.filter(Boolean).join(" ");
|
|
2094
2150
|
}
|
|
2095
2151
|
function MosaicCombobox({
|
|
@@ -2118,12 +2174,12 @@ function MosaicCombobox({
|
|
|
2118
2174
|
name,
|
|
2119
2175
|
onInputValueChange: setInputValue,
|
|
2120
2176
|
autoHighlight: true,
|
|
2121
|
-
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "combobox", className:
|
|
2177
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "combobox", className: cn35("relative w-full", className), children: [
|
|
2122
2178
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2123
2179
|
combobox.Combobox.Input,
|
|
2124
2180
|
{
|
|
2125
2181
|
placeholder,
|
|
2126
|
-
className:
|
|
2182
|
+
className: cn35(
|
|
2127
2183
|
"h-9 w-full rounded-md border border-border bg-background px-3 py-2",
|
|
2128
2184
|
"text-sm text-foreground shadow-xs outline-none",
|
|
2129
2185
|
"placeholder:text-muted-foreground",
|
|
@@ -2135,7 +2191,7 @@ function MosaicCombobox({
|
|
|
2135
2191
|
/* @__PURE__ */ jsxRuntime.jsx(combobox.Combobox.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(combobox.Combobox.Positioner, { sideOffset: 4, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2136
2192
|
combobox.Combobox.Popup,
|
|
2137
2193
|
{
|
|
2138
|
-
className:
|
|
2194
|
+
className: cn35(
|
|
2139
2195
|
"z-50 min-w-[8rem] overflow-hidden rounded-md border border-border",
|
|
2140
2196
|
"bg-popover p-1 text-popover-foreground shadow-md",
|
|
2141
2197
|
"origin-[var(--transform-origin)]",
|
|
@@ -2150,7 +2206,7 @@ function MosaicCombobox({
|
|
|
2150
2206
|
{
|
|
2151
2207
|
value: item.value,
|
|
2152
2208
|
disabled: item.disabled,
|
|
2153
|
-
className:
|
|
2209
|
+
className: cn35(
|
|
2154
2210
|
"relative flex cursor-pointer select-none items-center rounded-sm px-2 py-1.5",
|
|
2155
2211
|
"text-sm text-popover-foreground outline-none",
|
|
2156
2212
|
"data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground",
|
|
@@ -2169,7 +2225,7 @@ function MosaicCombobox({
|
|
|
2169
2225
|
}
|
|
2170
2226
|
);
|
|
2171
2227
|
}
|
|
2172
|
-
function
|
|
2228
|
+
function cn36(...classes) {
|
|
2173
2229
|
return classes.filter(Boolean).join(" ");
|
|
2174
2230
|
}
|
|
2175
2231
|
function MosaicDropdownMenu({
|
|
@@ -2186,7 +2242,7 @@ function MosaicDropdownMenu({
|
|
|
2186
2242
|
menu.Menu.Popup,
|
|
2187
2243
|
{
|
|
2188
2244
|
"data-slot": "dropdown-menu",
|
|
2189
|
-
className:
|
|
2245
|
+
className: cn36(
|
|
2190
2246
|
"z-50 min-w-[8rem] overflow-hidden rounded-md border border-border",
|
|
2191
2247
|
"bg-popover p-1 text-popover-foreground shadow-md",
|
|
2192
2248
|
"origin-[var(--transform-origin)]",
|
|
@@ -2203,7 +2259,7 @@ function MosaicDropdownMenu({
|
|
|
2203
2259
|
{
|
|
2204
2260
|
disabled: item.disabled,
|
|
2205
2261
|
onClick: () => onItemSelect?.(item.id),
|
|
2206
|
-
className:
|
|
2262
|
+
className: cn36(
|
|
2207
2263
|
"relative flex cursor-pointer select-none items-center rounded-sm px-2 py-1.5",
|
|
2208
2264
|
"text-sm text-popover-foreground outline-none",
|
|
2209
2265
|
"data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground",
|
|
@@ -2345,7 +2401,7 @@ function useDevice() {
|
|
|
2345
2401
|
}
|
|
2346
2402
|
return ctx;
|
|
2347
2403
|
}
|
|
2348
|
-
function
|
|
2404
|
+
function cn37(...classes) {
|
|
2349
2405
|
return classes.filter(Boolean).join(" ");
|
|
2350
2406
|
}
|
|
2351
2407
|
function MosaicAdaptiveGrid({
|
|
@@ -2364,14 +2420,14 @@ function MosaicAdaptiveGrid({
|
|
|
2364
2420
|
{
|
|
2365
2421
|
ref,
|
|
2366
2422
|
"data-slot": "adaptive-grid",
|
|
2367
|
-
className:
|
|
2423
|
+
className: cn37("grid", gap, className),
|
|
2368
2424
|
style: { gridTemplateColumns: `repeat(${cols}, minmax(0, 1fr))` },
|
|
2369
2425
|
children
|
|
2370
2426
|
}
|
|
2371
2427
|
);
|
|
2372
2428
|
}
|
|
2373
2429
|
MosaicAdaptiveGrid.displayName = "MosaicAdaptiveGrid";
|
|
2374
|
-
function
|
|
2430
|
+
function cn38(...classes) {
|
|
2375
2431
|
return classes.filter(Boolean).join(" ");
|
|
2376
2432
|
}
|
|
2377
2433
|
var ANIM_ID = "mosaic-adaptive-modal-kf";
|
|
@@ -2476,7 +2532,7 @@ function MosaicAdaptiveModal({
|
|
|
2476
2532
|
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2477
2533
|
"div",
|
|
2478
2534
|
{
|
|
2479
|
-
className:
|
|
2535
|
+
className: cn38(
|
|
2480
2536
|
"mosaic-sheet-panel relative w-full rounded-t-2xl border-t border-border bg-background",
|
|
2481
2537
|
"max-h-[90dvh] flex flex-col",
|
|
2482
2538
|
className
|
|
@@ -2509,7 +2565,7 @@ function MosaicAdaptiveModal({
|
|
|
2509
2565
|
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2510
2566
|
"div",
|
|
2511
2567
|
{
|
|
2512
|
-
className:
|
|
2568
|
+
className: cn38(
|
|
2513
2569
|
"mosaic-modal-panel relative w-[min(90vw,42rem)] rounded-xl border border-border bg-background shadow-xl",
|
|
2514
2570
|
"max-h-[90vh] flex flex-col",
|
|
2515
2571
|
className
|
|
@@ -2557,7 +2613,7 @@ function MosaicAdaptiveModal({
|
|
|
2557
2613
|
);
|
|
2558
2614
|
}
|
|
2559
2615
|
MosaicAdaptiveModal.displayName = "MosaicAdaptiveModal";
|
|
2560
|
-
function
|
|
2616
|
+
function cn39(...classes) {
|
|
2561
2617
|
return classes.filter(Boolean).join(" ");
|
|
2562
2618
|
}
|
|
2563
2619
|
function CheckIcon2() {
|
|
@@ -2614,7 +2670,7 @@ function MosaicAdaptiveNavigation({
|
|
|
2614
2670
|
{
|
|
2615
2671
|
ref,
|
|
2616
2672
|
"data-slot": "adaptive-navigation",
|
|
2617
|
-
className:
|
|
2673
|
+
className: cn39("space-y-3", className),
|
|
2618
2674
|
"aria-label": "Step navigation",
|
|
2619
2675
|
children: items.map((item, idx) => {
|
|
2620
2676
|
const isExpanded = expandedItems?.has(item.id) ?? false;
|
|
@@ -2632,7 +2688,7 @@ function MosaicAdaptiveNavigation({
|
|
|
2632
2688
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2633
2689
|
"div",
|
|
2634
2690
|
{
|
|
2635
|
-
className:
|
|
2691
|
+
className: cn39(
|
|
2636
2692
|
"flex h-8 w-8 shrink-0 items-center justify-center rounded-full text-xs font-bold",
|
|
2637
2693
|
item.isComplete ? "bg-green-500 text-white" : "bg-muted text-muted-foreground"
|
|
2638
2694
|
),
|
|
@@ -2666,7 +2722,7 @@ function MosaicAdaptiveNavigation({
|
|
|
2666
2722
|
{
|
|
2667
2723
|
ref,
|
|
2668
2724
|
"data-slot": "adaptive-navigation",
|
|
2669
|
-
className:
|
|
2725
|
+
className: cn39("w-full", className),
|
|
2670
2726
|
"aria-label": "Tab navigation",
|
|
2671
2727
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2672
2728
|
"div",
|
|
@@ -2683,7 +2739,7 @@ function MosaicAdaptiveNavigation({
|
|
|
2683
2739
|
role: "tab",
|
|
2684
2740
|
"aria-selected": isActive,
|
|
2685
2741
|
onClick: () => onItemChange(item.id),
|
|
2686
|
-
className:
|
|
2742
|
+
className: cn39(
|
|
2687
2743
|
"flex items-center justify-center gap-2 rounded-md px-3 py-2 text-sm font-medium transition-colors",
|
|
2688
2744
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1",
|
|
2689
2745
|
isActive ? "bg-primary text-primary-foreground shadow-sm" : "text-muted-foreground hover:text-foreground"
|
|
@@ -2692,7 +2748,7 @@ function MosaicAdaptiveNavigation({
|
|
|
2692
2748
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2693
2749
|
"div",
|
|
2694
2750
|
{
|
|
2695
|
-
className:
|
|
2751
|
+
className: cn39(
|
|
2696
2752
|
"flex h-6 w-6 shrink-0 items-center justify-center rounded-full text-xs font-bold",
|
|
2697
2753
|
item.isComplete ? "bg-green-500 text-white" : isActive ? "bg-primary-foreground/20 text-primary-foreground" : "bg-background text-muted-foreground"
|
|
2698
2754
|
),
|
|
@@ -2704,7 +2760,7 @@ function MosaicAdaptiveNavigation({
|
|
|
2704
2760
|
item.duration !== void 0 && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2705
2761
|
"span",
|
|
2706
2762
|
{
|
|
2707
|
-
className:
|
|
2763
|
+
className: cn39(
|
|
2708
2764
|
"rounded px-1 py-0.5 text-xs",
|
|
2709
2765
|
isActive ? "bg-primary-foreground/20" : "bg-muted"
|
|
2710
2766
|
),
|
|
@@ -2725,7 +2781,7 @@ function MosaicAdaptiveNavigation({
|
|
|
2725
2781
|
);
|
|
2726
2782
|
}
|
|
2727
2783
|
MosaicAdaptiveNavigation.displayName = "MosaicAdaptiveNavigation";
|
|
2728
|
-
function
|
|
2784
|
+
function cn40(...classes) {
|
|
2729
2785
|
return classes.filter(Boolean).join(" ");
|
|
2730
2786
|
}
|
|
2731
2787
|
var ANIM_ID2 = "mosaic-sidebar-kf";
|
|
@@ -2895,7 +2951,7 @@ function MosaicAppSidebar({
|
|
|
2895
2951
|
{
|
|
2896
2952
|
ref,
|
|
2897
2953
|
"data-slot": "app-sidebar",
|
|
2898
|
-
className:
|
|
2954
|
+
className: cn40(
|
|
2899
2955
|
"flex h-full flex-col bg-sidebar border-r border-sidebar-border",
|
|
2900
2956
|
isMobile && "border-r-0",
|
|
2901
2957
|
className
|
|
@@ -2915,7 +2971,7 @@ function MosaicAppSidebar({
|
|
|
2915
2971
|
type: "button",
|
|
2916
2972
|
onClick: onToggleCollapse,
|
|
2917
2973
|
"aria-label": isCollapsed ? "Expand sidebar" : "Collapse sidebar",
|
|
2918
|
-
className:
|
|
2974
|
+
className: cn40(
|
|
2919
2975
|
"flex h-9 w-9 items-center justify-center rounded-lg transition-colors",
|
|
2920
2976
|
"hover:bg-sidebar-accent text-sidebar-foreground",
|
|
2921
2977
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -2945,7 +3001,7 @@ function MosaicAppSidebar({
|
|
|
2945
3001
|
},
|
|
2946
3002
|
"aria-current": isActive ? "page" : void 0,
|
|
2947
3003
|
"aria-expanded": hasSubmenu && !isCollapsed ? isExpanded : void 0,
|
|
2948
|
-
className:
|
|
3004
|
+
className: cn40(
|
|
2949
3005
|
"group flex w-full min-h-[44px] items-center rounded-lg p-3 transition-colors",
|
|
2950
3006
|
"hover:bg-sidebar-accent",
|
|
2951
3007
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -2972,7 +3028,7 @@ function MosaicAppSidebar({
|
|
|
2972
3028
|
type: "button",
|
|
2973
3029
|
onClick: () => handleNavClick(sub.href),
|
|
2974
3030
|
"aria-current": isSubActive ? "page" : void 0,
|
|
2975
|
-
className:
|
|
3031
|
+
className: cn40(
|
|
2976
3032
|
"flex w-full min-h-[40px] items-center gap-3 rounded-lg px-3 py-2 text-sm transition-colors",
|
|
2977
3033
|
"hover:bg-sidebar-accent/50 text-sidebar-foreground",
|
|
2978
3034
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -2995,7 +3051,7 @@ function MosaicAppSidebar({
|
|
|
2995
3051
|
{
|
|
2996
3052
|
type: "button",
|
|
2997
3053
|
onClick: action.onClick,
|
|
2998
|
-
className:
|
|
3054
|
+
className: cn40(
|
|
2999
3055
|
"flex w-full min-h-[44px] items-center gap-3 rounded-lg px-3 py-2 text-sm font-medium",
|
|
3000
3056
|
"text-sidebar-foreground transition-colors hover:bg-sidebar-accent",
|
|
3001
3057
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -3042,7 +3098,7 @@ function MosaicAppSidebar({
|
|
|
3042
3098
|
);
|
|
3043
3099
|
}
|
|
3044
3100
|
MosaicAppSidebar.displayName = "MosaicAppSidebar";
|
|
3045
|
-
function
|
|
3101
|
+
function cn41(...classes) {
|
|
3046
3102
|
return classes.filter(Boolean).join(" ");
|
|
3047
3103
|
}
|
|
3048
3104
|
var ANIM_ID3 = "mosaic-dashboard-kf";
|
|
@@ -3132,7 +3188,7 @@ function MosaicDashboardLayout({
|
|
|
3132
3188
|
{
|
|
3133
3189
|
ref,
|
|
3134
3190
|
"data-slot": "dashboard-layout",
|
|
3135
|
-
className:
|
|
3191
|
+
className: cn41("flex h-screen w-full bg-background", className),
|
|
3136
3192
|
children: [
|
|
3137
3193
|
!isMobile && /* @__PURE__ */ jsxRuntime.jsx(
|
|
3138
3194
|
MosaicAppSidebar,
|
|
@@ -3156,7 +3212,7 @@ function MosaicDashboardLayout({
|
|
|
3156
3212
|
type: "button",
|
|
3157
3213
|
"aria-label": "Open navigation",
|
|
3158
3214
|
onClick: () => setIsMobileSidebarOpen(true),
|
|
3159
|
-
className:
|
|
3215
|
+
className: cn41(
|
|
3160
3216
|
"flex h-11 w-11 shrink-0 items-center justify-center rounded-lg",
|
|
3161
3217
|
"text-foreground transition-colors hover:bg-muted",
|
|
3162
3218
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -3208,7 +3264,7 @@ function MosaicDashboardLayout({
|
|
|
3208
3264
|
);
|
|
3209
3265
|
}
|
|
3210
3266
|
MosaicDashboardLayout.displayName = "MosaicDashboardLayout";
|
|
3211
|
-
function
|
|
3267
|
+
function cn42(...classes) {
|
|
3212
3268
|
return classes.filter(Boolean).join(" ");
|
|
3213
3269
|
}
|
|
3214
3270
|
var ANIM_ID4 = "mosaic-quick-action-kf";
|
|
@@ -3263,7 +3319,7 @@ function MosaicQuickActionCard({
|
|
|
3263
3319
|
{
|
|
3264
3320
|
ref,
|
|
3265
3321
|
"data-slot": "quick-action-card",
|
|
3266
|
-
className:
|
|
3322
|
+
className: cn42("rounded-xl border border-border bg-card", className),
|
|
3267
3323
|
children: [
|
|
3268
3324
|
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 }) }),
|
|
3269
3325
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -3288,7 +3344,7 @@ function MosaicQuickActionCard({
|
|
|
3288
3344
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
3289
3345
|
"div",
|
|
3290
3346
|
{
|
|
3291
|
-
className:
|
|
3347
|
+
className: cn42(
|
|
3292
3348
|
"flex min-h-[100px] cursor-pointer flex-col items-center justify-center gap-2 rounded-xl border p-4",
|
|
3293
3349
|
"transition-transform duration-150 hover:scale-105 active:scale-[0.98]",
|
|
3294
3350
|
accentClass
|
|
@@ -3321,7 +3377,7 @@ function MosaicQuickActionCard({
|
|
|
3321
3377
|
);
|
|
3322
3378
|
}
|
|
3323
3379
|
MosaicQuickActionCard.displayName = "MosaicQuickActionCard";
|
|
3324
|
-
function
|
|
3380
|
+
function cn43(...classes) {
|
|
3325
3381
|
return classes.filter(Boolean).join(" ");
|
|
3326
3382
|
}
|
|
3327
3383
|
var ANIM_ID5 = "mosaic-activity-feed-kf";
|
|
@@ -3410,7 +3466,7 @@ function MosaicActivityItem({ activity, icon, className }) {
|
|
|
3410
3466
|
"div",
|
|
3411
3467
|
{
|
|
3412
3468
|
"data-slot": "activity-item",
|
|
3413
|
-
className:
|
|
3469
|
+
className: cn43(
|
|
3414
3470
|
"flex cursor-pointer items-start gap-4 rounded-lg p-3 transition-colors hover:bg-muted/50",
|
|
3415
3471
|
className
|
|
3416
3472
|
),
|
|
@@ -3444,7 +3500,7 @@ function MosaicActivityItem({ activity, icon, className }) {
|
|
|
3444
3500
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3445
3501
|
"span",
|
|
3446
3502
|
{
|
|
3447
|
-
className:
|
|
3503
|
+
className: cn43(
|
|
3448
3504
|
"rounded-full px-2 py-0.5 text-xs font-medium",
|
|
3449
3505
|
getStatusClass(activity.status)
|
|
3450
3506
|
),
|
|
@@ -3485,7 +3541,7 @@ function MosaicActivityFeed({
|
|
|
3485
3541
|
{
|
|
3486
3542
|
ref,
|
|
3487
3543
|
"data-slot": "activity-feed",
|
|
3488
|
-
className:
|
|
3544
|
+
className: cn43("rounded-xl border border-border bg-card", className),
|
|
3489
3545
|
children: [
|
|
3490
3546
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between border-b border-border px-6 py-4", children: [
|
|
3491
3547
|
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "text-lg font-semibold text-foreground", children: heading }),
|
|
@@ -3511,7 +3567,7 @@ function MosaicActivityFeed({
|
|
|
3511
3567
|
);
|
|
3512
3568
|
}
|
|
3513
3569
|
MosaicActivityFeed.displayName = "MosaicActivityFeed";
|
|
3514
|
-
function
|
|
3570
|
+
function cn44(...classes) {
|
|
3515
3571
|
return classes.filter(Boolean).join(" ");
|
|
3516
3572
|
}
|
|
3517
3573
|
function SparklesIcon() {
|
|
@@ -3720,7 +3776,7 @@ function MosaicAgentComposerDesktop({
|
|
|
3720
3776
|
value: agentName,
|
|
3721
3777
|
onChange: (e) => onAgentNameChange(e.target.value),
|
|
3722
3778
|
placeholder: "Enter agent name\u2026",
|
|
3723
|
-
className:
|
|
3779
|
+
className: cn44(
|
|
3724
3780
|
"flex min-h-[48px] w-full rounded-lg border border-input bg-transparent px-3 py-2 text-sm",
|
|
3725
3781
|
"placeholder:text-muted-foreground",
|
|
3726
3782
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -3821,7 +3877,7 @@ function MosaicAgentComposerDesktop({
|
|
|
3821
3877
|
onChange: (e) => onCustomInstructionsChange(e.target.value),
|
|
3822
3878
|
placeholder: "Add any specific instructions or behaviors\u2026",
|
|
3823
3879
|
rows: 5,
|
|
3824
|
-
className:
|
|
3880
|
+
className: cn44(
|
|
3825
3881
|
"flex w-full resize-y rounded-lg border border-input bg-transparent px-3 py-2 text-sm",
|
|
3826
3882
|
"placeholder:text-muted-foreground",
|
|
3827
3883
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -3889,7 +3945,7 @@ function MosaicAgentComposerDesktop({
|
|
|
3889
3945
|
/* @__PURE__ */ jsxRuntime.jsx(SparklesIcon, {}),
|
|
3890
3946
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-muted-foreground", children: "Select all modules to see preview" })
|
|
3891
3947
|
] }) }),
|
|
3892
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
3948
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn44("flex gap-2", isEditMode && onCancel ? "flex-row" : "flex-col"), children: [
|
|
3893
3949
|
isEditMode && onCancel && /* @__PURE__ */ jsxRuntime.jsx(
|
|
3894
3950
|
"button",
|
|
3895
3951
|
{
|
|
@@ -3905,7 +3961,7 @@ function MosaicAgentComposerDesktop({
|
|
|
3905
3961
|
type: "button",
|
|
3906
3962
|
onClick: onSave,
|
|
3907
3963
|
disabled: !canSave,
|
|
3908
|
-
className:
|
|
3964
|
+
className: cn44(
|
|
3909
3965
|
"flex min-h-[48px] items-center justify-center gap-2 rounded-lg text-sm font-medium transition-colors",
|
|
3910
3966
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
3911
3967
|
"bg-primary text-primary-foreground hover:bg-primary/90",
|
|
@@ -3926,7 +3982,7 @@ function MosaicAgentComposerDesktop({
|
|
|
3926
3982
|
] });
|
|
3927
3983
|
}
|
|
3928
3984
|
MosaicAgentComposerDesktop.displayName = "MosaicAgentComposerDesktop";
|
|
3929
|
-
function
|
|
3985
|
+
function cn45(...classes) {
|
|
3930
3986
|
return classes.filter(Boolean).join(" ");
|
|
3931
3987
|
}
|
|
3932
3988
|
function SparklesIcon2() {
|
|
@@ -4182,7 +4238,7 @@ function MosaicAgentComposerMobile({
|
|
|
4182
4238
|
disabled: isLoading,
|
|
4183
4239
|
"aria-required": "true",
|
|
4184
4240
|
"aria-invalid": canSave && !agentName ? "true" : "false",
|
|
4185
|
-
className:
|
|
4241
|
+
className: cn45(
|
|
4186
4242
|
"flex min-h-[48px] w-full rounded-lg border border-input bg-transparent px-3 py-2 text-sm",
|
|
4187
4243
|
"placeholder:text-muted-foreground",
|
|
4188
4244
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -4286,7 +4342,7 @@ function MosaicAgentComposerMobile({
|
|
|
4286
4342
|
disabled: isLoading,
|
|
4287
4343
|
"aria-describedby": `${instructionsId}-help`,
|
|
4288
4344
|
rows: 4,
|
|
4289
|
-
className:
|
|
4345
|
+
className: cn45(
|
|
4290
4346
|
"flex w-full resize-y rounded-lg border border-input bg-transparent px-3 py-2 text-sm",
|
|
4291
4347
|
"placeholder:text-muted-foreground",
|
|
4292
4348
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -4342,7 +4398,7 @@ function MosaicAgentComposer(props) {
|
|
|
4342
4398
|
return isMobile ? /* @__PURE__ */ jsxRuntime.jsx(MosaicAgentComposerMobile, { ...props }) : /* @__PURE__ */ jsxRuntime.jsx(MosaicAgentComposerDesktop, { ...props });
|
|
4343
4399
|
}
|
|
4344
4400
|
MosaicAgentComposer.displayName = "MosaicAgentComposer";
|
|
4345
|
-
function
|
|
4401
|
+
function cn46(...classes) {
|
|
4346
4402
|
return classes.filter(Boolean).join(" ");
|
|
4347
4403
|
}
|
|
4348
4404
|
function EditIcon() {
|
|
@@ -4400,7 +4456,7 @@ function MosaicModuleCard({
|
|
|
4400
4456
|
{
|
|
4401
4457
|
ref,
|
|
4402
4458
|
"data-slot": "module-card",
|
|
4403
|
-
className:
|
|
4459
|
+
className: cn46(
|
|
4404
4460
|
"min-h-[80px] rounded-xl border border-border bg-card p-4 transition-all",
|
|
4405
4461
|
"flex items-start gap-3",
|
|
4406
4462
|
isSelected && "ring-2 ring-primary bg-primary/5",
|
|
@@ -4462,7 +4518,7 @@ function MosaicThemeProvider({
|
|
|
4462
4518
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { "data-slot": "theme-provider", children });
|
|
4463
4519
|
}
|
|
4464
4520
|
MosaicThemeProvider.displayName = "MosaicThemeProvider";
|
|
4465
|
-
function
|
|
4521
|
+
function cn47(...classes) {
|
|
4466
4522
|
return classes.filter(Boolean).join(" ");
|
|
4467
4523
|
}
|
|
4468
4524
|
var ANIM_ID6 = "mosaic-delete-dialog-kf";
|
|
@@ -4516,14 +4572,14 @@ function MosaicDeleteConfirmationDialog({
|
|
|
4516
4572
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4517
4573
|
alertDialog.AlertDialog.Backdrop,
|
|
4518
4574
|
{
|
|
4519
|
-
className:
|
|
4575
|
+
className: cn47("mosaic-delete-overlay", "fixed inset-0 z-50 bg-black/50")
|
|
4520
4576
|
}
|
|
4521
4577
|
),
|
|
4522
4578
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
4523
4579
|
alertDialog.AlertDialog.Popup,
|
|
4524
4580
|
{
|
|
4525
4581
|
"data-slot": "delete-confirmation-dialog",
|
|
4526
|
-
className:
|
|
4582
|
+
className: cn47(
|
|
4527
4583
|
"mosaic-delete-content",
|
|
4528
4584
|
"fixed left-1/2 top-1/2 z-50",
|
|
4529
4585
|
"w-full max-w-[92vw] sm:max-w-md",
|
|
@@ -4536,7 +4592,7 @@ function MosaicDeleteConfirmationDialog({
|
|
|
4536
4592
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4537
4593
|
alertDialog.AlertDialog.Close,
|
|
4538
4594
|
{
|
|
4539
|
-
className:
|
|
4595
|
+
className: cn47(
|
|
4540
4596
|
"inline-flex min-h-[44px] w-full items-center justify-center rounded-md border border-border",
|
|
4541
4597
|
"bg-background px-4 py-2 text-sm font-medium text-foreground",
|
|
4542
4598
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -4550,7 +4606,7 @@ function MosaicDeleteConfirmationDialog({
|
|
|
4550
4606
|
alertDialog.AlertDialog.Close,
|
|
4551
4607
|
{
|
|
4552
4608
|
onClick: onConfirm,
|
|
4553
|
-
className:
|
|
4609
|
+
className: cn47(
|
|
4554
4610
|
"inline-flex min-h-[44px] w-full items-center justify-center rounded-md",
|
|
4555
4611
|
"bg-destructive px-4 py-2 text-sm font-medium text-destructive-foreground",
|
|
4556
4612
|
"hover:bg-destructive/90",
|
|
@@ -4567,7 +4623,7 @@ function MosaicDeleteConfirmationDialog({
|
|
|
4567
4623
|
] }) });
|
|
4568
4624
|
}
|
|
4569
4625
|
MosaicDeleteConfirmationDialog.displayName = "MosaicDeleteConfirmationDialog";
|
|
4570
|
-
function
|
|
4626
|
+
function cn48(...classes) {
|
|
4571
4627
|
return classes.filter(Boolean).join(" ");
|
|
4572
4628
|
}
|
|
4573
4629
|
function Toggle({
|
|
@@ -4583,7 +4639,7 @@ function Toggle({
|
|
|
4583
4639
|
id,
|
|
4584
4640
|
"aria-checked": checked,
|
|
4585
4641
|
onClick: () => onChange(!checked),
|
|
4586
|
-
className:
|
|
4642
|
+
className: cn48(
|
|
4587
4643
|
"relative inline-flex h-6 w-11 shrink-0 cursor-pointer rounded-full border-2 border-transparent",
|
|
4588
4644
|
"transition-colors duration-200 ease-in-out",
|
|
4589
4645
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
@@ -4592,7 +4648,7 @@ function Toggle({
|
|
|
4592
4648
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
4593
4649
|
"span",
|
|
4594
4650
|
{
|
|
4595
|
-
className:
|
|
4651
|
+
className: cn48(
|
|
4596
4652
|
"pointer-events-none inline-block h-5 w-5 rounded-full bg-background shadow-lg",
|
|
4597
4653
|
"transform transition duration-200 ease-in-out",
|
|
4598
4654
|
checked ? "translate-x-5" : "translate-x-0"
|
|
@@ -4614,7 +4670,7 @@ function NativeSelect({
|
|
|
4614
4670
|
id,
|
|
4615
4671
|
value,
|
|
4616
4672
|
onChange: (e) => onChange(e.target.value),
|
|
4617
|
-
className:
|
|
4673
|
+
className: cn48(
|
|
4618
4674
|
"flex min-h-[48px] w-full rounded-md border border-input bg-background px-3 py-2",
|
|
4619
4675
|
"text-sm text-foreground",
|
|
4620
4676
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -4633,7 +4689,7 @@ function MosaicPreferencesPanel({
|
|
|
4633
4689
|
className
|
|
4634
4690
|
}) {
|
|
4635
4691
|
const { isMobile } = useDevice();
|
|
4636
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "preferences-panel", className:
|
|
4692
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "preferences-panel", className: cn48("space-y-4 md:space-y-6", className), children: [
|
|
4637
4693
|
groups.map((group) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
4638
4694
|
"div",
|
|
4639
4695
|
{
|
|
@@ -4676,13 +4732,13 @@ function MosaicPreferencesPanel({
|
|
|
4676
4732
|
},
|
|
4677
4733
|
group.id
|
|
4678
4734
|
)),
|
|
4679
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
4735
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: cn48("flex", isMobile ? "flex-col" : "justify-end"), children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
4680
4736
|
"button",
|
|
4681
4737
|
{
|
|
4682
4738
|
type: "button",
|
|
4683
4739
|
onClick: onSave,
|
|
4684
4740
|
disabled: isSaving,
|
|
4685
|
-
className:
|
|
4741
|
+
className: cn48(
|
|
4686
4742
|
"inline-flex min-h-[44px] items-center justify-center gap-2 rounded-md",
|
|
4687
4743
|
"bg-primary px-4 py-2 text-sm font-medium text-primary-foreground",
|
|
4688
4744
|
"hover:bg-primary/90",
|
|
@@ -4718,7 +4774,7 @@ function MosaicPreferencesPanel({
|
|
|
4718
4774
|
] });
|
|
4719
4775
|
}
|
|
4720
4776
|
MosaicPreferencesPanel.displayName = "MosaicPreferencesPanel";
|
|
4721
|
-
function
|
|
4777
|
+
function cn49(...classes) {
|
|
4722
4778
|
return classes.filter(Boolean).join(" ");
|
|
4723
4779
|
}
|
|
4724
4780
|
function AvatarDisplay({
|
|
@@ -4731,7 +4787,7 @@ function AvatarDisplay({
|
|
|
4731
4787
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4732
4788
|
"span",
|
|
4733
4789
|
{
|
|
4734
|
-
className:
|
|
4790
|
+
className: cn49(
|
|
4735
4791
|
"inline-flex shrink-0 items-center justify-center rounded-full bg-muted text-muted-foreground font-semibold overflow-hidden",
|
|
4736
4792
|
sizeClass
|
|
4737
4793
|
),
|
|
@@ -4753,7 +4809,7 @@ function MosaicProfilePanel({
|
|
|
4753
4809
|
className
|
|
4754
4810
|
}) {
|
|
4755
4811
|
const { isMobile } = useDevice();
|
|
4756
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "profile-panel", className:
|
|
4812
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "profile-panel", className: cn49("space-y-4 md:space-y-6", className), children: [
|
|
4757
4813
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "rounded-lg border border-border bg-card text-card-foreground shadow-sm", children: [
|
|
4758
4814
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col space-y-1.5 p-6", children: [
|
|
4759
4815
|
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "text-lg font-semibold leading-none tracking-tight md:text-xl", children: "Profile Picture" }),
|
|
@@ -4773,7 +4829,7 @@ function MosaicProfilePanel({
|
|
|
4773
4829
|
{
|
|
4774
4830
|
type: "button",
|
|
4775
4831
|
onClick: onAvatarUpload,
|
|
4776
|
-
className:
|
|
4832
|
+
className: cn49(
|
|
4777
4833
|
"inline-flex min-h-[44px] items-center justify-center gap-2 rounded-md border border-border",
|
|
4778
4834
|
"bg-background px-4 py-2 text-sm font-medium text-foreground",
|
|
4779
4835
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -4823,7 +4879,7 @@ function MosaicProfilePanel({
|
|
|
4823
4879
|
placeholder: field.placeholder,
|
|
4824
4880
|
onChange: (e) => onFieldChange?.(field.id, e.target.value),
|
|
4825
4881
|
rows: 4,
|
|
4826
|
-
className:
|
|
4882
|
+
className: cn49(
|
|
4827
4883
|
"flex min-h-[120px] w-full rounded-md border border-input bg-background px-3 py-2",
|
|
4828
4884
|
"text-sm text-foreground placeholder:text-muted-foreground",
|
|
4829
4885
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -4839,7 +4895,7 @@ function MosaicProfilePanel({
|
|
|
4839
4895
|
readOnly: field.readOnly,
|
|
4840
4896
|
placeholder: field.placeholder,
|
|
4841
4897
|
onChange: (e) => onFieldChange?.(field.id, e.target.value),
|
|
4842
|
-
className:
|
|
4898
|
+
className: cn49(
|
|
4843
4899
|
"flex min-h-[48px] w-full rounded-md border border-input bg-background px-3 py-2",
|
|
4844
4900
|
"text-sm text-foreground placeholder:text-muted-foreground",
|
|
4845
4901
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -4859,7 +4915,7 @@ function MosaicProfilePanel({
|
|
|
4859
4915
|
{
|
|
4860
4916
|
type: "button",
|
|
4861
4917
|
onClick: onChangePassword,
|
|
4862
|
-
className:
|
|
4918
|
+
className: cn49(
|
|
4863
4919
|
"inline-flex min-h-[44px] items-center justify-center rounded-md border border-border",
|
|
4864
4920
|
"bg-background px-4 py-2 text-sm font-medium text-foreground",
|
|
4865
4921
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -4871,13 +4927,13 @@ function MosaicProfilePanel({
|
|
|
4871
4927
|
) })
|
|
4872
4928
|
] }),
|
|
4873
4929
|
extraSections,
|
|
4874
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
4930
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: cn49("flex", isMobile ? "flex-col" : "justify-end"), children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
4875
4931
|
"button",
|
|
4876
4932
|
{
|
|
4877
4933
|
type: "button",
|
|
4878
4934
|
onClick: onSave,
|
|
4879
4935
|
disabled: isSaving,
|
|
4880
|
-
className:
|
|
4936
|
+
className: cn49(
|
|
4881
4937
|
"inline-flex min-h-[44px] items-center justify-center gap-2 rounded-md",
|
|
4882
4938
|
"bg-primary px-4 py-2 text-sm font-medium text-primary-foreground",
|
|
4883
4939
|
"hover:bg-primary/90",
|
|
@@ -4913,7 +4969,7 @@ function MosaicProfilePanel({
|
|
|
4913
4969
|
] });
|
|
4914
4970
|
}
|
|
4915
4971
|
MosaicProfilePanel.displayName = "MosaicProfilePanel";
|
|
4916
|
-
function
|
|
4972
|
+
function cn50(...classes) {
|
|
4917
4973
|
return classes.filter(Boolean).join(" ");
|
|
4918
4974
|
}
|
|
4919
4975
|
var ANIM_ID7 = "mosaic-main-nav-kf";
|
|
@@ -5021,7 +5077,7 @@ function MosaicMainNav({
|
|
|
5021
5077
|
{
|
|
5022
5078
|
type: "button",
|
|
5023
5079
|
onClick: () => setIsOpen(!isOpen),
|
|
5024
|
-
className:
|
|
5080
|
+
className: cn50(
|
|
5025
5081
|
"inline-flex min-h-[44px] min-w-[44px] items-center justify-center rounded-md p-0",
|
|
5026
5082
|
"text-foreground hover:bg-accent hover:text-accent-foreground",
|
|
5027
5083
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -5047,7 +5103,7 @@ function MosaicMainNav({
|
|
|
5047
5103
|
"aria-label": "Navigation",
|
|
5048
5104
|
open: isOpen,
|
|
5049
5105
|
"data-open": isOpen ? "true" : "false",
|
|
5050
|
-
className:
|
|
5106
|
+
className: cn50(
|
|
5051
5107
|
"mosaic-nav-drawer",
|
|
5052
5108
|
"fixed inset-y-0 left-0 z-50 m-0 w-[280px] max-h-none h-full p-0",
|
|
5053
5109
|
"border-r border-border bg-background shadow-xl",
|
|
@@ -5064,7 +5120,7 @@ function MosaicMainNav({
|
|
|
5064
5120
|
{
|
|
5065
5121
|
type: "button",
|
|
5066
5122
|
onClick: () => setIsOpen(false),
|
|
5067
|
-
className:
|
|
5123
|
+
className: cn50(
|
|
5068
5124
|
"inline-flex h-8 w-8 items-center justify-center rounded-md",
|
|
5069
5125
|
"text-muted-foreground hover:bg-accent hover:text-accent-foreground",
|
|
5070
5126
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -5077,7 +5133,7 @@ function MosaicMainNav({
|
|
|
5077
5133
|
/* @__PURE__ */ jsxRuntime.jsx("nav", { className: "flex flex-col gap-1 p-4", "aria-label": "Main navigation", children: filteredItems.map((item) => {
|
|
5078
5134
|
const Icon = item.icon;
|
|
5079
5135
|
const active = isItemActive(item);
|
|
5080
|
-
const itemClass =
|
|
5136
|
+
const itemClass = cn50(
|
|
5081
5137
|
"flex items-center gap-3 rounded-lg px-3 py-3 text-sm font-medium transition-colors",
|
|
5082
5138
|
"hover:bg-accent hover:text-accent-foreground",
|
|
5083
5139
|
"min-h-[44px]",
|
|
@@ -5103,12 +5159,12 @@ function MosaicMainNav({
|
|
|
5103
5159
|
"nav",
|
|
5104
5160
|
{
|
|
5105
5161
|
"data-slot": "main-nav",
|
|
5106
|
-
className:
|
|
5162
|
+
className: cn50("flex items-center gap-1", className),
|
|
5107
5163
|
"aria-label": "Main navigation",
|
|
5108
5164
|
children: filteredItems.map((item) => {
|
|
5109
5165
|
const Icon = item.icon;
|
|
5110
5166
|
const active = isItemActive(item);
|
|
5111
|
-
const itemClass =
|
|
5167
|
+
const itemClass = cn50(
|
|
5112
5168
|
"flex items-center gap-2 rounded-lg px-3 py-2 text-sm font-medium transition-colors",
|
|
5113
5169
|
"hover:bg-accent hover:text-accent-foreground",
|
|
5114
5170
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -5128,7 +5184,7 @@ function MosaicMainNav({
|
|
|
5128
5184
|
);
|
|
5129
5185
|
}
|
|
5130
5186
|
MosaicMainNav.displayName = "MosaicMainNav";
|
|
5131
|
-
function
|
|
5187
|
+
function cn51(...classes) {
|
|
5132
5188
|
return classes.filter(Boolean).join(" ");
|
|
5133
5189
|
}
|
|
5134
5190
|
function MoreVertIcon() {
|
|
@@ -5259,7 +5315,7 @@ function MosaicAgentCard({
|
|
|
5259
5315
|
"div",
|
|
5260
5316
|
{
|
|
5261
5317
|
"data-slot": "agent-card",
|
|
5262
|
-
className:
|
|
5318
|
+
className: cn51(
|
|
5263
5319
|
"relative overflow-hidden rounded-lg border border-border bg-card text-card-foreground shadow-sm",
|
|
5264
5320
|
"transition-shadow hover:shadow-md",
|
|
5265
5321
|
agent.isActive && "ring-2 ring-primary",
|
|
@@ -5269,7 +5325,7 @@ function MosaicAgentCard({
|
|
|
5269
5325
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5270
5326
|
"div",
|
|
5271
5327
|
{
|
|
5272
|
-
className:
|
|
5328
|
+
className: cn51(
|
|
5273
5329
|
"absolute left-0 top-0 h-1 w-full",
|
|
5274
5330
|
agent.isActive ? "bg-primary" : "bg-muted"
|
|
5275
5331
|
)
|
|
@@ -5281,7 +5337,7 @@ function MosaicAgentCard({
|
|
|
5281
5337
|
agent.accentColor && /* @__PURE__ */ jsxRuntime.jsx(
|
|
5282
5338
|
"span",
|
|
5283
5339
|
{
|
|
5284
|
-
className:
|
|
5340
|
+
className: cn51("h-3 w-3 shrink-0 rounded-full", agent.accentColor),
|
|
5285
5341
|
"aria-hidden": "true"
|
|
5286
5342
|
}
|
|
5287
5343
|
),
|
|
@@ -5299,7 +5355,7 @@ function MosaicAgentCard({
|
|
|
5299
5355
|
{
|
|
5300
5356
|
type: "button",
|
|
5301
5357
|
onClick: () => setMenuOpen((v) => !v),
|
|
5302
|
-
className:
|
|
5358
|
+
className: cn51(
|
|
5303
5359
|
"inline-flex h-8 w-8 items-center justify-center rounded-md",
|
|
5304
5360
|
"text-muted-foreground hover:bg-accent hover:text-accent-foreground",
|
|
5305
5361
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -5314,7 +5370,7 @@ function MosaicAgentCard({
|
|
|
5314
5370
|
"div",
|
|
5315
5371
|
{
|
|
5316
5372
|
role: "menu",
|
|
5317
|
-
className:
|
|
5373
|
+
className: cn51(
|
|
5318
5374
|
"absolute right-0 top-full z-50 mt-1 min-w-[140px] rounded-md border border-border",
|
|
5319
5375
|
"bg-popover py-1 shadow-md"
|
|
5320
5376
|
),
|
|
@@ -5329,7 +5385,7 @@ function MosaicAgentCard({
|
|
|
5329
5385
|
onToggleStatus(agent.id);
|
|
5330
5386
|
setMenuOpen(false);
|
|
5331
5387
|
},
|
|
5332
|
-
className:
|
|
5388
|
+
className: cn51(
|
|
5333
5389
|
"flex w-full items-center gap-2 px-3 py-2 text-sm text-foreground",
|
|
5334
5390
|
"hover:bg-accent hover:text-accent-foreground",
|
|
5335
5391
|
"disabled:pointer-events-none disabled:opacity-50"
|
|
@@ -5391,7 +5447,7 @@ function MosaicAgentCard({
|
|
|
5391
5447
|
type: "button",
|
|
5392
5448
|
disabled: isLoading,
|
|
5393
5449
|
onClick: () => onToggleStatus(agent.id),
|
|
5394
|
-
className:
|
|
5450
|
+
className: cn51(
|
|
5395
5451
|
"inline-flex h-7 items-center justify-center rounded-md px-3 text-xs font-medium",
|
|
5396
5452
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
5397
5453
|
"disabled:pointer-events-none disabled:opacity-50",
|
|
@@ -5407,7 +5463,7 @@ function MosaicAgentCard({
|
|
|
5407
5463
|
);
|
|
5408
5464
|
}
|
|
5409
5465
|
MosaicAgentCard.displayName = "MosaicAgentCard";
|
|
5410
|
-
function
|
|
5466
|
+
function cn52(...classes) {
|
|
5411
5467
|
return classes.filter(Boolean).join(" ");
|
|
5412
5468
|
}
|
|
5413
5469
|
function PlusIcon3() {
|
|
@@ -5487,7 +5543,7 @@ function PickerContent({
|
|
|
5487
5543
|
{
|
|
5488
5544
|
type: "button",
|
|
5489
5545
|
onClick: () => onAdd(agent.id),
|
|
5490
|
-
className:
|
|
5546
|
+
className: cn52(
|
|
5491
5547
|
"flex w-full items-center gap-3 rounded-lg px-3 py-2.5 text-sm",
|
|
5492
5548
|
"hover:bg-accent hover:text-accent-foreground",
|
|
5493
5549
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -5496,7 +5552,7 @@ function PickerContent({
|
|
|
5496
5552
|
agent.accentColor && /* @__PURE__ */ jsxRuntime.jsx(
|
|
5497
5553
|
"span",
|
|
5498
5554
|
{
|
|
5499
|
-
className:
|
|
5555
|
+
className: cn52("h-3 w-3 shrink-0 rounded-full", agent.accentColor),
|
|
5500
5556
|
"aria-hidden": "true"
|
|
5501
5557
|
}
|
|
5502
5558
|
),
|
|
@@ -5513,7 +5569,7 @@ function PickerContent({
|
|
|
5513
5569
|
{
|
|
5514
5570
|
type: "button",
|
|
5515
5571
|
onClick: onOpenBuilder,
|
|
5516
|
-
className:
|
|
5572
|
+
className: cn52(
|
|
5517
5573
|
"flex w-full items-center gap-3 rounded-lg px-3 py-2.5 text-sm",
|
|
5518
5574
|
"hover:bg-accent hover:text-accent-foreground",
|
|
5519
5575
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -5563,11 +5619,11 @@ function MosaicQuickAgentSelector({
|
|
|
5563
5619
|
setPickerOpen(false);
|
|
5564
5620
|
};
|
|
5565
5621
|
const canAdd = selectedAgents.length < maxAgents;
|
|
5566
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "quick-agent-selector", className:
|
|
5622
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "quick-agent-selector", className: cn52("flex items-center gap-2", className), children: [
|
|
5567
5623
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-2 overflow-x-auto", children: selectedAgents.map((agent) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
5568
5624
|
"div",
|
|
5569
5625
|
{
|
|
5570
|
-
className:
|
|
5626
|
+
className: cn52(
|
|
5571
5627
|
"group flex shrink-0 items-center gap-2 rounded-md border border-border bg-card",
|
|
5572
5628
|
isMobile ? "px-2 py-1" : "px-3 py-1.5"
|
|
5573
5629
|
),
|
|
@@ -5575,17 +5631,17 @@ function MosaicQuickAgentSelector({
|
|
|
5575
5631
|
agent.accentColor && /* @__PURE__ */ jsxRuntime.jsx(
|
|
5576
5632
|
"span",
|
|
5577
5633
|
{
|
|
5578
|
-
className:
|
|
5634
|
+
className: cn52("h-2 w-2 shrink-0 rounded-full", agent.accentColor),
|
|
5579
5635
|
"aria-hidden": "true"
|
|
5580
5636
|
}
|
|
5581
5637
|
),
|
|
5582
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
5638
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: cn52("whitespace-nowrap font-medium", isMobile ? "text-xs" : "text-sm"), children: isMobile ? agent.type.split("-")[0] : agent.name }),
|
|
5583
5639
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5584
5640
|
"button",
|
|
5585
5641
|
{
|
|
5586
5642
|
type: "button",
|
|
5587
5643
|
onClick: () => onRemoveAgent(agent.id),
|
|
5588
|
-
className:
|
|
5644
|
+
className: cn52(
|
|
5589
5645
|
"inline-flex h-4 w-4 items-center justify-center rounded",
|
|
5590
5646
|
"text-muted-foreground hover:text-foreground",
|
|
5591
5647
|
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
@@ -5605,7 +5661,7 @@ function MosaicQuickAgentSelector({
|
|
|
5605
5661
|
{
|
|
5606
5662
|
type: "button",
|
|
5607
5663
|
onClick: () => setPickerOpen((v) => !v),
|
|
5608
|
-
className:
|
|
5664
|
+
className: cn52(
|
|
5609
5665
|
"inline-flex items-center justify-center gap-2 rounded-md border border-border bg-background",
|
|
5610
5666
|
"px-3 py-1.5 text-sm font-medium text-foreground",
|
|
5611
5667
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -5620,7 +5676,7 @@ function MosaicQuickAgentSelector({
|
|
|
5620
5676
|
!isMobile && pickerOpen && /* @__PURE__ */ jsxRuntime.jsx(
|
|
5621
5677
|
"div",
|
|
5622
5678
|
{
|
|
5623
|
-
className:
|
|
5679
|
+
className: cn52(
|
|
5624
5680
|
"absolute left-0 top-full z-50 mt-2 w-72 rounded-lg border border-border",
|
|
5625
5681
|
"bg-popover shadow-lg"
|
|
5626
5682
|
),
|
|
@@ -5662,7 +5718,7 @@ function MosaicQuickAgentSelector({
|
|
|
5662
5718
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
5663
5719
|
"span",
|
|
5664
5720
|
{
|
|
5665
|
-
className:
|
|
5721
|
+
className: cn52(
|
|
5666
5722
|
"shrink-0 rounded-md bg-secondary px-2 py-0.5 text-xs font-medium text-secondary-foreground"
|
|
5667
5723
|
),
|
|
5668
5724
|
children: [
|
|
@@ -5675,7 +5731,7 @@ function MosaicQuickAgentSelector({
|
|
|
5675
5731
|
] });
|
|
5676
5732
|
}
|
|
5677
5733
|
MosaicQuickAgentSelector.displayName = "MosaicQuickAgentSelector";
|
|
5678
|
-
function
|
|
5734
|
+
function cn53(...classes) {
|
|
5679
5735
|
return classes.filter(Boolean).join(" ");
|
|
5680
5736
|
}
|
|
5681
5737
|
function SearchIcon() {
|
|
@@ -5765,7 +5821,7 @@ function MosaicSelectorModal({
|
|
|
5765
5821
|
value: query,
|
|
5766
5822
|
onChange: (e) => setQuery(e.target.value),
|
|
5767
5823
|
placeholder: searchPlaceholder,
|
|
5768
|
-
className:
|
|
5824
|
+
className: cn53(
|
|
5769
5825
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
5770
5826
|
"text-sm text-foreground placeholder:text-muted-foreground",
|
|
5771
5827
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -5779,7 +5835,7 @@ function MosaicSelectorModal({
|
|
|
5779
5835
|
{
|
|
5780
5836
|
type: "button",
|
|
5781
5837
|
onClick: () => setActiveCategory("all"),
|
|
5782
|
-
className:
|
|
5838
|
+
className: cn53(
|
|
5783
5839
|
"shrink-0 rounded-md px-3 py-1.5 text-sm font-medium transition-colors",
|
|
5784
5840
|
activeCategory === "all" ? "bg-primary text-primary-foreground" : "bg-muted text-muted-foreground hover:bg-accent hover:text-accent-foreground"
|
|
5785
5841
|
),
|
|
@@ -5791,7 +5847,7 @@ function MosaicSelectorModal({
|
|
|
5791
5847
|
{
|
|
5792
5848
|
type: "button",
|
|
5793
5849
|
onClick: () => setActiveCategory(cat.id),
|
|
5794
|
-
className:
|
|
5850
|
+
className: cn53(
|
|
5795
5851
|
"shrink-0 rounded-md px-3 py-1.5 text-sm font-medium transition-colors",
|
|
5796
5852
|
activeCategory === cat.id ? "bg-primary text-primary-foreground" : "bg-muted text-muted-foreground hover:bg-accent hover:text-accent-foreground"
|
|
5797
5853
|
),
|
|
@@ -5803,7 +5859,7 @@ function MosaicSelectorModal({
|
|
|
5803
5859
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
5804
5860
|
"div",
|
|
5805
5861
|
{
|
|
5806
|
-
className:
|
|
5862
|
+
className: cn53(
|
|
5807
5863
|
"max-h-[50vh] overflow-y-auto",
|
|
5808
5864
|
columns === 2 ? "grid grid-cols-1 gap-3 sm:grid-cols-2" : "flex flex-col gap-3"
|
|
5809
5865
|
),
|
|
@@ -5815,7 +5871,7 @@ function MosaicSelectorModal({
|
|
|
5815
5871
|
{
|
|
5816
5872
|
type: "button",
|
|
5817
5873
|
onClick: () => setPendingId(item.id),
|
|
5818
|
-
className:
|
|
5874
|
+
className: cn53(
|
|
5819
5875
|
"group relative rounded-lg border p-4 text-left transition-all duration-150",
|
|
5820
5876
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
5821
5877
|
isSelected ? "border-primary bg-primary/5 ring-2 ring-primary" : "border-border bg-card hover:border-primary/50"
|
|
@@ -5853,7 +5909,7 @@ function MosaicSelectorModal({
|
|
|
5853
5909
|
{
|
|
5854
5910
|
type: "button",
|
|
5855
5911
|
onClick: onClose,
|
|
5856
|
-
className:
|
|
5912
|
+
className: cn53(
|
|
5857
5913
|
"inline-flex min-h-[44px] items-center justify-center rounded-md border border-border",
|
|
5858
5914
|
"bg-background px-4 py-2 text-sm font-medium text-foreground",
|
|
5859
5915
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -5868,7 +5924,7 @@ function MosaicSelectorModal({
|
|
|
5868
5924
|
type: "button",
|
|
5869
5925
|
onClick: handleConfirm,
|
|
5870
5926
|
disabled: !pendingItem,
|
|
5871
|
-
className:
|
|
5927
|
+
className: cn53(
|
|
5872
5928
|
"inline-flex min-h-[44px] items-center justify-center rounded-md",
|
|
5873
5929
|
"bg-primary px-4 py-2 text-sm font-medium text-primary-foreground",
|
|
5874
5930
|
"hover:bg-primary/90",
|
|
@@ -5882,7 +5938,7 @@ function MosaicSelectorModal({
|
|
|
5882
5938
|
] }) });
|
|
5883
5939
|
}
|
|
5884
5940
|
MosaicSelectorModal.displayName = "MosaicSelectorModal";
|
|
5885
|
-
function
|
|
5941
|
+
function cn54(...classes) {
|
|
5886
5942
|
return classes.filter(Boolean).join(" ");
|
|
5887
5943
|
}
|
|
5888
5944
|
function relativeTime(ts) {
|
|
@@ -6131,7 +6187,7 @@ function MosaicMessageCard({
|
|
|
6131
6187
|
"div",
|
|
6132
6188
|
{
|
|
6133
6189
|
"data-slot": "message-card",
|
|
6134
|
-
className:
|
|
6190
|
+
className: cn54(
|
|
6135
6191
|
"rounded-lg border border-border bg-card p-4 shadow-sm transition-shadow hover:shadow-md",
|
|
6136
6192
|
compact && "p-3",
|
|
6137
6193
|
message.sender.type === "user" && "bg-primary/5",
|
|
@@ -6141,7 +6197,7 @@ function MosaicMessageCard({
|
|
|
6141
6197
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6142
6198
|
"span",
|
|
6143
6199
|
{
|
|
6144
|
-
className:
|
|
6200
|
+
className: cn54(
|
|
6145
6201
|
"inline-flex shrink-0 items-center justify-center rounded-full text-white font-semibold",
|
|
6146
6202
|
compact ? "h-8 w-8 text-xs" : "h-10 w-10 text-sm",
|
|
6147
6203
|
message.sender.accentColor ?? "bg-muted text-muted-foreground"
|
|
@@ -6159,7 +6215,7 @@ function MosaicMessageCard({
|
|
|
6159
6215
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-w-0 flex-1", children: [
|
|
6160
6216
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mb-2 flex items-center justify-between gap-2", children: [
|
|
6161
6217
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
6162
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
6218
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: cn54("font-medium", compact ? "text-sm" : "text-base"), children: message.sender.name }),
|
|
6163
6219
|
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" })
|
|
6164
6220
|
] }),
|
|
6165
6221
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "shrink-0 text-xs text-muted-foreground", children: relativeTime(message.timestamp) })
|
|
@@ -6167,7 +6223,7 @@ function MosaicMessageCard({
|
|
|
6167
6223
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6168
6224
|
"p",
|
|
6169
6225
|
{
|
|
6170
|
-
className:
|
|
6226
|
+
className: cn54(
|
|
6171
6227
|
"leading-relaxed text-foreground mb-3",
|
|
6172
6228
|
compact ? "text-sm" : "text-base"
|
|
6173
6229
|
),
|
|
@@ -6182,7 +6238,7 @@ function MosaicMessageCard({
|
|
|
6182
6238
|
{
|
|
6183
6239
|
type: "button",
|
|
6184
6240
|
onClick: handleLike,
|
|
6185
|
-
className:
|
|
6241
|
+
className: cn54(
|
|
6186
6242
|
"inline-flex h-8 items-center gap-1 rounded-md px-2 text-xs",
|
|
6187
6243
|
"hover:bg-accent hover:text-accent-foreground",
|
|
6188
6244
|
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
@@ -6200,7 +6256,7 @@ function MosaicMessageCard({
|
|
|
6200
6256
|
{
|
|
6201
6257
|
type: "button",
|
|
6202
6258
|
onClick: handleDislike,
|
|
6203
|
-
className:
|
|
6259
|
+
className: cn54(
|
|
6204
6260
|
"inline-flex h-8 items-center gap-1 rounded-md px-2 text-xs",
|
|
6205
6261
|
"hover:bg-accent hover:text-accent-foreground",
|
|
6206
6262
|
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
@@ -6245,7 +6301,7 @@ function MosaicMessageCard({
|
|
|
6245
6301
|
{
|
|
6246
6302
|
type: "button",
|
|
6247
6303
|
onClick: handleBookmark,
|
|
6248
|
-
className:
|
|
6304
|
+
className: cn54(
|
|
6249
6305
|
"inline-flex h-8 w-8 items-center justify-center rounded-md",
|
|
6250
6306
|
"hover:bg-accent hover:text-accent-foreground",
|
|
6251
6307
|
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
@@ -6346,7 +6402,7 @@ function MosaicMessageCard({
|
|
|
6346
6402
|
);
|
|
6347
6403
|
}
|
|
6348
6404
|
MosaicMessageCard.displayName = "MosaicMessageCard";
|
|
6349
|
-
function
|
|
6405
|
+
function cn55(...classes) {
|
|
6350
6406
|
return classes.filter(Boolean).join(" ");
|
|
6351
6407
|
}
|
|
6352
6408
|
function SearchIcon2() {
|
|
@@ -6386,7 +6442,7 @@ function MessageListDesktop({
|
|
|
6386
6442
|
const filtered = query ? messages.filter(
|
|
6387
6443
|
(m) => m.content.toLowerCase().includes(query.toLowerCase()) || m.sender.name.toLowerCase().includes(query.toLowerCase())
|
|
6388
6444
|
) : messages;
|
|
6389
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "message-list-desktop", className:
|
|
6445
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "message-list-desktop", className: cn55("flex h-full flex-col", className), children: [
|
|
6390
6446
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between border-b border-border px-6 py-4", children: [
|
|
6391
6447
|
title && /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-lg font-semibold", children: title }),
|
|
6392
6448
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative ml-auto max-w-xs flex-1", children: [
|
|
@@ -6398,7 +6454,7 @@ function MessageListDesktop({
|
|
|
6398
6454
|
value: query,
|
|
6399
6455
|
onChange: (e) => setQuery(e.target.value),
|
|
6400
6456
|
placeholder: "Search messages\u2026",
|
|
6401
|
-
className:
|
|
6457
|
+
className: cn55(
|
|
6402
6458
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
6403
6459
|
"text-sm placeholder:text-muted-foreground",
|
|
6404
6460
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -6427,7 +6483,7 @@ function MessageListDesktop({
|
|
|
6427
6483
|
{
|
|
6428
6484
|
type: "button",
|
|
6429
6485
|
onClick: onLoadMore,
|
|
6430
|
-
className:
|
|
6486
|
+
className: cn55(
|
|
6431
6487
|
"w-full rounded-md border border-border bg-background px-4 py-2 text-sm font-medium",
|
|
6432
6488
|
"hover:bg-accent hover:text-accent-foreground",
|
|
6433
6489
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -6449,7 +6505,7 @@ function MessageListMobile({
|
|
|
6449
6505
|
isLoading,
|
|
6450
6506
|
className
|
|
6451
6507
|
}) {
|
|
6452
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "message-list-mobile", className:
|
|
6508
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "message-list-mobile", className: cn55("flex flex-col", className), children: [
|
|
6453
6509
|
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 }) }),
|
|
6454
6510
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-3 p-4", children: [
|
|
6455
6511
|
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)) }),
|
|
@@ -6472,7 +6528,7 @@ function MessageListMobile({
|
|
|
6472
6528
|
{
|
|
6473
6529
|
type: "button",
|
|
6474
6530
|
onClick: onLoadMore,
|
|
6475
|
-
className:
|
|
6531
|
+
className: cn55(
|
|
6476
6532
|
"w-full min-h-[44px] rounded-md border border-border bg-background px-4 py-2 text-sm font-medium",
|
|
6477
6533
|
"hover:bg-accent hover:text-accent-foreground",
|
|
6478
6534
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -6487,7 +6543,7 @@ function MosaicMessageList(props) {
|
|
|
6487
6543
|
return isMobile ? /* @__PURE__ */ jsxRuntime.jsx(MessageListMobile, { ...props }) : /* @__PURE__ */ jsxRuntime.jsx(MessageListDesktop, { ...props });
|
|
6488
6544
|
}
|
|
6489
6545
|
MosaicMessageList.displayName = "MosaicMessageList";
|
|
6490
|
-
function
|
|
6546
|
+
function cn56(...classes) {
|
|
6491
6547
|
return classes.filter(Boolean).join(" ");
|
|
6492
6548
|
}
|
|
6493
6549
|
function ChevronLeftIcon2() {
|
|
@@ -6563,7 +6619,7 @@ function MosaicFilterSidebar({
|
|
|
6563
6619
|
{
|
|
6564
6620
|
"data-slot": "filter-sidebar",
|
|
6565
6621
|
style: { width, minWidth: isCollapsed && !isMobile ? "64px" : void 0 },
|
|
6566
|
-
className:
|
|
6622
|
+
className: cn56(
|
|
6567
6623
|
"relative flex flex-col border-r border-border bg-card",
|
|
6568
6624
|
"transition-[width] duration-200 ease-in-out",
|
|
6569
6625
|
"overflow-hidden",
|
|
@@ -6575,7 +6631,7 @@ function MosaicFilterSidebar({
|
|
|
6575
6631
|
{
|
|
6576
6632
|
type: "button",
|
|
6577
6633
|
onClick: onToggleCollapse,
|
|
6578
|
-
className:
|
|
6634
|
+
className: cn56(
|
|
6579
6635
|
"absolute -right-3 top-6 z-10 flex h-6 w-6 items-center justify-center rounded-full",
|
|
6580
6636
|
"border border-border bg-background shadow-sm",
|
|
6581
6637
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -6605,7 +6661,7 @@ function MosaicFilterSidebar({
|
|
|
6605
6661
|
{
|
|
6606
6662
|
type: "button",
|
|
6607
6663
|
onClick: () => onFilterChange(f.id),
|
|
6608
|
-
className:
|
|
6664
|
+
className: cn56(
|
|
6609
6665
|
"flex min-h-[40px] items-center justify-between rounded-md px-3 py-2 text-sm font-medium",
|
|
6610
6666
|
"transition-colors hover:bg-accent hover:text-accent-foreground",
|
|
6611
6667
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -6625,7 +6681,7 @@ function MosaicFilterSidebar({
|
|
|
6625
6681
|
{
|
|
6626
6682
|
type: "button",
|
|
6627
6683
|
onClick: () => onCategoryChange(cat.id),
|
|
6628
|
-
className:
|
|
6684
|
+
className: cn56(
|
|
6629
6685
|
"flex min-h-[36px] items-center justify-between rounded-md px-3 py-1.5 text-sm",
|
|
6630
6686
|
"transition-colors hover:bg-accent hover:text-accent-foreground",
|
|
6631
6687
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -6645,7 +6701,7 @@ function MosaicFilterSidebar({
|
|
|
6645
6701
|
);
|
|
6646
6702
|
}
|
|
6647
6703
|
MosaicFilterSidebar.displayName = "MosaicFilterSidebar";
|
|
6648
|
-
function
|
|
6704
|
+
function cn57(...classes) {
|
|
6649
6705
|
return classes.filter(Boolean).join(" ");
|
|
6650
6706
|
}
|
|
6651
6707
|
function SearchIcon3() {
|
|
@@ -6760,7 +6816,7 @@ function AgentListDesktop({
|
|
|
6760
6816
|
value: query,
|
|
6761
6817
|
onChange: (e) => setQuery(e.target.value),
|
|
6762
6818
|
placeholder: searchPlaceholder,
|
|
6763
|
-
className:
|
|
6819
|
+
className: cn57(
|
|
6764
6820
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
6765
6821
|
"text-sm placeholder:text-muted-foreground",
|
|
6766
6822
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -6773,7 +6829,7 @@ function AgentListDesktop({
|
|
|
6773
6829
|
{
|
|
6774
6830
|
type: "button",
|
|
6775
6831
|
onClick: onCreateAgent,
|
|
6776
|
-
className:
|
|
6832
|
+
className: cn57(
|
|
6777
6833
|
"inline-flex items-center gap-2 rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground",
|
|
6778
6834
|
"hover:bg-primary/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
6779
6835
|
),
|
|
@@ -6832,7 +6888,7 @@ function AgentListMobile({
|
|
|
6832
6888
|
{
|
|
6833
6889
|
type: "button",
|
|
6834
6890
|
onClick: () => setFilterOpen(true),
|
|
6835
|
-
className:
|
|
6891
|
+
className: cn57(
|
|
6836
6892
|
"inline-flex h-9 w-9 items-center justify-center rounded-md",
|
|
6837
6893
|
"border border-border bg-background text-foreground",
|
|
6838
6894
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -6847,7 +6903,7 @@ function AgentListMobile({
|
|
|
6847
6903
|
{
|
|
6848
6904
|
type: "button",
|
|
6849
6905
|
onClick: onCreateAgent,
|
|
6850
|
-
className:
|
|
6906
|
+
className: cn57(
|
|
6851
6907
|
"inline-flex h-9 items-center gap-1.5 rounded-md bg-primary px-3 text-sm font-medium text-primary-foreground",
|
|
6852
6908
|
"hover:bg-primary/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
6853
6909
|
),
|
|
@@ -6868,7 +6924,7 @@ function AgentListMobile({
|
|
|
6868
6924
|
value: query,
|
|
6869
6925
|
onChange: (e) => setQuery(e.target.value),
|
|
6870
6926
|
placeholder: searchPlaceholder,
|
|
6871
|
-
className:
|
|
6927
|
+
className: cn57(
|
|
6872
6928
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
6873
6929
|
"text-sm placeholder:text-muted-foreground",
|
|
6874
6930
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -6916,7 +6972,7 @@ function MosaicAgentList(props) {
|
|
|
6916
6972
|
return isMobile ? /* @__PURE__ */ jsxRuntime.jsx(AgentListMobile, { ...props }) : /* @__PURE__ */ jsxRuntime.jsx(AgentListDesktop, { ...props });
|
|
6917
6973
|
}
|
|
6918
6974
|
MosaicAgentList.displayName = "MosaicAgentList";
|
|
6919
|
-
function
|
|
6975
|
+
function cn58(...classes) {
|
|
6920
6976
|
return classes.filter(Boolean).join(" ");
|
|
6921
6977
|
}
|
|
6922
6978
|
function StarIcon({ filled }) {
|
|
@@ -7012,7 +7068,7 @@ function MarketplaceCard({
|
|
|
7012
7068
|
"div",
|
|
7013
7069
|
{
|
|
7014
7070
|
"data-slot": "marketplace-card",
|
|
7015
|
-
className:
|
|
7071
|
+
className: cn58(
|
|
7016
7072
|
"rounded-lg border border-border bg-card p-4 transition-shadow hover:shadow-md",
|
|
7017
7073
|
compact ? "flex items-center gap-3" : "flex flex-col gap-3"
|
|
7018
7074
|
),
|
|
@@ -7020,7 +7076,7 @@ function MarketplaceCard({
|
|
|
7020
7076
|
item.icon && /* @__PURE__ */ jsxRuntime.jsx(
|
|
7021
7077
|
"div",
|
|
7022
7078
|
{
|
|
7023
|
-
className:
|
|
7079
|
+
className: cn58(
|
|
7024
7080
|
"flex shrink-0 items-center justify-center rounded-lg",
|
|
7025
7081
|
compact ? "h-10 w-10" : "h-12 w-12",
|
|
7026
7082
|
item.accentClass ?? "bg-muted text-muted-foreground"
|
|
@@ -7031,7 +7087,7 @@ function MarketplaceCard({
|
|
|
7031
7087
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex-1 min-w-0", children: [
|
|
7032
7088
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start justify-between gap-2", children: [
|
|
7033
7089
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-w-0", children: [
|
|
7034
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className:
|
|
7090
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: cn58("font-semibold leading-tight", compact ? "text-sm" : "text-base"), children: item.title }),
|
|
7035
7091
|
item.description && !compact && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-1 text-sm text-muted-foreground line-clamp-2", children: item.description })
|
|
7036
7092
|
] }),
|
|
7037
7093
|
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 })
|
|
@@ -7048,13 +7104,13 @@ function MarketplaceCard({
|
|
|
7048
7104
|
] })
|
|
7049
7105
|
] })
|
|
7050
7106
|
] }),
|
|
7051
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
7107
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn58("flex gap-2", compact ? "shrink-0" : "mt-1"), children: [
|
|
7052
7108
|
onPreview && /* @__PURE__ */ jsxRuntime.jsx(
|
|
7053
7109
|
"button",
|
|
7054
7110
|
{
|
|
7055
7111
|
type: "button",
|
|
7056
7112
|
onClick: () => onPreview(item.id),
|
|
7057
|
-
className:
|
|
7113
|
+
className: cn58(
|
|
7058
7114
|
"inline-flex min-h-[36px] items-center justify-center rounded-md border border-border",
|
|
7059
7115
|
"bg-background px-3 text-xs font-medium text-foreground",
|
|
7060
7116
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -7068,7 +7124,7 @@ function MarketplaceCard({
|
|
|
7068
7124
|
{
|
|
7069
7125
|
type: "button",
|
|
7070
7126
|
onClick: () => onUninstall(item.id),
|
|
7071
|
-
className:
|
|
7127
|
+
className: cn58(
|
|
7072
7128
|
"inline-flex min-h-[36px] items-center justify-center rounded-md",
|
|
7073
7129
|
"bg-secondary px-3 text-xs font-medium text-secondary-foreground",
|
|
7074
7130
|
"hover:bg-secondary/80",
|
|
@@ -7081,7 +7137,7 @@ function MarketplaceCard({
|
|
|
7081
7137
|
{
|
|
7082
7138
|
type: "button",
|
|
7083
7139
|
onClick: () => onInstall(item.id),
|
|
7084
|
-
className:
|
|
7140
|
+
className: cn58(
|
|
7085
7141
|
"inline-flex min-h-[36px] items-center justify-center rounded-md",
|
|
7086
7142
|
"bg-primary px-3 text-xs font-medium text-primary-foreground",
|
|
7087
7143
|
"hover:bg-primary/90",
|
|
@@ -7143,7 +7199,7 @@ function MarketplaceListDesktop(props) {
|
|
|
7143
7199
|
value: query,
|
|
7144
7200
|
onChange: (e) => setQuery(e.target.value),
|
|
7145
7201
|
placeholder: searchPlaceholder,
|
|
7146
|
-
className:
|
|
7202
|
+
className: cn58(
|
|
7147
7203
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
7148
7204
|
"text-sm placeholder:text-muted-foreground",
|
|
7149
7205
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -7216,7 +7272,7 @@ function MarketplaceListMobile(props) {
|
|
|
7216
7272
|
value: query,
|
|
7217
7273
|
onChange: (e) => setQuery(e.target.value),
|
|
7218
7274
|
placeholder: searchPlaceholder,
|
|
7219
|
-
className:
|
|
7275
|
+
className: cn58(
|
|
7220
7276
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
7221
7277
|
"text-sm placeholder:text-muted-foreground",
|
|
7222
7278
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -7267,7 +7323,7 @@ function MosaicMarketplaceList(props) {
|
|
|
7267
7323
|
return isMobile ? /* @__PURE__ */ jsxRuntime.jsx(MarketplaceListMobile, { ...props }) : /* @__PURE__ */ jsxRuntime.jsx(MarketplaceListDesktop, { ...props });
|
|
7268
7324
|
}
|
|
7269
7325
|
MosaicMarketplaceList.displayName = "MosaicMarketplaceList";
|
|
7270
|
-
function
|
|
7326
|
+
function cn59(...classes) {
|
|
7271
7327
|
return classes.filter(Boolean).join(" ");
|
|
7272
7328
|
}
|
|
7273
7329
|
function StarIcon2() {
|
|
@@ -7386,7 +7442,7 @@ function MosaicTemplateCard({
|
|
|
7386
7442
|
type: "button",
|
|
7387
7443
|
onClick: () => onSelect(template),
|
|
7388
7444
|
"data-slot": "template-card",
|
|
7389
|
-
className:
|
|
7445
|
+
className: cn59(
|
|
7390
7446
|
"w-full text-left rounded-lg border transition-all duration-200",
|
|
7391
7447
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
7392
7448
|
isSelected ? "border-primary bg-primary/5 ring-2 ring-primary" : "border-border bg-card hover:border-primary/50",
|
|
@@ -7486,7 +7542,7 @@ function MosaicTemplatePreview({
|
|
|
7486
7542
|
agent.accentColor && /* @__PURE__ */ jsxRuntime.jsx(
|
|
7487
7543
|
"span",
|
|
7488
7544
|
{
|
|
7489
|
-
className:
|
|
7545
|
+
className: cn59("h-2 w-2 rounded-full", agent.accentColor),
|
|
7490
7546
|
"aria-hidden": "true"
|
|
7491
7547
|
}
|
|
7492
7548
|
),
|
|
@@ -7546,7 +7602,7 @@ function MosaicAgentTeamPreview({ agents, label }) {
|
|
|
7546
7602
|
agent.accentColor && /* @__PURE__ */ jsxRuntime.jsx(
|
|
7547
7603
|
"span",
|
|
7548
7604
|
{
|
|
7549
|
-
className:
|
|
7605
|
+
className: cn59("h-2.5 w-2.5 rounded-full", agent.accentColor),
|
|
7550
7606
|
"aria-hidden": "true"
|
|
7551
7607
|
}
|
|
7552
7608
|
),
|
|
@@ -7570,7 +7626,7 @@ function MosaicQuickStartPanel({
|
|
|
7570
7626
|
scratchLabel = "Start from Scratch",
|
|
7571
7627
|
className
|
|
7572
7628
|
}) {
|
|
7573
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "quick-start-panel", className:
|
|
7629
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "quick-start-panel", className: cn59("flex flex-col gap-6", className), children: [
|
|
7574
7630
|
scenarios.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
7575
7631
|
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "mb-3 text-sm font-semibold text-foreground", children: scenariosTitle }),
|
|
7576
7632
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "grid gap-3 sm:grid-cols-2", children: scenarios.map((scenario) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -7578,7 +7634,7 @@ function MosaicQuickStartPanel({
|
|
|
7578
7634
|
{
|
|
7579
7635
|
type: "button",
|
|
7580
7636
|
onClick: () => onSelectScenario(scenario),
|
|
7581
|
-
className:
|
|
7637
|
+
className: cn59(
|
|
7582
7638
|
"flex items-start gap-3 rounded-lg border border-border bg-card p-4 text-left",
|
|
7583
7639
|
"hover:border-primary/50 hover:bg-primary/5",
|
|
7584
7640
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -7610,7 +7666,7 @@ function MosaicQuickStartPanel({
|
|
|
7610
7666
|
{
|
|
7611
7667
|
type: "button",
|
|
7612
7668
|
onClick: () => onSelectPreset(preset),
|
|
7613
|
-
className:
|
|
7669
|
+
className: cn59(
|
|
7614
7670
|
"flex items-center justify-between gap-3 rounded-lg border border-border bg-card px-4 py-3 text-left",
|
|
7615
7671
|
"hover:border-primary/50",
|
|
7616
7672
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -7624,7 +7680,7 @@ function MosaicQuickStartPanel({
|
|
|
7624
7680
|
a.accentColor && /* @__PURE__ */ jsxRuntime.jsx(
|
|
7625
7681
|
"span",
|
|
7626
7682
|
{
|
|
7627
|
-
className:
|
|
7683
|
+
className: cn59("h-2 w-2 rounded-full", a.accentColor),
|
|
7628
7684
|
"aria-hidden": "true"
|
|
7629
7685
|
}
|
|
7630
7686
|
),
|
|
@@ -7642,7 +7698,7 @@ function MosaicQuickStartPanel({
|
|
|
7642
7698
|
{
|
|
7643
7699
|
type: "button",
|
|
7644
7700
|
onClick: onStartFromScratch,
|
|
7645
|
-
className:
|
|
7701
|
+
className: cn59(
|
|
7646
7702
|
"inline-flex min-h-[44px] w-full items-center justify-center rounded-md border border-border",
|
|
7647
7703
|
"bg-background px-4 text-sm font-medium text-foreground",
|
|
7648
7704
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -7722,7 +7778,7 @@ function TemplateGalleryContent({
|
|
|
7722
7778
|
value: query,
|
|
7723
7779
|
onChange: (e) => setQuery(e.target.value),
|
|
7724
7780
|
placeholder: searchPlaceholder,
|
|
7725
|
-
className:
|
|
7781
|
+
className: cn59(
|
|
7726
7782
|
"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"
|
|
7727
7783
|
)
|
|
7728
7784
|
}
|
|
@@ -7770,7 +7826,7 @@ function TemplateGalleryContent({
|
|
|
7770
7826
|
value: query,
|
|
7771
7827
|
onChange: (e) => setQuery(e.target.value),
|
|
7772
7828
|
placeholder: searchPlaceholder,
|
|
7773
|
-
className:
|
|
7829
|
+
className: cn59(
|
|
7774
7830
|
"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"
|
|
7775
7831
|
)
|
|
7776
7832
|
}
|
|
@@ -7800,7 +7856,7 @@ function MosaicTemplateGallery(props) {
|
|
|
7800
7856
|
return /* @__PURE__ */ jsxRuntime.jsx(TemplateGalleryContent, { ...props, isMobile });
|
|
7801
7857
|
}
|
|
7802
7858
|
MosaicTemplateGallery.displayName = "MosaicTemplateGallery";
|
|
7803
|
-
function
|
|
7859
|
+
function cn60(...classes) {
|
|
7804
7860
|
return classes.filter(Boolean).join(" ");
|
|
7805
7861
|
}
|
|
7806
7862
|
function PlusIcon5() {
|
|
@@ -7944,7 +8000,7 @@ function MosaicModuleForm({
|
|
|
7944
8000
|
onChange: (e) => update("name", e.target.value),
|
|
7945
8001
|
placeholder: "Module name\u2026",
|
|
7946
8002
|
required: true,
|
|
7947
|
-
className:
|
|
8003
|
+
className: cn60(
|
|
7948
8004
|
"w-full rounded-md border border-input bg-background px-3 py-2 min-h-[40px]",
|
|
7949
8005
|
"text-sm placeholder:text-muted-foreground",
|
|
7950
8006
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -7962,7 +8018,7 @@ function MosaicModuleForm({
|
|
|
7962
8018
|
onChange: (e) => update("description", e.target.value),
|
|
7963
8019
|
placeholder: "Describe this module\u2026",
|
|
7964
8020
|
rows: 3,
|
|
7965
|
-
className:
|
|
8021
|
+
className: cn60(
|
|
7966
8022
|
"w-full rounded-md border border-input bg-background px-3 py-2",
|
|
7967
8023
|
"text-sm placeholder:text-muted-foreground resize-none",
|
|
7968
8024
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -7984,7 +8040,7 @@ function MosaicModuleForm({
|
|
|
7984
8040
|
value: formData[field.id] ?? "",
|
|
7985
8041
|
onChange: (e) => update(field.id, e.target.value),
|
|
7986
8042
|
placeholder: field.placeholder,
|
|
7987
|
-
className:
|
|
8043
|
+
className: cn60(
|
|
7988
8044
|
"w-full rounded-md border border-input bg-background px-3 py-2 min-h-[40px]",
|
|
7989
8045
|
"text-sm placeholder:text-muted-foreground",
|
|
7990
8046
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -7999,7 +8055,7 @@ function MosaicModuleForm({
|
|
|
7999
8055
|
onChange: (e) => update(field.id, e.target.value),
|
|
8000
8056
|
placeholder: field.placeholder,
|
|
8001
8057
|
rows: 3,
|
|
8002
|
-
className:
|
|
8058
|
+
className: cn60(
|
|
8003
8059
|
"w-full rounded-md border border-input bg-background px-3 py-2",
|
|
8004
8060
|
"text-sm placeholder:text-muted-foreground resize-none",
|
|
8005
8061
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -8015,7 +8071,7 @@ function MosaicModuleForm({
|
|
|
8015
8071
|
onChange: (e) => update(field.id, e.target.value),
|
|
8016
8072
|
placeholder: field.placeholder ?? "\u{1F9E0}",
|
|
8017
8073
|
maxLength: 4,
|
|
8018
|
-
className:
|
|
8074
|
+
className: cn60(
|
|
8019
8075
|
"w-20 rounded-md border border-input bg-background px-3 py-2 text-2xl",
|
|
8020
8076
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
8021
8077
|
)
|
|
@@ -8036,7 +8092,7 @@ function MosaicModuleForm({
|
|
|
8036
8092
|
}
|
|
8037
8093
|
},
|
|
8038
8094
|
placeholder: field.placeholder ?? "Add item\u2026",
|
|
8039
|
-
className:
|
|
8095
|
+
className: cn60(
|
|
8040
8096
|
"flex-1 rounded-md border border-input bg-background px-3 py-2 min-h-[36px]",
|
|
8041
8097
|
"text-sm placeholder:text-muted-foreground",
|
|
8042
8098
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -8232,7 +8288,7 @@ function LibraryContent({
|
|
|
8232
8288
|
{
|
|
8233
8289
|
type: "button",
|
|
8234
8290
|
onClick: openCreate,
|
|
8235
|
-
className:
|
|
8291
|
+
className: cn60(
|
|
8236
8292
|
"inline-flex items-center gap-2 rounded-md bg-primary px-3 py-2 text-sm font-medium text-primary-foreground",
|
|
8237
8293
|
"hover:bg-primary/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
8238
8294
|
),
|
|
@@ -8252,7 +8308,7 @@ function LibraryContent({
|
|
|
8252
8308
|
value: query,
|
|
8253
8309
|
onChange: (e) => setQuery(e.target.value),
|
|
8254
8310
|
placeholder: searchPlaceholder,
|
|
8255
|
-
className:
|
|
8311
|
+
className: cn60(
|
|
8256
8312
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
8257
8313
|
"text-sm placeholder:text-muted-foreground",
|
|
8258
8314
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -8265,7 +8321,7 @@ function LibraryContent({
|
|
|
8265
8321
|
{
|
|
8266
8322
|
type: "button",
|
|
8267
8323
|
onClick: () => setActiveTab(tab.id),
|
|
8268
|
-
className:
|
|
8324
|
+
className: cn60(
|
|
8269
8325
|
"rounded-md px-3 py-1.5 text-sm font-medium transition-colors",
|
|
8270
8326
|
activeTab === tab.id ? "bg-primary text-primary-foreground" : "bg-muted text-muted-foreground hover:bg-accent hover:text-accent-foreground"
|
|
8271
8327
|
),
|
|
@@ -8299,7 +8355,7 @@ function MosaicModuleLibrary(props) {
|
|
|
8299
8355
|
return /* @__PURE__ */ jsxRuntime.jsx(LibraryContent, { ...props });
|
|
8300
8356
|
}
|
|
8301
8357
|
MosaicModuleLibrary.displayName = "MosaicModuleLibrary";
|
|
8302
|
-
function
|
|
8358
|
+
function cn61(...classes) {
|
|
8303
8359
|
return classes.filter(Boolean).join(" ");
|
|
8304
8360
|
}
|
|
8305
8361
|
var roleConfig = {
|
|
@@ -8326,7 +8382,7 @@ function MosaicOrgRoleBadge({ role, className }) {
|
|
|
8326
8382
|
{
|
|
8327
8383
|
"data-slot": "org-role-badge",
|
|
8328
8384
|
title: config.description,
|
|
8329
|
-
className:
|
|
8385
|
+
className: cn61(
|
|
8330
8386
|
"inline-flex items-center rounded-full px-2 py-0.5 text-xs font-medium",
|
|
8331
8387
|
config.className,
|
|
8332
8388
|
className
|
|
@@ -8343,13 +8399,13 @@ function MosaicMultiOrgIndicator({
|
|
|
8343
8399
|
className
|
|
8344
8400
|
}) {
|
|
8345
8401
|
if (orgCount <= 1) return null;
|
|
8346
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "multi-org-indicator", className:
|
|
8402
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "multi-org-indicator", className: cn61("flex items-center gap-2", className), children: [
|
|
8347
8403
|
onSwitchOrg ? /* @__PURE__ */ jsxRuntime.jsxs(
|
|
8348
8404
|
"button",
|
|
8349
8405
|
{
|
|
8350
8406
|
type: "button",
|
|
8351
8407
|
onClick: onSwitchOrg,
|
|
8352
|
-
className:
|
|
8408
|
+
className: cn61(
|
|
8353
8409
|
"inline-flex items-center gap-1.5 rounded-full bg-secondary px-2.5 py-1 text-xs font-medium text-secondary-foreground",
|
|
8354
8410
|
"hover:bg-secondary/80",
|
|
8355
8411
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -8447,7 +8503,7 @@ function MosaicCreateOrgDialog({
|
|
|
8447
8503
|
onChange: (e) => setName(e.target.value),
|
|
8448
8504
|
placeholder: "Acme Inc.",
|
|
8449
8505
|
required: true,
|
|
8450
|
-
className:
|
|
8506
|
+
className: cn61(
|
|
8451
8507
|
"w-full rounded-md border bg-background px-3 py-2 min-h-[40px] text-sm placeholder:text-muted-foreground",
|
|
8452
8508
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
8453
8509
|
errors.name ? "border-destructive" : "border-input"
|
|
@@ -8467,7 +8523,7 @@ function MosaicCreateOrgDialog({
|
|
|
8467
8523
|
onChange: (e) => setSlug(e.target.value),
|
|
8468
8524
|
placeholder: "acme-inc",
|
|
8469
8525
|
required: true,
|
|
8470
|
-
className:
|
|
8526
|
+
className: cn61(
|
|
8471
8527
|
"w-full rounded-md border bg-background px-3 py-2 min-h-[40px] text-sm placeholder:text-muted-foreground",
|
|
8472
8528
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
8473
8529
|
errors.slug ? "border-destructive" : "border-input"
|
|
@@ -8564,7 +8620,7 @@ function MosaicInviteMemberDialog({
|
|
|
8564
8620
|
onChange: (e) => setEmail(e.target.value),
|
|
8565
8621
|
placeholder: "colleague@example.com",
|
|
8566
8622
|
required: true,
|
|
8567
|
-
className:
|
|
8623
|
+
className: cn61(
|
|
8568
8624
|
"w-full rounded-md border bg-background px-3 py-2 min-h-[40px] text-sm placeholder:text-muted-foreground",
|
|
8569
8625
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
8570
8626
|
errors.email ? "border-destructive" : "border-input"
|
|
@@ -8741,7 +8797,7 @@ function MosaicMemberList({
|
|
|
8741
8797
|
const filtered = members.filter(
|
|
8742
8798
|
(m) => !query || m.name.toLowerCase().includes(query.toLowerCase()) || m.email.toLowerCase().includes(query.toLowerCase())
|
|
8743
8799
|
);
|
|
8744
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "member-list", className:
|
|
8800
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "member-list", className: cn61("flex flex-col gap-4", className), children: [
|
|
8745
8801
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
8746
8802
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative flex-1", children: [
|
|
8747
8803
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground", children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -8834,7 +8890,7 @@ function MosaicOrgPanel({
|
|
|
8834
8890
|
const { isMobile } = useDevice();
|
|
8835
8891
|
const [activeTab, setActiveTab] = React27__namespace.useState(defaultTab ?? tabs[0]?.id ?? "");
|
|
8836
8892
|
const activeContent = tabs.find((t) => t.id === activeTab)?.content;
|
|
8837
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "org-panel", className:
|
|
8893
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "org-panel", className: cn61("flex h-full flex-col", className), children: [
|
|
8838
8894
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "border-b border-border px-4 py-4 md:px-6", children: [
|
|
8839
8895
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start justify-between gap-4", children: [
|
|
8840
8896
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
@@ -8856,12 +8912,12 @@ function MosaicOrgPanel({
|
|
|
8856
8912
|
] }),
|
|
8857
8913
|
headerActions
|
|
8858
8914
|
] }),
|
|
8859
|
-
tabs.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
8915
|
+
tabs.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn61("mt-4 flex gap-1", isMobile && "overflow-x-auto"), children: tabs.map((tab) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
8860
8916
|
"button",
|
|
8861
8917
|
{
|
|
8862
8918
|
type: "button",
|
|
8863
8919
|
onClick: () => setActiveTab(tab.id),
|
|
8864
|
-
className:
|
|
8920
|
+
className: cn61(
|
|
8865
8921
|
"shrink-0 rounded-md px-3 py-1.5 text-sm font-medium transition-colors",
|
|
8866
8922
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
8867
8923
|
activeTab === tab.id ? "bg-primary text-primary-foreground" : "bg-muted text-muted-foreground hover:bg-accent hover:text-accent-foreground"
|
|
@@ -8875,7 +8931,7 @@ function MosaicOrgPanel({
|
|
|
8875
8931
|
] });
|
|
8876
8932
|
}
|
|
8877
8933
|
MosaicOrgPanel.displayName = "MosaicOrgPanel";
|
|
8878
|
-
function
|
|
8934
|
+
function cn62(...classes) {
|
|
8879
8935
|
return classes.filter(Boolean).join(" ");
|
|
8880
8936
|
}
|
|
8881
8937
|
var ANIM_ID8 = "mosaic-dashboard-content-kf";
|
|
@@ -8912,7 +8968,7 @@ function MosaicDashboardContent({
|
|
|
8912
8968
|
"div",
|
|
8913
8969
|
{
|
|
8914
8970
|
"data-slot": "dashboard-content",
|
|
8915
|
-
className:
|
|
8971
|
+
className: cn62("h-full overflow-auto", isMobile ? "p-4" : "p-6", className),
|
|
8916
8972
|
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: [
|
|
8917
8973
|
"View not found: ",
|
|
8918
8974
|
currentView
|
|
@@ -8921,7 +8977,7 @@ function MosaicDashboardContent({
|
|
|
8921
8977
|
);
|
|
8922
8978
|
}
|
|
8923
8979
|
MosaicDashboardContent.displayName = "MosaicDashboardContent";
|
|
8924
|
-
function
|
|
8980
|
+
function cn63(...classes) {
|
|
8925
8981
|
return classes.filter(Boolean).join(" ");
|
|
8926
8982
|
}
|
|
8927
8983
|
var ANIM_ID9 = "mosaic-dashboard-header2-kf";
|
|
@@ -9031,16 +9087,16 @@ function MosaicDashboardHeader({
|
|
|
9031
9087
|
"header",
|
|
9032
9088
|
{
|
|
9033
9089
|
"data-slot": "dashboard-header",
|
|
9034
|
-
className:
|
|
9090
|
+
className: cn63(
|
|
9035
9091
|
"mosaic-dashboard-header2",
|
|
9036
9092
|
"sticky top-0 z-40 border-b border-border/50 bg-background/80 backdrop-blur-sm",
|
|
9037
9093
|
className
|
|
9038
9094
|
),
|
|
9039
|
-
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
9095
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn63(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: [
|
|
9040
9096
|
/* @__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: [
|
|
9041
9097
|
logoSlot ?? /* @__PURE__ */ jsxRuntime.jsx(SparklesIcon4, {}),
|
|
9042
9098
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-w-0", children: [
|
|
9043
|
-
/* @__PURE__ */ jsxRuntime.jsx("h1", { className:
|
|
9099
|
+
/* @__PURE__ */ jsxRuntime.jsx("h1", { className: cn63("font-semibold truncate", isMobile ? "text-lg" : "text-xl"), children: title }),
|
|
9044
9100
|
subtitle && !isMobile && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-muted-foreground truncate", children: subtitle })
|
|
9045
9101
|
] })
|
|
9046
9102
|
] }) }),
|
|
@@ -9053,7 +9109,7 @@ function MosaicDashboardHeader({
|
|
|
9053
9109
|
value: searchQuery,
|
|
9054
9110
|
onChange: handleSearch,
|
|
9055
9111
|
placeholder: "Search\u2026",
|
|
9056
|
-
className:
|
|
9112
|
+
className: cn63(
|
|
9057
9113
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
9058
9114
|
"text-sm placeholder:text-muted-foreground",
|
|
9059
9115
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -9093,7 +9149,7 @@ function MosaicDashboardHeader({
|
|
|
9093
9149
|
);
|
|
9094
9150
|
}
|
|
9095
9151
|
MosaicDashboardHeader.displayName = "MosaicDashboardHeader";
|
|
9096
|
-
function
|
|
9152
|
+
function cn64(...classes) {
|
|
9097
9153
|
return classes.filter(Boolean).join(" ");
|
|
9098
9154
|
}
|
|
9099
9155
|
function ChevronDownIcon4() {
|
|
@@ -9174,13 +9230,13 @@ function MosaicOrgSwitcher({
|
|
|
9174
9230
|
}, [open]);
|
|
9175
9231
|
if (!currentOrg && organizations.length === 0 && !onCreateOrg) return null;
|
|
9176
9232
|
const initials = currentOrg?.name.split(" ").map((n) => n[0]).filter(Boolean).slice(0, 2).join("").toUpperCase() ?? "?";
|
|
9177
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, "data-slot": "org-switcher", className:
|
|
9233
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, "data-slot": "org-switcher", className: cn64("relative", className), children: [
|
|
9178
9234
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
9179
9235
|
"button",
|
|
9180
9236
|
{
|
|
9181
9237
|
type: "button",
|
|
9182
9238
|
onClick: () => setOpen((v) => !v),
|
|
9183
|
-
className:
|
|
9239
|
+
className: cn64(
|
|
9184
9240
|
"inline-flex items-center gap-2 rounded-md border border-border bg-background px-3 py-1.5",
|
|
9185
9241
|
"text-sm font-medium text-foreground",
|
|
9186
9242
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -9207,7 +9263,7 @@ function MosaicOrgSwitcher({
|
|
|
9207
9263
|
{
|
|
9208
9264
|
role: "menu",
|
|
9209
9265
|
"aria-label": "Select organization",
|
|
9210
|
-
className:
|
|
9266
|
+
className: cn64(
|
|
9211
9267
|
"absolute left-0 top-full z-50 mt-1 min-w-[200px] rounded-md border border-border",
|
|
9212
9268
|
"bg-popover py-1 shadow-md"
|
|
9213
9269
|
),
|
|
@@ -9222,7 +9278,7 @@ function MosaicOrgSwitcher({
|
|
|
9222
9278
|
onSelectOrg?.(org.id);
|
|
9223
9279
|
setOpen(false);
|
|
9224
9280
|
},
|
|
9225
|
-
className:
|
|
9281
|
+
className: cn64(
|
|
9226
9282
|
"flex w-full items-center gap-2.5 px-3 py-2 text-sm text-foreground",
|
|
9227
9283
|
"hover:bg-accent hover:text-accent-foreground",
|
|
9228
9284
|
org.id === currentOrgId && "bg-primary/10 text-primary"
|
|
@@ -9259,7 +9315,7 @@ function MosaicOrgSwitcher({
|
|
|
9259
9315
|
] });
|
|
9260
9316
|
}
|
|
9261
9317
|
MosaicOrgSwitcher.displayName = "MosaicOrgSwitcher";
|
|
9262
|
-
function
|
|
9318
|
+
function cn65(...classes) {
|
|
9263
9319
|
return classes.filter(Boolean).join(" ");
|
|
9264
9320
|
}
|
|
9265
9321
|
function PlusIcon7() {
|
|
@@ -9303,19 +9359,19 @@ function MosaicQuickActionsMenu({
|
|
|
9303
9359
|
document.addEventListener("mousedown", h);
|
|
9304
9360
|
return () => document.removeEventListener("mousedown", h);
|
|
9305
9361
|
}, [open]);
|
|
9306
|
-
const itemClass =
|
|
9362
|
+
const itemClass = cn65(
|
|
9307
9363
|
"flex w-full items-center gap-2 px-3 py-2 text-sm text-foreground",
|
|
9308
9364
|
"hover:bg-accent hover:text-accent-foreground",
|
|
9309
9365
|
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
9310
9366
|
"min-h-[44px]"
|
|
9311
9367
|
);
|
|
9312
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, "data-slot": "quick-actions-menu", className:
|
|
9368
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, "data-slot": "quick-actions-menu", className: cn65("relative", className), children: [
|
|
9313
9369
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
9314
9370
|
"button",
|
|
9315
9371
|
{
|
|
9316
9372
|
type: "button",
|
|
9317
9373
|
onClick: () => setOpen((v) => !v),
|
|
9318
|
-
className:
|
|
9374
|
+
className: cn65(
|
|
9319
9375
|
"inline-flex items-center justify-center gap-2 rounded-md border border-border bg-background",
|
|
9320
9376
|
"min-h-[44px] min-w-[44px] px-3 py-2 text-sm font-medium text-foreground",
|
|
9321
9377
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -9326,7 +9382,7 @@ function MosaicQuickActionsMenu({
|
|
|
9326
9382
|
"aria-label": label,
|
|
9327
9383
|
children: [
|
|
9328
9384
|
triggerIcon ?? /* @__PURE__ */ jsxRuntime.jsx(PlusIcon7, {}),
|
|
9329
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
9385
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: cn65("hidden md:inline"), children: label })
|
|
9330
9386
|
]
|
|
9331
9387
|
}
|
|
9332
9388
|
),
|
|
@@ -9335,13 +9391,13 @@ function MosaicQuickActionsMenu({
|
|
|
9335
9391
|
{
|
|
9336
9392
|
role: "menu",
|
|
9337
9393
|
"aria-label": menuTitle,
|
|
9338
|
-
className:
|
|
9394
|
+
className: cn65(
|
|
9339
9395
|
"absolute right-0 top-full z-50 mt-1 rounded-md border border-border bg-popover py-1 shadow-md",
|
|
9340
9396
|
isMobile ? "w-[min(90vw,280px)]" : "w-56"
|
|
9341
9397
|
),
|
|
9342
9398
|
children: [
|
|
9343
9399
|
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 }) }),
|
|
9344
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
9400
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: cn65(menuTitle && "border-t border-border") }),
|
|
9345
9401
|
actions.map((action) => /* @__PURE__ */ jsxRuntime.jsxs(React27__namespace.Fragment, { children: [
|
|
9346
9402
|
action.separator && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "my-1 border-t border-border" }),
|
|
9347
9403
|
action.href && renderLink ? renderLink(
|
|
@@ -9828,6 +9884,7 @@ exports.MosaicFieldControl = MosaicFieldControl;
|
|
|
9828
9884
|
exports.MosaicFieldDescription = MosaicFieldDescription;
|
|
9829
9885
|
exports.MosaicFieldError = MosaicFieldError;
|
|
9830
9886
|
exports.MosaicFieldLabel = MosaicFieldLabel;
|
|
9887
|
+
exports.MosaicFilterBar = MosaicFilterBar;
|
|
9831
9888
|
exports.MosaicFilterSidebar = MosaicFilterSidebar;
|
|
9832
9889
|
exports.MosaicFooterSimple = MosaicFooterSimple;
|
|
9833
9890
|
exports.MosaicHeroSplit = MosaicHeroSplit;
|