@vantageos/mosaic-blocks 0.2.4-alpha → 0.3.0-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 +779 -216
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +497 -2
- package/dist/index.d.ts +497 -2
- package/dist/index.js +754 -217
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -5,6 +5,17 @@ var jsxRuntime = require('react/jsx-runtime');
|
|
|
5
5
|
var button = require('@base-ui/react/button');
|
|
6
6
|
var classVarianceAuthority = require('class-variance-authority');
|
|
7
7
|
var React27 = require('react');
|
|
8
|
+
var accordion = require('@base-ui/react/accordion');
|
|
9
|
+
var checkbox = require('@base-ui/react/checkbox');
|
|
10
|
+
var collapsible = require('@base-ui/react/collapsible');
|
|
11
|
+
var progress = require('@base-ui/react/progress');
|
|
12
|
+
var radio = require('@base-ui/react/radio');
|
|
13
|
+
var radioGroup = require('@base-ui/react/radio-group');
|
|
14
|
+
var scrollArea = require('@base-ui/react/scroll-area');
|
|
15
|
+
var separator = require('@base-ui/react/separator');
|
|
16
|
+
var slider = require('@base-ui/react/slider');
|
|
17
|
+
var tabs = require('@base-ui/react/tabs');
|
|
18
|
+
var tooltip = require('@base-ui/react/tooltip');
|
|
8
19
|
var avatar = require('@base-ui/react/avatar');
|
|
9
20
|
var input = require('@base-ui/react/input');
|
|
10
21
|
var field = require('@base-ui/react/field');
|
|
@@ -35,7 +46,7 @@ function _interopNamespace(e) {
|
|
|
35
46
|
var React27__namespace = /*#__PURE__*/_interopNamespace(React27);
|
|
36
47
|
|
|
37
48
|
// src/version.ts
|
|
38
|
-
var version = "0.
|
|
49
|
+
var version = "0.3.0-alpha";
|
|
39
50
|
function Placeholder({ label = "mosaic-blocks placeholder" }) {
|
|
40
51
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { "data-mosaic-block": "placeholder", children: label });
|
|
41
52
|
}
|
|
@@ -1009,13 +1020,537 @@ function useMediaQuery(query) {
|
|
|
1009
1020
|
function cn13(...classes) {
|
|
1010
1021
|
return classes.filter(Boolean).join(" ");
|
|
1011
1022
|
}
|
|
1023
|
+
function MosaicAccordion({ className, ref, ...props }) {
|
|
1024
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1025
|
+
accordion.Accordion.Root,
|
|
1026
|
+
{
|
|
1027
|
+
ref,
|
|
1028
|
+
"data-slot": "accordion",
|
|
1029
|
+
className: cn13("w-full divide-y divide-border", className),
|
|
1030
|
+
...props
|
|
1031
|
+
}
|
|
1032
|
+
);
|
|
1033
|
+
}
|
|
1034
|
+
MosaicAccordion.displayName = "MosaicAccordion";
|
|
1035
|
+
function MosaicAccordionItem({ className, ref, ...props }) {
|
|
1036
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1037
|
+
accordion.Accordion.Item,
|
|
1038
|
+
{
|
|
1039
|
+
ref,
|
|
1040
|
+
"data-slot": "accordion-item",
|
|
1041
|
+
className: cn13("py-0", className),
|
|
1042
|
+
...props
|
|
1043
|
+
}
|
|
1044
|
+
);
|
|
1045
|
+
}
|
|
1046
|
+
MosaicAccordionItem.displayName = "MosaicAccordionItem";
|
|
1047
|
+
function MosaicAccordionTrigger({
|
|
1048
|
+
className,
|
|
1049
|
+
children,
|
|
1050
|
+
ref,
|
|
1051
|
+
...props
|
|
1052
|
+
}) {
|
|
1053
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1054
|
+
accordion.Accordion.Trigger,
|
|
1055
|
+
{
|
|
1056
|
+
ref,
|
|
1057
|
+
"data-slot": "accordion-trigger",
|
|
1058
|
+
className: cn13(
|
|
1059
|
+
"flex w-full flex-1 items-center justify-between py-4",
|
|
1060
|
+
"text-sm font-medium text-foreground",
|
|
1061
|
+
"outline-none transition-all",
|
|
1062
|
+
"hover:text-foreground/80",
|
|
1063
|
+
"focus-visible:ring-ring focus-visible:ring-[3px]",
|
|
1064
|
+
"disabled:cursor-not-allowed disabled:opacity-50",
|
|
1065
|
+
"[&>svg]:transition-transform [&>svg]:duration-200",
|
|
1066
|
+
"data-[panel-open]:[&>svg]:rotate-180",
|
|
1067
|
+
className
|
|
1068
|
+
),
|
|
1069
|
+
...props,
|
|
1070
|
+
children: [
|
|
1071
|
+
children,
|
|
1072
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1073
|
+
"svg",
|
|
1074
|
+
{
|
|
1075
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1076
|
+
viewBox: "0 0 24 24",
|
|
1077
|
+
fill: "none",
|
|
1078
|
+
stroke: "currentColor",
|
|
1079
|
+
strokeWidth: "2",
|
|
1080
|
+
strokeLinecap: "round",
|
|
1081
|
+
strokeLinejoin: "round",
|
|
1082
|
+
"aria-hidden": "true",
|
|
1083
|
+
className: "size-4 shrink-0 text-muted-foreground",
|
|
1084
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "m6 9 6 6 6-6" })
|
|
1085
|
+
}
|
|
1086
|
+
)
|
|
1087
|
+
]
|
|
1088
|
+
}
|
|
1089
|
+
);
|
|
1090
|
+
}
|
|
1091
|
+
MosaicAccordionTrigger.displayName = "MosaicAccordionTrigger";
|
|
1092
|
+
function MosaicAccordionPanel({ className, ref, ...props }) {
|
|
1093
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1094
|
+
accordion.Accordion.Panel,
|
|
1095
|
+
{
|
|
1096
|
+
ref,
|
|
1097
|
+
"data-slot": "accordion-panel",
|
|
1098
|
+
className: cn13("overflow-hidden text-sm text-muted-foreground", "transition-all", className),
|
|
1099
|
+
...props
|
|
1100
|
+
}
|
|
1101
|
+
);
|
|
1102
|
+
}
|
|
1103
|
+
MosaicAccordionPanel.displayName = "MosaicAccordionPanel";
|
|
1104
|
+
function cn14(...classes) {
|
|
1105
|
+
return classes.filter(Boolean).join(" ");
|
|
1106
|
+
}
|
|
1107
|
+
function MosaicCheckbox({ className, ref, ...props }) {
|
|
1108
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1109
|
+
checkbox.Checkbox.Root,
|
|
1110
|
+
{
|
|
1111
|
+
ref,
|
|
1112
|
+
"data-slot": "checkbox",
|
|
1113
|
+
className: cn14(
|
|
1114
|
+
"peer size-4 shrink-0 cursor-pointer",
|
|
1115
|
+
"rounded-sm border border-border bg-background",
|
|
1116
|
+
"outline-none transition-colors",
|
|
1117
|
+
"focus-visible:ring-ring focus-visible:ring-[3px]",
|
|
1118
|
+
// Checked state
|
|
1119
|
+
"data-[checked]:border-foreground data-[checked]:bg-foreground",
|
|
1120
|
+
// Indeterminate
|
|
1121
|
+
"data-[indeterminate]:border-foreground data-[indeterminate]:bg-foreground",
|
|
1122
|
+
// Disabled
|
|
1123
|
+
"data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50",
|
|
1124
|
+
className
|
|
1125
|
+
),
|
|
1126
|
+
...props,
|
|
1127
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1128
|
+
checkbox.Checkbox.Indicator,
|
|
1129
|
+
{
|
|
1130
|
+
"data-slot": "checkbox-indicator",
|
|
1131
|
+
className: "flex items-center justify-center text-background",
|
|
1132
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1133
|
+
"svg",
|
|
1134
|
+
{
|
|
1135
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1136
|
+
viewBox: "0 0 24 24",
|
|
1137
|
+
fill: "none",
|
|
1138
|
+
stroke: "currentColor",
|
|
1139
|
+
strokeWidth: "3",
|
|
1140
|
+
strokeLinecap: "round",
|
|
1141
|
+
strokeLinejoin: "round",
|
|
1142
|
+
"aria-hidden": "true",
|
|
1143
|
+
className: "size-3",
|
|
1144
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M20 6 9 17l-5-5" })
|
|
1145
|
+
}
|
|
1146
|
+
)
|
|
1147
|
+
}
|
|
1148
|
+
)
|
|
1149
|
+
}
|
|
1150
|
+
);
|
|
1151
|
+
}
|
|
1152
|
+
MosaicCheckbox.displayName = "MosaicCheckbox";
|
|
1153
|
+
function cn15(...classes) {
|
|
1154
|
+
return classes.filter(Boolean).join(" ");
|
|
1155
|
+
}
|
|
1156
|
+
function MosaicCollapsible({ className, ref, ...props }) {
|
|
1157
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1158
|
+
collapsible.Collapsible.Root,
|
|
1159
|
+
{
|
|
1160
|
+
ref,
|
|
1161
|
+
"data-slot": "collapsible",
|
|
1162
|
+
className: cn15("w-full", className),
|
|
1163
|
+
...props
|
|
1164
|
+
}
|
|
1165
|
+
);
|
|
1166
|
+
}
|
|
1167
|
+
MosaicCollapsible.displayName = "MosaicCollapsible";
|
|
1168
|
+
function MosaicCollapsibleTrigger({
|
|
1169
|
+
className,
|
|
1170
|
+
ref,
|
|
1171
|
+
...props
|
|
1172
|
+
}) {
|
|
1173
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1174
|
+
collapsible.Collapsible.Trigger,
|
|
1175
|
+
{
|
|
1176
|
+
ref,
|
|
1177
|
+
"data-slot": "collapsible-trigger",
|
|
1178
|
+
className: cn15(
|
|
1179
|
+
"inline-flex w-full items-center justify-between gap-2",
|
|
1180
|
+
"rounded-md px-0 py-2 text-sm font-medium",
|
|
1181
|
+
"text-foreground outline-none transition-colors",
|
|
1182
|
+
"hover:text-foreground/80",
|
|
1183
|
+
"focus-visible:ring-ring focus-visible:ring-[3px]",
|
|
1184
|
+
"disabled:cursor-not-allowed disabled:opacity-50",
|
|
1185
|
+
"[&>svg]:transition-transform [&>svg]:duration-200",
|
|
1186
|
+
"data-[panel-open]:[&>svg]:rotate-180",
|
|
1187
|
+
className
|
|
1188
|
+
),
|
|
1189
|
+
...props
|
|
1190
|
+
}
|
|
1191
|
+
);
|
|
1192
|
+
}
|
|
1193
|
+
MosaicCollapsibleTrigger.displayName = "MosaicCollapsibleTrigger";
|
|
1194
|
+
function MosaicCollapsiblePanel({ className, ref, ...props }) {
|
|
1195
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1196
|
+
collapsible.Collapsible.Panel,
|
|
1197
|
+
{
|
|
1198
|
+
ref,
|
|
1199
|
+
"data-slot": "collapsible-panel",
|
|
1200
|
+
className: cn15(
|
|
1201
|
+
"overflow-hidden text-sm transition-all",
|
|
1202
|
+
"data-[open]:animate-in data-[closed]:animate-out",
|
|
1203
|
+
className
|
|
1204
|
+
),
|
|
1205
|
+
...props
|
|
1206
|
+
}
|
|
1207
|
+
);
|
|
1208
|
+
}
|
|
1209
|
+
MosaicCollapsiblePanel.displayName = "MosaicCollapsiblePanel";
|
|
1210
|
+
function cn16(...classes) {
|
|
1211
|
+
return classes.filter(Boolean).join(" ");
|
|
1212
|
+
}
|
|
1213
|
+
function MosaicProgress({
|
|
1214
|
+
className,
|
|
1215
|
+
value,
|
|
1216
|
+
max = 100,
|
|
1217
|
+
ref,
|
|
1218
|
+
...props
|
|
1219
|
+
}) {
|
|
1220
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1221
|
+
progress.Progress.Root,
|
|
1222
|
+
{
|
|
1223
|
+
ref,
|
|
1224
|
+
"data-slot": "progress",
|
|
1225
|
+
value,
|
|
1226
|
+
max,
|
|
1227
|
+
className: cn16("w-full", className),
|
|
1228
|
+
...props,
|
|
1229
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1230
|
+
progress.Progress.Track,
|
|
1231
|
+
{
|
|
1232
|
+
"data-slot": "progress-track",
|
|
1233
|
+
className: "relative h-2 w-full overflow-hidden rounded-full bg-secondary",
|
|
1234
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1235
|
+
progress.Progress.Indicator,
|
|
1236
|
+
{
|
|
1237
|
+
"data-slot": "progress-indicator",
|
|
1238
|
+
className: "h-full w-full flex-1 rounded-full bg-foreground transition-transform duration-300 ease-in-out",
|
|
1239
|
+
style: { transform: `translateX(-${100 - (value ?? 0)}%)` }
|
|
1240
|
+
}
|
|
1241
|
+
)
|
|
1242
|
+
}
|
|
1243
|
+
)
|
|
1244
|
+
}
|
|
1245
|
+
);
|
|
1246
|
+
}
|
|
1247
|
+
MosaicProgress.displayName = "MosaicProgress";
|
|
1248
|
+
function cn17(...classes) {
|
|
1249
|
+
return classes.filter(Boolean).join(" ");
|
|
1250
|
+
}
|
|
1251
|
+
function MosaicRadioGroup({ className, ref, ...props }) {
|
|
1252
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1253
|
+
radioGroup.RadioGroup,
|
|
1254
|
+
{
|
|
1255
|
+
ref,
|
|
1256
|
+
"data-slot": "radio-group",
|
|
1257
|
+
className: cn17("flex flex-col gap-2", className),
|
|
1258
|
+
...props
|
|
1259
|
+
}
|
|
1260
|
+
);
|
|
1261
|
+
}
|
|
1262
|
+
MosaicRadioGroup.displayName = "MosaicRadioGroup";
|
|
1263
|
+
function MosaicRadioGroupItem({
|
|
1264
|
+
className,
|
|
1265
|
+
children,
|
|
1266
|
+
ref,
|
|
1267
|
+
...props
|
|
1268
|
+
}) {
|
|
1269
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1270
|
+
radio.Radio.Root,
|
|
1271
|
+
{
|
|
1272
|
+
ref,
|
|
1273
|
+
"data-slot": "radio",
|
|
1274
|
+
className: cn17(
|
|
1275
|
+
"flex items-center gap-2 text-sm font-medium",
|
|
1276
|
+
"cursor-pointer select-none",
|
|
1277
|
+
"data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50",
|
|
1278
|
+
className
|
|
1279
|
+
),
|
|
1280
|
+
...props,
|
|
1281
|
+
children: [
|
|
1282
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1283
|
+
"span",
|
|
1284
|
+
{
|
|
1285
|
+
className: cn17(
|
|
1286
|
+
"flex size-4 shrink-0 items-center justify-center",
|
|
1287
|
+
"rounded-full border border-border bg-background",
|
|
1288
|
+
"outline-none transition-colors",
|
|
1289
|
+
"focus-visible:ring-ring focus-visible:ring-[3px]",
|
|
1290
|
+
"peer-data-[checked]:border-foreground"
|
|
1291
|
+
),
|
|
1292
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(radio.Radio.Indicator, { "data-slot": "radio-indicator", className: "flex items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "size-2 rounded-full bg-foreground" }) })
|
|
1293
|
+
}
|
|
1294
|
+
),
|
|
1295
|
+
children
|
|
1296
|
+
]
|
|
1297
|
+
}
|
|
1298
|
+
);
|
|
1299
|
+
}
|
|
1300
|
+
MosaicRadioGroupItem.displayName = "MosaicRadioGroupItem";
|
|
1301
|
+
function cn18(...classes) {
|
|
1302
|
+
return classes.filter(Boolean).join(" ");
|
|
1303
|
+
}
|
|
1304
|
+
function MosaicScrollArea({
|
|
1305
|
+
className,
|
|
1306
|
+
horizontal = false,
|
|
1307
|
+
children,
|
|
1308
|
+
ref,
|
|
1309
|
+
...props
|
|
1310
|
+
}) {
|
|
1311
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1312
|
+
scrollArea.ScrollArea.Root,
|
|
1313
|
+
{
|
|
1314
|
+
ref,
|
|
1315
|
+
"data-slot": "scroll-area",
|
|
1316
|
+
className: cn18("relative overflow-hidden", className),
|
|
1317
|
+
...props,
|
|
1318
|
+
children: [
|
|
1319
|
+
/* @__PURE__ */ jsxRuntime.jsx(scrollArea.ScrollArea.Viewport, { "data-slot": "scroll-area-viewport", className: "size-full rounded-[inherit]", children: /* @__PURE__ */ jsxRuntime.jsx(scrollArea.ScrollArea.Content, { children }) }),
|
|
1320
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1321
|
+
scrollArea.ScrollArea.Scrollbar,
|
|
1322
|
+
{
|
|
1323
|
+
"data-slot": "scroll-area-scrollbar",
|
|
1324
|
+
orientation: "vertical",
|
|
1325
|
+
className: "flex w-2.5 touch-none select-none border-l border-l-transparent p-px transition-colors",
|
|
1326
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(scrollArea.ScrollArea.Thumb, { className: "relative flex-1 rounded-full bg-border" })
|
|
1327
|
+
}
|
|
1328
|
+
),
|
|
1329
|
+
horizontal && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1330
|
+
scrollArea.ScrollArea.Scrollbar,
|
|
1331
|
+
{
|
|
1332
|
+
"data-slot": "scroll-area-scrollbar-h",
|
|
1333
|
+
orientation: "horizontal",
|
|
1334
|
+
className: "flex h-2.5 touch-none select-none flex-col border-t border-t-transparent p-px transition-colors",
|
|
1335
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(scrollArea.ScrollArea.Thumb, { className: "relative flex-1 rounded-full bg-border" })
|
|
1336
|
+
}
|
|
1337
|
+
),
|
|
1338
|
+
/* @__PURE__ */ jsxRuntime.jsx(scrollArea.ScrollArea.Corner, {})
|
|
1339
|
+
]
|
|
1340
|
+
}
|
|
1341
|
+
);
|
|
1342
|
+
}
|
|
1343
|
+
MosaicScrollArea.displayName = "MosaicScrollArea";
|
|
1344
|
+
function cn19(...classes) {
|
|
1345
|
+
return classes.filter(Boolean).join(" ");
|
|
1346
|
+
}
|
|
1347
|
+
function MosaicSeparator({
|
|
1348
|
+
className,
|
|
1349
|
+
orientation = "horizontal",
|
|
1350
|
+
ref,
|
|
1351
|
+
...props
|
|
1352
|
+
}) {
|
|
1353
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1354
|
+
separator.Separator,
|
|
1355
|
+
{
|
|
1356
|
+
ref,
|
|
1357
|
+
"data-slot": "separator",
|
|
1358
|
+
orientation,
|
|
1359
|
+
className: cn19(
|
|
1360
|
+
"shrink-0 bg-border",
|
|
1361
|
+
orientation === "vertical" ? "h-full w-px" : "h-px w-full",
|
|
1362
|
+
className
|
|
1363
|
+
),
|
|
1364
|
+
...props
|
|
1365
|
+
}
|
|
1366
|
+
);
|
|
1367
|
+
}
|
|
1368
|
+
MosaicSeparator.displayName = "MosaicSeparator";
|
|
1369
|
+
function cn20(...classes) {
|
|
1370
|
+
return classes.filter(Boolean).join(" ");
|
|
1371
|
+
}
|
|
1372
|
+
function MosaicSlider({ className, ref, ...props }) {
|
|
1373
|
+
const isRange = Array.isArray(props.defaultValue ?? props.value);
|
|
1374
|
+
const thumbCount = isRange ? (props.defaultValue ?? props.value).length : 1;
|
|
1375
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1376
|
+
slider.Slider.Root,
|
|
1377
|
+
{
|
|
1378
|
+
ref,
|
|
1379
|
+
"data-slot": "slider",
|
|
1380
|
+
className: cn20("w-full touch-none select-none", className),
|
|
1381
|
+
...props,
|
|
1382
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(slider.Slider.Control, { className: "flex items-center", children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1383
|
+
slider.Slider.Track,
|
|
1384
|
+
{
|
|
1385
|
+
"data-slot": "slider-track",
|
|
1386
|
+
className: "relative h-2 w-full grow rounded-full bg-secondary",
|
|
1387
|
+
children: [
|
|
1388
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1389
|
+
slider.Slider.Indicator,
|
|
1390
|
+
{
|
|
1391
|
+
"data-slot": "slider-indicator",
|
|
1392
|
+
className: "absolute h-full rounded-full bg-foreground"
|
|
1393
|
+
}
|
|
1394
|
+
),
|
|
1395
|
+
Array.from({ length: thumbCount }).map((_, i) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1396
|
+
slider.Slider.Thumb,
|
|
1397
|
+
{
|
|
1398
|
+
"data-slot": "slider-thumb",
|
|
1399
|
+
className: cn20(
|
|
1400
|
+
"block size-5 rounded-full",
|
|
1401
|
+
"border-2 border-foreground bg-background",
|
|
1402
|
+
"shadow-sm outline-none transition-colors",
|
|
1403
|
+
"focus-visible:ring-ring focus-visible:ring-[3px]",
|
|
1404
|
+
"data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50"
|
|
1405
|
+
)
|
|
1406
|
+
},
|
|
1407
|
+
i
|
|
1408
|
+
))
|
|
1409
|
+
]
|
|
1410
|
+
}
|
|
1411
|
+
) })
|
|
1412
|
+
}
|
|
1413
|
+
);
|
|
1414
|
+
}
|
|
1415
|
+
MosaicSlider.displayName = "MosaicSlider";
|
|
1416
|
+
function cn21(...classes) {
|
|
1417
|
+
return classes.filter(Boolean).join(" ");
|
|
1418
|
+
}
|
|
1419
|
+
function MosaicTabs({ className, ref, ...props }) {
|
|
1420
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1421
|
+
tabs.Tabs.Root,
|
|
1422
|
+
{
|
|
1423
|
+
ref,
|
|
1424
|
+
"data-slot": "tabs",
|
|
1425
|
+
className: cn21("flex flex-col gap-2", className),
|
|
1426
|
+
...props
|
|
1427
|
+
}
|
|
1428
|
+
);
|
|
1429
|
+
}
|
|
1430
|
+
MosaicTabs.displayName = "MosaicTabs";
|
|
1431
|
+
function MosaicTabsList({ className, ref, ...props }) {
|
|
1432
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1433
|
+
tabs.Tabs.List,
|
|
1434
|
+
{
|
|
1435
|
+
ref,
|
|
1436
|
+
"data-slot": "tabs-list",
|
|
1437
|
+
className: cn21(
|
|
1438
|
+
"relative inline-flex items-center justify-start gap-1",
|
|
1439
|
+
"rounded-lg bg-muted p-1 text-muted-foreground",
|
|
1440
|
+
className
|
|
1441
|
+
),
|
|
1442
|
+
...props
|
|
1443
|
+
}
|
|
1444
|
+
);
|
|
1445
|
+
}
|
|
1446
|
+
MosaicTabsList.displayName = "MosaicTabsList";
|
|
1447
|
+
function MosaicTabsTrigger({ className, ref, ...props }) {
|
|
1448
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1449
|
+
tabs.Tabs.Tab,
|
|
1450
|
+
{
|
|
1451
|
+
ref,
|
|
1452
|
+
"data-slot": "tabs-trigger",
|
|
1453
|
+
className: cn21(
|
|
1454
|
+
"inline-flex items-center justify-center gap-1.5 whitespace-nowrap",
|
|
1455
|
+
"rounded-md px-3 py-1.5 text-sm font-medium",
|
|
1456
|
+
"outline-none transition-all",
|
|
1457
|
+
"focus-visible:ring-ring focus-visible:ring-[3px]",
|
|
1458
|
+
"disabled:cursor-not-allowed disabled:opacity-50",
|
|
1459
|
+
// Selected state
|
|
1460
|
+
"data-[selected]:bg-background data-[selected]:text-foreground data-[selected]:shadow-xs",
|
|
1461
|
+
// Unselected hover
|
|
1462
|
+
"hover:text-foreground",
|
|
1463
|
+
className
|
|
1464
|
+
),
|
|
1465
|
+
...props
|
|
1466
|
+
}
|
|
1467
|
+
);
|
|
1468
|
+
}
|
|
1469
|
+
MosaicTabsTrigger.displayName = "MosaicTabsTrigger";
|
|
1470
|
+
function MosaicTabsPanel({ className, ref, ...props }) {
|
|
1471
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1472
|
+
tabs.Tabs.Panel,
|
|
1473
|
+
{
|
|
1474
|
+
ref,
|
|
1475
|
+
"data-slot": "tabs-panel",
|
|
1476
|
+
className: cn21(
|
|
1477
|
+
"flex-1 outline-none",
|
|
1478
|
+
"focus-visible:ring-ring focus-visible:ring-[3px] focus-visible:rounded-md",
|
|
1479
|
+
className
|
|
1480
|
+
),
|
|
1481
|
+
...props
|
|
1482
|
+
}
|
|
1483
|
+
);
|
|
1484
|
+
}
|
|
1485
|
+
MosaicTabsPanel.displayName = "MosaicTabsPanel";
|
|
1486
|
+
function cn22(...classes) {
|
|
1487
|
+
return classes.filter(Boolean).join(" ");
|
|
1488
|
+
}
|
|
1489
|
+
function MosaicTextarea({ className, ref, ...props }) {
|
|
1490
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1491
|
+
"textarea",
|
|
1492
|
+
{
|
|
1493
|
+
ref,
|
|
1494
|
+
"data-slot": "textarea",
|
|
1495
|
+
className: cn22(
|
|
1496
|
+
"flex min-h-[80px] w-full resize-y",
|
|
1497
|
+
"rounded-md border border-border bg-background px-3 py-2",
|
|
1498
|
+
"text-sm text-foreground shadow-xs",
|
|
1499
|
+
"placeholder:text-muted-foreground",
|
|
1500
|
+
"outline-none transition-colors",
|
|
1501
|
+
"focus-visible:ring-ring focus-visible:ring-[3px]",
|
|
1502
|
+
"disabled:cursor-not-allowed disabled:opacity-50",
|
|
1503
|
+
className
|
|
1504
|
+
),
|
|
1505
|
+
...props
|
|
1506
|
+
}
|
|
1507
|
+
);
|
|
1508
|
+
}
|
|
1509
|
+
MosaicTextarea.displayName = "MosaicTextarea";
|
|
1510
|
+
function cn23(...classes) {
|
|
1511
|
+
return classes.filter(Boolean).join(" ");
|
|
1512
|
+
}
|
|
1513
|
+
function MosaicTooltip({
|
|
1514
|
+
children,
|
|
1515
|
+
content,
|
|
1516
|
+
delay = 600,
|
|
1517
|
+
side = "top",
|
|
1518
|
+
align = "center",
|
|
1519
|
+
className
|
|
1520
|
+
}) {
|
|
1521
|
+
return /* @__PURE__ */ jsxRuntime.jsx(tooltip.Tooltip.Provider, { delay, children: /* @__PURE__ */ jsxRuntime.jsxs(tooltip.Tooltip.Root, { children: [
|
|
1522
|
+
/* @__PURE__ */ jsxRuntime.jsx(tooltip.Tooltip.Trigger, { "data-slot": "tooltip-trigger", render: children }),
|
|
1523
|
+
/* @__PURE__ */ jsxRuntime.jsx(tooltip.Tooltip.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(tooltip.Tooltip.Positioner, { side, align, sideOffset: 6, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1524
|
+
tooltip.Tooltip.Popup,
|
|
1525
|
+
{
|
|
1526
|
+
"data-slot": "tooltip-content",
|
|
1527
|
+
className: cn23(
|
|
1528
|
+
"z-50 max-w-xs overflow-hidden rounded-md",
|
|
1529
|
+
"border border-border bg-foreground px-3 py-1.5",
|
|
1530
|
+
"text-xs text-background shadow-md",
|
|
1531
|
+
"origin-[var(--transform-origin)]",
|
|
1532
|
+
"transition-[transform,scale,opacity]",
|
|
1533
|
+
"data-[open]:scale-100 data-[open]:opacity-100",
|
|
1534
|
+
"data-[ending-style]:scale-95 data-[ending-style]:opacity-0",
|
|
1535
|
+
"data-[starting-style]:scale-95 data-[starting-style]:opacity-0",
|
|
1536
|
+
className
|
|
1537
|
+
),
|
|
1538
|
+
children: content
|
|
1539
|
+
}
|
|
1540
|
+
) }) })
|
|
1541
|
+
] }) });
|
|
1542
|
+
}
|
|
1543
|
+
MosaicTooltip.displayName = "MosaicTooltip";
|
|
1544
|
+
function cn24(...classes) {
|
|
1545
|
+
return classes.filter(Boolean).join(" ");
|
|
1546
|
+
}
|
|
1012
1547
|
function MosaicCard({ className, ref, ...props }) {
|
|
1013
1548
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1014
1549
|
"div",
|
|
1015
1550
|
{
|
|
1016
1551
|
ref,
|
|
1017
1552
|
"data-slot": "card",
|
|
1018
|
-
className:
|
|
1553
|
+
className: cn24(
|
|
1019
1554
|
"bg-card text-card-foreground rounded-xl border border-border shadow-sm",
|
|
1020
1555
|
className
|
|
1021
1556
|
),
|
|
@@ -1030,7 +1565,7 @@ function MosaicCardHeader({ className, ref, ...props }) {
|
|
|
1030
1565
|
{
|
|
1031
1566
|
ref,
|
|
1032
1567
|
"data-slot": "card-header",
|
|
1033
|
-
className:
|
|
1568
|
+
className: cn24("flex flex-col gap-1.5 p-6", className),
|
|
1034
1569
|
...props
|
|
1035
1570
|
}
|
|
1036
1571
|
);
|
|
@@ -1042,7 +1577,7 @@ function MosaicCardTitle({ className, ref, ...props }) {
|
|
|
1042
1577
|
{
|
|
1043
1578
|
ref,
|
|
1044
1579
|
"data-slot": "card-title",
|
|
1045
|
-
className:
|
|
1580
|
+
className: cn24("text-lg font-semibold leading-none tracking-tight", className),
|
|
1046
1581
|
...props
|
|
1047
1582
|
}
|
|
1048
1583
|
);
|
|
@@ -1054,14 +1589,14 @@ function MosaicCardDescription({ className, ref, ...props }) {
|
|
|
1054
1589
|
{
|
|
1055
1590
|
ref,
|
|
1056
1591
|
"data-slot": "card-description",
|
|
1057
|
-
className:
|
|
1592
|
+
className: cn24("text-sm text-muted-foreground", className),
|
|
1058
1593
|
...props
|
|
1059
1594
|
}
|
|
1060
1595
|
);
|
|
1061
1596
|
}
|
|
1062
1597
|
MosaicCardDescription.displayName = "MosaicCardDescription";
|
|
1063
1598
|
function MosaicCardContent({ className, ref, ...props }) {
|
|
1064
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { ref, "data-slot": "card-content", className:
|
|
1599
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { ref, "data-slot": "card-content", className: cn24("p-6 pt-0", className), ...props });
|
|
1065
1600
|
}
|
|
1066
1601
|
MosaicCardContent.displayName = "MosaicCardContent";
|
|
1067
1602
|
function MosaicCardFooter({ className, ref, ...props }) {
|
|
@@ -1070,7 +1605,7 @@ function MosaicCardFooter({ className, ref, ...props }) {
|
|
|
1070
1605
|
{
|
|
1071
1606
|
ref,
|
|
1072
1607
|
"data-slot": "card-footer",
|
|
1073
|
-
className:
|
|
1608
|
+
className: cn24("flex items-center p-6 pt-0", className),
|
|
1074
1609
|
...props
|
|
1075
1610
|
}
|
|
1076
1611
|
);
|
|
@@ -1099,7 +1634,7 @@ var badgeVariants = classVarianceAuthority.cva(
|
|
|
1099
1634
|
}
|
|
1100
1635
|
}
|
|
1101
1636
|
);
|
|
1102
|
-
function
|
|
1637
|
+
function cn25(...classes) {
|
|
1103
1638
|
return classes.filter(Boolean).join(" ");
|
|
1104
1639
|
}
|
|
1105
1640
|
function MosaicBadge({ className, variant, ref, ...props }) {
|
|
@@ -1108,13 +1643,13 @@ function MosaicBadge({ className, variant, ref, ...props }) {
|
|
|
1108
1643
|
{
|
|
1109
1644
|
ref,
|
|
1110
1645
|
"data-slot": "badge",
|
|
1111
|
-
className:
|
|
1646
|
+
className: cn25(badgeVariants({ variant }), className),
|
|
1112
1647
|
...props
|
|
1113
1648
|
}
|
|
1114
1649
|
);
|
|
1115
1650
|
}
|
|
1116
1651
|
MosaicBadge.displayName = "MosaicBadge";
|
|
1117
|
-
function
|
|
1652
|
+
function cn26(...classes) {
|
|
1118
1653
|
return classes.filter(Boolean).join(" ");
|
|
1119
1654
|
}
|
|
1120
1655
|
function MosaicAvatar({ src, alt, fallback, className, ref, ...props }) {
|
|
@@ -1123,7 +1658,7 @@ function MosaicAvatar({ src, alt, fallback, className, ref, ...props }) {
|
|
|
1123
1658
|
{
|
|
1124
1659
|
ref,
|
|
1125
1660
|
"data-slot": "avatar",
|
|
1126
|
-
className:
|
|
1661
|
+
className: cn26(
|
|
1127
1662
|
"relative flex size-10 shrink-0 overflow-hidden rounded-full",
|
|
1128
1663
|
"bg-muted text-muted-foreground",
|
|
1129
1664
|
className
|
|
@@ -1152,7 +1687,7 @@ function MosaicAvatar({ src, alt, fallback, className, ref, ...props }) {
|
|
|
1152
1687
|
);
|
|
1153
1688
|
}
|
|
1154
1689
|
MosaicAvatar.displayName = "MosaicAvatar";
|
|
1155
|
-
function
|
|
1690
|
+
function cn27(...classes) {
|
|
1156
1691
|
return classes.filter(Boolean).join(" ");
|
|
1157
1692
|
}
|
|
1158
1693
|
function MosaicInput({ className, ref, ...props }) {
|
|
@@ -1161,7 +1696,7 @@ function MosaicInput({ className, ref, ...props }) {
|
|
|
1161
1696
|
{
|
|
1162
1697
|
ref,
|
|
1163
1698
|
"data-slot": "input",
|
|
1164
|
-
className:
|
|
1699
|
+
className: cn27(
|
|
1165
1700
|
"flex h-9 w-full rounded-md border border-border bg-background px-3 py-1",
|
|
1166
1701
|
"text-sm text-foreground shadow-xs",
|
|
1167
1702
|
"placeholder:text-muted-foreground",
|
|
@@ -1175,7 +1710,7 @@ function MosaicInput({ className, ref, ...props }) {
|
|
|
1175
1710
|
);
|
|
1176
1711
|
}
|
|
1177
1712
|
MosaicInput.displayName = "MosaicInput";
|
|
1178
|
-
function
|
|
1713
|
+
function cn28(...classes) {
|
|
1179
1714
|
return classes.filter(Boolean).join(" ");
|
|
1180
1715
|
}
|
|
1181
1716
|
function MosaicInputGroup({
|
|
@@ -1191,7 +1726,7 @@ function MosaicInputGroup({
|
|
|
1191
1726
|
{
|
|
1192
1727
|
ref,
|
|
1193
1728
|
"data-slot": "input-group",
|
|
1194
|
-
className:
|
|
1729
|
+
className: cn28("flex items-center", className),
|
|
1195
1730
|
...props,
|
|
1196
1731
|
children: [
|
|
1197
1732
|
prefix ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -1216,7 +1751,7 @@ function MosaicInputGroup({
|
|
|
1216
1751
|
);
|
|
1217
1752
|
}
|
|
1218
1753
|
MosaicInputGroup.displayName = "MosaicInputGroup";
|
|
1219
|
-
function
|
|
1754
|
+
function cn29(...classes) {
|
|
1220
1755
|
return classes.filter(Boolean).join(" ");
|
|
1221
1756
|
}
|
|
1222
1757
|
function MosaicFieldRoot({ className, children, ref, ...props }) {
|
|
@@ -1225,7 +1760,7 @@ function MosaicFieldRoot({ className, children, ref, ...props }) {
|
|
|
1225
1760
|
{
|
|
1226
1761
|
ref,
|
|
1227
1762
|
"data-slot": "field",
|
|
1228
|
-
className:
|
|
1763
|
+
className: cn29("flex flex-col gap-1.5", className),
|
|
1229
1764
|
...props,
|
|
1230
1765
|
children
|
|
1231
1766
|
}
|
|
@@ -1237,7 +1772,7 @@ function MosaicFieldLabel({ className, children, ref, ...props }) {
|
|
|
1237
1772
|
field.Field.Label,
|
|
1238
1773
|
{
|
|
1239
1774
|
ref,
|
|
1240
|
-
className:
|
|
1775
|
+
className: cn29(
|
|
1241
1776
|
"text-sm font-medium leading-none text-foreground",
|
|
1242
1777
|
"data-[disabled]:opacity-50",
|
|
1243
1778
|
className
|
|
@@ -1249,7 +1784,7 @@ function MosaicFieldLabel({ className, children, ref, ...props }) {
|
|
|
1249
1784
|
}
|
|
1250
1785
|
MosaicFieldLabel.displayName = "MosaicField.Label";
|
|
1251
1786
|
function MosaicFieldControl({ className, ref, ...props }) {
|
|
1252
|
-
return /* @__PURE__ */ jsxRuntime.jsx(field.Field.Control, { ref, className:
|
|
1787
|
+
return /* @__PURE__ */ jsxRuntime.jsx(field.Field.Control, { ref, className: cn29(className), ...props });
|
|
1253
1788
|
}
|
|
1254
1789
|
MosaicFieldControl.displayName = "MosaicField.Control";
|
|
1255
1790
|
function MosaicFieldDescription({
|
|
@@ -1262,7 +1797,7 @@ function MosaicFieldDescription({
|
|
|
1262
1797
|
field.Field.Description,
|
|
1263
1798
|
{
|
|
1264
1799
|
ref,
|
|
1265
|
-
className:
|
|
1800
|
+
className: cn29("text-xs text-muted-foreground", className),
|
|
1266
1801
|
...props,
|
|
1267
1802
|
children
|
|
1268
1803
|
}
|
|
@@ -1282,7 +1817,7 @@ function MosaicFieldError({
|
|
|
1282
1817
|
{
|
|
1283
1818
|
ref,
|
|
1284
1819
|
match: show === true ? true : void 0,
|
|
1285
|
-
className:
|
|
1820
|
+
className: cn29("text-xs font-medium text-destructive", className),
|
|
1286
1821
|
...props,
|
|
1287
1822
|
children
|
|
1288
1823
|
}
|
|
@@ -1295,7 +1830,7 @@ var MosaicField = Object.assign(MosaicFieldRoot, {
|
|
|
1295
1830
|
Description: MosaicFieldDescription,
|
|
1296
1831
|
Error: MosaicFieldError
|
|
1297
1832
|
});
|
|
1298
|
-
function
|
|
1833
|
+
function cn30(...classes) {
|
|
1299
1834
|
return classes.filter(Boolean).join(" ");
|
|
1300
1835
|
}
|
|
1301
1836
|
function MosaicSwitch({ className, ref, ...props }) {
|
|
@@ -1304,7 +1839,7 @@ function MosaicSwitch({ className, ref, ...props }) {
|
|
|
1304
1839
|
{
|
|
1305
1840
|
ref,
|
|
1306
1841
|
"data-slot": "switch",
|
|
1307
|
-
className:
|
|
1842
|
+
className: cn30(
|
|
1308
1843
|
// Track
|
|
1309
1844
|
"relative inline-flex h-6 w-10 shrink-0 cursor-pointer items-center",
|
|
1310
1845
|
"rounded-full border-2 border-transparent outline-none",
|
|
@@ -1322,7 +1857,7 @@ function MosaicSwitch({ className, ref, ...props }) {
|
|
|
1322
1857
|
_switch.Switch.Thumb,
|
|
1323
1858
|
{
|
|
1324
1859
|
"data-slot": "switch-thumb",
|
|
1325
|
-
className:
|
|
1860
|
+
className: cn30(
|
|
1326
1861
|
"pointer-events-none block h-4 w-4 rounded-full",
|
|
1327
1862
|
"bg-background shadow-sm",
|
|
1328
1863
|
"translate-x-0 transition-transform",
|
|
@@ -1334,7 +1869,7 @@ function MosaicSwitch({ className, ref, ...props }) {
|
|
|
1334
1869
|
);
|
|
1335
1870
|
}
|
|
1336
1871
|
MosaicSwitch.displayName = "MosaicSwitch";
|
|
1337
|
-
function
|
|
1872
|
+
function cn31(...classes) {
|
|
1338
1873
|
return classes.filter(Boolean).join(" ");
|
|
1339
1874
|
}
|
|
1340
1875
|
function MosaicSelect({
|
|
@@ -1366,7 +1901,7 @@ function MosaicSelect({
|
|
|
1366
1901
|
select.Select.Trigger,
|
|
1367
1902
|
{
|
|
1368
1903
|
"data-slot": "select",
|
|
1369
|
-
className:
|
|
1904
|
+
className: cn31(
|
|
1370
1905
|
"inline-flex h-9 w-full min-w-[8rem] items-center justify-between gap-2",
|
|
1371
1906
|
"rounded-md border border-border bg-background px-3 py-2",
|
|
1372
1907
|
"text-sm text-foreground shadow-xs outline-none",
|
|
@@ -1386,7 +1921,7 @@ function MosaicSelect({
|
|
|
1386
1921
|
select.Select.Popup,
|
|
1387
1922
|
{
|
|
1388
1923
|
"data-slot": "select-popup",
|
|
1389
|
-
className:
|
|
1924
|
+
className: cn31(
|
|
1390
1925
|
"z-50 min-w-[8rem] overflow-hidden rounded-md border border-border",
|
|
1391
1926
|
"bg-popover p-1 text-popover-foreground shadow-md",
|
|
1392
1927
|
"origin-[var(--transform-origin)]",
|
|
@@ -1400,7 +1935,7 @@ function MosaicSelect({
|
|
|
1400
1935
|
{
|
|
1401
1936
|
value: item.value,
|
|
1402
1937
|
disabled: item.disabled,
|
|
1403
|
-
className:
|
|
1938
|
+
className: cn31(
|
|
1404
1939
|
"relative flex cursor-pointer select-none items-center rounded-sm px-2 py-1.5",
|
|
1405
1940
|
"text-sm text-popover-foreground outline-none",
|
|
1406
1941
|
"data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground",
|
|
@@ -1454,7 +1989,7 @@ function CheckIcon() {
|
|
|
1454
1989
|
}
|
|
1455
1990
|
);
|
|
1456
1991
|
}
|
|
1457
|
-
function
|
|
1992
|
+
function cn32(...classes) {
|
|
1458
1993
|
return classes.filter(Boolean).join(" ");
|
|
1459
1994
|
}
|
|
1460
1995
|
function MosaicCombobox({
|
|
@@ -1483,12 +2018,12 @@ function MosaicCombobox({
|
|
|
1483
2018
|
name,
|
|
1484
2019
|
onInputValueChange: setInputValue,
|
|
1485
2020
|
autoHighlight: true,
|
|
1486
|
-
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "combobox", className:
|
|
2021
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "combobox", className: cn32("relative w-full", className), children: [
|
|
1487
2022
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1488
2023
|
combobox.Combobox.Input,
|
|
1489
2024
|
{
|
|
1490
2025
|
placeholder,
|
|
1491
|
-
className:
|
|
2026
|
+
className: cn32(
|
|
1492
2027
|
"h-9 w-full rounded-md border border-border bg-background px-3 py-2",
|
|
1493
2028
|
"text-sm text-foreground shadow-xs outline-none",
|
|
1494
2029
|
"placeholder:text-muted-foreground",
|
|
@@ -1500,7 +2035,7 @@ function MosaicCombobox({
|
|
|
1500
2035
|
/* @__PURE__ */ jsxRuntime.jsx(combobox.Combobox.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(combobox.Combobox.Positioner, { sideOffset: 4, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1501
2036
|
combobox.Combobox.Popup,
|
|
1502
2037
|
{
|
|
1503
|
-
className:
|
|
2038
|
+
className: cn32(
|
|
1504
2039
|
"z-50 min-w-[8rem] overflow-hidden rounded-md border border-border",
|
|
1505
2040
|
"bg-popover p-1 text-popover-foreground shadow-md",
|
|
1506
2041
|
"origin-[var(--transform-origin)]",
|
|
@@ -1515,7 +2050,7 @@ function MosaicCombobox({
|
|
|
1515
2050
|
{
|
|
1516
2051
|
value: item.value,
|
|
1517
2052
|
disabled: item.disabled,
|
|
1518
|
-
className:
|
|
2053
|
+
className: cn32(
|
|
1519
2054
|
"relative flex cursor-pointer select-none items-center rounded-sm px-2 py-1.5",
|
|
1520
2055
|
"text-sm text-popover-foreground outline-none",
|
|
1521
2056
|
"data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground",
|
|
@@ -1534,7 +2069,7 @@ function MosaicCombobox({
|
|
|
1534
2069
|
}
|
|
1535
2070
|
);
|
|
1536
2071
|
}
|
|
1537
|
-
function
|
|
2072
|
+
function cn33(...classes) {
|
|
1538
2073
|
return classes.filter(Boolean).join(" ");
|
|
1539
2074
|
}
|
|
1540
2075
|
function MosaicDropdownMenu({
|
|
@@ -1551,7 +2086,7 @@ function MosaicDropdownMenu({
|
|
|
1551
2086
|
menu.Menu.Popup,
|
|
1552
2087
|
{
|
|
1553
2088
|
"data-slot": "dropdown-menu",
|
|
1554
|
-
className:
|
|
2089
|
+
className: cn33(
|
|
1555
2090
|
"z-50 min-w-[8rem] overflow-hidden rounded-md border border-border",
|
|
1556
2091
|
"bg-popover p-1 text-popover-foreground shadow-md",
|
|
1557
2092
|
"origin-[var(--transform-origin)]",
|
|
@@ -1568,7 +2103,7 @@ function MosaicDropdownMenu({
|
|
|
1568
2103
|
{
|
|
1569
2104
|
disabled: item.disabled,
|
|
1570
2105
|
onClick: () => onItemSelect?.(item.id),
|
|
1571
|
-
className:
|
|
2106
|
+
className: cn33(
|
|
1572
2107
|
"relative flex cursor-pointer select-none items-center rounded-sm px-2 py-1.5",
|
|
1573
2108
|
"text-sm text-popover-foreground outline-none",
|
|
1574
2109
|
"data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground",
|
|
@@ -1710,7 +2245,7 @@ function useDevice() {
|
|
|
1710
2245
|
}
|
|
1711
2246
|
return ctx;
|
|
1712
2247
|
}
|
|
1713
|
-
function
|
|
2248
|
+
function cn34(...classes) {
|
|
1714
2249
|
return classes.filter(Boolean).join(" ");
|
|
1715
2250
|
}
|
|
1716
2251
|
function MosaicAdaptiveGrid({
|
|
@@ -1729,14 +2264,14 @@ function MosaicAdaptiveGrid({
|
|
|
1729
2264
|
{
|
|
1730
2265
|
ref,
|
|
1731
2266
|
"data-slot": "adaptive-grid",
|
|
1732
|
-
className:
|
|
2267
|
+
className: cn34("grid", gap, className),
|
|
1733
2268
|
style: { gridTemplateColumns: `repeat(${cols}, minmax(0, 1fr))` },
|
|
1734
2269
|
children
|
|
1735
2270
|
}
|
|
1736
2271
|
);
|
|
1737
2272
|
}
|
|
1738
2273
|
MosaicAdaptiveGrid.displayName = "MosaicAdaptiveGrid";
|
|
1739
|
-
function
|
|
2274
|
+
function cn35(...classes) {
|
|
1740
2275
|
return classes.filter(Boolean).join(" ");
|
|
1741
2276
|
}
|
|
1742
2277
|
var ANIM_ID = "mosaic-adaptive-modal-kf";
|
|
@@ -1841,7 +2376,7 @@ function MosaicAdaptiveModal({
|
|
|
1841
2376
|
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1842
2377
|
"div",
|
|
1843
2378
|
{
|
|
1844
|
-
className:
|
|
2379
|
+
className: cn35(
|
|
1845
2380
|
"mosaic-sheet-panel relative w-full rounded-t-2xl border-t border-border bg-background",
|
|
1846
2381
|
"max-h-[90dvh] flex flex-col",
|
|
1847
2382
|
className
|
|
@@ -1874,7 +2409,7 @@ function MosaicAdaptiveModal({
|
|
|
1874
2409
|
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1875
2410
|
"div",
|
|
1876
2411
|
{
|
|
1877
|
-
className:
|
|
2412
|
+
className: cn35(
|
|
1878
2413
|
"mosaic-modal-panel relative w-[min(90vw,42rem)] rounded-xl border border-border bg-background shadow-xl",
|
|
1879
2414
|
"max-h-[90vh] flex flex-col",
|
|
1880
2415
|
className
|
|
@@ -1922,7 +2457,7 @@ function MosaicAdaptiveModal({
|
|
|
1922
2457
|
);
|
|
1923
2458
|
}
|
|
1924
2459
|
MosaicAdaptiveModal.displayName = "MosaicAdaptiveModal";
|
|
1925
|
-
function
|
|
2460
|
+
function cn36(...classes) {
|
|
1926
2461
|
return classes.filter(Boolean).join(" ");
|
|
1927
2462
|
}
|
|
1928
2463
|
function CheckIcon2() {
|
|
@@ -1979,7 +2514,7 @@ function MosaicAdaptiveNavigation({
|
|
|
1979
2514
|
{
|
|
1980
2515
|
ref,
|
|
1981
2516
|
"data-slot": "adaptive-navigation",
|
|
1982
|
-
className:
|
|
2517
|
+
className: cn36("space-y-3", className),
|
|
1983
2518
|
"aria-label": "Step navigation",
|
|
1984
2519
|
children: items.map((item, idx) => {
|
|
1985
2520
|
const isExpanded = expandedItems?.has(item.id) ?? false;
|
|
@@ -1997,7 +2532,7 @@ function MosaicAdaptiveNavigation({
|
|
|
1997
2532
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1998
2533
|
"div",
|
|
1999
2534
|
{
|
|
2000
|
-
className:
|
|
2535
|
+
className: cn36(
|
|
2001
2536
|
"flex h-8 w-8 shrink-0 items-center justify-center rounded-full text-xs font-bold",
|
|
2002
2537
|
item.isComplete ? "bg-green-500 text-white" : "bg-muted text-muted-foreground"
|
|
2003
2538
|
),
|
|
@@ -2031,7 +2566,7 @@ function MosaicAdaptiveNavigation({
|
|
|
2031
2566
|
{
|
|
2032
2567
|
ref,
|
|
2033
2568
|
"data-slot": "adaptive-navigation",
|
|
2034
|
-
className:
|
|
2569
|
+
className: cn36("w-full", className),
|
|
2035
2570
|
"aria-label": "Tab navigation",
|
|
2036
2571
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2037
2572
|
"div",
|
|
@@ -2048,7 +2583,7 @@ function MosaicAdaptiveNavigation({
|
|
|
2048
2583
|
role: "tab",
|
|
2049
2584
|
"aria-selected": isActive,
|
|
2050
2585
|
onClick: () => onItemChange(item.id),
|
|
2051
|
-
className:
|
|
2586
|
+
className: cn36(
|
|
2052
2587
|
"flex items-center justify-center gap-2 rounded-md px-3 py-2 text-sm font-medium transition-colors",
|
|
2053
2588
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1",
|
|
2054
2589
|
isActive ? "bg-primary text-primary-foreground shadow-sm" : "text-muted-foreground hover:text-foreground"
|
|
@@ -2057,7 +2592,7 @@ function MosaicAdaptiveNavigation({
|
|
|
2057
2592
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2058
2593
|
"div",
|
|
2059
2594
|
{
|
|
2060
|
-
className:
|
|
2595
|
+
className: cn36(
|
|
2061
2596
|
"flex h-6 w-6 shrink-0 items-center justify-center rounded-full text-xs font-bold",
|
|
2062
2597
|
item.isComplete ? "bg-green-500 text-white" : isActive ? "bg-primary-foreground/20 text-primary-foreground" : "bg-background text-muted-foreground"
|
|
2063
2598
|
),
|
|
@@ -2069,7 +2604,7 @@ function MosaicAdaptiveNavigation({
|
|
|
2069
2604
|
item.duration !== void 0 && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2070
2605
|
"span",
|
|
2071
2606
|
{
|
|
2072
|
-
className:
|
|
2607
|
+
className: cn36(
|
|
2073
2608
|
"rounded px-1 py-0.5 text-xs",
|
|
2074
2609
|
isActive ? "bg-primary-foreground/20" : "bg-muted"
|
|
2075
2610
|
),
|
|
@@ -2090,7 +2625,7 @@ function MosaicAdaptiveNavigation({
|
|
|
2090
2625
|
);
|
|
2091
2626
|
}
|
|
2092
2627
|
MosaicAdaptiveNavigation.displayName = "MosaicAdaptiveNavigation";
|
|
2093
|
-
function
|
|
2628
|
+
function cn37(...classes) {
|
|
2094
2629
|
return classes.filter(Boolean).join(" ");
|
|
2095
2630
|
}
|
|
2096
2631
|
var ANIM_ID2 = "mosaic-sidebar-kf";
|
|
@@ -2260,7 +2795,7 @@ function MosaicAppSidebar({
|
|
|
2260
2795
|
{
|
|
2261
2796
|
ref,
|
|
2262
2797
|
"data-slot": "app-sidebar",
|
|
2263
|
-
className:
|
|
2798
|
+
className: cn37(
|
|
2264
2799
|
"flex h-full flex-col bg-sidebar border-r border-sidebar-border",
|
|
2265
2800
|
isMobile && "border-r-0",
|
|
2266
2801
|
className
|
|
@@ -2280,7 +2815,7 @@ function MosaicAppSidebar({
|
|
|
2280
2815
|
type: "button",
|
|
2281
2816
|
onClick: onToggleCollapse,
|
|
2282
2817
|
"aria-label": isCollapsed ? "Expand sidebar" : "Collapse sidebar",
|
|
2283
|
-
className:
|
|
2818
|
+
className: cn37(
|
|
2284
2819
|
"flex h-9 w-9 items-center justify-center rounded-lg transition-colors",
|
|
2285
2820
|
"hover:bg-sidebar-accent text-sidebar-foreground",
|
|
2286
2821
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -2310,7 +2845,7 @@ function MosaicAppSidebar({
|
|
|
2310
2845
|
},
|
|
2311
2846
|
"aria-current": isActive ? "page" : void 0,
|
|
2312
2847
|
"aria-expanded": hasSubmenu && !isCollapsed ? isExpanded : void 0,
|
|
2313
|
-
className:
|
|
2848
|
+
className: cn37(
|
|
2314
2849
|
"group flex w-full min-h-[44px] items-center rounded-lg p-3 transition-colors",
|
|
2315
2850
|
"hover:bg-sidebar-accent",
|
|
2316
2851
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -2337,7 +2872,7 @@ function MosaicAppSidebar({
|
|
|
2337
2872
|
type: "button",
|
|
2338
2873
|
onClick: () => handleNavClick(sub.href),
|
|
2339
2874
|
"aria-current": isSubActive ? "page" : void 0,
|
|
2340
|
-
className:
|
|
2875
|
+
className: cn37(
|
|
2341
2876
|
"flex w-full min-h-[40px] items-center gap-3 rounded-lg px-3 py-2 text-sm transition-colors",
|
|
2342
2877
|
"hover:bg-sidebar-accent/50 text-sidebar-foreground",
|
|
2343
2878
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -2360,7 +2895,7 @@ function MosaicAppSidebar({
|
|
|
2360
2895
|
{
|
|
2361
2896
|
type: "button",
|
|
2362
2897
|
onClick: action.onClick,
|
|
2363
|
-
className:
|
|
2898
|
+
className: cn37(
|
|
2364
2899
|
"flex w-full min-h-[44px] items-center gap-3 rounded-lg px-3 py-2 text-sm font-medium",
|
|
2365
2900
|
"text-sidebar-foreground transition-colors hover:bg-sidebar-accent",
|
|
2366
2901
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -2407,7 +2942,7 @@ function MosaicAppSidebar({
|
|
|
2407
2942
|
);
|
|
2408
2943
|
}
|
|
2409
2944
|
MosaicAppSidebar.displayName = "MosaicAppSidebar";
|
|
2410
|
-
function
|
|
2945
|
+
function cn38(...classes) {
|
|
2411
2946
|
return classes.filter(Boolean).join(" ");
|
|
2412
2947
|
}
|
|
2413
2948
|
var ANIM_ID3 = "mosaic-dashboard-kf";
|
|
@@ -2497,7 +3032,7 @@ function MosaicDashboardLayout({
|
|
|
2497
3032
|
{
|
|
2498
3033
|
ref,
|
|
2499
3034
|
"data-slot": "dashboard-layout",
|
|
2500
|
-
className:
|
|
3035
|
+
className: cn38("flex h-screen w-full bg-background", className),
|
|
2501
3036
|
children: [
|
|
2502
3037
|
!isMobile && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2503
3038
|
MosaicAppSidebar,
|
|
@@ -2521,7 +3056,7 @@ function MosaicDashboardLayout({
|
|
|
2521
3056
|
type: "button",
|
|
2522
3057
|
"aria-label": "Open navigation",
|
|
2523
3058
|
onClick: () => setIsMobileSidebarOpen(true),
|
|
2524
|
-
className:
|
|
3059
|
+
className: cn38(
|
|
2525
3060
|
"flex h-11 w-11 shrink-0 items-center justify-center rounded-lg",
|
|
2526
3061
|
"text-foreground transition-colors hover:bg-muted",
|
|
2527
3062
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -2573,7 +3108,7 @@ function MosaicDashboardLayout({
|
|
|
2573
3108
|
);
|
|
2574
3109
|
}
|
|
2575
3110
|
MosaicDashboardLayout.displayName = "MosaicDashboardLayout";
|
|
2576
|
-
function
|
|
3111
|
+
function cn39(...classes) {
|
|
2577
3112
|
return classes.filter(Boolean).join(" ");
|
|
2578
3113
|
}
|
|
2579
3114
|
var ANIM_ID4 = "mosaic-quick-action-kf";
|
|
@@ -2628,7 +3163,7 @@ function MosaicQuickActionCard({
|
|
|
2628
3163
|
{
|
|
2629
3164
|
ref,
|
|
2630
3165
|
"data-slot": "quick-action-card",
|
|
2631
|
-
className:
|
|
3166
|
+
className: cn39("rounded-xl border border-border bg-card", className),
|
|
2632
3167
|
children: [
|
|
2633
3168
|
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 }) }),
|
|
2634
3169
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -2653,7 +3188,7 @@ function MosaicQuickActionCard({
|
|
|
2653
3188
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
2654
3189
|
"div",
|
|
2655
3190
|
{
|
|
2656
|
-
className:
|
|
3191
|
+
className: cn39(
|
|
2657
3192
|
"flex min-h-[100px] cursor-pointer flex-col items-center justify-center gap-2 rounded-xl border p-4",
|
|
2658
3193
|
"transition-transform duration-150 hover:scale-105 active:scale-[0.98]",
|
|
2659
3194
|
accentClass
|
|
@@ -2686,7 +3221,7 @@ function MosaicQuickActionCard({
|
|
|
2686
3221
|
);
|
|
2687
3222
|
}
|
|
2688
3223
|
MosaicQuickActionCard.displayName = "MosaicQuickActionCard";
|
|
2689
|
-
function
|
|
3224
|
+
function cn40(...classes) {
|
|
2690
3225
|
return classes.filter(Boolean).join(" ");
|
|
2691
3226
|
}
|
|
2692
3227
|
var ANIM_ID5 = "mosaic-activity-feed-kf";
|
|
@@ -2775,7 +3310,7 @@ function MosaicActivityItem({ activity, icon, className }) {
|
|
|
2775
3310
|
"div",
|
|
2776
3311
|
{
|
|
2777
3312
|
"data-slot": "activity-item",
|
|
2778
|
-
className:
|
|
3313
|
+
className: cn40(
|
|
2779
3314
|
"flex cursor-pointer items-start gap-4 rounded-lg p-3 transition-colors hover:bg-muted/50",
|
|
2780
3315
|
className
|
|
2781
3316
|
),
|
|
@@ -2809,7 +3344,7 @@ function MosaicActivityItem({ activity, icon, className }) {
|
|
|
2809
3344
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2810
3345
|
"span",
|
|
2811
3346
|
{
|
|
2812
|
-
className:
|
|
3347
|
+
className: cn40(
|
|
2813
3348
|
"rounded-full px-2 py-0.5 text-xs font-medium",
|
|
2814
3349
|
getStatusClass(activity.status)
|
|
2815
3350
|
),
|
|
@@ -2850,7 +3385,7 @@ function MosaicActivityFeed({
|
|
|
2850
3385
|
{
|
|
2851
3386
|
ref,
|
|
2852
3387
|
"data-slot": "activity-feed",
|
|
2853
|
-
className:
|
|
3388
|
+
className: cn40("rounded-xl border border-border bg-card", className),
|
|
2854
3389
|
children: [
|
|
2855
3390
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between border-b border-border px-6 py-4", children: [
|
|
2856
3391
|
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "text-lg font-semibold text-foreground", children: heading }),
|
|
@@ -2876,7 +3411,7 @@ function MosaicActivityFeed({
|
|
|
2876
3411
|
);
|
|
2877
3412
|
}
|
|
2878
3413
|
MosaicActivityFeed.displayName = "MosaicActivityFeed";
|
|
2879
|
-
function
|
|
3414
|
+
function cn41(...classes) {
|
|
2880
3415
|
return classes.filter(Boolean).join(" ");
|
|
2881
3416
|
}
|
|
2882
3417
|
function SparklesIcon() {
|
|
@@ -3085,7 +3620,7 @@ function MosaicAgentComposerDesktop({
|
|
|
3085
3620
|
value: agentName,
|
|
3086
3621
|
onChange: (e) => onAgentNameChange(e.target.value),
|
|
3087
3622
|
placeholder: "Enter agent name\u2026",
|
|
3088
|
-
className:
|
|
3623
|
+
className: cn41(
|
|
3089
3624
|
"flex min-h-[48px] w-full rounded-lg border border-input bg-transparent px-3 py-2 text-sm",
|
|
3090
3625
|
"placeholder:text-muted-foreground",
|
|
3091
3626
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -3186,7 +3721,7 @@ function MosaicAgentComposerDesktop({
|
|
|
3186
3721
|
onChange: (e) => onCustomInstructionsChange(e.target.value),
|
|
3187
3722
|
placeholder: "Add any specific instructions or behaviors\u2026",
|
|
3188
3723
|
rows: 5,
|
|
3189
|
-
className:
|
|
3724
|
+
className: cn41(
|
|
3190
3725
|
"flex w-full resize-y rounded-lg border border-input bg-transparent px-3 py-2 text-sm",
|
|
3191
3726
|
"placeholder:text-muted-foreground",
|
|
3192
3727
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -3254,7 +3789,7 @@ function MosaicAgentComposerDesktop({
|
|
|
3254
3789
|
/* @__PURE__ */ jsxRuntime.jsx(SparklesIcon, {}),
|
|
3255
3790
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-muted-foreground", children: "Select all modules to see preview" })
|
|
3256
3791
|
] }) }),
|
|
3257
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
3792
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn41("flex gap-2", isEditMode && onCancel ? "flex-row" : "flex-col"), children: [
|
|
3258
3793
|
isEditMode && onCancel && /* @__PURE__ */ jsxRuntime.jsx(
|
|
3259
3794
|
"button",
|
|
3260
3795
|
{
|
|
@@ -3270,7 +3805,7 @@ function MosaicAgentComposerDesktop({
|
|
|
3270
3805
|
type: "button",
|
|
3271
3806
|
onClick: onSave,
|
|
3272
3807
|
disabled: !canSave,
|
|
3273
|
-
className:
|
|
3808
|
+
className: cn41(
|
|
3274
3809
|
"flex min-h-[48px] items-center justify-center gap-2 rounded-lg text-sm font-medium transition-colors",
|
|
3275
3810
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
3276
3811
|
"bg-primary text-primary-foreground hover:bg-primary/90",
|
|
@@ -3291,7 +3826,7 @@ function MosaicAgentComposerDesktop({
|
|
|
3291
3826
|
] });
|
|
3292
3827
|
}
|
|
3293
3828
|
MosaicAgentComposerDesktop.displayName = "MosaicAgentComposerDesktop";
|
|
3294
|
-
function
|
|
3829
|
+
function cn42(...classes) {
|
|
3295
3830
|
return classes.filter(Boolean).join(" ");
|
|
3296
3831
|
}
|
|
3297
3832
|
function SparklesIcon2() {
|
|
@@ -3547,7 +4082,7 @@ function MosaicAgentComposerMobile({
|
|
|
3547
4082
|
disabled: isLoading,
|
|
3548
4083
|
"aria-required": "true",
|
|
3549
4084
|
"aria-invalid": canSave && !agentName ? "true" : "false",
|
|
3550
|
-
className:
|
|
4085
|
+
className: cn42(
|
|
3551
4086
|
"flex min-h-[48px] w-full rounded-lg border border-input bg-transparent px-3 py-2 text-sm",
|
|
3552
4087
|
"placeholder:text-muted-foreground",
|
|
3553
4088
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -3651,7 +4186,7 @@ function MosaicAgentComposerMobile({
|
|
|
3651
4186
|
disabled: isLoading,
|
|
3652
4187
|
"aria-describedby": `${instructionsId}-help`,
|
|
3653
4188
|
rows: 4,
|
|
3654
|
-
className:
|
|
4189
|
+
className: cn42(
|
|
3655
4190
|
"flex w-full resize-y rounded-lg border border-input bg-transparent px-3 py-2 text-sm",
|
|
3656
4191
|
"placeholder:text-muted-foreground",
|
|
3657
4192
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -3707,7 +4242,7 @@ function MosaicAgentComposer(props) {
|
|
|
3707
4242
|
return isMobile ? /* @__PURE__ */ jsxRuntime.jsx(MosaicAgentComposerMobile, { ...props }) : /* @__PURE__ */ jsxRuntime.jsx(MosaicAgentComposerDesktop, { ...props });
|
|
3708
4243
|
}
|
|
3709
4244
|
MosaicAgentComposer.displayName = "MosaicAgentComposer";
|
|
3710
|
-
function
|
|
4245
|
+
function cn43(...classes) {
|
|
3711
4246
|
return classes.filter(Boolean).join(" ");
|
|
3712
4247
|
}
|
|
3713
4248
|
function EditIcon() {
|
|
@@ -3765,7 +4300,7 @@ function MosaicModuleCard({
|
|
|
3765
4300
|
{
|
|
3766
4301
|
ref,
|
|
3767
4302
|
"data-slot": "module-card",
|
|
3768
|
-
className:
|
|
4303
|
+
className: cn43(
|
|
3769
4304
|
"min-h-[80px] rounded-xl border border-border bg-card p-4 transition-all",
|
|
3770
4305
|
"flex items-start gap-3",
|
|
3771
4306
|
isSelected && "ring-2 ring-primary bg-primary/5",
|
|
@@ -3827,7 +4362,7 @@ function MosaicThemeProvider({
|
|
|
3827
4362
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { "data-slot": "theme-provider", children });
|
|
3828
4363
|
}
|
|
3829
4364
|
MosaicThemeProvider.displayName = "MosaicThemeProvider";
|
|
3830
|
-
function
|
|
4365
|
+
function cn44(...classes) {
|
|
3831
4366
|
return classes.filter(Boolean).join(" ");
|
|
3832
4367
|
}
|
|
3833
4368
|
var ANIM_ID6 = "mosaic-delete-dialog-kf";
|
|
@@ -3881,14 +4416,14 @@ function MosaicDeleteConfirmationDialog({
|
|
|
3881
4416
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3882
4417
|
alertDialog.AlertDialog.Backdrop,
|
|
3883
4418
|
{
|
|
3884
|
-
className:
|
|
4419
|
+
className: cn44("mosaic-delete-overlay", "fixed inset-0 z-50 bg-black/50")
|
|
3885
4420
|
}
|
|
3886
4421
|
),
|
|
3887
4422
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
3888
4423
|
alertDialog.AlertDialog.Popup,
|
|
3889
4424
|
{
|
|
3890
4425
|
"data-slot": "delete-confirmation-dialog",
|
|
3891
|
-
className:
|
|
4426
|
+
className: cn44(
|
|
3892
4427
|
"mosaic-delete-content",
|
|
3893
4428
|
"fixed left-1/2 top-1/2 z-50",
|
|
3894
4429
|
"w-full max-w-[92vw] sm:max-w-md",
|
|
@@ -3901,7 +4436,7 @@ function MosaicDeleteConfirmationDialog({
|
|
|
3901
4436
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3902
4437
|
alertDialog.AlertDialog.Close,
|
|
3903
4438
|
{
|
|
3904
|
-
className:
|
|
4439
|
+
className: cn44(
|
|
3905
4440
|
"inline-flex min-h-[44px] w-full items-center justify-center rounded-md border border-border",
|
|
3906
4441
|
"bg-background px-4 py-2 text-sm font-medium text-foreground",
|
|
3907
4442
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -3915,7 +4450,7 @@ function MosaicDeleteConfirmationDialog({
|
|
|
3915
4450
|
alertDialog.AlertDialog.Close,
|
|
3916
4451
|
{
|
|
3917
4452
|
onClick: onConfirm,
|
|
3918
|
-
className:
|
|
4453
|
+
className: cn44(
|
|
3919
4454
|
"inline-flex min-h-[44px] w-full items-center justify-center rounded-md",
|
|
3920
4455
|
"bg-destructive px-4 py-2 text-sm font-medium text-destructive-foreground",
|
|
3921
4456
|
"hover:bg-destructive/90",
|
|
@@ -3932,7 +4467,7 @@ function MosaicDeleteConfirmationDialog({
|
|
|
3932
4467
|
] }) });
|
|
3933
4468
|
}
|
|
3934
4469
|
MosaicDeleteConfirmationDialog.displayName = "MosaicDeleteConfirmationDialog";
|
|
3935
|
-
function
|
|
4470
|
+
function cn45(...classes) {
|
|
3936
4471
|
return classes.filter(Boolean).join(" ");
|
|
3937
4472
|
}
|
|
3938
4473
|
function Toggle({
|
|
@@ -3948,7 +4483,7 @@ function Toggle({
|
|
|
3948
4483
|
id,
|
|
3949
4484
|
"aria-checked": checked,
|
|
3950
4485
|
onClick: () => onChange(!checked),
|
|
3951
|
-
className:
|
|
4486
|
+
className: cn45(
|
|
3952
4487
|
"relative inline-flex h-6 w-11 shrink-0 cursor-pointer rounded-full border-2 border-transparent",
|
|
3953
4488
|
"transition-colors duration-200 ease-in-out",
|
|
3954
4489
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
@@ -3957,7 +4492,7 @@ function Toggle({
|
|
|
3957
4492
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3958
4493
|
"span",
|
|
3959
4494
|
{
|
|
3960
|
-
className:
|
|
4495
|
+
className: cn45(
|
|
3961
4496
|
"pointer-events-none inline-block h-5 w-5 rounded-full bg-background shadow-lg",
|
|
3962
4497
|
"transform transition duration-200 ease-in-out",
|
|
3963
4498
|
checked ? "translate-x-5" : "translate-x-0"
|
|
@@ -3979,7 +4514,7 @@ function NativeSelect({
|
|
|
3979
4514
|
id,
|
|
3980
4515
|
value,
|
|
3981
4516
|
onChange: (e) => onChange(e.target.value),
|
|
3982
|
-
className:
|
|
4517
|
+
className: cn45(
|
|
3983
4518
|
"flex min-h-[48px] w-full rounded-md border border-input bg-background px-3 py-2",
|
|
3984
4519
|
"text-sm text-foreground",
|
|
3985
4520
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -3998,7 +4533,7 @@ function MosaicPreferencesPanel({
|
|
|
3998
4533
|
className
|
|
3999
4534
|
}) {
|
|
4000
4535
|
const { isMobile } = useDevice();
|
|
4001
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "preferences-panel", className:
|
|
4536
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "preferences-panel", className: cn45("space-y-4 md:space-y-6", className), children: [
|
|
4002
4537
|
groups.map((group) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
4003
4538
|
"div",
|
|
4004
4539
|
{
|
|
@@ -4041,13 +4576,13 @@ function MosaicPreferencesPanel({
|
|
|
4041
4576
|
},
|
|
4042
4577
|
group.id
|
|
4043
4578
|
)),
|
|
4044
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
4579
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: cn45("flex", isMobile ? "flex-col" : "justify-end"), children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
4045
4580
|
"button",
|
|
4046
4581
|
{
|
|
4047
4582
|
type: "button",
|
|
4048
4583
|
onClick: onSave,
|
|
4049
4584
|
disabled: isSaving,
|
|
4050
|
-
className:
|
|
4585
|
+
className: cn45(
|
|
4051
4586
|
"inline-flex min-h-[44px] items-center justify-center gap-2 rounded-md",
|
|
4052
4587
|
"bg-primary px-4 py-2 text-sm font-medium text-primary-foreground",
|
|
4053
4588
|
"hover:bg-primary/90",
|
|
@@ -4083,7 +4618,7 @@ function MosaicPreferencesPanel({
|
|
|
4083
4618
|
] });
|
|
4084
4619
|
}
|
|
4085
4620
|
MosaicPreferencesPanel.displayName = "MosaicPreferencesPanel";
|
|
4086
|
-
function
|
|
4621
|
+
function cn46(...classes) {
|
|
4087
4622
|
return classes.filter(Boolean).join(" ");
|
|
4088
4623
|
}
|
|
4089
4624
|
function AvatarDisplay({
|
|
@@ -4096,7 +4631,7 @@ function AvatarDisplay({
|
|
|
4096
4631
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4097
4632
|
"span",
|
|
4098
4633
|
{
|
|
4099
|
-
className:
|
|
4634
|
+
className: cn46(
|
|
4100
4635
|
"inline-flex shrink-0 items-center justify-center rounded-full bg-muted text-muted-foreground font-semibold overflow-hidden",
|
|
4101
4636
|
sizeClass
|
|
4102
4637
|
),
|
|
@@ -4118,7 +4653,7 @@ function MosaicProfilePanel({
|
|
|
4118
4653
|
className
|
|
4119
4654
|
}) {
|
|
4120
4655
|
const { isMobile } = useDevice();
|
|
4121
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "profile-panel", className:
|
|
4656
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "profile-panel", className: cn46("space-y-4 md:space-y-6", className), children: [
|
|
4122
4657
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "rounded-lg border border-border bg-card text-card-foreground shadow-sm", children: [
|
|
4123
4658
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col space-y-1.5 p-6", children: [
|
|
4124
4659
|
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "text-lg font-semibold leading-none tracking-tight md:text-xl", children: "Profile Picture" }),
|
|
@@ -4138,7 +4673,7 @@ function MosaicProfilePanel({
|
|
|
4138
4673
|
{
|
|
4139
4674
|
type: "button",
|
|
4140
4675
|
onClick: onAvatarUpload,
|
|
4141
|
-
className:
|
|
4676
|
+
className: cn46(
|
|
4142
4677
|
"inline-flex min-h-[44px] items-center justify-center gap-2 rounded-md border border-border",
|
|
4143
4678
|
"bg-background px-4 py-2 text-sm font-medium text-foreground",
|
|
4144
4679
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -4188,7 +4723,7 @@ function MosaicProfilePanel({
|
|
|
4188
4723
|
placeholder: field.placeholder,
|
|
4189
4724
|
onChange: (e) => onFieldChange?.(field.id, e.target.value),
|
|
4190
4725
|
rows: 4,
|
|
4191
|
-
className:
|
|
4726
|
+
className: cn46(
|
|
4192
4727
|
"flex min-h-[120px] w-full rounded-md border border-input bg-background px-3 py-2",
|
|
4193
4728
|
"text-sm text-foreground placeholder:text-muted-foreground",
|
|
4194
4729
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -4204,7 +4739,7 @@ function MosaicProfilePanel({
|
|
|
4204
4739
|
readOnly: field.readOnly,
|
|
4205
4740
|
placeholder: field.placeholder,
|
|
4206
4741
|
onChange: (e) => onFieldChange?.(field.id, e.target.value),
|
|
4207
|
-
className:
|
|
4742
|
+
className: cn46(
|
|
4208
4743
|
"flex min-h-[48px] w-full rounded-md border border-input bg-background px-3 py-2",
|
|
4209
4744
|
"text-sm text-foreground placeholder:text-muted-foreground",
|
|
4210
4745
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -4224,7 +4759,7 @@ function MosaicProfilePanel({
|
|
|
4224
4759
|
{
|
|
4225
4760
|
type: "button",
|
|
4226
4761
|
onClick: onChangePassword,
|
|
4227
|
-
className:
|
|
4762
|
+
className: cn46(
|
|
4228
4763
|
"inline-flex min-h-[44px] items-center justify-center rounded-md border border-border",
|
|
4229
4764
|
"bg-background px-4 py-2 text-sm font-medium text-foreground",
|
|
4230
4765
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -4236,13 +4771,13 @@ function MosaicProfilePanel({
|
|
|
4236
4771
|
) })
|
|
4237
4772
|
] }),
|
|
4238
4773
|
extraSections,
|
|
4239
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
4774
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: cn46("flex", isMobile ? "flex-col" : "justify-end"), children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
4240
4775
|
"button",
|
|
4241
4776
|
{
|
|
4242
4777
|
type: "button",
|
|
4243
4778
|
onClick: onSave,
|
|
4244
4779
|
disabled: isSaving,
|
|
4245
|
-
className:
|
|
4780
|
+
className: cn46(
|
|
4246
4781
|
"inline-flex min-h-[44px] items-center justify-center gap-2 rounded-md",
|
|
4247
4782
|
"bg-primary px-4 py-2 text-sm font-medium text-primary-foreground",
|
|
4248
4783
|
"hover:bg-primary/90",
|
|
@@ -4278,7 +4813,7 @@ function MosaicProfilePanel({
|
|
|
4278
4813
|
] });
|
|
4279
4814
|
}
|
|
4280
4815
|
MosaicProfilePanel.displayName = "MosaicProfilePanel";
|
|
4281
|
-
function
|
|
4816
|
+
function cn47(...classes) {
|
|
4282
4817
|
return classes.filter(Boolean).join(" ");
|
|
4283
4818
|
}
|
|
4284
4819
|
var ANIM_ID7 = "mosaic-main-nav-kf";
|
|
@@ -4386,7 +4921,7 @@ function MosaicMainNav({
|
|
|
4386
4921
|
{
|
|
4387
4922
|
type: "button",
|
|
4388
4923
|
onClick: () => setIsOpen(!isOpen),
|
|
4389
|
-
className:
|
|
4924
|
+
className: cn47(
|
|
4390
4925
|
"inline-flex min-h-[44px] min-w-[44px] items-center justify-center rounded-md p-0",
|
|
4391
4926
|
"text-foreground hover:bg-accent hover:text-accent-foreground",
|
|
4392
4927
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -4412,7 +4947,7 @@ function MosaicMainNav({
|
|
|
4412
4947
|
"aria-label": "Navigation",
|
|
4413
4948
|
open: isOpen,
|
|
4414
4949
|
"data-open": isOpen ? "true" : "false",
|
|
4415
|
-
className:
|
|
4950
|
+
className: cn47(
|
|
4416
4951
|
"mosaic-nav-drawer",
|
|
4417
4952
|
"fixed inset-y-0 left-0 z-50 m-0 w-[280px] max-h-none h-full p-0",
|
|
4418
4953
|
"border-r border-border bg-background shadow-xl",
|
|
@@ -4429,7 +4964,7 @@ function MosaicMainNav({
|
|
|
4429
4964
|
{
|
|
4430
4965
|
type: "button",
|
|
4431
4966
|
onClick: () => setIsOpen(false),
|
|
4432
|
-
className:
|
|
4967
|
+
className: cn47(
|
|
4433
4968
|
"inline-flex h-8 w-8 items-center justify-center rounded-md",
|
|
4434
4969
|
"text-muted-foreground hover:bg-accent hover:text-accent-foreground",
|
|
4435
4970
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -4442,7 +4977,7 @@ function MosaicMainNav({
|
|
|
4442
4977
|
/* @__PURE__ */ jsxRuntime.jsx("nav", { className: "flex flex-col gap-1 p-4", "aria-label": "Main navigation", children: filteredItems.map((item) => {
|
|
4443
4978
|
const Icon = item.icon;
|
|
4444
4979
|
const active = isItemActive(item);
|
|
4445
|
-
const itemClass =
|
|
4980
|
+
const itemClass = cn47(
|
|
4446
4981
|
"flex items-center gap-3 rounded-lg px-3 py-3 text-sm font-medium transition-colors",
|
|
4447
4982
|
"hover:bg-accent hover:text-accent-foreground",
|
|
4448
4983
|
"min-h-[44px]",
|
|
@@ -4468,12 +5003,12 @@ function MosaicMainNav({
|
|
|
4468
5003
|
"nav",
|
|
4469
5004
|
{
|
|
4470
5005
|
"data-slot": "main-nav",
|
|
4471
|
-
className:
|
|
5006
|
+
className: cn47("flex items-center gap-1", className),
|
|
4472
5007
|
"aria-label": "Main navigation",
|
|
4473
5008
|
children: filteredItems.map((item) => {
|
|
4474
5009
|
const Icon = item.icon;
|
|
4475
5010
|
const active = isItemActive(item);
|
|
4476
|
-
const itemClass =
|
|
5011
|
+
const itemClass = cn47(
|
|
4477
5012
|
"flex items-center gap-2 rounded-lg px-3 py-2 text-sm font-medium transition-colors",
|
|
4478
5013
|
"hover:bg-accent hover:text-accent-foreground",
|
|
4479
5014
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -4493,7 +5028,7 @@ function MosaicMainNav({
|
|
|
4493
5028
|
);
|
|
4494
5029
|
}
|
|
4495
5030
|
MosaicMainNav.displayName = "MosaicMainNav";
|
|
4496
|
-
function
|
|
5031
|
+
function cn48(...classes) {
|
|
4497
5032
|
return classes.filter(Boolean).join(" ");
|
|
4498
5033
|
}
|
|
4499
5034
|
function MoreVertIcon() {
|
|
@@ -4624,7 +5159,7 @@ function MosaicAgentCard({
|
|
|
4624
5159
|
"div",
|
|
4625
5160
|
{
|
|
4626
5161
|
"data-slot": "agent-card",
|
|
4627
|
-
className:
|
|
5162
|
+
className: cn48(
|
|
4628
5163
|
"relative overflow-hidden rounded-lg border border-border bg-card text-card-foreground shadow-sm",
|
|
4629
5164
|
"transition-shadow hover:shadow-md",
|
|
4630
5165
|
agent.isActive && "ring-2 ring-primary",
|
|
@@ -4634,7 +5169,7 @@ function MosaicAgentCard({
|
|
|
4634
5169
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4635
5170
|
"div",
|
|
4636
5171
|
{
|
|
4637
|
-
className:
|
|
5172
|
+
className: cn48(
|
|
4638
5173
|
"absolute left-0 top-0 h-1 w-full",
|
|
4639
5174
|
agent.isActive ? "bg-primary" : "bg-muted"
|
|
4640
5175
|
)
|
|
@@ -4646,7 +5181,7 @@ function MosaicAgentCard({
|
|
|
4646
5181
|
agent.accentColor && /* @__PURE__ */ jsxRuntime.jsx(
|
|
4647
5182
|
"span",
|
|
4648
5183
|
{
|
|
4649
|
-
className:
|
|
5184
|
+
className: cn48("h-3 w-3 shrink-0 rounded-full", agent.accentColor),
|
|
4650
5185
|
"aria-hidden": "true"
|
|
4651
5186
|
}
|
|
4652
5187
|
),
|
|
@@ -4664,7 +5199,7 @@ function MosaicAgentCard({
|
|
|
4664
5199
|
{
|
|
4665
5200
|
type: "button",
|
|
4666
5201
|
onClick: () => setMenuOpen((v) => !v),
|
|
4667
|
-
className:
|
|
5202
|
+
className: cn48(
|
|
4668
5203
|
"inline-flex h-8 w-8 items-center justify-center rounded-md",
|
|
4669
5204
|
"text-muted-foreground hover:bg-accent hover:text-accent-foreground",
|
|
4670
5205
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -4679,7 +5214,7 @@ function MosaicAgentCard({
|
|
|
4679
5214
|
"div",
|
|
4680
5215
|
{
|
|
4681
5216
|
role: "menu",
|
|
4682
|
-
className:
|
|
5217
|
+
className: cn48(
|
|
4683
5218
|
"absolute right-0 top-full z-50 mt-1 min-w-[140px] rounded-md border border-border",
|
|
4684
5219
|
"bg-popover py-1 shadow-md"
|
|
4685
5220
|
),
|
|
@@ -4694,7 +5229,7 @@ function MosaicAgentCard({
|
|
|
4694
5229
|
onToggleStatus(agent.id);
|
|
4695
5230
|
setMenuOpen(false);
|
|
4696
5231
|
},
|
|
4697
|
-
className:
|
|
5232
|
+
className: cn48(
|
|
4698
5233
|
"flex w-full items-center gap-2 px-3 py-2 text-sm text-foreground",
|
|
4699
5234
|
"hover:bg-accent hover:text-accent-foreground",
|
|
4700
5235
|
"disabled:pointer-events-none disabled:opacity-50"
|
|
@@ -4756,7 +5291,7 @@ function MosaicAgentCard({
|
|
|
4756
5291
|
type: "button",
|
|
4757
5292
|
disabled: isLoading,
|
|
4758
5293
|
onClick: () => onToggleStatus(agent.id),
|
|
4759
|
-
className:
|
|
5294
|
+
className: cn48(
|
|
4760
5295
|
"inline-flex h-7 items-center justify-center rounded-md px-3 text-xs font-medium",
|
|
4761
5296
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
4762
5297
|
"disabled:pointer-events-none disabled:opacity-50",
|
|
@@ -4772,7 +5307,7 @@ function MosaicAgentCard({
|
|
|
4772
5307
|
);
|
|
4773
5308
|
}
|
|
4774
5309
|
MosaicAgentCard.displayName = "MosaicAgentCard";
|
|
4775
|
-
function
|
|
5310
|
+
function cn49(...classes) {
|
|
4776
5311
|
return classes.filter(Boolean).join(" ");
|
|
4777
5312
|
}
|
|
4778
5313
|
function PlusIcon3() {
|
|
@@ -4852,7 +5387,7 @@ function PickerContent({
|
|
|
4852
5387
|
{
|
|
4853
5388
|
type: "button",
|
|
4854
5389
|
onClick: () => onAdd(agent.id),
|
|
4855
|
-
className:
|
|
5390
|
+
className: cn49(
|
|
4856
5391
|
"flex w-full items-center gap-3 rounded-lg px-3 py-2.5 text-sm",
|
|
4857
5392
|
"hover:bg-accent hover:text-accent-foreground",
|
|
4858
5393
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -4861,7 +5396,7 @@ function PickerContent({
|
|
|
4861
5396
|
agent.accentColor && /* @__PURE__ */ jsxRuntime.jsx(
|
|
4862
5397
|
"span",
|
|
4863
5398
|
{
|
|
4864
|
-
className:
|
|
5399
|
+
className: cn49("h-3 w-3 shrink-0 rounded-full", agent.accentColor),
|
|
4865
5400
|
"aria-hidden": "true"
|
|
4866
5401
|
}
|
|
4867
5402
|
),
|
|
@@ -4878,7 +5413,7 @@ function PickerContent({
|
|
|
4878
5413
|
{
|
|
4879
5414
|
type: "button",
|
|
4880
5415
|
onClick: onOpenBuilder,
|
|
4881
|
-
className:
|
|
5416
|
+
className: cn49(
|
|
4882
5417
|
"flex w-full items-center gap-3 rounded-lg px-3 py-2.5 text-sm",
|
|
4883
5418
|
"hover:bg-accent hover:text-accent-foreground",
|
|
4884
5419
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -4928,11 +5463,11 @@ function MosaicQuickAgentSelector({
|
|
|
4928
5463
|
setPickerOpen(false);
|
|
4929
5464
|
};
|
|
4930
5465
|
const canAdd = selectedAgents.length < maxAgents;
|
|
4931
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "quick-agent-selector", className:
|
|
5466
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "quick-agent-selector", className: cn49("flex items-center gap-2", className), children: [
|
|
4932
5467
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-2 overflow-x-auto", children: selectedAgents.map((agent) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
4933
5468
|
"div",
|
|
4934
5469
|
{
|
|
4935
|
-
className:
|
|
5470
|
+
className: cn49(
|
|
4936
5471
|
"group flex shrink-0 items-center gap-2 rounded-md border border-border bg-card",
|
|
4937
5472
|
isMobile ? "px-2 py-1" : "px-3 py-1.5"
|
|
4938
5473
|
),
|
|
@@ -4940,17 +5475,17 @@ function MosaicQuickAgentSelector({
|
|
|
4940
5475
|
agent.accentColor && /* @__PURE__ */ jsxRuntime.jsx(
|
|
4941
5476
|
"span",
|
|
4942
5477
|
{
|
|
4943
|
-
className:
|
|
5478
|
+
className: cn49("h-2 w-2 shrink-0 rounded-full", agent.accentColor),
|
|
4944
5479
|
"aria-hidden": "true"
|
|
4945
5480
|
}
|
|
4946
5481
|
),
|
|
4947
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
5482
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: cn49("whitespace-nowrap font-medium", isMobile ? "text-xs" : "text-sm"), children: isMobile ? agent.type.split("-")[0] : agent.name }),
|
|
4948
5483
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4949
5484
|
"button",
|
|
4950
5485
|
{
|
|
4951
5486
|
type: "button",
|
|
4952
5487
|
onClick: () => onRemoveAgent(agent.id),
|
|
4953
|
-
className:
|
|
5488
|
+
className: cn49(
|
|
4954
5489
|
"inline-flex h-4 w-4 items-center justify-center rounded",
|
|
4955
5490
|
"text-muted-foreground hover:text-foreground",
|
|
4956
5491
|
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
@@ -4970,7 +5505,7 @@ function MosaicQuickAgentSelector({
|
|
|
4970
5505
|
{
|
|
4971
5506
|
type: "button",
|
|
4972
5507
|
onClick: () => setPickerOpen((v) => !v),
|
|
4973
|
-
className:
|
|
5508
|
+
className: cn49(
|
|
4974
5509
|
"inline-flex items-center justify-center gap-2 rounded-md border border-border bg-background",
|
|
4975
5510
|
"px-3 py-1.5 text-sm font-medium text-foreground",
|
|
4976
5511
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -4985,7 +5520,7 @@ function MosaicQuickAgentSelector({
|
|
|
4985
5520
|
!isMobile && pickerOpen && /* @__PURE__ */ jsxRuntime.jsx(
|
|
4986
5521
|
"div",
|
|
4987
5522
|
{
|
|
4988
|
-
className:
|
|
5523
|
+
className: cn49(
|
|
4989
5524
|
"absolute left-0 top-full z-50 mt-2 w-72 rounded-lg border border-border",
|
|
4990
5525
|
"bg-popover shadow-lg"
|
|
4991
5526
|
),
|
|
@@ -5027,7 +5562,7 @@ function MosaicQuickAgentSelector({
|
|
|
5027
5562
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
5028
5563
|
"span",
|
|
5029
5564
|
{
|
|
5030
|
-
className:
|
|
5565
|
+
className: cn49(
|
|
5031
5566
|
"shrink-0 rounded-md bg-secondary px-2 py-0.5 text-xs font-medium text-secondary-foreground"
|
|
5032
5567
|
),
|
|
5033
5568
|
children: [
|
|
@@ -5040,7 +5575,7 @@ function MosaicQuickAgentSelector({
|
|
|
5040
5575
|
] });
|
|
5041
5576
|
}
|
|
5042
5577
|
MosaicQuickAgentSelector.displayName = "MosaicQuickAgentSelector";
|
|
5043
|
-
function
|
|
5578
|
+
function cn50(...classes) {
|
|
5044
5579
|
return classes.filter(Boolean).join(" ");
|
|
5045
5580
|
}
|
|
5046
5581
|
function SearchIcon() {
|
|
@@ -5130,7 +5665,7 @@ function MosaicSelectorModal({
|
|
|
5130
5665
|
value: query,
|
|
5131
5666
|
onChange: (e) => setQuery(e.target.value),
|
|
5132
5667
|
placeholder: searchPlaceholder,
|
|
5133
|
-
className:
|
|
5668
|
+
className: cn50(
|
|
5134
5669
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
5135
5670
|
"text-sm text-foreground placeholder:text-muted-foreground",
|
|
5136
5671
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -5144,7 +5679,7 @@ function MosaicSelectorModal({
|
|
|
5144
5679
|
{
|
|
5145
5680
|
type: "button",
|
|
5146
5681
|
onClick: () => setActiveCategory("all"),
|
|
5147
|
-
className:
|
|
5682
|
+
className: cn50(
|
|
5148
5683
|
"shrink-0 rounded-md px-3 py-1.5 text-sm font-medium transition-colors",
|
|
5149
5684
|
activeCategory === "all" ? "bg-primary text-primary-foreground" : "bg-muted text-muted-foreground hover:bg-accent hover:text-accent-foreground"
|
|
5150
5685
|
),
|
|
@@ -5156,7 +5691,7 @@ function MosaicSelectorModal({
|
|
|
5156
5691
|
{
|
|
5157
5692
|
type: "button",
|
|
5158
5693
|
onClick: () => setActiveCategory(cat.id),
|
|
5159
|
-
className:
|
|
5694
|
+
className: cn50(
|
|
5160
5695
|
"shrink-0 rounded-md px-3 py-1.5 text-sm font-medium transition-colors",
|
|
5161
5696
|
activeCategory === cat.id ? "bg-primary text-primary-foreground" : "bg-muted text-muted-foreground hover:bg-accent hover:text-accent-foreground"
|
|
5162
5697
|
),
|
|
@@ -5168,7 +5703,7 @@ function MosaicSelectorModal({
|
|
|
5168
5703
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
5169
5704
|
"div",
|
|
5170
5705
|
{
|
|
5171
|
-
className:
|
|
5706
|
+
className: cn50(
|
|
5172
5707
|
"max-h-[50vh] overflow-y-auto",
|
|
5173
5708
|
columns === 2 ? "grid grid-cols-1 gap-3 sm:grid-cols-2" : "flex flex-col gap-3"
|
|
5174
5709
|
),
|
|
@@ -5180,7 +5715,7 @@ function MosaicSelectorModal({
|
|
|
5180
5715
|
{
|
|
5181
5716
|
type: "button",
|
|
5182
5717
|
onClick: () => setPendingId(item.id),
|
|
5183
|
-
className:
|
|
5718
|
+
className: cn50(
|
|
5184
5719
|
"group relative rounded-lg border p-4 text-left transition-all duration-150",
|
|
5185
5720
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
5186
5721
|
isSelected ? "border-primary bg-primary/5 ring-2 ring-primary" : "border-border bg-card hover:border-primary/50"
|
|
@@ -5218,7 +5753,7 @@ function MosaicSelectorModal({
|
|
|
5218
5753
|
{
|
|
5219
5754
|
type: "button",
|
|
5220
5755
|
onClick: onClose,
|
|
5221
|
-
className:
|
|
5756
|
+
className: cn50(
|
|
5222
5757
|
"inline-flex min-h-[44px] items-center justify-center rounded-md border border-border",
|
|
5223
5758
|
"bg-background px-4 py-2 text-sm font-medium text-foreground",
|
|
5224
5759
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -5233,7 +5768,7 @@ function MosaicSelectorModal({
|
|
|
5233
5768
|
type: "button",
|
|
5234
5769
|
onClick: handleConfirm,
|
|
5235
5770
|
disabled: !pendingItem,
|
|
5236
|
-
className:
|
|
5771
|
+
className: cn50(
|
|
5237
5772
|
"inline-flex min-h-[44px] items-center justify-center rounded-md",
|
|
5238
5773
|
"bg-primary px-4 py-2 text-sm font-medium text-primary-foreground",
|
|
5239
5774
|
"hover:bg-primary/90",
|
|
@@ -5247,7 +5782,7 @@ function MosaicSelectorModal({
|
|
|
5247
5782
|
] }) });
|
|
5248
5783
|
}
|
|
5249
5784
|
MosaicSelectorModal.displayName = "MosaicSelectorModal";
|
|
5250
|
-
function
|
|
5785
|
+
function cn51(...classes) {
|
|
5251
5786
|
return classes.filter(Boolean).join(" ");
|
|
5252
5787
|
}
|
|
5253
5788
|
function relativeTime(ts) {
|
|
@@ -5496,7 +6031,7 @@ function MosaicMessageCard({
|
|
|
5496
6031
|
"div",
|
|
5497
6032
|
{
|
|
5498
6033
|
"data-slot": "message-card",
|
|
5499
|
-
className:
|
|
6034
|
+
className: cn51(
|
|
5500
6035
|
"rounded-lg border border-border bg-card p-4 shadow-sm transition-shadow hover:shadow-md",
|
|
5501
6036
|
compact && "p-3",
|
|
5502
6037
|
message.sender.type === "user" && "bg-primary/5",
|
|
@@ -5506,7 +6041,7 @@ function MosaicMessageCard({
|
|
|
5506
6041
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5507
6042
|
"span",
|
|
5508
6043
|
{
|
|
5509
|
-
className:
|
|
6044
|
+
className: cn51(
|
|
5510
6045
|
"inline-flex shrink-0 items-center justify-center rounded-full text-white font-semibold",
|
|
5511
6046
|
compact ? "h-8 w-8 text-xs" : "h-10 w-10 text-sm",
|
|
5512
6047
|
message.sender.accentColor ?? "bg-muted text-muted-foreground"
|
|
@@ -5524,7 +6059,7 @@ function MosaicMessageCard({
|
|
|
5524
6059
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-w-0 flex-1", children: [
|
|
5525
6060
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mb-2 flex items-center justify-between gap-2", children: [
|
|
5526
6061
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
5527
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
6062
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: cn51("font-medium", compact ? "text-sm" : "text-base"), children: message.sender.name }),
|
|
5528
6063
|
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" })
|
|
5529
6064
|
] }),
|
|
5530
6065
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "shrink-0 text-xs text-muted-foreground", children: relativeTime(message.timestamp) })
|
|
@@ -5532,7 +6067,7 @@ function MosaicMessageCard({
|
|
|
5532
6067
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5533
6068
|
"p",
|
|
5534
6069
|
{
|
|
5535
|
-
className:
|
|
6070
|
+
className: cn51(
|
|
5536
6071
|
"leading-relaxed text-foreground mb-3",
|
|
5537
6072
|
compact ? "text-sm" : "text-base"
|
|
5538
6073
|
),
|
|
@@ -5547,7 +6082,7 @@ function MosaicMessageCard({
|
|
|
5547
6082
|
{
|
|
5548
6083
|
type: "button",
|
|
5549
6084
|
onClick: handleLike,
|
|
5550
|
-
className:
|
|
6085
|
+
className: cn51(
|
|
5551
6086
|
"inline-flex h-8 items-center gap-1 rounded-md px-2 text-xs",
|
|
5552
6087
|
"hover:bg-accent hover:text-accent-foreground",
|
|
5553
6088
|
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
@@ -5565,7 +6100,7 @@ function MosaicMessageCard({
|
|
|
5565
6100
|
{
|
|
5566
6101
|
type: "button",
|
|
5567
6102
|
onClick: handleDislike,
|
|
5568
|
-
className:
|
|
6103
|
+
className: cn51(
|
|
5569
6104
|
"inline-flex h-8 items-center gap-1 rounded-md px-2 text-xs",
|
|
5570
6105
|
"hover:bg-accent hover:text-accent-foreground",
|
|
5571
6106
|
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
@@ -5610,7 +6145,7 @@ function MosaicMessageCard({
|
|
|
5610
6145
|
{
|
|
5611
6146
|
type: "button",
|
|
5612
6147
|
onClick: handleBookmark,
|
|
5613
|
-
className:
|
|
6148
|
+
className: cn51(
|
|
5614
6149
|
"inline-flex h-8 w-8 items-center justify-center rounded-md",
|
|
5615
6150
|
"hover:bg-accent hover:text-accent-foreground",
|
|
5616
6151
|
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
@@ -5711,7 +6246,7 @@ function MosaicMessageCard({
|
|
|
5711
6246
|
);
|
|
5712
6247
|
}
|
|
5713
6248
|
MosaicMessageCard.displayName = "MosaicMessageCard";
|
|
5714
|
-
function
|
|
6249
|
+
function cn52(...classes) {
|
|
5715
6250
|
return classes.filter(Boolean).join(" ");
|
|
5716
6251
|
}
|
|
5717
6252
|
function SearchIcon2() {
|
|
@@ -5751,7 +6286,7 @@ function MessageListDesktop({
|
|
|
5751
6286
|
const filtered = query ? messages.filter(
|
|
5752
6287
|
(m) => m.content.toLowerCase().includes(query.toLowerCase()) || m.sender.name.toLowerCase().includes(query.toLowerCase())
|
|
5753
6288
|
) : messages;
|
|
5754
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "message-list-desktop", className:
|
|
6289
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "message-list-desktop", className: cn52("flex h-full flex-col", className), children: [
|
|
5755
6290
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between border-b border-border px-6 py-4", children: [
|
|
5756
6291
|
title && /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-lg font-semibold", children: title }),
|
|
5757
6292
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative ml-auto max-w-xs flex-1", children: [
|
|
@@ -5763,7 +6298,7 @@ function MessageListDesktop({
|
|
|
5763
6298
|
value: query,
|
|
5764
6299
|
onChange: (e) => setQuery(e.target.value),
|
|
5765
6300
|
placeholder: "Search messages\u2026",
|
|
5766
|
-
className:
|
|
6301
|
+
className: cn52(
|
|
5767
6302
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
5768
6303
|
"text-sm placeholder:text-muted-foreground",
|
|
5769
6304
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -5792,7 +6327,7 @@ function MessageListDesktop({
|
|
|
5792
6327
|
{
|
|
5793
6328
|
type: "button",
|
|
5794
6329
|
onClick: onLoadMore,
|
|
5795
|
-
className:
|
|
6330
|
+
className: cn52(
|
|
5796
6331
|
"w-full rounded-md border border-border bg-background px-4 py-2 text-sm font-medium",
|
|
5797
6332
|
"hover:bg-accent hover:text-accent-foreground",
|
|
5798
6333
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -5814,7 +6349,7 @@ function MessageListMobile({
|
|
|
5814
6349
|
isLoading,
|
|
5815
6350
|
className
|
|
5816
6351
|
}) {
|
|
5817
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "message-list-mobile", className:
|
|
6352
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "message-list-mobile", className: cn52("flex flex-col", className), children: [
|
|
5818
6353
|
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 }) }),
|
|
5819
6354
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-3 p-4", children: [
|
|
5820
6355
|
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)) }),
|
|
@@ -5837,7 +6372,7 @@ function MessageListMobile({
|
|
|
5837
6372
|
{
|
|
5838
6373
|
type: "button",
|
|
5839
6374
|
onClick: onLoadMore,
|
|
5840
|
-
className:
|
|
6375
|
+
className: cn52(
|
|
5841
6376
|
"w-full min-h-[44px] rounded-md border border-border bg-background px-4 py-2 text-sm font-medium",
|
|
5842
6377
|
"hover:bg-accent hover:text-accent-foreground",
|
|
5843
6378
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -5852,7 +6387,7 @@ function MosaicMessageList(props) {
|
|
|
5852
6387
|
return isMobile ? /* @__PURE__ */ jsxRuntime.jsx(MessageListMobile, { ...props }) : /* @__PURE__ */ jsxRuntime.jsx(MessageListDesktop, { ...props });
|
|
5853
6388
|
}
|
|
5854
6389
|
MosaicMessageList.displayName = "MosaicMessageList";
|
|
5855
|
-
function
|
|
6390
|
+
function cn53(...classes) {
|
|
5856
6391
|
return classes.filter(Boolean).join(" ");
|
|
5857
6392
|
}
|
|
5858
6393
|
function ChevronLeftIcon2() {
|
|
@@ -5928,7 +6463,7 @@ function MosaicFilterSidebar({
|
|
|
5928
6463
|
{
|
|
5929
6464
|
"data-slot": "filter-sidebar",
|
|
5930
6465
|
style: { width, minWidth: isCollapsed && !isMobile ? "64px" : void 0 },
|
|
5931
|
-
className:
|
|
6466
|
+
className: cn53(
|
|
5932
6467
|
"relative flex flex-col border-r border-border bg-card",
|
|
5933
6468
|
"transition-[width] duration-200 ease-in-out",
|
|
5934
6469
|
"overflow-hidden",
|
|
@@ -5940,7 +6475,7 @@ function MosaicFilterSidebar({
|
|
|
5940
6475
|
{
|
|
5941
6476
|
type: "button",
|
|
5942
6477
|
onClick: onToggleCollapse,
|
|
5943
|
-
className:
|
|
6478
|
+
className: cn53(
|
|
5944
6479
|
"absolute -right-3 top-6 z-10 flex h-6 w-6 items-center justify-center rounded-full",
|
|
5945
6480
|
"border border-border bg-background shadow-sm",
|
|
5946
6481
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -5970,7 +6505,7 @@ function MosaicFilterSidebar({
|
|
|
5970
6505
|
{
|
|
5971
6506
|
type: "button",
|
|
5972
6507
|
onClick: () => onFilterChange(f.id),
|
|
5973
|
-
className:
|
|
6508
|
+
className: cn53(
|
|
5974
6509
|
"flex min-h-[40px] items-center justify-between rounded-md px-3 py-2 text-sm font-medium",
|
|
5975
6510
|
"transition-colors hover:bg-accent hover:text-accent-foreground",
|
|
5976
6511
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -5990,7 +6525,7 @@ function MosaicFilterSidebar({
|
|
|
5990
6525
|
{
|
|
5991
6526
|
type: "button",
|
|
5992
6527
|
onClick: () => onCategoryChange(cat.id),
|
|
5993
|
-
className:
|
|
6528
|
+
className: cn53(
|
|
5994
6529
|
"flex min-h-[36px] items-center justify-between rounded-md px-3 py-1.5 text-sm",
|
|
5995
6530
|
"transition-colors hover:bg-accent hover:text-accent-foreground",
|
|
5996
6531
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -6010,7 +6545,7 @@ function MosaicFilterSidebar({
|
|
|
6010
6545
|
);
|
|
6011
6546
|
}
|
|
6012
6547
|
MosaicFilterSidebar.displayName = "MosaicFilterSidebar";
|
|
6013
|
-
function
|
|
6548
|
+
function cn54(...classes) {
|
|
6014
6549
|
return classes.filter(Boolean).join(" ");
|
|
6015
6550
|
}
|
|
6016
6551
|
function SearchIcon3() {
|
|
@@ -6125,7 +6660,7 @@ function AgentListDesktop({
|
|
|
6125
6660
|
value: query,
|
|
6126
6661
|
onChange: (e) => setQuery(e.target.value),
|
|
6127
6662
|
placeholder: searchPlaceholder,
|
|
6128
|
-
className:
|
|
6663
|
+
className: cn54(
|
|
6129
6664
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
6130
6665
|
"text-sm placeholder:text-muted-foreground",
|
|
6131
6666
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -6138,7 +6673,7 @@ function AgentListDesktop({
|
|
|
6138
6673
|
{
|
|
6139
6674
|
type: "button",
|
|
6140
6675
|
onClick: onCreateAgent,
|
|
6141
|
-
className:
|
|
6676
|
+
className: cn54(
|
|
6142
6677
|
"inline-flex items-center gap-2 rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground",
|
|
6143
6678
|
"hover:bg-primary/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
6144
6679
|
),
|
|
@@ -6197,7 +6732,7 @@ function AgentListMobile({
|
|
|
6197
6732
|
{
|
|
6198
6733
|
type: "button",
|
|
6199
6734
|
onClick: () => setFilterOpen(true),
|
|
6200
|
-
className:
|
|
6735
|
+
className: cn54(
|
|
6201
6736
|
"inline-flex h-9 w-9 items-center justify-center rounded-md",
|
|
6202
6737
|
"border border-border bg-background text-foreground",
|
|
6203
6738
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -6212,7 +6747,7 @@ function AgentListMobile({
|
|
|
6212
6747
|
{
|
|
6213
6748
|
type: "button",
|
|
6214
6749
|
onClick: onCreateAgent,
|
|
6215
|
-
className:
|
|
6750
|
+
className: cn54(
|
|
6216
6751
|
"inline-flex h-9 items-center gap-1.5 rounded-md bg-primary px-3 text-sm font-medium text-primary-foreground",
|
|
6217
6752
|
"hover:bg-primary/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
6218
6753
|
),
|
|
@@ -6233,7 +6768,7 @@ function AgentListMobile({
|
|
|
6233
6768
|
value: query,
|
|
6234
6769
|
onChange: (e) => setQuery(e.target.value),
|
|
6235
6770
|
placeholder: searchPlaceholder,
|
|
6236
|
-
className:
|
|
6771
|
+
className: cn54(
|
|
6237
6772
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
6238
6773
|
"text-sm placeholder:text-muted-foreground",
|
|
6239
6774
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -6281,7 +6816,7 @@ function MosaicAgentList(props) {
|
|
|
6281
6816
|
return isMobile ? /* @__PURE__ */ jsxRuntime.jsx(AgentListMobile, { ...props }) : /* @__PURE__ */ jsxRuntime.jsx(AgentListDesktop, { ...props });
|
|
6282
6817
|
}
|
|
6283
6818
|
MosaicAgentList.displayName = "MosaicAgentList";
|
|
6284
|
-
function
|
|
6819
|
+
function cn55(...classes) {
|
|
6285
6820
|
return classes.filter(Boolean).join(" ");
|
|
6286
6821
|
}
|
|
6287
6822
|
function StarIcon({ filled }) {
|
|
@@ -6377,7 +6912,7 @@ function MarketplaceCard({
|
|
|
6377
6912
|
"div",
|
|
6378
6913
|
{
|
|
6379
6914
|
"data-slot": "marketplace-card",
|
|
6380
|
-
className:
|
|
6915
|
+
className: cn55(
|
|
6381
6916
|
"rounded-lg border border-border bg-card p-4 transition-shadow hover:shadow-md",
|
|
6382
6917
|
compact ? "flex items-center gap-3" : "flex flex-col gap-3"
|
|
6383
6918
|
),
|
|
@@ -6385,7 +6920,7 @@ function MarketplaceCard({
|
|
|
6385
6920
|
item.icon && /* @__PURE__ */ jsxRuntime.jsx(
|
|
6386
6921
|
"div",
|
|
6387
6922
|
{
|
|
6388
|
-
className:
|
|
6923
|
+
className: cn55(
|
|
6389
6924
|
"flex shrink-0 items-center justify-center rounded-lg",
|
|
6390
6925
|
compact ? "h-10 w-10" : "h-12 w-12",
|
|
6391
6926
|
item.accentClass ?? "bg-muted text-muted-foreground"
|
|
@@ -6396,7 +6931,7 @@ function MarketplaceCard({
|
|
|
6396
6931
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex-1 min-w-0", children: [
|
|
6397
6932
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start justify-between gap-2", children: [
|
|
6398
6933
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-w-0", children: [
|
|
6399
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className:
|
|
6934
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: cn55("font-semibold leading-tight", compact ? "text-sm" : "text-base"), children: item.title }),
|
|
6400
6935
|
item.description && !compact && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-1 text-sm text-muted-foreground line-clamp-2", children: item.description })
|
|
6401
6936
|
] }),
|
|
6402
6937
|
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 })
|
|
@@ -6413,13 +6948,13 @@ function MarketplaceCard({
|
|
|
6413
6948
|
] })
|
|
6414
6949
|
] })
|
|
6415
6950
|
] }),
|
|
6416
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
6951
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn55("flex gap-2", compact ? "shrink-0" : "mt-1"), children: [
|
|
6417
6952
|
onPreview && /* @__PURE__ */ jsxRuntime.jsx(
|
|
6418
6953
|
"button",
|
|
6419
6954
|
{
|
|
6420
6955
|
type: "button",
|
|
6421
6956
|
onClick: () => onPreview(item.id),
|
|
6422
|
-
className:
|
|
6957
|
+
className: cn55(
|
|
6423
6958
|
"inline-flex min-h-[36px] items-center justify-center rounded-md border border-border",
|
|
6424
6959
|
"bg-background px-3 text-xs font-medium text-foreground",
|
|
6425
6960
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -6433,7 +6968,7 @@ function MarketplaceCard({
|
|
|
6433
6968
|
{
|
|
6434
6969
|
type: "button",
|
|
6435
6970
|
onClick: () => onUninstall(item.id),
|
|
6436
|
-
className:
|
|
6971
|
+
className: cn55(
|
|
6437
6972
|
"inline-flex min-h-[36px] items-center justify-center rounded-md",
|
|
6438
6973
|
"bg-secondary px-3 text-xs font-medium text-secondary-foreground",
|
|
6439
6974
|
"hover:bg-secondary/80",
|
|
@@ -6446,7 +6981,7 @@ function MarketplaceCard({
|
|
|
6446
6981
|
{
|
|
6447
6982
|
type: "button",
|
|
6448
6983
|
onClick: () => onInstall(item.id),
|
|
6449
|
-
className:
|
|
6984
|
+
className: cn55(
|
|
6450
6985
|
"inline-flex min-h-[36px] items-center justify-center rounded-md",
|
|
6451
6986
|
"bg-primary px-3 text-xs font-medium text-primary-foreground",
|
|
6452
6987
|
"hover:bg-primary/90",
|
|
@@ -6508,7 +7043,7 @@ function MarketplaceListDesktop(props) {
|
|
|
6508
7043
|
value: query,
|
|
6509
7044
|
onChange: (e) => setQuery(e.target.value),
|
|
6510
7045
|
placeholder: searchPlaceholder,
|
|
6511
|
-
className:
|
|
7046
|
+
className: cn55(
|
|
6512
7047
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
6513
7048
|
"text-sm placeholder:text-muted-foreground",
|
|
6514
7049
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -6581,7 +7116,7 @@ function MarketplaceListMobile(props) {
|
|
|
6581
7116
|
value: query,
|
|
6582
7117
|
onChange: (e) => setQuery(e.target.value),
|
|
6583
7118
|
placeholder: searchPlaceholder,
|
|
6584
|
-
className:
|
|
7119
|
+
className: cn55(
|
|
6585
7120
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
6586
7121
|
"text-sm placeholder:text-muted-foreground",
|
|
6587
7122
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -6632,7 +7167,7 @@ function MosaicMarketplaceList(props) {
|
|
|
6632
7167
|
return isMobile ? /* @__PURE__ */ jsxRuntime.jsx(MarketplaceListMobile, { ...props }) : /* @__PURE__ */ jsxRuntime.jsx(MarketplaceListDesktop, { ...props });
|
|
6633
7168
|
}
|
|
6634
7169
|
MosaicMarketplaceList.displayName = "MosaicMarketplaceList";
|
|
6635
|
-
function
|
|
7170
|
+
function cn56(...classes) {
|
|
6636
7171
|
return classes.filter(Boolean).join(" ");
|
|
6637
7172
|
}
|
|
6638
7173
|
function StarIcon2() {
|
|
@@ -6751,7 +7286,7 @@ function MosaicTemplateCard({
|
|
|
6751
7286
|
type: "button",
|
|
6752
7287
|
onClick: () => onSelect(template),
|
|
6753
7288
|
"data-slot": "template-card",
|
|
6754
|
-
className:
|
|
7289
|
+
className: cn56(
|
|
6755
7290
|
"w-full text-left rounded-lg border transition-all duration-200",
|
|
6756
7291
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
6757
7292
|
isSelected ? "border-primary bg-primary/5 ring-2 ring-primary" : "border-border bg-card hover:border-primary/50",
|
|
@@ -6851,7 +7386,7 @@ function MosaicTemplatePreview({
|
|
|
6851
7386
|
agent.accentColor && /* @__PURE__ */ jsxRuntime.jsx(
|
|
6852
7387
|
"span",
|
|
6853
7388
|
{
|
|
6854
|
-
className:
|
|
7389
|
+
className: cn56("h-2 w-2 rounded-full", agent.accentColor),
|
|
6855
7390
|
"aria-hidden": "true"
|
|
6856
7391
|
}
|
|
6857
7392
|
),
|
|
@@ -6911,7 +7446,7 @@ function MosaicAgentTeamPreview({ agents, label }) {
|
|
|
6911
7446
|
agent.accentColor && /* @__PURE__ */ jsxRuntime.jsx(
|
|
6912
7447
|
"span",
|
|
6913
7448
|
{
|
|
6914
|
-
className:
|
|
7449
|
+
className: cn56("h-2.5 w-2.5 rounded-full", agent.accentColor),
|
|
6915
7450
|
"aria-hidden": "true"
|
|
6916
7451
|
}
|
|
6917
7452
|
),
|
|
@@ -6935,7 +7470,7 @@ function MosaicQuickStartPanel({
|
|
|
6935
7470
|
scratchLabel = "Start from Scratch",
|
|
6936
7471
|
className
|
|
6937
7472
|
}) {
|
|
6938
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "quick-start-panel", className:
|
|
7473
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "quick-start-panel", className: cn56("flex flex-col gap-6", className), children: [
|
|
6939
7474
|
scenarios.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
6940
7475
|
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "mb-3 text-sm font-semibold text-foreground", children: scenariosTitle }),
|
|
6941
7476
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "grid gap-3 sm:grid-cols-2", children: scenarios.map((scenario) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -6943,7 +7478,7 @@ function MosaicQuickStartPanel({
|
|
|
6943
7478
|
{
|
|
6944
7479
|
type: "button",
|
|
6945
7480
|
onClick: () => onSelectScenario(scenario),
|
|
6946
|
-
className:
|
|
7481
|
+
className: cn56(
|
|
6947
7482
|
"flex items-start gap-3 rounded-lg border border-border bg-card p-4 text-left",
|
|
6948
7483
|
"hover:border-primary/50 hover:bg-primary/5",
|
|
6949
7484
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -6975,7 +7510,7 @@ function MosaicQuickStartPanel({
|
|
|
6975
7510
|
{
|
|
6976
7511
|
type: "button",
|
|
6977
7512
|
onClick: () => onSelectPreset(preset),
|
|
6978
|
-
className:
|
|
7513
|
+
className: cn56(
|
|
6979
7514
|
"flex items-center justify-between gap-3 rounded-lg border border-border bg-card px-4 py-3 text-left",
|
|
6980
7515
|
"hover:border-primary/50",
|
|
6981
7516
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -6989,7 +7524,7 @@ function MosaicQuickStartPanel({
|
|
|
6989
7524
|
a.accentColor && /* @__PURE__ */ jsxRuntime.jsx(
|
|
6990
7525
|
"span",
|
|
6991
7526
|
{
|
|
6992
|
-
className:
|
|
7527
|
+
className: cn56("h-2 w-2 rounded-full", a.accentColor),
|
|
6993
7528
|
"aria-hidden": "true"
|
|
6994
7529
|
}
|
|
6995
7530
|
),
|
|
@@ -7007,7 +7542,7 @@ function MosaicQuickStartPanel({
|
|
|
7007
7542
|
{
|
|
7008
7543
|
type: "button",
|
|
7009
7544
|
onClick: onStartFromScratch,
|
|
7010
|
-
className:
|
|
7545
|
+
className: cn56(
|
|
7011
7546
|
"inline-flex min-h-[44px] w-full items-center justify-center rounded-md border border-border",
|
|
7012
7547
|
"bg-background px-4 text-sm font-medium text-foreground",
|
|
7013
7548
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -7087,7 +7622,7 @@ function TemplateGalleryContent({
|
|
|
7087
7622
|
value: query,
|
|
7088
7623
|
onChange: (e) => setQuery(e.target.value),
|
|
7089
7624
|
placeholder: searchPlaceholder,
|
|
7090
|
-
className:
|
|
7625
|
+
className: cn56(
|
|
7091
7626
|
"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"
|
|
7092
7627
|
)
|
|
7093
7628
|
}
|
|
@@ -7135,7 +7670,7 @@ function TemplateGalleryContent({
|
|
|
7135
7670
|
value: query,
|
|
7136
7671
|
onChange: (e) => setQuery(e.target.value),
|
|
7137
7672
|
placeholder: searchPlaceholder,
|
|
7138
|
-
className:
|
|
7673
|
+
className: cn56(
|
|
7139
7674
|
"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"
|
|
7140
7675
|
)
|
|
7141
7676
|
}
|
|
@@ -7165,7 +7700,7 @@ function MosaicTemplateGallery(props) {
|
|
|
7165
7700
|
return /* @__PURE__ */ jsxRuntime.jsx(TemplateGalleryContent, { ...props, isMobile });
|
|
7166
7701
|
}
|
|
7167
7702
|
MosaicTemplateGallery.displayName = "MosaicTemplateGallery";
|
|
7168
|
-
function
|
|
7703
|
+
function cn57(...classes) {
|
|
7169
7704
|
return classes.filter(Boolean).join(" ");
|
|
7170
7705
|
}
|
|
7171
7706
|
function PlusIcon5() {
|
|
@@ -7309,7 +7844,7 @@ function MosaicModuleForm({
|
|
|
7309
7844
|
onChange: (e) => update("name", e.target.value),
|
|
7310
7845
|
placeholder: "Module name\u2026",
|
|
7311
7846
|
required: true,
|
|
7312
|
-
className:
|
|
7847
|
+
className: cn57(
|
|
7313
7848
|
"w-full rounded-md border border-input bg-background px-3 py-2 min-h-[40px]",
|
|
7314
7849
|
"text-sm placeholder:text-muted-foreground",
|
|
7315
7850
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -7327,7 +7862,7 @@ function MosaicModuleForm({
|
|
|
7327
7862
|
onChange: (e) => update("description", e.target.value),
|
|
7328
7863
|
placeholder: "Describe this module\u2026",
|
|
7329
7864
|
rows: 3,
|
|
7330
|
-
className:
|
|
7865
|
+
className: cn57(
|
|
7331
7866
|
"w-full rounded-md border border-input bg-background px-3 py-2",
|
|
7332
7867
|
"text-sm placeholder:text-muted-foreground resize-none",
|
|
7333
7868
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -7349,7 +7884,7 @@ function MosaicModuleForm({
|
|
|
7349
7884
|
value: formData[field.id] ?? "",
|
|
7350
7885
|
onChange: (e) => update(field.id, e.target.value),
|
|
7351
7886
|
placeholder: field.placeholder,
|
|
7352
|
-
className:
|
|
7887
|
+
className: cn57(
|
|
7353
7888
|
"w-full rounded-md border border-input bg-background px-3 py-2 min-h-[40px]",
|
|
7354
7889
|
"text-sm placeholder:text-muted-foreground",
|
|
7355
7890
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -7364,7 +7899,7 @@ function MosaicModuleForm({
|
|
|
7364
7899
|
onChange: (e) => update(field.id, e.target.value),
|
|
7365
7900
|
placeholder: field.placeholder,
|
|
7366
7901
|
rows: 3,
|
|
7367
|
-
className:
|
|
7902
|
+
className: cn57(
|
|
7368
7903
|
"w-full rounded-md border border-input bg-background px-3 py-2",
|
|
7369
7904
|
"text-sm placeholder:text-muted-foreground resize-none",
|
|
7370
7905
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -7380,7 +7915,7 @@ function MosaicModuleForm({
|
|
|
7380
7915
|
onChange: (e) => update(field.id, e.target.value),
|
|
7381
7916
|
placeholder: field.placeholder ?? "\u{1F9E0}",
|
|
7382
7917
|
maxLength: 4,
|
|
7383
|
-
className:
|
|
7918
|
+
className: cn57(
|
|
7384
7919
|
"w-20 rounded-md border border-input bg-background px-3 py-2 text-2xl",
|
|
7385
7920
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
7386
7921
|
)
|
|
@@ -7401,7 +7936,7 @@ function MosaicModuleForm({
|
|
|
7401
7936
|
}
|
|
7402
7937
|
},
|
|
7403
7938
|
placeholder: field.placeholder ?? "Add item\u2026",
|
|
7404
|
-
className:
|
|
7939
|
+
className: cn57(
|
|
7405
7940
|
"flex-1 rounded-md border border-input bg-background px-3 py-2 min-h-[36px]",
|
|
7406
7941
|
"text-sm placeholder:text-muted-foreground",
|
|
7407
7942
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -7597,7 +8132,7 @@ function LibraryContent({
|
|
|
7597
8132
|
{
|
|
7598
8133
|
type: "button",
|
|
7599
8134
|
onClick: openCreate,
|
|
7600
|
-
className:
|
|
8135
|
+
className: cn57(
|
|
7601
8136
|
"inline-flex items-center gap-2 rounded-md bg-primary px-3 py-2 text-sm font-medium text-primary-foreground",
|
|
7602
8137
|
"hover:bg-primary/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
7603
8138
|
),
|
|
@@ -7617,7 +8152,7 @@ function LibraryContent({
|
|
|
7617
8152
|
value: query,
|
|
7618
8153
|
onChange: (e) => setQuery(e.target.value),
|
|
7619
8154
|
placeholder: searchPlaceholder,
|
|
7620
|
-
className:
|
|
8155
|
+
className: cn57(
|
|
7621
8156
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
7622
8157
|
"text-sm placeholder:text-muted-foreground",
|
|
7623
8158
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -7630,7 +8165,7 @@ function LibraryContent({
|
|
|
7630
8165
|
{
|
|
7631
8166
|
type: "button",
|
|
7632
8167
|
onClick: () => setActiveTab(tab.id),
|
|
7633
|
-
className:
|
|
8168
|
+
className: cn57(
|
|
7634
8169
|
"rounded-md px-3 py-1.5 text-sm font-medium transition-colors",
|
|
7635
8170
|
activeTab === tab.id ? "bg-primary text-primary-foreground" : "bg-muted text-muted-foreground hover:bg-accent hover:text-accent-foreground"
|
|
7636
8171
|
),
|
|
@@ -7664,7 +8199,7 @@ function MosaicModuleLibrary(props) {
|
|
|
7664
8199
|
return /* @__PURE__ */ jsxRuntime.jsx(LibraryContent, { ...props });
|
|
7665
8200
|
}
|
|
7666
8201
|
MosaicModuleLibrary.displayName = "MosaicModuleLibrary";
|
|
7667
|
-
function
|
|
8202
|
+
function cn58(...classes) {
|
|
7668
8203
|
return classes.filter(Boolean).join(" ");
|
|
7669
8204
|
}
|
|
7670
8205
|
var roleConfig = {
|
|
@@ -7691,7 +8226,7 @@ function MosaicOrgRoleBadge({ role, className }) {
|
|
|
7691
8226
|
{
|
|
7692
8227
|
"data-slot": "org-role-badge",
|
|
7693
8228
|
title: config.description,
|
|
7694
|
-
className:
|
|
8229
|
+
className: cn58(
|
|
7695
8230
|
"inline-flex items-center rounded-full px-2 py-0.5 text-xs font-medium",
|
|
7696
8231
|
config.className,
|
|
7697
8232
|
className
|
|
@@ -7708,13 +8243,13 @@ function MosaicMultiOrgIndicator({
|
|
|
7708
8243
|
className
|
|
7709
8244
|
}) {
|
|
7710
8245
|
if (orgCount <= 1) return null;
|
|
7711
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "multi-org-indicator", className:
|
|
8246
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "multi-org-indicator", className: cn58("flex items-center gap-2", className), children: [
|
|
7712
8247
|
onSwitchOrg ? /* @__PURE__ */ jsxRuntime.jsxs(
|
|
7713
8248
|
"button",
|
|
7714
8249
|
{
|
|
7715
8250
|
type: "button",
|
|
7716
8251
|
onClick: onSwitchOrg,
|
|
7717
|
-
className:
|
|
8252
|
+
className: cn58(
|
|
7718
8253
|
"inline-flex items-center gap-1.5 rounded-full bg-secondary px-2.5 py-1 text-xs font-medium text-secondary-foreground",
|
|
7719
8254
|
"hover:bg-secondary/80",
|
|
7720
8255
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -7812,7 +8347,7 @@ function MosaicCreateOrgDialog({
|
|
|
7812
8347
|
onChange: (e) => setName(e.target.value),
|
|
7813
8348
|
placeholder: "Acme Inc.",
|
|
7814
8349
|
required: true,
|
|
7815
|
-
className:
|
|
8350
|
+
className: cn58(
|
|
7816
8351
|
"w-full rounded-md border bg-background px-3 py-2 min-h-[40px] text-sm placeholder:text-muted-foreground",
|
|
7817
8352
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
7818
8353
|
errors.name ? "border-destructive" : "border-input"
|
|
@@ -7832,7 +8367,7 @@ function MosaicCreateOrgDialog({
|
|
|
7832
8367
|
onChange: (e) => setSlug(e.target.value),
|
|
7833
8368
|
placeholder: "acme-inc",
|
|
7834
8369
|
required: true,
|
|
7835
|
-
className:
|
|
8370
|
+
className: cn58(
|
|
7836
8371
|
"w-full rounded-md border bg-background px-3 py-2 min-h-[40px] text-sm placeholder:text-muted-foreground",
|
|
7837
8372
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
7838
8373
|
errors.slug ? "border-destructive" : "border-input"
|
|
@@ -7929,7 +8464,7 @@ function MosaicInviteMemberDialog({
|
|
|
7929
8464
|
onChange: (e) => setEmail(e.target.value),
|
|
7930
8465
|
placeholder: "colleague@example.com",
|
|
7931
8466
|
required: true,
|
|
7932
|
-
className:
|
|
8467
|
+
className: cn58(
|
|
7933
8468
|
"w-full rounded-md border bg-background px-3 py-2 min-h-[40px] text-sm placeholder:text-muted-foreground",
|
|
7934
8469
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
7935
8470
|
errors.email ? "border-destructive" : "border-input"
|
|
@@ -8106,7 +8641,7 @@ function MosaicMemberList({
|
|
|
8106
8641
|
const filtered = members.filter(
|
|
8107
8642
|
(m) => !query || m.name.toLowerCase().includes(query.toLowerCase()) || m.email.toLowerCase().includes(query.toLowerCase())
|
|
8108
8643
|
);
|
|
8109
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "member-list", className:
|
|
8644
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "member-list", className: cn58("flex flex-col gap-4", className), children: [
|
|
8110
8645
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
8111
8646
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative flex-1", children: [
|
|
8112
8647
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground", children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -8199,7 +8734,7 @@ function MosaicOrgPanel({
|
|
|
8199
8734
|
const { isMobile } = useDevice();
|
|
8200
8735
|
const [activeTab, setActiveTab] = React27__namespace.useState(defaultTab ?? tabs[0]?.id ?? "");
|
|
8201
8736
|
const activeContent = tabs.find((t) => t.id === activeTab)?.content;
|
|
8202
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "org-panel", className:
|
|
8737
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "org-panel", className: cn58("flex h-full flex-col", className), children: [
|
|
8203
8738
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "border-b border-border px-4 py-4 md:px-6", children: [
|
|
8204
8739
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start justify-between gap-4", children: [
|
|
8205
8740
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
@@ -8221,12 +8756,12 @@ function MosaicOrgPanel({
|
|
|
8221
8756
|
] }),
|
|
8222
8757
|
headerActions
|
|
8223
8758
|
] }),
|
|
8224
|
-
tabs.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
8759
|
+
tabs.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn58("mt-4 flex gap-1", isMobile && "overflow-x-auto"), children: tabs.map((tab) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
8225
8760
|
"button",
|
|
8226
8761
|
{
|
|
8227
8762
|
type: "button",
|
|
8228
8763
|
onClick: () => setActiveTab(tab.id),
|
|
8229
|
-
className:
|
|
8764
|
+
className: cn58(
|
|
8230
8765
|
"shrink-0 rounded-md px-3 py-1.5 text-sm font-medium transition-colors",
|
|
8231
8766
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
8232
8767
|
activeTab === tab.id ? "bg-primary text-primary-foreground" : "bg-muted text-muted-foreground hover:bg-accent hover:text-accent-foreground"
|
|
@@ -8240,7 +8775,7 @@ function MosaicOrgPanel({
|
|
|
8240
8775
|
] });
|
|
8241
8776
|
}
|
|
8242
8777
|
MosaicOrgPanel.displayName = "MosaicOrgPanel";
|
|
8243
|
-
function
|
|
8778
|
+
function cn59(...classes) {
|
|
8244
8779
|
return classes.filter(Boolean).join(" ");
|
|
8245
8780
|
}
|
|
8246
8781
|
var ANIM_ID8 = "mosaic-dashboard-content-kf";
|
|
@@ -8277,7 +8812,7 @@ function MosaicDashboardContent({
|
|
|
8277
8812
|
"div",
|
|
8278
8813
|
{
|
|
8279
8814
|
"data-slot": "dashboard-content",
|
|
8280
|
-
className:
|
|
8815
|
+
className: cn59("h-full overflow-auto", isMobile ? "p-4" : "p-6", className),
|
|
8281
8816
|
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: [
|
|
8282
8817
|
"View not found: ",
|
|
8283
8818
|
currentView
|
|
@@ -8286,7 +8821,7 @@ function MosaicDashboardContent({
|
|
|
8286
8821
|
);
|
|
8287
8822
|
}
|
|
8288
8823
|
MosaicDashboardContent.displayName = "MosaicDashboardContent";
|
|
8289
|
-
function
|
|
8824
|
+
function cn60(...classes) {
|
|
8290
8825
|
return classes.filter(Boolean).join(" ");
|
|
8291
8826
|
}
|
|
8292
8827
|
var ANIM_ID9 = "mosaic-dashboard-header2-kf";
|
|
@@ -8396,16 +8931,16 @@ function MosaicDashboardHeader({
|
|
|
8396
8931
|
"header",
|
|
8397
8932
|
{
|
|
8398
8933
|
"data-slot": "dashboard-header",
|
|
8399
|
-
className:
|
|
8934
|
+
className: cn60(
|
|
8400
8935
|
"mosaic-dashboard-header2",
|
|
8401
8936
|
"sticky top-0 z-40 border-b border-border/50 bg-background/80 backdrop-blur-sm",
|
|
8402
8937
|
className
|
|
8403
8938
|
),
|
|
8404
|
-
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
8939
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn60(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: [
|
|
8405
8940
|
/* @__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: [
|
|
8406
8941
|
logoSlot ?? /* @__PURE__ */ jsxRuntime.jsx(SparklesIcon4, {}),
|
|
8407
8942
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-w-0", children: [
|
|
8408
|
-
/* @__PURE__ */ jsxRuntime.jsx("h1", { className:
|
|
8943
|
+
/* @__PURE__ */ jsxRuntime.jsx("h1", { className: cn60("font-semibold truncate", isMobile ? "text-lg" : "text-xl"), children: title }),
|
|
8409
8944
|
subtitle && !isMobile && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-muted-foreground truncate", children: subtitle })
|
|
8410
8945
|
] })
|
|
8411
8946
|
] }) }),
|
|
@@ -8418,7 +8953,7 @@ function MosaicDashboardHeader({
|
|
|
8418
8953
|
value: searchQuery,
|
|
8419
8954
|
onChange: handleSearch,
|
|
8420
8955
|
placeholder: "Search\u2026",
|
|
8421
|
-
className:
|
|
8956
|
+
className: cn60(
|
|
8422
8957
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
8423
8958
|
"text-sm placeholder:text-muted-foreground",
|
|
8424
8959
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -8458,7 +8993,7 @@ function MosaicDashboardHeader({
|
|
|
8458
8993
|
);
|
|
8459
8994
|
}
|
|
8460
8995
|
MosaicDashboardHeader.displayName = "MosaicDashboardHeader";
|
|
8461
|
-
function
|
|
8996
|
+
function cn61(...classes) {
|
|
8462
8997
|
return classes.filter(Boolean).join(" ");
|
|
8463
8998
|
}
|
|
8464
8999
|
function ChevronDownIcon4() {
|
|
@@ -8539,13 +9074,13 @@ function MosaicOrgSwitcher({
|
|
|
8539
9074
|
}, [open]);
|
|
8540
9075
|
if (!currentOrg && organizations.length === 0 && !onCreateOrg) return null;
|
|
8541
9076
|
const initials = currentOrg?.name.split(" ").map((n) => n[0]).filter(Boolean).slice(0, 2).join("").toUpperCase() ?? "?";
|
|
8542
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, "data-slot": "org-switcher", className:
|
|
9077
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, "data-slot": "org-switcher", className: cn61("relative", className), children: [
|
|
8543
9078
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
8544
9079
|
"button",
|
|
8545
9080
|
{
|
|
8546
9081
|
type: "button",
|
|
8547
9082
|
onClick: () => setOpen((v) => !v),
|
|
8548
|
-
className:
|
|
9083
|
+
className: cn61(
|
|
8549
9084
|
"inline-flex items-center gap-2 rounded-md border border-border bg-background px-3 py-1.5",
|
|
8550
9085
|
"text-sm font-medium text-foreground",
|
|
8551
9086
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -8572,7 +9107,7 @@ function MosaicOrgSwitcher({
|
|
|
8572
9107
|
{
|
|
8573
9108
|
role: "menu",
|
|
8574
9109
|
"aria-label": "Select organization",
|
|
8575
|
-
className:
|
|
9110
|
+
className: cn61(
|
|
8576
9111
|
"absolute left-0 top-full z-50 mt-1 min-w-[200px] rounded-md border border-border",
|
|
8577
9112
|
"bg-popover py-1 shadow-md"
|
|
8578
9113
|
),
|
|
@@ -8587,7 +9122,7 @@ function MosaicOrgSwitcher({
|
|
|
8587
9122
|
onSelectOrg?.(org.id);
|
|
8588
9123
|
setOpen(false);
|
|
8589
9124
|
},
|
|
8590
|
-
className:
|
|
9125
|
+
className: cn61(
|
|
8591
9126
|
"flex w-full items-center gap-2.5 px-3 py-2 text-sm text-foreground",
|
|
8592
9127
|
"hover:bg-accent hover:text-accent-foreground",
|
|
8593
9128
|
org.id === currentOrgId && "bg-primary/10 text-primary"
|
|
@@ -8624,7 +9159,7 @@ function MosaicOrgSwitcher({
|
|
|
8624
9159
|
] });
|
|
8625
9160
|
}
|
|
8626
9161
|
MosaicOrgSwitcher.displayName = "MosaicOrgSwitcher";
|
|
8627
|
-
function
|
|
9162
|
+
function cn62(...classes) {
|
|
8628
9163
|
return classes.filter(Boolean).join(" ");
|
|
8629
9164
|
}
|
|
8630
9165
|
function PlusIcon7() {
|
|
@@ -8668,19 +9203,19 @@ function MosaicQuickActionsMenu({
|
|
|
8668
9203
|
document.addEventListener("mousedown", h);
|
|
8669
9204
|
return () => document.removeEventListener("mousedown", h);
|
|
8670
9205
|
}, [open]);
|
|
8671
|
-
const itemClass =
|
|
9206
|
+
const itemClass = cn62(
|
|
8672
9207
|
"flex w-full items-center gap-2 px-3 py-2 text-sm text-foreground",
|
|
8673
9208
|
"hover:bg-accent hover:text-accent-foreground",
|
|
8674
9209
|
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
8675
9210
|
"min-h-[44px]"
|
|
8676
9211
|
);
|
|
8677
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, "data-slot": "quick-actions-menu", className:
|
|
9212
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, "data-slot": "quick-actions-menu", className: cn62("relative", className), children: [
|
|
8678
9213
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
8679
9214
|
"button",
|
|
8680
9215
|
{
|
|
8681
9216
|
type: "button",
|
|
8682
9217
|
onClick: () => setOpen((v) => !v),
|
|
8683
|
-
className:
|
|
9218
|
+
className: cn62(
|
|
8684
9219
|
"inline-flex items-center justify-center gap-2 rounded-md border border-border bg-background",
|
|
8685
9220
|
"min-h-[44px] min-w-[44px] px-3 py-2 text-sm font-medium text-foreground",
|
|
8686
9221
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -8691,7 +9226,7 @@ function MosaicQuickActionsMenu({
|
|
|
8691
9226
|
"aria-label": label,
|
|
8692
9227
|
children: [
|
|
8693
9228
|
triggerIcon ?? /* @__PURE__ */ jsxRuntime.jsx(PlusIcon7, {}),
|
|
8694
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
9229
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: cn62("hidden md:inline"), children: label })
|
|
8695
9230
|
]
|
|
8696
9231
|
}
|
|
8697
9232
|
),
|
|
@@ -8700,13 +9235,13 @@ function MosaicQuickActionsMenu({
|
|
|
8700
9235
|
{
|
|
8701
9236
|
role: "menu",
|
|
8702
9237
|
"aria-label": menuTitle,
|
|
8703
|
-
className:
|
|
9238
|
+
className: cn62(
|
|
8704
9239
|
"absolute right-0 top-full z-50 mt-1 rounded-md border border-border bg-popover py-1 shadow-md",
|
|
8705
9240
|
isMobile ? "w-[min(90vw,280px)]" : "w-56"
|
|
8706
9241
|
),
|
|
8707
9242
|
children: [
|
|
8708
9243
|
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 }) }),
|
|
8709
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
9244
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: cn62(menuTitle && "border-t border-border") }),
|
|
8710
9245
|
actions.map((action) => /* @__PURE__ */ jsxRuntime.jsxs(React27__namespace.Fragment, { children: [
|
|
8711
9246
|
action.separator && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "my-1 border-t border-border" }),
|
|
8712
9247
|
action.href && renderLink ? renderLink(
|
|
@@ -9132,6 +9667,18 @@ async function MosaicClerkWebhookHandler(req, options) {
|
|
|
9132
9667
|
return new Response("OK", { status: 200 });
|
|
9133
9668
|
}
|
|
9134
9669
|
|
|
9670
|
+
Object.defineProperty(exports, "Accordion", {
|
|
9671
|
+
enumerable: true,
|
|
9672
|
+
get: function () { return accordion.Accordion; }
|
|
9673
|
+
});
|
|
9674
|
+
Object.defineProperty(exports, "Tooltip", {
|
|
9675
|
+
enumerable: true,
|
|
9676
|
+
get: function () { return tooltip.Tooltip; }
|
|
9677
|
+
});
|
|
9678
|
+
exports.MosaicAccordion = MosaicAccordion;
|
|
9679
|
+
exports.MosaicAccordionItem = MosaicAccordionItem;
|
|
9680
|
+
exports.MosaicAccordionPanel = MosaicAccordionPanel;
|
|
9681
|
+
exports.MosaicAccordionTrigger = MosaicAccordionTrigger;
|
|
9135
9682
|
exports.MosaicActivityFeed = MosaicActivityFeed;
|
|
9136
9683
|
exports.MosaicActivityItem = MosaicActivityItem;
|
|
9137
9684
|
exports.MosaicAdaptiveGrid = MosaicAdaptiveGrid;
|
|
@@ -9157,8 +9704,12 @@ exports.MosaicCardDescription = MosaicCardDescription;
|
|
|
9157
9704
|
exports.MosaicCardFooter = MosaicCardFooter;
|
|
9158
9705
|
exports.MosaicCardHeader = MosaicCardHeader;
|
|
9159
9706
|
exports.MosaicCardTitle = MosaicCardTitle;
|
|
9707
|
+
exports.MosaicCheckbox = MosaicCheckbox;
|
|
9160
9708
|
exports.MosaicClerkOrgSwitcher = MosaicClerkOrgSwitcher;
|
|
9161
9709
|
exports.MosaicClerkWebhookHandler = MosaicClerkWebhookHandler;
|
|
9710
|
+
exports.MosaicCollapsible = MosaicCollapsible;
|
|
9711
|
+
exports.MosaicCollapsiblePanel = MosaicCollapsiblePanel;
|
|
9712
|
+
exports.MosaicCollapsibleTrigger = MosaicCollapsibleTrigger;
|
|
9162
9713
|
exports.MosaicCombobox = MosaicCombobox;
|
|
9163
9714
|
exports.MosaicCounter = MosaicCounter;
|
|
9164
9715
|
exports.MosaicCreateOrgDialog = MosaicCreateOrgDialog;
|
|
@@ -9206,22 +9757,34 @@ exports.MosaicOrgSwitcher = MosaicOrgSwitcher;
|
|
|
9206
9757
|
exports.MosaicPreferencesPanel = MosaicPreferencesPanel;
|
|
9207
9758
|
exports.MosaicPricingCard = MosaicPricingCard;
|
|
9208
9759
|
exports.MosaicProfilePanel = MosaicProfilePanel;
|
|
9760
|
+
exports.MosaicProgress = MosaicProgress;
|
|
9209
9761
|
exports.MosaicQuickActionCard = MosaicQuickActionCard;
|
|
9210
9762
|
exports.MosaicQuickActionsMenu = MosaicQuickActionsMenu;
|
|
9211
9763
|
exports.MosaicQuickAgentSelector = MosaicQuickAgentSelector;
|
|
9212
9764
|
exports.MosaicQuickStartPanel = MosaicQuickStartPanel;
|
|
9765
|
+
exports.MosaicRadioGroup = MosaicRadioGroup;
|
|
9766
|
+
exports.MosaicRadioGroupItem = MosaicRadioGroupItem;
|
|
9767
|
+
exports.MosaicScrollArea = MosaicScrollArea;
|
|
9213
9768
|
exports.MosaicSelect = MosaicSelect;
|
|
9214
9769
|
exports.MosaicSelectorModal = MosaicSelectorModal;
|
|
9770
|
+
exports.MosaicSeparator = MosaicSeparator;
|
|
9215
9771
|
exports.MosaicSignInLayout = MosaicSignInLayout;
|
|
9216
9772
|
exports.MosaicSignUpLayout = MosaicSignUpLayout;
|
|
9773
|
+
exports.MosaicSlider = MosaicSlider;
|
|
9217
9774
|
exports.MosaicStatsGrid = MosaicStatsGrid;
|
|
9218
9775
|
exports.MosaicSwitch = MosaicSwitch;
|
|
9776
|
+
exports.MosaicTabs = MosaicTabs;
|
|
9777
|
+
exports.MosaicTabsList = MosaicTabsList;
|
|
9778
|
+
exports.MosaicTabsPanel = MosaicTabsPanel;
|
|
9779
|
+
exports.MosaicTabsTrigger = MosaicTabsTrigger;
|
|
9219
9780
|
exports.MosaicTemplateCard = MosaicTemplateCard;
|
|
9220
9781
|
exports.MosaicTemplateGallery = MosaicTemplateGallery;
|
|
9221
9782
|
exports.MosaicTemplatePreview = MosaicTemplatePreview;
|
|
9222
9783
|
exports.MosaicTestimonialsGrid = MosaicTestimonialsGrid;
|
|
9784
|
+
exports.MosaicTextarea = MosaicTextarea;
|
|
9223
9785
|
exports.MosaicThemeProvider = MosaicThemeProvider;
|
|
9224
9786
|
exports.MosaicThemeToggle = MosaicThemeToggle;
|
|
9787
|
+
exports.MosaicTooltip = MosaicTooltip;
|
|
9225
9788
|
exports.MosaicUserButton = MosaicUserButton;
|
|
9226
9789
|
exports.Placeholder = Placeholder;
|
|
9227
9790
|
exports.badgeVariants = badgeVariants;
|