@vantageos/mosaic-blocks 0.2.3-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 +784 -221
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +519 -10
- package/dist/index.d.ts +519 -10
- package/dist/index.js +759 -222
- package/dist/index.js.map +1 -1
- package/dist/server.cjs +71 -0
- package/dist/server.cjs.map +1 -0
- package/dist/server.d.cts +30 -0
- package/dist/server.d.ts +30 -0
- package/dist/server.js +68 -0
- package/dist/server.js.map +1 -0
- package/package.json +6 -1
package/dist/index.js
CHANGED
|
@@ -4,6 +4,19 @@ import { Button } from '@base-ui/react/button';
|
|
|
4
4
|
import { cva } from 'class-variance-authority';
|
|
5
5
|
import * as React27 from 'react';
|
|
6
6
|
import { useState, useEffect } from 'react';
|
|
7
|
+
import { Accordion } from '@base-ui/react/accordion';
|
|
8
|
+
export { Accordion } from '@base-ui/react/accordion';
|
|
9
|
+
import { Checkbox } from '@base-ui/react/checkbox';
|
|
10
|
+
import { Collapsible } from '@base-ui/react/collapsible';
|
|
11
|
+
import { Progress } from '@base-ui/react/progress';
|
|
12
|
+
import { Radio } from '@base-ui/react/radio';
|
|
13
|
+
import { RadioGroup } from '@base-ui/react/radio-group';
|
|
14
|
+
import { ScrollArea } from '@base-ui/react/scroll-area';
|
|
15
|
+
import { Separator } from '@base-ui/react/separator';
|
|
16
|
+
import { Slider } from '@base-ui/react/slider';
|
|
17
|
+
import { Tabs } from '@base-ui/react/tabs';
|
|
18
|
+
import { Tooltip } from '@base-ui/react/tooltip';
|
|
19
|
+
export { Tooltip } from '@base-ui/react/tooltip';
|
|
7
20
|
import { Avatar } from '@base-ui/react/avatar';
|
|
8
21
|
import { Input } from '@base-ui/react/input';
|
|
9
22
|
import { Field } from '@base-ui/react/field';
|
|
@@ -14,13 +27,10 @@ import { Menu } from '@base-ui/react/menu';
|
|
|
14
27
|
import { AlertDialog } from '@base-ui/react/alert-dialog';
|
|
15
28
|
|
|
16
29
|
// src/version.ts
|
|
17
|
-
var version = "0.
|
|
30
|
+
var version = "0.3.0-alpha";
|
|
18
31
|
function Placeholder({ label = "mosaic-blocks placeholder" }) {
|
|
19
32
|
return /* @__PURE__ */ jsx("div", { "data-mosaic-block": "placeholder", children: label });
|
|
20
33
|
}
|
|
21
|
-
function cn(...classes) {
|
|
22
|
-
return classes.filter(Boolean).join(" ");
|
|
23
|
-
}
|
|
24
34
|
var buttonVariants = cva(
|
|
25
35
|
// Base classes — identical to styleui base (adapted for Tailwind v4)
|
|
26
36
|
[
|
|
@@ -59,6 +69,9 @@ var buttonVariants = cva(
|
|
|
59
69
|
}
|
|
60
70
|
}
|
|
61
71
|
);
|
|
72
|
+
function cn(...classes) {
|
|
73
|
+
return classes.filter(Boolean).join(" ");
|
|
74
|
+
}
|
|
62
75
|
function MosaicButton({ className, variant, size, ref, ...props }) {
|
|
63
76
|
return /* @__PURE__ */ jsx(
|
|
64
77
|
Button,
|
|
@@ -988,13 +1001,537 @@ function useMediaQuery(query) {
|
|
|
988
1001
|
function cn13(...classes) {
|
|
989
1002
|
return classes.filter(Boolean).join(" ");
|
|
990
1003
|
}
|
|
1004
|
+
function MosaicAccordion({ className, ref, ...props }) {
|
|
1005
|
+
return /* @__PURE__ */ jsx(
|
|
1006
|
+
Accordion.Root,
|
|
1007
|
+
{
|
|
1008
|
+
ref,
|
|
1009
|
+
"data-slot": "accordion",
|
|
1010
|
+
className: cn13("w-full divide-y divide-border", className),
|
|
1011
|
+
...props
|
|
1012
|
+
}
|
|
1013
|
+
);
|
|
1014
|
+
}
|
|
1015
|
+
MosaicAccordion.displayName = "MosaicAccordion";
|
|
1016
|
+
function MosaicAccordionItem({ className, ref, ...props }) {
|
|
1017
|
+
return /* @__PURE__ */ jsx(
|
|
1018
|
+
Accordion.Item,
|
|
1019
|
+
{
|
|
1020
|
+
ref,
|
|
1021
|
+
"data-slot": "accordion-item",
|
|
1022
|
+
className: cn13("py-0", className),
|
|
1023
|
+
...props
|
|
1024
|
+
}
|
|
1025
|
+
);
|
|
1026
|
+
}
|
|
1027
|
+
MosaicAccordionItem.displayName = "MosaicAccordionItem";
|
|
1028
|
+
function MosaicAccordionTrigger({
|
|
1029
|
+
className,
|
|
1030
|
+
children,
|
|
1031
|
+
ref,
|
|
1032
|
+
...props
|
|
1033
|
+
}) {
|
|
1034
|
+
return /* @__PURE__ */ jsxs(
|
|
1035
|
+
Accordion.Trigger,
|
|
1036
|
+
{
|
|
1037
|
+
ref,
|
|
1038
|
+
"data-slot": "accordion-trigger",
|
|
1039
|
+
className: cn13(
|
|
1040
|
+
"flex w-full flex-1 items-center justify-between py-4",
|
|
1041
|
+
"text-sm font-medium text-foreground",
|
|
1042
|
+
"outline-none transition-all",
|
|
1043
|
+
"hover:text-foreground/80",
|
|
1044
|
+
"focus-visible:ring-ring focus-visible:ring-[3px]",
|
|
1045
|
+
"disabled:cursor-not-allowed disabled:opacity-50",
|
|
1046
|
+
"[&>svg]:transition-transform [&>svg]:duration-200",
|
|
1047
|
+
"data-[panel-open]:[&>svg]:rotate-180",
|
|
1048
|
+
className
|
|
1049
|
+
),
|
|
1050
|
+
...props,
|
|
1051
|
+
children: [
|
|
1052
|
+
children,
|
|
1053
|
+
/* @__PURE__ */ jsx(
|
|
1054
|
+
"svg",
|
|
1055
|
+
{
|
|
1056
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1057
|
+
viewBox: "0 0 24 24",
|
|
1058
|
+
fill: "none",
|
|
1059
|
+
stroke: "currentColor",
|
|
1060
|
+
strokeWidth: "2",
|
|
1061
|
+
strokeLinecap: "round",
|
|
1062
|
+
strokeLinejoin: "round",
|
|
1063
|
+
"aria-hidden": "true",
|
|
1064
|
+
className: "size-4 shrink-0 text-muted-foreground",
|
|
1065
|
+
children: /* @__PURE__ */ jsx("path", { d: "m6 9 6 6 6-6" })
|
|
1066
|
+
}
|
|
1067
|
+
)
|
|
1068
|
+
]
|
|
1069
|
+
}
|
|
1070
|
+
);
|
|
1071
|
+
}
|
|
1072
|
+
MosaicAccordionTrigger.displayName = "MosaicAccordionTrigger";
|
|
1073
|
+
function MosaicAccordionPanel({ className, ref, ...props }) {
|
|
1074
|
+
return /* @__PURE__ */ jsx(
|
|
1075
|
+
Accordion.Panel,
|
|
1076
|
+
{
|
|
1077
|
+
ref,
|
|
1078
|
+
"data-slot": "accordion-panel",
|
|
1079
|
+
className: cn13("overflow-hidden text-sm text-muted-foreground", "transition-all", className),
|
|
1080
|
+
...props
|
|
1081
|
+
}
|
|
1082
|
+
);
|
|
1083
|
+
}
|
|
1084
|
+
MosaicAccordionPanel.displayName = "MosaicAccordionPanel";
|
|
1085
|
+
function cn14(...classes) {
|
|
1086
|
+
return classes.filter(Boolean).join(" ");
|
|
1087
|
+
}
|
|
1088
|
+
function MosaicCheckbox({ className, ref, ...props }) {
|
|
1089
|
+
return /* @__PURE__ */ jsx(
|
|
1090
|
+
Checkbox.Root,
|
|
1091
|
+
{
|
|
1092
|
+
ref,
|
|
1093
|
+
"data-slot": "checkbox",
|
|
1094
|
+
className: cn14(
|
|
1095
|
+
"peer size-4 shrink-0 cursor-pointer",
|
|
1096
|
+
"rounded-sm border border-border bg-background",
|
|
1097
|
+
"outline-none transition-colors",
|
|
1098
|
+
"focus-visible:ring-ring focus-visible:ring-[3px]",
|
|
1099
|
+
// Checked state
|
|
1100
|
+
"data-[checked]:border-foreground data-[checked]:bg-foreground",
|
|
1101
|
+
// Indeterminate
|
|
1102
|
+
"data-[indeterminate]:border-foreground data-[indeterminate]:bg-foreground",
|
|
1103
|
+
// Disabled
|
|
1104
|
+
"data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50",
|
|
1105
|
+
className
|
|
1106
|
+
),
|
|
1107
|
+
...props,
|
|
1108
|
+
children: /* @__PURE__ */ jsx(
|
|
1109
|
+
Checkbox.Indicator,
|
|
1110
|
+
{
|
|
1111
|
+
"data-slot": "checkbox-indicator",
|
|
1112
|
+
className: "flex items-center justify-center text-background",
|
|
1113
|
+
children: /* @__PURE__ */ jsx(
|
|
1114
|
+
"svg",
|
|
1115
|
+
{
|
|
1116
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1117
|
+
viewBox: "0 0 24 24",
|
|
1118
|
+
fill: "none",
|
|
1119
|
+
stroke: "currentColor",
|
|
1120
|
+
strokeWidth: "3",
|
|
1121
|
+
strokeLinecap: "round",
|
|
1122
|
+
strokeLinejoin: "round",
|
|
1123
|
+
"aria-hidden": "true",
|
|
1124
|
+
className: "size-3",
|
|
1125
|
+
children: /* @__PURE__ */ jsx("path", { d: "M20 6 9 17l-5-5" })
|
|
1126
|
+
}
|
|
1127
|
+
)
|
|
1128
|
+
}
|
|
1129
|
+
)
|
|
1130
|
+
}
|
|
1131
|
+
);
|
|
1132
|
+
}
|
|
1133
|
+
MosaicCheckbox.displayName = "MosaicCheckbox";
|
|
1134
|
+
function cn15(...classes) {
|
|
1135
|
+
return classes.filter(Boolean).join(" ");
|
|
1136
|
+
}
|
|
1137
|
+
function MosaicCollapsible({ className, ref, ...props }) {
|
|
1138
|
+
return /* @__PURE__ */ jsx(
|
|
1139
|
+
Collapsible.Root,
|
|
1140
|
+
{
|
|
1141
|
+
ref,
|
|
1142
|
+
"data-slot": "collapsible",
|
|
1143
|
+
className: cn15("w-full", className),
|
|
1144
|
+
...props
|
|
1145
|
+
}
|
|
1146
|
+
);
|
|
1147
|
+
}
|
|
1148
|
+
MosaicCollapsible.displayName = "MosaicCollapsible";
|
|
1149
|
+
function MosaicCollapsibleTrigger({
|
|
1150
|
+
className,
|
|
1151
|
+
ref,
|
|
1152
|
+
...props
|
|
1153
|
+
}) {
|
|
1154
|
+
return /* @__PURE__ */ jsx(
|
|
1155
|
+
Collapsible.Trigger,
|
|
1156
|
+
{
|
|
1157
|
+
ref,
|
|
1158
|
+
"data-slot": "collapsible-trigger",
|
|
1159
|
+
className: cn15(
|
|
1160
|
+
"inline-flex w-full items-center justify-between gap-2",
|
|
1161
|
+
"rounded-md px-0 py-2 text-sm font-medium",
|
|
1162
|
+
"text-foreground outline-none transition-colors",
|
|
1163
|
+
"hover:text-foreground/80",
|
|
1164
|
+
"focus-visible:ring-ring focus-visible:ring-[3px]",
|
|
1165
|
+
"disabled:cursor-not-allowed disabled:opacity-50",
|
|
1166
|
+
"[&>svg]:transition-transform [&>svg]:duration-200",
|
|
1167
|
+
"data-[panel-open]:[&>svg]:rotate-180",
|
|
1168
|
+
className
|
|
1169
|
+
),
|
|
1170
|
+
...props
|
|
1171
|
+
}
|
|
1172
|
+
);
|
|
1173
|
+
}
|
|
1174
|
+
MosaicCollapsibleTrigger.displayName = "MosaicCollapsibleTrigger";
|
|
1175
|
+
function MosaicCollapsiblePanel({ className, ref, ...props }) {
|
|
1176
|
+
return /* @__PURE__ */ jsx(
|
|
1177
|
+
Collapsible.Panel,
|
|
1178
|
+
{
|
|
1179
|
+
ref,
|
|
1180
|
+
"data-slot": "collapsible-panel",
|
|
1181
|
+
className: cn15(
|
|
1182
|
+
"overflow-hidden text-sm transition-all",
|
|
1183
|
+
"data-[open]:animate-in data-[closed]:animate-out",
|
|
1184
|
+
className
|
|
1185
|
+
),
|
|
1186
|
+
...props
|
|
1187
|
+
}
|
|
1188
|
+
);
|
|
1189
|
+
}
|
|
1190
|
+
MosaicCollapsiblePanel.displayName = "MosaicCollapsiblePanel";
|
|
1191
|
+
function cn16(...classes) {
|
|
1192
|
+
return classes.filter(Boolean).join(" ");
|
|
1193
|
+
}
|
|
1194
|
+
function MosaicProgress({
|
|
1195
|
+
className,
|
|
1196
|
+
value,
|
|
1197
|
+
max = 100,
|
|
1198
|
+
ref,
|
|
1199
|
+
...props
|
|
1200
|
+
}) {
|
|
1201
|
+
return /* @__PURE__ */ jsx(
|
|
1202
|
+
Progress.Root,
|
|
1203
|
+
{
|
|
1204
|
+
ref,
|
|
1205
|
+
"data-slot": "progress",
|
|
1206
|
+
value,
|
|
1207
|
+
max,
|
|
1208
|
+
className: cn16("w-full", className),
|
|
1209
|
+
...props,
|
|
1210
|
+
children: /* @__PURE__ */ jsx(
|
|
1211
|
+
Progress.Track,
|
|
1212
|
+
{
|
|
1213
|
+
"data-slot": "progress-track",
|
|
1214
|
+
className: "relative h-2 w-full overflow-hidden rounded-full bg-secondary",
|
|
1215
|
+
children: /* @__PURE__ */ jsx(
|
|
1216
|
+
Progress.Indicator,
|
|
1217
|
+
{
|
|
1218
|
+
"data-slot": "progress-indicator",
|
|
1219
|
+
className: "h-full w-full flex-1 rounded-full bg-foreground transition-transform duration-300 ease-in-out",
|
|
1220
|
+
style: { transform: `translateX(-${100 - (value ?? 0)}%)` }
|
|
1221
|
+
}
|
|
1222
|
+
)
|
|
1223
|
+
}
|
|
1224
|
+
)
|
|
1225
|
+
}
|
|
1226
|
+
);
|
|
1227
|
+
}
|
|
1228
|
+
MosaicProgress.displayName = "MosaicProgress";
|
|
1229
|
+
function cn17(...classes) {
|
|
1230
|
+
return classes.filter(Boolean).join(" ");
|
|
1231
|
+
}
|
|
1232
|
+
function MosaicRadioGroup({ className, ref, ...props }) {
|
|
1233
|
+
return /* @__PURE__ */ jsx(
|
|
1234
|
+
RadioGroup,
|
|
1235
|
+
{
|
|
1236
|
+
ref,
|
|
1237
|
+
"data-slot": "radio-group",
|
|
1238
|
+
className: cn17("flex flex-col gap-2", className),
|
|
1239
|
+
...props
|
|
1240
|
+
}
|
|
1241
|
+
);
|
|
1242
|
+
}
|
|
1243
|
+
MosaicRadioGroup.displayName = "MosaicRadioGroup";
|
|
1244
|
+
function MosaicRadioGroupItem({
|
|
1245
|
+
className,
|
|
1246
|
+
children,
|
|
1247
|
+
ref,
|
|
1248
|
+
...props
|
|
1249
|
+
}) {
|
|
1250
|
+
return /* @__PURE__ */ jsxs(
|
|
1251
|
+
Radio.Root,
|
|
1252
|
+
{
|
|
1253
|
+
ref,
|
|
1254
|
+
"data-slot": "radio",
|
|
1255
|
+
className: cn17(
|
|
1256
|
+
"flex items-center gap-2 text-sm font-medium",
|
|
1257
|
+
"cursor-pointer select-none",
|
|
1258
|
+
"data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50",
|
|
1259
|
+
className
|
|
1260
|
+
),
|
|
1261
|
+
...props,
|
|
1262
|
+
children: [
|
|
1263
|
+
/* @__PURE__ */ jsx(
|
|
1264
|
+
"span",
|
|
1265
|
+
{
|
|
1266
|
+
className: cn17(
|
|
1267
|
+
"flex size-4 shrink-0 items-center justify-center",
|
|
1268
|
+
"rounded-full border border-border bg-background",
|
|
1269
|
+
"outline-none transition-colors",
|
|
1270
|
+
"focus-visible:ring-ring focus-visible:ring-[3px]",
|
|
1271
|
+
"peer-data-[checked]:border-foreground"
|
|
1272
|
+
),
|
|
1273
|
+
children: /* @__PURE__ */ jsx(Radio.Indicator, { "data-slot": "radio-indicator", className: "flex items-center justify-center", children: /* @__PURE__ */ jsx("span", { className: "size-2 rounded-full bg-foreground" }) })
|
|
1274
|
+
}
|
|
1275
|
+
),
|
|
1276
|
+
children
|
|
1277
|
+
]
|
|
1278
|
+
}
|
|
1279
|
+
);
|
|
1280
|
+
}
|
|
1281
|
+
MosaicRadioGroupItem.displayName = "MosaicRadioGroupItem";
|
|
1282
|
+
function cn18(...classes) {
|
|
1283
|
+
return classes.filter(Boolean).join(" ");
|
|
1284
|
+
}
|
|
1285
|
+
function MosaicScrollArea({
|
|
1286
|
+
className,
|
|
1287
|
+
horizontal = false,
|
|
1288
|
+
children,
|
|
1289
|
+
ref,
|
|
1290
|
+
...props
|
|
1291
|
+
}) {
|
|
1292
|
+
return /* @__PURE__ */ jsxs(
|
|
1293
|
+
ScrollArea.Root,
|
|
1294
|
+
{
|
|
1295
|
+
ref,
|
|
1296
|
+
"data-slot": "scroll-area",
|
|
1297
|
+
className: cn18("relative overflow-hidden", className),
|
|
1298
|
+
...props,
|
|
1299
|
+
children: [
|
|
1300
|
+
/* @__PURE__ */ jsx(ScrollArea.Viewport, { "data-slot": "scroll-area-viewport", className: "size-full rounded-[inherit]", children: /* @__PURE__ */ jsx(ScrollArea.Content, { children }) }),
|
|
1301
|
+
/* @__PURE__ */ jsx(
|
|
1302
|
+
ScrollArea.Scrollbar,
|
|
1303
|
+
{
|
|
1304
|
+
"data-slot": "scroll-area-scrollbar",
|
|
1305
|
+
orientation: "vertical",
|
|
1306
|
+
className: "flex w-2.5 touch-none select-none border-l border-l-transparent p-px transition-colors",
|
|
1307
|
+
children: /* @__PURE__ */ jsx(ScrollArea.Thumb, { className: "relative flex-1 rounded-full bg-border" })
|
|
1308
|
+
}
|
|
1309
|
+
),
|
|
1310
|
+
horizontal && /* @__PURE__ */ jsx(
|
|
1311
|
+
ScrollArea.Scrollbar,
|
|
1312
|
+
{
|
|
1313
|
+
"data-slot": "scroll-area-scrollbar-h",
|
|
1314
|
+
orientation: "horizontal",
|
|
1315
|
+
className: "flex h-2.5 touch-none select-none flex-col border-t border-t-transparent p-px transition-colors",
|
|
1316
|
+
children: /* @__PURE__ */ jsx(ScrollArea.Thumb, { className: "relative flex-1 rounded-full bg-border" })
|
|
1317
|
+
}
|
|
1318
|
+
),
|
|
1319
|
+
/* @__PURE__ */ jsx(ScrollArea.Corner, {})
|
|
1320
|
+
]
|
|
1321
|
+
}
|
|
1322
|
+
);
|
|
1323
|
+
}
|
|
1324
|
+
MosaicScrollArea.displayName = "MosaicScrollArea";
|
|
1325
|
+
function cn19(...classes) {
|
|
1326
|
+
return classes.filter(Boolean).join(" ");
|
|
1327
|
+
}
|
|
1328
|
+
function MosaicSeparator({
|
|
1329
|
+
className,
|
|
1330
|
+
orientation = "horizontal",
|
|
1331
|
+
ref,
|
|
1332
|
+
...props
|
|
1333
|
+
}) {
|
|
1334
|
+
return /* @__PURE__ */ jsx(
|
|
1335
|
+
Separator,
|
|
1336
|
+
{
|
|
1337
|
+
ref,
|
|
1338
|
+
"data-slot": "separator",
|
|
1339
|
+
orientation,
|
|
1340
|
+
className: cn19(
|
|
1341
|
+
"shrink-0 bg-border",
|
|
1342
|
+
orientation === "vertical" ? "h-full w-px" : "h-px w-full",
|
|
1343
|
+
className
|
|
1344
|
+
),
|
|
1345
|
+
...props
|
|
1346
|
+
}
|
|
1347
|
+
);
|
|
1348
|
+
}
|
|
1349
|
+
MosaicSeparator.displayName = "MosaicSeparator";
|
|
1350
|
+
function cn20(...classes) {
|
|
1351
|
+
return classes.filter(Boolean).join(" ");
|
|
1352
|
+
}
|
|
1353
|
+
function MosaicSlider({ className, ref, ...props }) {
|
|
1354
|
+
const isRange = Array.isArray(props.defaultValue ?? props.value);
|
|
1355
|
+
const thumbCount = isRange ? (props.defaultValue ?? props.value).length : 1;
|
|
1356
|
+
return /* @__PURE__ */ jsx(
|
|
1357
|
+
Slider.Root,
|
|
1358
|
+
{
|
|
1359
|
+
ref,
|
|
1360
|
+
"data-slot": "slider",
|
|
1361
|
+
className: cn20("w-full touch-none select-none", className),
|
|
1362
|
+
...props,
|
|
1363
|
+
children: /* @__PURE__ */ jsx(Slider.Control, { className: "flex items-center", children: /* @__PURE__ */ jsxs(
|
|
1364
|
+
Slider.Track,
|
|
1365
|
+
{
|
|
1366
|
+
"data-slot": "slider-track",
|
|
1367
|
+
className: "relative h-2 w-full grow rounded-full bg-secondary",
|
|
1368
|
+
children: [
|
|
1369
|
+
/* @__PURE__ */ jsx(
|
|
1370
|
+
Slider.Indicator,
|
|
1371
|
+
{
|
|
1372
|
+
"data-slot": "slider-indicator",
|
|
1373
|
+
className: "absolute h-full rounded-full bg-foreground"
|
|
1374
|
+
}
|
|
1375
|
+
),
|
|
1376
|
+
Array.from({ length: thumbCount }).map((_, i) => /* @__PURE__ */ jsx(
|
|
1377
|
+
Slider.Thumb,
|
|
1378
|
+
{
|
|
1379
|
+
"data-slot": "slider-thumb",
|
|
1380
|
+
className: cn20(
|
|
1381
|
+
"block size-5 rounded-full",
|
|
1382
|
+
"border-2 border-foreground bg-background",
|
|
1383
|
+
"shadow-sm outline-none transition-colors",
|
|
1384
|
+
"focus-visible:ring-ring focus-visible:ring-[3px]",
|
|
1385
|
+
"data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50"
|
|
1386
|
+
)
|
|
1387
|
+
},
|
|
1388
|
+
i
|
|
1389
|
+
))
|
|
1390
|
+
]
|
|
1391
|
+
}
|
|
1392
|
+
) })
|
|
1393
|
+
}
|
|
1394
|
+
);
|
|
1395
|
+
}
|
|
1396
|
+
MosaicSlider.displayName = "MosaicSlider";
|
|
1397
|
+
function cn21(...classes) {
|
|
1398
|
+
return classes.filter(Boolean).join(" ");
|
|
1399
|
+
}
|
|
1400
|
+
function MosaicTabs({ className, ref, ...props }) {
|
|
1401
|
+
return /* @__PURE__ */ jsx(
|
|
1402
|
+
Tabs.Root,
|
|
1403
|
+
{
|
|
1404
|
+
ref,
|
|
1405
|
+
"data-slot": "tabs",
|
|
1406
|
+
className: cn21("flex flex-col gap-2", className),
|
|
1407
|
+
...props
|
|
1408
|
+
}
|
|
1409
|
+
);
|
|
1410
|
+
}
|
|
1411
|
+
MosaicTabs.displayName = "MosaicTabs";
|
|
1412
|
+
function MosaicTabsList({ className, ref, ...props }) {
|
|
1413
|
+
return /* @__PURE__ */ jsx(
|
|
1414
|
+
Tabs.List,
|
|
1415
|
+
{
|
|
1416
|
+
ref,
|
|
1417
|
+
"data-slot": "tabs-list",
|
|
1418
|
+
className: cn21(
|
|
1419
|
+
"relative inline-flex items-center justify-start gap-1",
|
|
1420
|
+
"rounded-lg bg-muted p-1 text-muted-foreground",
|
|
1421
|
+
className
|
|
1422
|
+
),
|
|
1423
|
+
...props
|
|
1424
|
+
}
|
|
1425
|
+
);
|
|
1426
|
+
}
|
|
1427
|
+
MosaicTabsList.displayName = "MosaicTabsList";
|
|
1428
|
+
function MosaicTabsTrigger({ className, ref, ...props }) {
|
|
1429
|
+
return /* @__PURE__ */ jsx(
|
|
1430
|
+
Tabs.Tab,
|
|
1431
|
+
{
|
|
1432
|
+
ref,
|
|
1433
|
+
"data-slot": "tabs-trigger",
|
|
1434
|
+
className: cn21(
|
|
1435
|
+
"inline-flex items-center justify-center gap-1.5 whitespace-nowrap",
|
|
1436
|
+
"rounded-md px-3 py-1.5 text-sm font-medium",
|
|
1437
|
+
"outline-none transition-all",
|
|
1438
|
+
"focus-visible:ring-ring focus-visible:ring-[3px]",
|
|
1439
|
+
"disabled:cursor-not-allowed disabled:opacity-50",
|
|
1440
|
+
// Selected state
|
|
1441
|
+
"data-[selected]:bg-background data-[selected]:text-foreground data-[selected]:shadow-xs",
|
|
1442
|
+
// Unselected hover
|
|
1443
|
+
"hover:text-foreground",
|
|
1444
|
+
className
|
|
1445
|
+
),
|
|
1446
|
+
...props
|
|
1447
|
+
}
|
|
1448
|
+
);
|
|
1449
|
+
}
|
|
1450
|
+
MosaicTabsTrigger.displayName = "MosaicTabsTrigger";
|
|
1451
|
+
function MosaicTabsPanel({ className, ref, ...props }) {
|
|
1452
|
+
return /* @__PURE__ */ jsx(
|
|
1453
|
+
Tabs.Panel,
|
|
1454
|
+
{
|
|
1455
|
+
ref,
|
|
1456
|
+
"data-slot": "tabs-panel",
|
|
1457
|
+
className: cn21(
|
|
1458
|
+
"flex-1 outline-none",
|
|
1459
|
+
"focus-visible:ring-ring focus-visible:ring-[3px] focus-visible:rounded-md",
|
|
1460
|
+
className
|
|
1461
|
+
),
|
|
1462
|
+
...props
|
|
1463
|
+
}
|
|
1464
|
+
);
|
|
1465
|
+
}
|
|
1466
|
+
MosaicTabsPanel.displayName = "MosaicTabsPanel";
|
|
1467
|
+
function cn22(...classes) {
|
|
1468
|
+
return classes.filter(Boolean).join(" ");
|
|
1469
|
+
}
|
|
1470
|
+
function MosaicTextarea({ className, ref, ...props }) {
|
|
1471
|
+
return /* @__PURE__ */ jsx(
|
|
1472
|
+
"textarea",
|
|
1473
|
+
{
|
|
1474
|
+
ref,
|
|
1475
|
+
"data-slot": "textarea",
|
|
1476
|
+
className: cn22(
|
|
1477
|
+
"flex min-h-[80px] w-full resize-y",
|
|
1478
|
+
"rounded-md border border-border bg-background px-3 py-2",
|
|
1479
|
+
"text-sm text-foreground shadow-xs",
|
|
1480
|
+
"placeholder:text-muted-foreground",
|
|
1481
|
+
"outline-none transition-colors",
|
|
1482
|
+
"focus-visible:ring-ring focus-visible:ring-[3px]",
|
|
1483
|
+
"disabled:cursor-not-allowed disabled:opacity-50",
|
|
1484
|
+
className
|
|
1485
|
+
),
|
|
1486
|
+
...props
|
|
1487
|
+
}
|
|
1488
|
+
);
|
|
1489
|
+
}
|
|
1490
|
+
MosaicTextarea.displayName = "MosaicTextarea";
|
|
1491
|
+
function cn23(...classes) {
|
|
1492
|
+
return classes.filter(Boolean).join(" ");
|
|
1493
|
+
}
|
|
1494
|
+
function MosaicTooltip({
|
|
1495
|
+
children,
|
|
1496
|
+
content,
|
|
1497
|
+
delay = 600,
|
|
1498
|
+
side = "top",
|
|
1499
|
+
align = "center",
|
|
1500
|
+
className
|
|
1501
|
+
}) {
|
|
1502
|
+
return /* @__PURE__ */ jsx(Tooltip.Provider, { delay, children: /* @__PURE__ */ jsxs(Tooltip.Root, { children: [
|
|
1503
|
+
/* @__PURE__ */ jsx(Tooltip.Trigger, { "data-slot": "tooltip-trigger", render: children }),
|
|
1504
|
+
/* @__PURE__ */ jsx(Tooltip.Portal, { children: /* @__PURE__ */ jsx(Tooltip.Positioner, { side, align, sideOffset: 6, children: /* @__PURE__ */ jsx(
|
|
1505
|
+
Tooltip.Popup,
|
|
1506
|
+
{
|
|
1507
|
+
"data-slot": "tooltip-content",
|
|
1508
|
+
className: cn23(
|
|
1509
|
+
"z-50 max-w-xs overflow-hidden rounded-md",
|
|
1510
|
+
"border border-border bg-foreground px-3 py-1.5",
|
|
1511
|
+
"text-xs text-background shadow-md",
|
|
1512
|
+
"origin-[var(--transform-origin)]",
|
|
1513
|
+
"transition-[transform,scale,opacity]",
|
|
1514
|
+
"data-[open]:scale-100 data-[open]:opacity-100",
|
|
1515
|
+
"data-[ending-style]:scale-95 data-[ending-style]:opacity-0",
|
|
1516
|
+
"data-[starting-style]:scale-95 data-[starting-style]:opacity-0",
|
|
1517
|
+
className
|
|
1518
|
+
),
|
|
1519
|
+
children: content
|
|
1520
|
+
}
|
|
1521
|
+
) }) })
|
|
1522
|
+
] }) });
|
|
1523
|
+
}
|
|
1524
|
+
MosaicTooltip.displayName = "MosaicTooltip";
|
|
1525
|
+
function cn24(...classes) {
|
|
1526
|
+
return classes.filter(Boolean).join(" ");
|
|
1527
|
+
}
|
|
991
1528
|
function MosaicCard({ className, ref, ...props }) {
|
|
992
1529
|
return /* @__PURE__ */ jsx(
|
|
993
1530
|
"div",
|
|
994
1531
|
{
|
|
995
1532
|
ref,
|
|
996
1533
|
"data-slot": "card",
|
|
997
|
-
className:
|
|
1534
|
+
className: cn24(
|
|
998
1535
|
"bg-card text-card-foreground rounded-xl border border-border shadow-sm",
|
|
999
1536
|
className
|
|
1000
1537
|
),
|
|
@@ -1009,7 +1546,7 @@ function MosaicCardHeader({ className, ref, ...props }) {
|
|
|
1009
1546
|
{
|
|
1010
1547
|
ref,
|
|
1011
1548
|
"data-slot": "card-header",
|
|
1012
|
-
className:
|
|
1549
|
+
className: cn24("flex flex-col gap-1.5 p-6", className),
|
|
1013
1550
|
...props
|
|
1014
1551
|
}
|
|
1015
1552
|
);
|
|
@@ -1021,7 +1558,7 @@ function MosaicCardTitle({ className, ref, ...props }) {
|
|
|
1021
1558
|
{
|
|
1022
1559
|
ref,
|
|
1023
1560
|
"data-slot": "card-title",
|
|
1024
|
-
className:
|
|
1561
|
+
className: cn24("text-lg font-semibold leading-none tracking-tight", className),
|
|
1025
1562
|
...props
|
|
1026
1563
|
}
|
|
1027
1564
|
);
|
|
@@ -1033,14 +1570,14 @@ function MosaicCardDescription({ className, ref, ...props }) {
|
|
|
1033
1570
|
{
|
|
1034
1571
|
ref,
|
|
1035
1572
|
"data-slot": "card-description",
|
|
1036
|
-
className:
|
|
1573
|
+
className: cn24("text-sm text-muted-foreground", className),
|
|
1037
1574
|
...props
|
|
1038
1575
|
}
|
|
1039
1576
|
);
|
|
1040
1577
|
}
|
|
1041
1578
|
MosaicCardDescription.displayName = "MosaicCardDescription";
|
|
1042
1579
|
function MosaicCardContent({ className, ref, ...props }) {
|
|
1043
|
-
return /* @__PURE__ */ jsx("div", { ref, "data-slot": "card-content", className:
|
|
1580
|
+
return /* @__PURE__ */ jsx("div", { ref, "data-slot": "card-content", className: cn24("p-6 pt-0", className), ...props });
|
|
1044
1581
|
}
|
|
1045
1582
|
MosaicCardContent.displayName = "MosaicCardContent";
|
|
1046
1583
|
function MosaicCardFooter({ className, ref, ...props }) {
|
|
@@ -1049,15 +1586,12 @@ function MosaicCardFooter({ className, ref, ...props }) {
|
|
|
1049
1586
|
{
|
|
1050
1587
|
ref,
|
|
1051
1588
|
"data-slot": "card-footer",
|
|
1052
|
-
className:
|
|
1589
|
+
className: cn24("flex items-center p-6 pt-0", className),
|
|
1053
1590
|
...props
|
|
1054
1591
|
}
|
|
1055
1592
|
);
|
|
1056
1593
|
}
|
|
1057
1594
|
MosaicCardFooter.displayName = "MosaicCardFooter";
|
|
1058
|
-
function cn14(...classes) {
|
|
1059
|
-
return classes.filter(Boolean).join(" ");
|
|
1060
|
-
}
|
|
1061
1595
|
var badgeVariants = cva(
|
|
1062
1596
|
[
|
|
1063
1597
|
"inline-flex items-center justify-center",
|
|
@@ -1081,19 +1615,22 @@ var badgeVariants = cva(
|
|
|
1081
1615
|
}
|
|
1082
1616
|
}
|
|
1083
1617
|
);
|
|
1618
|
+
function cn25(...classes) {
|
|
1619
|
+
return classes.filter(Boolean).join(" ");
|
|
1620
|
+
}
|
|
1084
1621
|
function MosaicBadge({ className, variant, ref, ...props }) {
|
|
1085
1622
|
return /* @__PURE__ */ jsx(
|
|
1086
1623
|
"span",
|
|
1087
1624
|
{
|
|
1088
1625
|
ref,
|
|
1089
1626
|
"data-slot": "badge",
|
|
1090
|
-
className:
|
|
1627
|
+
className: cn25(badgeVariants({ variant }), className),
|
|
1091
1628
|
...props
|
|
1092
1629
|
}
|
|
1093
1630
|
);
|
|
1094
1631
|
}
|
|
1095
1632
|
MosaicBadge.displayName = "MosaicBadge";
|
|
1096
|
-
function
|
|
1633
|
+
function cn26(...classes) {
|
|
1097
1634
|
return classes.filter(Boolean).join(" ");
|
|
1098
1635
|
}
|
|
1099
1636
|
function MosaicAvatar({ src, alt, fallback, className, ref, ...props }) {
|
|
@@ -1102,7 +1639,7 @@ function MosaicAvatar({ src, alt, fallback, className, ref, ...props }) {
|
|
|
1102
1639
|
{
|
|
1103
1640
|
ref,
|
|
1104
1641
|
"data-slot": "avatar",
|
|
1105
|
-
className:
|
|
1642
|
+
className: cn26(
|
|
1106
1643
|
"relative flex size-10 shrink-0 overflow-hidden rounded-full",
|
|
1107
1644
|
"bg-muted text-muted-foreground",
|
|
1108
1645
|
className
|
|
@@ -1131,7 +1668,7 @@ function MosaicAvatar({ src, alt, fallback, className, ref, ...props }) {
|
|
|
1131
1668
|
);
|
|
1132
1669
|
}
|
|
1133
1670
|
MosaicAvatar.displayName = "MosaicAvatar";
|
|
1134
|
-
function
|
|
1671
|
+
function cn27(...classes) {
|
|
1135
1672
|
return classes.filter(Boolean).join(" ");
|
|
1136
1673
|
}
|
|
1137
1674
|
function MosaicInput({ className, ref, ...props }) {
|
|
@@ -1140,7 +1677,7 @@ function MosaicInput({ className, ref, ...props }) {
|
|
|
1140
1677
|
{
|
|
1141
1678
|
ref,
|
|
1142
1679
|
"data-slot": "input",
|
|
1143
|
-
className:
|
|
1680
|
+
className: cn27(
|
|
1144
1681
|
"flex h-9 w-full rounded-md border border-border bg-background px-3 py-1",
|
|
1145
1682
|
"text-sm text-foreground shadow-xs",
|
|
1146
1683
|
"placeholder:text-muted-foreground",
|
|
@@ -1154,7 +1691,7 @@ function MosaicInput({ className, ref, ...props }) {
|
|
|
1154
1691
|
);
|
|
1155
1692
|
}
|
|
1156
1693
|
MosaicInput.displayName = "MosaicInput";
|
|
1157
|
-
function
|
|
1694
|
+
function cn28(...classes) {
|
|
1158
1695
|
return classes.filter(Boolean).join(" ");
|
|
1159
1696
|
}
|
|
1160
1697
|
function MosaicInputGroup({
|
|
@@ -1170,7 +1707,7 @@ function MosaicInputGroup({
|
|
|
1170
1707
|
{
|
|
1171
1708
|
ref,
|
|
1172
1709
|
"data-slot": "input-group",
|
|
1173
|
-
className:
|
|
1710
|
+
className: cn28("flex items-center", className),
|
|
1174
1711
|
...props,
|
|
1175
1712
|
children: [
|
|
1176
1713
|
prefix ? /* @__PURE__ */ jsx(
|
|
@@ -1195,7 +1732,7 @@ function MosaicInputGroup({
|
|
|
1195
1732
|
);
|
|
1196
1733
|
}
|
|
1197
1734
|
MosaicInputGroup.displayName = "MosaicInputGroup";
|
|
1198
|
-
function
|
|
1735
|
+
function cn29(...classes) {
|
|
1199
1736
|
return classes.filter(Boolean).join(" ");
|
|
1200
1737
|
}
|
|
1201
1738
|
function MosaicFieldRoot({ className, children, ref, ...props }) {
|
|
@@ -1204,7 +1741,7 @@ function MosaicFieldRoot({ className, children, ref, ...props }) {
|
|
|
1204
1741
|
{
|
|
1205
1742
|
ref,
|
|
1206
1743
|
"data-slot": "field",
|
|
1207
|
-
className:
|
|
1744
|
+
className: cn29("flex flex-col gap-1.5", className),
|
|
1208
1745
|
...props,
|
|
1209
1746
|
children
|
|
1210
1747
|
}
|
|
@@ -1216,7 +1753,7 @@ function MosaicFieldLabel({ className, children, ref, ...props }) {
|
|
|
1216
1753
|
Field.Label,
|
|
1217
1754
|
{
|
|
1218
1755
|
ref,
|
|
1219
|
-
className:
|
|
1756
|
+
className: cn29(
|
|
1220
1757
|
"text-sm font-medium leading-none text-foreground",
|
|
1221
1758
|
"data-[disabled]:opacity-50",
|
|
1222
1759
|
className
|
|
@@ -1228,7 +1765,7 @@ function MosaicFieldLabel({ className, children, ref, ...props }) {
|
|
|
1228
1765
|
}
|
|
1229
1766
|
MosaicFieldLabel.displayName = "MosaicField.Label";
|
|
1230
1767
|
function MosaicFieldControl({ className, ref, ...props }) {
|
|
1231
|
-
return /* @__PURE__ */ jsx(Field.Control, { ref, className:
|
|
1768
|
+
return /* @__PURE__ */ jsx(Field.Control, { ref, className: cn29(className), ...props });
|
|
1232
1769
|
}
|
|
1233
1770
|
MosaicFieldControl.displayName = "MosaicField.Control";
|
|
1234
1771
|
function MosaicFieldDescription({
|
|
@@ -1241,7 +1778,7 @@ function MosaicFieldDescription({
|
|
|
1241
1778
|
Field.Description,
|
|
1242
1779
|
{
|
|
1243
1780
|
ref,
|
|
1244
|
-
className:
|
|
1781
|
+
className: cn29("text-xs text-muted-foreground", className),
|
|
1245
1782
|
...props,
|
|
1246
1783
|
children
|
|
1247
1784
|
}
|
|
@@ -1261,7 +1798,7 @@ function MosaicFieldError({
|
|
|
1261
1798
|
{
|
|
1262
1799
|
ref,
|
|
1263
1800
|
match: show === true ? true : void 0,
|
|
1264
|
-
className:
|
|
1801
|
+
className: cn29("text-xs font-medium text-destructive", className),
|
|
1265
1802
|
...props,
|
|
1266
1803
|
children
|
|
1267
1804
|
}
|
|
@@ -1274,7 +1811,7 @@ var MosaicField = Object.assign(MosaicFieldRoot, {
|
|
|
1274
1811
|
Description: MosaicFieldDescription,
|
|
1275
1812
|
Error: MosaicFieldError
|
|
1276
1813
|
});
|
|
1277
|
-
function
|
|
1814
|
+
function cn30(...classes) {
|
|
1278
1815
|
return classes.filter(Boolean).join(" ");
|
|
1279
1816
|
}
|
|
1280
1817
|
function MosaicSwitch({ className, ref, ...props }) {
|
|
@@ -1283,7 +1820,7 @@ function MosaicSwitch({ className, ref, ...props }) {
|
|
|
1283
1820
|
{
|
|
1284
1821
|
ref,
|
|
1285
1822
|
"data-slot": "switch",
|
|
1286
|
-
className:
|
|
1823
|
+
className: cn30(
|
|
1287
1824
|
// Track
|
|
1288
1825
|
"relative inline-flex h-6 w-10 shrink-0 cursor-pointer items-center",
|
|
1289
1826
|
"rounded-full border-2 border-transparent outline-none",
|
|
@@ -1301,7 +1838,7 @@ function MosaicSwitch({ className, ref, ...props }) {
|
|
|
1301
1838
|
Switch.Thumb,
|
|
1302
1839
|
{
|
|
1303
1840
|
"data-slot": "switch-thumb",
|
|
1304
|
-
className:
|
|
1841
|
+
className: cn30(
|
|
1305
1842
|
"pointer-events-none block h-4 w-4 rounded-full",
|
|
1306
1843
|
"bg-background shadow-sm",
|
|
1307
1844
|
"translate-x-0 transition-transform",
|
|
@@ -1313,7 +1850,7 @@ function MosaicSwitch({ className, ref, ...props }) {
|
|
|
1313
1850
|
);
|
|
1314
1851
|
}
|
|
1315
1852
|
MosaicSwitch.displayName = "MosaicSwitch";
|
|
1316
|
-
function
|
|
1853
|
+
function cn31(...classes) {
|
|
1317
1854
|
return classes.filter(Boolean).join(" ");
|
|
1318
1855
|
}
|
|
1319
1856
|
function MosaicSelect({
|
|
@@ -1345,7 +1882,7 @@ function MosaicSelect({
|
|
|
1345
1882
|
Select.Trigger,
|
|
1346
1883
|
{
|
|
1347
1884
|
"data-slot": "select",
|
|
1348
|
-
className:
|
|
1885
|
+
className: cn31(
|
|
1349
1886
|
"inline-flex h-9 w-full min-w-[8rem] items-center justify-between gap-2",
|
|
1350
1887
|
"rounded-md border border-border bg-background px-3 py-2",
|
|
1351
1888
|
"text-sm text-foreground shadow-xs outline-none",
|
|
@@ -1365,7 +1902,7 @@ function MosaicSelect({
|
|
|
1365
1902
|
Select.Popup,
|
|
1366
1903
|
{
|
|
1367
1904
|
"data-slot": "select-popup",
|
|
1368
|
-
className:
|
|
1905
|
+
className: cn31(
|
|
1369
1906
|
"z-50 min-w-[8rem] overflow-hidden rounded-md border border-border",
|
|
1370
1907
|
"bg-popover p-1 text-popover-foreground shadow-md",
|
|
1371
1908
|
"origin-[var(--transform-origin)]",
|
|
@@ -1379,7 +1916,7 @@ function MosaicSelect({
|
|
|
1379
1916
|
{
|
|
1380
1917
|
value: item.value,
|
|
1381
1918
|
disabled: item.disabled,
|
|
1382
|
-
className:
|
|
1919
|
+
className: cn31(
|
|
1383
1920
|
"relative flex cursor-pointer select-none items-center rounded-sm px-2 py-1.5",
|
|
1384
1921
|
"text-sm text-popover-foreground outline-none",
|
|
1385
1922
|
"data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground",
|
|
@@ -1433,7 +1970,7 @@ function CheckIcon() {
|
|
|
1433
1970
|
}
|
|
1434
1971
|
);
|
|
1435
1972
|
}
|
|
1436
|
-
function
|
|
1973
|
+
function cn32(...classes) {
|
|
1437
1974
|
return classes.filter(Boolean).join(" ");
|
|
1438
1975
|
}
|
|
1439
1976
|
function MosaicCombobox({
|
|
@@ -1462,12 +1999,12 @@ function MosaicCombobox({
|
|
|
1462
1999
|
name,
|
|
1463
2000
|
onInputValueChange: setInputValue,
|
|
1464
2001
|
autoHighlight: true,
|
|
1465
|
-
children: /* @__PURE__ */ jsxs("div", { "data-slot": "combobox", className:
|
|
2002
|
+
children: /* @__PURE__ */ jsxs("div", { "data-slot": "combobox", className: cn32("relative w-full", className), children: [
|
|
1466
2003
|
/* @__PURE__ */ jsx(
|
|
1467
2004
|
Combobox.Input,
|
|
1468
2005
|
{
|
|
1469
2006
|
placeholder,
|
|
1470
|
-
className:
|
|
2007
|
+
className: cn32(
|
|
1471
2008
|
"h-9 w-full rounded-md border border-border bg-background px-3 py-2",
|
|
1472
2009
|
"text-sm text-foreground shadow-xs outline-none",
|
|
1473
2010
|
"placeholder:text-muted-foreground",
|
|
@@ -1479,7 +2016,7 @@ function MosaicCombobox({
|
|
|
1479
2016
|
/* @__PURE__ */ jsx(Combobox.Portal, { children: /* @__PURE__ */ jsx(Combobox.Positioner, { sideOffset: 4, children: /* @__PURE__ */ jsx(
|
|
1480
2017
|
Combobox.Popup,
|
|
1481
2018
|
{
|
|
1482
|
-
className:
|
|
2019
|
+
className: cn32(
|
|
1483
2020
|
"z-50 min-w-[8rem] overflow-hidden rounded-md border border-border",
|
|
1484
2021
|
"bg-popover p-1 text-popover-foreground shadow-md",
|
|
1485
2022
|
"origin-[var(--transform-origin)]",
|
|
@@ -1494,7 +2031,7 @@ function MosaicCombobox({
|
|
|
1494
2031
|
{
|
|
1495
2032
|
value: item.value,
|
|
1496
2033
|
disabled: item.disabled,
|
|
1497
|
-
className:
|
|
2034
|
+
className: cn32(
|
|
1498
2035
|
"relative flex cursor-pointer select-none items-center rounded-sm px-2 py-1.5",
|
|
1499
2036
|
"text-sm text-popover-foreground outline-none",
|
|
1500
2037
|
"data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground",
|
|
@@ -1513,7 +2050,7 @@ function MosaicCombobox({
|
|
|
1513
2050
|
}
|
|
1514
2051
|
);
|
|
1515
2052
|
}
|
|
1516
|
-
function
|
|
2053
|
+
function cn33(...classes) {
|
|
1517
2054
|
return classes.filter(Boolean).join(" ");
|
|
1518
2055
|
}
|
|
1519
2056
|
function MosaicDropdownMenu({
|
|
@@ -1530,7 +2067,7 @@ function MosaicDropdownMenu({
|
|
|
1530
2067
|
Menu.Popup,
|
|
1531
2068
|
{
|
|
1532
2069
|
"data-slot": "dropdown-menu",
|
|
1533
|
-
className:
|
|
2070
|
+
className: cn33(
|
|
1534
2071
|
"z-50 min-w-[8rem] overflow-hidden rounded-md border border-border",
|
|
1535
2072
|
"bg-popover p-1 text-popover-foreground shadow-md",
|
|
1536
2073
|
"origin-[var(--transform-origin)]",
|
|
@@ -1547,7 +2084,7 @@ function MosaicDropdownMenu({
|
|
|
1547
2084
|
{
|
|
1548
2085
|
disabled: item.disabled,
|
|
1549
2086
|
onClick: () => onItemSelect?.(item.id),
|
|
1550
|
-
className:
|
|
2087
|
+
className: cn33(
|
|
1551
2088
|
"relative flex cursor-pointer select-none items-center rounded-sm px-2 py-1.5",
|
|
1552
2089
|
"text-sm text-popover-foreground outline-none",
|
|
1553
2090
|
"data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground",
|
|
@@ -1689,7 +2226,7 @@ function useDevice() {
|
|
|
1689
2226
|
}
|
|
1690
2227
|
return ctx;
|
|
1691
2228
|
}
|
|
1692
|
-
function
|
|
2229
|
+
function cn34(...classes) {
|
|
1693
2230
|
return classes.filter(Boolean).join(" ");
|
|
1694
2231
|
}
|
|
1695
2232
|
function MosaicAdaptiveGrid({
|
|
@@ -1708,14 +2245,14 @@ function MosaicAdaptiveGrid({
|
|
|
1708
2245
|
{
|
|
1709
2246
|
ref,
|
|
1710
2247
|
"data-slot": "adaptive-grid",
|
|
1711
|
-
className:
|
|
2248
|
+
className: cn34("grid", gap, className),
|
|
1712
2249
|
style: { gridTemplateColumns: `repeat(${cols}, minmax(0, 1fr))` },
|
|
1713
2250
|
children
|
|
1714
2251
|
}
|
|
1715
2252
|
);
|
|
1716
2253
|
}
|
|
1717
2254
|
MosaicAdaptiveGrid.displayName = "MosaicAdaptiveGrid";
|
|
1718
|
-
function
|
|
2255
|
+
function cn35(...classes) {
|
|
1719
2256
|
return classes.filter(Boolean).join(" ");
|
|
1720
2257
|
}
|
|
1721
2258
|
var ANIM_ID = "mosaic-adaptive-modal-kf";
|
|
@@ -1820,7 +2357,7 @@ function MosaicAdaptiveModal({
|
|
|
1820
2357
|
children: /* @__PURE__ */ jsxs(
|
|
1821
2358
|
"div",
|
|
1822
2359
|
{
|
|
1823
|
-
className:
|
|
2360
|
+
className: cn35(
|
|
1824
2361
|
"mosaic-sheet-panel relative w-full rounded-t-2xl border-t border-border bg-background",
|
|
1825
2362
|
"max-h-[90dvh] flex flex-col",
|
|
1826
2363
|
className
|
|
@@ -1853,7 +2390,7 @@ function MosaicAdaptiveModal({
|
|
|
1853
2390
|
children: /* @__PURE__ */ jsxs(
|
|
1854
2391
|
"div",
|
|
1855
2392
|
{
|
|
1856
|
-
className:
|
|
2393
|
+
className: cn35(
|
|
1857
2394
|
"mosaic-modal-panel relative w-[min(90vw,42rem)] rounded-xl border border-border bg-background shadow-xl",
|
|
1858
2395
|
"max-h-[90vh] flex flex-col",
|
|
1859
2396
|
className
|
|
@@ -1901,7 +2438,7 @@ function MosaicAdaptiveModal({
|
|
|
1901
2438
|
);
|
|
1902
2439
|
}
|
|
1903
2440
|
MosaicAdaptiveModal.displayName = "MosaicAdaptiveModal";
|
|
1904
|
-
function
|
|
2441
|
+
function cn36(...classes) {
|
|
1905
2442
|
return classes.filter(Boolean).join(" ");
|
|
1906
2443
|
}
|
|
1907
2444
|
function CheckIcon2() {
|
|
@@ -1958,7 +2495,7 @@ function MosaicAdaptiveNavigation({
|
|
|
1958
2495
|
{
|
|
1959
2496
|
ref,
|
|
1960
2497
|
"data-slot": "adaptive-navigation",
|
|
1961
|
-
className:
|
|
2498
|
+
className: cn36("space-y-3", className),
|
|
1962
2499
|
"aria-label": "Step navigation",
|
|
1963
2500
|
children: items.map((item, idx) => {
|
|
1964
2501
|
const isExpanded = expandedItems?.has(item.id) ?? false;
|
|
@@ -1976,7 +2513,7 @@ function MosaicAdaptiveNavigation({
|
|
|
1976
2513
|
/* @__PURE__ */ jsx(
|
|
1977
2514
|
"div",
|
|
1978
2515
|
{
|
|
1979
|
-
className:
|
|
2516
|
+
className: cn36(
|
|
1980
2517
|
"flex h-8 w-8 shrink-0 items-center justify-center rounded-full text-xs font-bold",
|
|
1981
2518
|
item.isComplete ? "bg-green-500 text-white" : "bg-muted text-muted-foreground"
|
|
1982
2519
|
),
|
|
@@ -2010,7 +2547,7 @@ function MosaicAdaptiveNavigation({
|
|
|
2010
2547
|
{
|
|
2011
2548
|
ref,
|
|
2012
2549
|
"data-slot": "adaptive-navigation",
|
|
2013
|
-
className:
|
|
2550
|
+
className: cn36("w-full", className),
|
|
2014
2551
|
"aria-label": "Tab navigation",
|
|
2015
2552
|
children: /* @__PURE__ */ jsx(
|
|
2016
2553
|
"div",
|
|
@@ -2027,7 +2564,7 @@ function MosaicAdaptiveNavigation({
|
|
|
2027
2564
|
role: "tab",
|
|
2028
2565
|
"aria-selected": isActive,
|
|
2029
2566
|
onClick: () => onItemChange(item.id),
|
|
2030
|
-
className:
|
|
2567
|
+
className: cn36(
|
|
2031
2568
|
"flex items-center justify-center gap-2 rounded-md px-3 py-2 text-sm font-medium transition-colors",
|
|
2032
2569
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1",
|
|
2033
2570
|
isActive ? "bg-primary text-primary-foreground shadow-sm" : "text-muted-foreground hover:text-foreground"
|
|
@@ -2036,7 +2573,7 @@ function MosaicAdaptiveNavigation({
|
|
|
2036
2573
|
/* @__PURE__ */ jsx(
|
|
2037
2574
|
"div",
|
|
2038
2575
|
{
|
|
2039
|
-
className:
|
|
2576
|
+
className: cn36(
|
|
2040
2577
|
"flex h-6 w-6 shrink-0 items-center justify-center rounded-full text-xs font-bold",
|
|
2041
2578
|
item.isComplete ? "bg-green-500 text-white" : isActive ? "bg-primary-foreground/20 text-primary-foreground" : "bg-background text-muted-foreground"
|
|
2042
2579
|
),
|
|
@@ -2048,7 +2585,7 @@ function MosaicAdaptiveNavigation({
|
|
|
2048
2585
|
item.duration !== void 0 && /* @__PURE__ */ jsxs(
|
|
2049
2586
|
"span",
|
|
2050
2587
|
{
|
|
2051
|
-
className:
|
|
2588
|
+
className: cn36(
|
|
2052
2589
|
"rounded px-1 py-0.5 text-xs",
|
|
2053
2590
|
isActive ? "bg-primary-foreground/20" : "bg-muted"
|
|
2054
2591
|
),
|
|
@@ -2069,7 +2606,7 @@ function MosaicAdaptiveNavigation({
|
|
|
2069
2606
|
);
|
|
2070
2607
|
}
|
|
2071
2608
|
MosaicAdaptiveNavigation.displayName = "MosaicAdaptiveNavigation";
|
|
2072
|
-
function
|
|
2609
|
+
function cn37(...classes) {
|
|
2073
2610
|
return classes.filter(Boolean).join(" ");
|
|
2074
2611
|
}
|
|
2075
2612
|
var ANIM_ID2 = "mosaic-sidebar-kf";
|
|
@@ -2239,7 +2776,7 @@ function MosaicAppSidebar({
|
|
|
2239
2776
|
{
|
|
2240
2777
|
ref,
|
|
2241
2778
|
"data-slot": "app-sidebar",
|
|
2242
|
-
className:
|
|
2779
|
+
className: cn37(
|
|
2243
2780
|
"flex h-full flex-col bg-sidebar border-r border-sidebar-border",
|
|
2244
2781
|
isMobile && "border-r-0",
|
|
2245
2782
|
className
|
|
@@ -2259,7 +2796,7 @@ function MosaicAppSidebar({
|
|
|
2259
2796
|
type: "button",
|
|
2260
2797
|
onClick: onToggleCollapse,
|
|
2261
2798
|
"aria-label": isCollapsed ? "Expand sidebar" : "Collapse sidebar",
|
|
2262
|
-
className:
|
|
2799
|
+
className: cn37(
|
|
2263
2800
|
"flex h-9 w-9 items-center justify-center rounded-lg transition-colors",
|
|
2264
2801
|
"hover:bg-sidebar-accent text-sidebar-foreground",
|
|
2265
2802
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -2289,7 +2826,7 @@ function MosaicAppSidebar({
|
|
|
2289
2826
|
},
|
|
2290
2827
|
"aria-current": isActive ? "page" : void 0,
|
|
2291
2828
|
"aria-expanded": hasSubmenu && !isCollapsed ? isExpanded : void 0,
|
|
2292
|
-
className:
|
|
2829
|
+
className: cn37(
|
|
2293
2830
|
"group flex w-full min-h-[44px] items-center rounded-lg p-3 transition-colors",
|
|
2294
2831
|
"hover:bg-sidebar-accent",
|
|
2295
2832
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -2316,7 +2853,7 @@ function MosaicAppSidebar({
|
|
|
2316
2853
|
type: "button",
|
|
2317
2854
|
onClick: () => handleNavClick(sub.href),
|
|
2318
2855
|
"aria-current": isSubActive ? "page" : void 0,
|
|
2319
|
-
className:
|
|
2856
|
+
className: cn37(
|
|
2320
2857
|
"flex w-full min-h-[40px] items-center gap-3 rounded-lg px-3 py-2 text-sm transition-colors",
|
|
2321
2858
|
"hover:bg-sidebar-accent/50 text-sidebar-foreground",
|
|
2322
2859
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -2339,7 +2876,7 @@ function MosaicAppSidebar({
|
|
|
2339
2876
|
{
|
|
2340
2877
|
type: "button",
|
|
2341
2878
|
onClick: action.onClick,
|
|
2342
|
-
className:
|
|
2879
|
+
className: cn37(
|
|
2343
2880
|
"flex w-full min-h-[44px] items-center gap-3 rounded-lg px-3 py-2 text-sm font-medium",
|
|
2344
2881
|
"text-sidebar-foreground transition-colors hover:bg-sidebar-accent",
|
|
2345
2882
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -2386,7 +2923,7 @@ function MosaicAppSidebar({
|
|
|
2386
2923
|
);
|
|
2387
2924
|
}
|
|
2388
2925
|
MosaicAppSidebar.displayName = "MosaicAppSidebar";
|
|
2389
|
-
function
|
|
2926
|
+
function cn38(...classes) {
|
|
2390
2927
|
return classes.filter(Boolean).join(" ");
|
|
2391
2928
|
}
|
|
2392
2929
|
var ANIM_ID3 = "mosaic-dashboard-kf";
|
|
@@ -2476,7 +3013,7 @@ function MosaicDashboardLayout({
|
|
|
2476
3013
|
{
|
|
2477
3014
|
ref,
|
|
2478
3015
|
"data-slot": "dashboard-layout",
|
|
2479
|
-
className:
|
|
3016
|
+
className: cn38("flex h-screen w-full bg-background", className),
|
|
2480
3017
|
children: [
|
|
2481
3018
|
!isMobile && /* @__PURE__ */ jsx(
|
|
2482
3019
|
MosaicAppSidebar,
|
|
@@ -2500,7 +3037,7 @@ function MosaicDashboardLayout({
|
|
|
2500
3037
|
type: "button",
|
|
2501
3038
|
"aria-label": "Open navigation",
|
|
2502
3039
|
onClick: () => setIsMobileSidebarOpen(true),
|
|
2503
|
-
className:
|
|
3040
|
+
className: cn38(
|
|
2504
3041
|
"flex h-11 w-11 shrink-0 items-center justify-center rounded-lg",
|
|
2505
3042
|
"text-foreground transition-colors hover:bg-muted",
|
|
2506
3043
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -2552,7 +3089,7 @@ function MosaicDashboardLayout({
|
|
|
2552
3089
|
);
|
|
2553
3090
|
}
|
|
2554
3091
|
MosaicDashboardLayout.displayName = "MosaicDashboardLayout";
|
|
2555
|
-
function
|
|
3092
|
+
function cn39(...classes) {
|
|
2556
3093
|
return classes.filter(Boolean).join(" ");
|
|
2557
3094
|
}
|
|
2558
3095
|
var ANIM_ID4 = "mosaic-quick-action-kf";
|
|
@@ -2607,7 +3144,7 @@ function MosaicQuickActionCard({
|
|
|
2607
3144
|
{
|
|
2608
3145
|
ref,
|
|
2609
3146
|
"data-slot": "quick-action-card",
|
|
2610
|
-
className:
|
|
3147
|
+
className: cn39("rounded-xl border border-border bg-card", className),
|
|
2611
3148
|
children: [
|
|
2612
3149
|
heading && /* @__PURE__ */ jsx("div", { className: "border-b border-border px-6 py-4", children: /* @__PURE__ */ jsx("h3", { className: "text-lg font-semibold text-foreground", children: heading }) }),
|
|
2613
3150
|
/* @__PURE__ */ jsx(
|
|
@@ -2632,7 +3169,7 @@ function MosaicQuickActionCard({
|
|
|
2632
3169
|
/* @__PURE__ */ jsxs(
|
|
2633
3170
|
"div",
|
|
2634
3171
|
{
|
|
2635
|
-
className:
|
|
3172
|
+
className: cn39(
|
|
2636
3173
|
"flex min-h-[100px] cursor-pointer flex-col items-center justify-center gap-2 rounded-xl border p-4",
|
|
2637
3174
|
"transition-transform duration-150 hover:scale-105 active:scale-[0.98]",
|
|
2638
3175
|
accentClass
|
|
@@ -2665,7 +3202,7 @@ function MosaicQuickActionCard({
|
|
|
2665
3202
|
);
|
|
2666
3203
|
}
|
|
2667
3204
|
MosaicQuickActionCard.displayName = "MosaicQuickActionCard";
|
|
2668
|
-
function
|
|
3205
|
+
function cn40(...classes) {
|
|
2669
3206
|
return classes.filter(Boolean).join(" ");
|
|
2670
3207
|
}
|
|
2671
3208
|
var ANIM_ID5 = "mosaic-activity-feed-kf";
|
|
@@ -2754,7 +3291,7 @@ function MosaicActivityItem({ activity, icon, className }) {
|
|
|
2754
3291
|
"div",
|
|
2755
3292
|
{
|
|
2756
3293
|
"data-slot": "activity-item",
|
|
2757
|
-
className:
|
|
3294
|
+
className: cn40(
|
|
2758
3295
|
"flex cursor-pointer items-start gap-4 rounded-lg p-3 transition-colors hover:bg-muted/50",
|
|
2759
3296
|
className
|
|
2760
3297
|
),
|
|
@@ -2788,7 +3325,7 @@ function MosaicActivityItem({ activity, icon, className }) {
|
|
|
2788
3325
|
/* @__PURE__ */ jsx(
|
|
2789
3326
|
"span",
|
|
2790
3327
|
{
|
|
2791
|
-
className:
|
|
3328
|
+
className: cn40(
|
|
2792
3329
|
"rounded-full px-2 py-0.5 text-xs font-medium",
|
|
2793
3330
|
getStatusClass(activity.status)
|
|
2794
3331
|
),
|
|
@@ -2829,7 +3366,7 @@ function MosaicActivityFeed({
|
|
|
2829
3366
|
{
|
|
2830
3367
|
ref,
|
|
2831
3368
|
"data-slot": "activity-feed",
|
|
2832
|
-
className:
|
|
3369
|
+
className: cn40("rounded-xl border border-border bg-card", className),
|
|
2833
3370
|
children: [
|
|
2834
3371
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between border-b border-border px-6 py-4", children: [
|
|
2835
3372
|
/* @__PURE__ */ jsx("h3", { className: "text-lg font-semibold text-foreground", children: heading }),
|
|
@@ -2855,7 +3392,7 @@ function MosaicActivityFeed({
|
|
|
2855
3392
|
);
|
|
2856
3393
|
}
|
|
2857
3394
|
MosaicActivityFeed.displayName = "MosaicActivityFeed";
|
|
2858
|
-
function
|
|
3395
|
+
function cn41(...classes) {
|
|
2859
3396
|
return classes.filter(Boolean).join(" ");
|
|
2860
3397
|
}
|
|
2861
3398
|
function SparklesIcon() {
|
|
@@ -3064,7 +3601,7 @@ function MosaicAgentComposerDesktop({
|
|
|
3064
3601
|
value: agentName,
|
|
3065
3602
|
onChange: (e) => onAgentNameChange(e.target.value),
|
|
3066
3603
|
placeholder: "Enter agent name\u2026",
|
|
3067
|
-
className:
|
|
3604
|
+
className: cn41(
|
|
3068
3605
|
"flex min-h-[48px] w-full rounded-lg border border-input bg-transparent px-3 py-2 text-sm",
|
|
3069
3606
|
"placeholder:text-muted-foreground",
|
|
3070
3607
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -3165,7 +3702,7 @@ function MosaicAgentComposerDesktop({
|
|
|
3165
3702
|
onChange: (e) => onCustomInstructionsChange(e.target.value),
|
|
3166
3703
|
placeholder: "Add any specific instructions or behaviors\u2026",
|
|
3167
3704
|
rows: 5,
|
|
3168
|
-
className:
|
|
3705
|
+
className: cn41(
|
|
3169
3706
|
"flex w-full resize-y rounded-lg border border-input bg-transparent px-3 py-2 text-sm",
|
|
3170
3707
|
"placeholder:text-muted-foreground",
|
|
3171
3708
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -3233,7 +3770,7 @@ function MosaicAgentComposerDesktop({
|
|
|
3233
3770
|
/* @__PURE__ */ jsx(SparklesIcon, {}),
|
|
3234
3771
|
/* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: "Select all modules to see preview" })
|
|
3235
3772
|
] }) }),
|
|
3236
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
3773
|
+
/* @__PURE__ */ jsxs("div", { className: cn41("flex gap-2", isEditMode && onCancel ? "flex-row" : "flex-col"), children: [
|
|
3237
3774
|
isEditMode && onCancel && /* @__PURE__ */ jsx(
|
|
3238
3775
|
"button",
|
|
3239
3776
|
{
|
|
@@ -3249,7 +3786,7 @@ function MosaicAgentComposerDesktop({
|
|
|
3249
3786
|
type: "button",
|
|
3250
3787
|
onClick: onSave,
|
|
3251
3788
|
disabled: !canSave,
|
|
3252
|
-
className:
|
|
3789
|
+
className: cn41(
|
|
3253
3790
|
"flex min-h-[48px] items-center justify-center gap-2 rounded-lg text-sm font-medium transition-colors",
|
|
3254
3791
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
3255
3792
|
"bg-primary text-primary-foreground hover:bg-primary/90",
|
|
@@ -3270,7 +3807,7 @@ function MosaicAgentComposerDesktop({
|
|
|
3270
3807
|
] });
|
|
3271
3808
|
}
|
|
3272
3809
|
MosaicAgentComposerDesktop.displayName = "MosaicAgentComposerDesktop";
|
|
3273
|
-
function
|
|
3810
|
+
function cn42(...classes) {
|
|
3274
3811
|
return classes.filter(Boolean).join(" ");
|
|
3275
3812
|
}
|
|
3276
3813
|
function SparklesIcon2() {
|
|
@@ -3526,7 +4063,7 @@ function MosaicAgentComposerMobile({
|
|
|
3526
4063
|
disabled: isLoading,
|
|
3527
4064
|
"aria-required": "true",
|
|
3528
4065
|
"aria-invalid": canSave && !agentName ? "true" : "false",
|
|
3529
|
-
className:
|
|
4066
|
+
className: cn42(
|
|
3530
4067
|
"flex min-h-[48px] w-full rounded-lg border border-input bg-transparent px-3 py-2 text-sm",
|
|
3531
4068
|
"placeholder:text-muted-foreground",
|
|
3532
4069
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -3630,7 +4167,7 @@ function MosaicAgentComposerMobile({
|
|
|
3630
4167
|
disabled: isLoading,
|
|
3631
4168
|
"aria-describedby": `${instructionsId}-help`,
|
|
3632
4169
|
rows: 4,
|
|
3633
|
-
className:
|
|
4170
|
+
className: cn42(
|
|
3634
4171
|
"flex w-full resize-y rounded-lg border border-input bg-transparent px-3 py-2 text-sm",
|
|
3635
4172
|
"placeholder:text-muted-foreground",
|
|
3636
4173
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -3686,7 +4223,7 @@ function MosaicAgentComposer(props) {
|
|
|
3686
4223
|
return isMobile ? /* @__PURE__ */ jsx(MosaicAgentComposerMobile, { ...props }) : /* @__PURE__ */ jsx(MosaicAgentComposerDesktop, { ...props });
|
|
3687
4224
|
}
|
|
3688
4225
|
MosaicAgentComposer.displayName = "MosaicAgentComposer";
|
|
3689
|
-
function
|
|
4226
|
+
function cn43(...classes) {
|
|
3690
4227
|
return classes.filter(Boolean).join(" ");
|
|
3691
4228
|
}
|
|
3692
4229
|
function EditIcon() {
|
|
@@ -3744,7 +4281,7 @@ function MosaicModuleCard({
|
|
|
3744
4281
|
{
|
|
3745
4282
|
ref,
|
|
3746
4283
|
"data-slot": "module-card",
|
|
3747
|
-
className:
|
|
4284
|
+
className: cn43(
|
|
3748
4285
|
"min-h-[80px] rounded-xl border border-border bg-card p-4 transition-all",
|
|
3749
4286
|
"flex items-start gap-3",
|
|
3750
4287
|
isSelected && "ring-2 ring-primary bg-primary/5",
|
|
@@ -3806,7 +4343,7 @@ function MosaicThemeProvider({
|
|
|
3806
4343
|
return /* @__PURE__ */ jsx("div", { "data-slot": "theme-provider", children });
|
|
3807
4344
|
}
|
|
3808
4345
|
MosaicThemeProvider.displayName = "MosaicThemeProvider";
|
|
3809
|
-
function
|
|
4346
|
+
function cn44(...classes) {
|
|
3810
4347
|
return classes.filter(Boolean).join(" ");
|
|
3811
4348
|
}
|
|
3812
4349
|
var ANIM_ID6 = "mosaic-delete-dialog-kf";
|
|
@@ -3860,14 +4397,14 @@ function MosaicDeleteConfirmationDialog({
|
|
|
3860
4397
|
/* @__PURE__ */ jsx(
|
|
3861
4398
|
AlertDialog.Backdrop,
|
|
3862
4399
|
{
|
|
3863
|
-
className:
|
|
4400
|
+
className: cn44("mosaic-delete-overlay", "fixed inset-0 z-50 bg-black/50")
|
|
3864
4401
|
}
|
|
3865
4402
|
),
|
|
3866
4403
|
/* @__PURE__ */ jsxs(
|
|
3867
4404
|
AlertDialog.Popup,
|
|
3868
4405
|
{
|
|
3869
4406
|
"data-slot": "delete-confirmation-dialog",
|
|
3870
|
-
className:
|
|
4407
|
+
className: cn44(
|
|
3871
4408
|
"mosaic-delete-content",
|
|
3872
4409
|
"fixed left-1/2 top-1/2 z-50",
|
|
3873
4410
|
"w-full max-w-[92vw] sm:max-w-md",
|
|
@@ -3880,7 +4417,7 @@ function MosaicDeleteConfirmationDialog({
|
|
|
3880
4417
|
/* @__PURE__ */ jsx(
|
|
3881
4418
|
AlertDialog.Close,
|
|
3882
4419
|
{
|
|
3883
|
-
className:
|
|
4420
|
+
className: cn44(
|
|
3884
4421
|
"inline-flex min-h-[44px] w-full items-center justify-center rounded-md border border-border",
|
|
3885
4422
|
"bg-background px-4 py-2 text-sm font-medium text-foreground",
|
|
3886
4423
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -3894,7 +4431,7 @@ function MosaicDeleteConfirmationDialog({
|
|
|
3894
4431
|
AlertDialog.Close,
|
|
3895
4432
|
{
|
|
3896
4433
|
onClick: onConfirm,
|
|
3897
|
-
className:
|
|
4434
|
+
className: cn44(
|
|
3898
4435
|
"inline-flex min-h-[44px] w-full items-center justify-center rounded-md",
|
|
3899
4436
|
"bg-destructive px-4 py-2 text-sm font-medium text-destructive-foreground",
|
|
3900
4437
|
"hover:bg-destructive/90",
|
|
@@ -3911,7 +4448,7 @@ function MosaicDeleteConfirmationDialog({
|
|
|
3911
4448
|
] }) });
|
|
3912
4449
|
}
|
|
3913
4450
|
MosaicDeleteConfirmationDialog.displayName = "MosaicDeleteConfirmationDialog";
|
|
3914
|
-
function
|
|
4451
|
+
function cn45(...classes) {
|
|
3915
4452
|
return classes.filter(Boolean).join(" ");
|
|
3916
4453
|
}
|
|
3917
4454
|
function Toggle({
|
|
@@ -3927,7 +4464,7 @@ function Toggle({
|
|
|
3927
4464
|
id,
|
|
3928
4465
|
"aria-checked": checked,
|
|
3929
4466
|
onClick: () => onChange(!checked),
|
|
3930
|
-
className:
|
|
4467
|
+
className: cn45(
|
|
3931
4468
|
"relative inline-flex h-6 w-11 shrink-0 cursor-pointer rounded-full border-2 border-transparent",
|
|
3932
4469
|
"transition-colors duration-200 ease-in-out",
|
|
3933
4470
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
@@ -3936,7 +4473,7 @@ function Toggle({
|
|
|
3936
4473
|
children: /* @__PURE__ */ jsx(
|
|
3937
4474
|
"span",
|
|
3938
4475
|
{
|
|
3939
|
-
className:
|
|
4476
|
+
className: cn45(
|
|
3940
4477
|
"pointer-events-none inline-block h-5 w-5 rounded-full bg-background shadow-lg",
|
|
3941
4478
|
"transform transition duration-200 ease-in-out",
|
|
3942
4479
|
checked ? "translate-x-5" : "translate-x-0"
|
|
@@ -3958,7 +4495,7 @@ function NativeSelect({
|
|
|
3958
4495
|
id,
|
|
3959
4496
|
value,
|
|
3960
4497
|
onChange: (e) => onChange(e.target.value),
|
|
3961
|
-
className:
|
|
4498
|
+
className: cn45(
|
|
3962
4499
|
"flex min-h-[48px] w-full rounded-md border border-input bg-background px-3 py-2",
|
|
3963
4500
|
"text-sm text-foreground",
|
|
3964
4501
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -3977,7 +4514,7 @@ function MosaicPreferencesPanel({
|
|
|
3977
4514
|
className
|
|
3978
4515
|
}) {
|
|
3979
4516
|
const { isMobile } = useDevice();
|
|
3980
|
-
return /* @__PURE__ */ jsxs("div", { "data-slot": "preferences-panel", className:
|
|
4517
|
+
return /* @__PURE__ */ jsxs("div", { "data-slot": "preferences-panel", className: cn45("space-y-4 md:space-y-6", className), children: [
|
|
3981
4518
|
groups.map((group) => /* @__PURE__ */ jsxs(
|
|
3982
4519
|
"div",
|
|
3983
4520
|
{
|
|
@@ -4020,13 +4557,13 @@ function MosaicPreferencesPanel({
|
|
|
4020
4557
|
},
|
|
4021
4558
|
group.id
|
|
4022
4559
|
)),
|
|
4023
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
4560
|
+
/* @__PURE__ */ jsx("div", { className: cn45("flex", isMobile ? "flex-col" : "justify-end"), children: /* @__PURE__ */ jsxs(
|
|
4024
4561
|
"button",
|
|
4025
4562
|
{
|
|
4026
4563
|
type: "button",
|
|
4027
4564
|
onClick: onSave,
|
|
4028
4565
|
disabled: isSaving,
|
|
4029
|
-
className:
|
|
4566
|
+
className: cn45(
|
|
4030
4567
|
"inline-flex min-h-[44px] items-center justify-center gap-2 rounded-md",
|
|
4031
4568
|
"bg-primary px-4 py-2 text-sm font-medium text-primary-foreground",
|
|
4032
4569
|
"hover:bg-primary/90",
|
|
@@ -4062,7 +4599,7 @@ function MosaicPreferencesPanel({
|
|
|
4062
4599
|
] });
|
|
4063
4600
|
}
|
|
4064
4601
|
MosaicPreferencesPanel.displayName = "MosaicPreferencesPanel";
|
|
4065
|
-
function
|
|
4602
|
+
function cn46(...classes) {
|
|
4066
4603
|
return classes.filter(Boolean).join(" ");
|
|
4067
4604
|
}
|
|
4068
4605
|
function AvatarDisplay({
|
|
@@ -4075,7 +4612,7 @@ function AvatarDisplay({
|
|
|
4075
4612
|
return /* @__PURE__ */ jsx(
|
|
4076
4613
|
"span",
|
|
4077
4614
|
{
|
|
4078
|
-
className:
|
|
4615
|
+
className: cn46(
|
|
4079
4616
|
"inline-flex shrink-0 items-center justify-center rounded-full bg-muted text-muted-foreground font-semibold overflow-hidden",
|
|
4080
4617
|
sizeClass
|
|
4081
4618
|
),
|
|
@@ -4097,7 +4634,7 @@ function MosaicProfilePanel({
|
|
|
4097
4634
|
className
|
|
4098
4635
|
}) {
|
|
4099
4636
|
const { isMobile } = useDevice();
|
|
4100
|
-
return /* @__PURE__ */ jsxs("div", { "data-slot": "profile-panel", className:
|
|
4637
|
+
return /* @__PURE__ */ jsxs("div", { "data-slot": "profile-panel", className: cn46("space-y-4 md:space-y-6", className), children: [
|
|
4101
4638
|
/* @__PURE__ */ jsxs("div", { className: "rounded-lg border border-border bg-card text-card-foreground shadow-sm", children: [
|
|
4102
4639
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-col space-y-1.5 p-6", children: [
|
|
4103
4640
|
/* @__PURE__ */ jsx("h3", { className: "text-lg font-semibold leading-none tracking-tight md:text-xl", children: "Profile Picture" }),
|
|
@@ -4117,7 +4654,7 @@ function MosaicProfilePanel({
|
|
|
4117
4654
|
{
|
|
4118
4655
|
type: "button",
|
|
4119
4656
|
onClick: onAvatarUpload,
|
|
4120
|
-
className:
|
|
4657
|
+
className: cn46(
|
|
4121
4658
|
"inline-flex min-h-[44px] items-center justify-center gap-2 rounded-md border border-border",
|
|
4122
4659
|
"bg-background px-4 py-2 text-sm font-medium text-foreground",
|
|
4123
4660
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -4167,7 +4704,7 @@ function MosaicProfilePanel({
|
|
|
4167
4704
|
placeholder: field.placeholder,
|
|
4168
4705
|
onChange: (e) => onFieldChange?.(field.id, e.target.value),
|
|
4169
4706
|
rows: 4,
|
|
4170
|
-
className:
|
|
4707
|
+
className: cn46(
|
|
4171
4708
|
"flex min-h-[120px] w-full rounded-md border border-input bg-background px-3 py-2",
|
|
4172
4709
|
"text-sm text-foreground placeholder:text-muted-foreground",
|
|
4173
4710
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -4183,7 +4720,7 @@ function MosaicProfilePanel({
|
|
|
4183
4720
|
readOnly: field.readOnly,
|
|
4184
4721
|
placeholder: field.placeholder,
|
|
4185
4722
|
onChange: (e) => onFieldChange?.(field.id, e.target.value),
|
|
4186
|
-
className:
|
|
4723
|
+
className: cn46(
|
|
4187
4724
|
"flex min-h-[48px] w-full rounded-md border border-input bg-background px-3 py-2",
|
|
4188
4725
|
"text-sm text-foreground placeholder:text-muted-foreground",
|
|
4189
4726
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -4203,7 +4740,7 @@ function MosaicProfilePanel({
|
|
|
4203
4740
|
{
|
|
4204
4741
|
type: "button",
|
|
4205
4742
|
onClick: onChangePassword,
|
|
4206
|
-
className:
|
|
4743
|
+
className: cn46(
|
|
4207
4744
|
"inline-flex min-h-[44px] items-center justify-center rounded-md border border-border",
|
|
4208
4745
|
"bg-background px-4 py-2 text-sm font-medium text-foreground",
|
|
4209
4746
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -4215,13 +4752,13 @@ function MosaicProfilePanel({
|
|
|
4215
4752
|
) })
|
|
4216
4753
|
] }),
|
|
4217
4754
|
extraSections,
|
|
4218
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
4755
|
+
/* @__PURE__ */ jsx("div", { className: cn46("flex", isMobile ? "flex-col" : "justify-end"), children: /* @__PURE__ */ jsxs(
|
|
4219
4756
|
"button",
|
|
4220
4757
|
{
|
|
4221
4758
|
type: "button",
|
|
4222
4759
|
onClick: onSave,
|
|
4223
4760
|
disabled: isSaving,
|
|
4224
|
-
className:
|
|
4761
|
+
className: cn46(
|
|
4225
4762
|
"inline-flex min-h-[44px] items-center justify-center gap-2 rounded-md",
|
|
4226
4763
|
"bg-primary px-4 py-2 text-sm font-medium text-primary-foreground",
|
|
4227
4764
|
"hover:bg-primary/90",
|
|
@@ -4257,7 +4794,7 @@ function MosaicProfilePanel({
|
|
|
4257
4794
|
] });
|
|
4258
4795
|
}
|
|
4259
4796
|
MosaicProfilePanel.displayName = "MosaicProfilePanel";
|
|
4260
|
-
function
|
|
4797
|
+
function cn47(...classes) {
|
|
4261
4798
|
return classes.filter(Boolean).join(" ");
|
|
4262
4799
|
}
|
|
4263
4800
|
var ANIM_ID7 = "mosaic-main-nav-kf";
|
|
@@ -4365,7 +4902,7 @@ function MosaicMainNav({
|
|
|
4365
4902
|
{
|
|
4366
4903
|
type: "button",
|
|
4367
4904
|
onClick: () => setIsOpen(!isOpen),
|
|
4368
|
-
className:
|
|
4905
|
+
className: cn47(
|
|
4369
4906
|
"inline-flex min-h-[44px] min-w-[44px] items-center justify-center rounded-md p-0",
|
|
4370
4907
|
"text-foreground hover:bg-accent hover:text-accent-foreground",
|
|
4371
4908
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -4391,7 +4928,7 @@ function MosaicMainNav({
|
|
|
4391
4928
|
"aria-label": "Navigation",
|
|
4392
4929
|
open: isOpen,
|
|
4393
4930
|
"data-open": isOpen ? "true" : "false",
|
|
4394
|
-
className:
|
|
4931
|
+
className: cn47(
|
|
4395
4932
|
"mosaic-nav-drawer",
|
|
4396
4933
|
"fixed inset-y-0 left-0 z-50 m-0 w-[280px] max-h-none h-full p-0",
|
|
4397
4934
|
"border-r border-border bg-background shadow-xl",
|
|
@@ -4408,7 +4945,7 @@ function MosaicMainNav({
|
|
|
4408
4945
|
{
|
|
4409
4946
|
type: "button",
|
|
4410
4947
|
onClick: () => setIsOpen(false),
|
|
4411
|
-
className:
|
|
4948
|
+
className: cn47(
|
|
4412
4949
|
"inline-flex h-8 w-8 items-center justify-center rounded-md",
|
|
4413
4950
|
"text-muted-foreground hover:bg-accent hover:text-accent-foreground",
|
|
4414
4951
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -4421,7 +4958,7 @@ function MosaicMainNav({
|
|
|
4421
4958
|
/* @__PURE__ */ jsx("nav", { className: "flex flex-col gap-1 p-4", "aria-label": "Main navigation", children: filteredItems.map((item) => {
|
|
4422
4959
|
const Icon = item.icon;
|
|
4423
4960
|
const active = isItemActive(item);
|
|
4424
|
-
const itemClass =
|
|
4961
|
+
const itemClass = cn47(
|
|
4425
4962
|
"flex items-center gap-3 rounded-lg px-3 py-3 text-sm font-medium transition-colors",
|
|
4426
4963
|
"hover:bg-accent hover:text-accent-foreground",
|
|
4427
4964
|
"min-h-[44px]",
|
|
@@ -4447,12 +4984,12 @@ function MosaicMainNav({
|
|
|
4447
4984
|
"nav",
|
|
4448
4985
|
{
|
|
4449
4986
|
"data-slot": "main-nav",
|
|
4450
|
-
className:
|
|
4987
|
+
className: cn47("flex items-center gap-1", className),
|
|
4451
4988
|
"aria-label": "Main navigation",
|
|
4452
4989
|
children: filteredItems.map((item) => {
|
|
4453
4990
|
const Icon = item.icon;
|
|
4454
4991
|
const active = isItemActive(item);
|
|
4455
|
-
const itemClass =
|
|
4992
|
+
const itemClass = cn47(
|
|
4456
4993
|
"flex items-center gap-2 rounded-lg px-3 py-2 text-sm font-medium transition-colors",
|
|
4457
4994
|
"hover:bg-accent hover:text-accent-foreground",
|
|
4458
4995
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -4472,7 +5009,7 @@ function MosaicMainNav({
|
|
|
4472
5009
|
);
|
|
4473
5010
|
}
|
|
4474
5011
|
MosaicMainNav.displayName = "MosaicMainNav";
|
|
4475
|
-
function
|
|
5012
|
+
function cn48(...classes) {
|
|
4476
5013
|
return classes.filter(Boolean).join(" ");
|
|
4477
5014
|
}
|
|
4478
5015
|
function MoreVertIcon() {
|
|
@@ -4603,7 +5140,7 @@ function MosaicAgentCard({
|
|
|
4603
5140
|
"div",
|
|
4604
5141
|
{
|
|
4605
5142
|
"data-slot": "agent-card",
|
|
4606
|
-
className:
|
|
5143
|
+
className: cn48(
|
|
4607
5144
|
"relative overflow-hidden rounded-lg border border-border bg-card text-card-foreground shadow-sm",
|
|
4608
5145
|
"transition-shadow hover:shadow-md",
|
|
4609
5146
|
agent.isActive && "ring-2 ring-primary",
|
|
@@ -4613,7 +5150,7 @@ function MosaicAgentCard({
|
|
|
4613
5150
|
/* @__PURE__ */ jsx(
|
|
4614
5151
|
"div",
|
|
4615
5152
|
{
|
|
4616
|
-
className:
|
|
5153
|
+
className: cn48(
|
|
4617
5154
|
"absolute left-0 top-0 h-1 w-full",
|
|
4618
5155
|
agent.isActive ? "bg-primary" : "bg-muted"
|
|
4619
5156
|
)
|
|
@@ -4625,7 +5162,7 @@ function MosaicAgentCard({
|
|
|
4625
5162
|
agent.accentColor && /* @__PURE__ */ jsx(
|
|
4626
5163
|
"span",
|
|
4627
5164
|
{
|
|
4628
|
-
className:
|
|
5165
|
+
className: cn48("h-3 w-3 shrink-0 rounded-full", agent.accentColor),
|
|
4629
5166
|
"aria-hidden": "true"
|
|
4630
5167
|
}
|
|
4631
5168
|
),
|
|
@@ -4643,7 +5180,7 @@ function MosaicAgentCard({
|
|
|
4643
5180
|
{
|
|
4644
5181
|
type: "button",
|
|
4645
5182
|
onClick: () => setMenuOpen((v) => !v),
|
|
4646
|
-
className:
|
|
5183
|
+
className: cn48(
|
|
4647
5184
|
"inline-flex h-8 w-8 items-center justify-center rounded-md",
|
|
4648
5185
|
"text-muted-foreground hover:bg-accent hover:text-accent-foreground",
|
|
4649
5186
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -4658,7 +5195,7 @@ function MosaicAgentCard({
|
|
|
4658
5195
|
"div",
|
|
4659
5196
|
{
|
|
4660
5197
|
role: "menu",
|
|
4661
|
-
className:
|
|
5198
|
+
className: cn48(
|
|
4662
5199
|
"absolute right-0 top-full z-50 mt-1 min-w-[140px] rounded-md border border-border",
|
|
4663
5200
|
"bg-popover py-1 shadow-md"
|
|
4664
5201
|
),
|
|
@@ -4673,7 +5210,7 @@ function MosaicAgentCard({
|
|
|
4673
5210
|
onToggleStatus(agent.id);
|
|
4674
5211
|
setMenuOpen(false);
|
|
4675
5212
|
},
|
|
4676
|
-
className:
|
|
5213
|
+
className: cn48(
|
|
4677
5214
|
"flex w-full items-center gap-2 px-3 py-2 text-sm text-foreground",
|
|
4678
5215
|
"hover:bg-accent hover:text-accent-foreground",
|
|
4679
5216
|
"disabled:pointer-events-none disabled:opacity-50"
|
|
@@ -4735,7 +5272,7 @@ function MosaicAgentCard({
|
|
|
4735
5272
|
type: "button",
|
|
4736
5273
|
disabled: isLoading,
|
|
4737
5274
|
onClick: () => onToggleStatus(agent.id),
|
|
4738
|
-
className:
|
|
5275
|
+
className: cn48(
|
|
4739
5276
|
"inline-flex h-7 items-center justify-center rounded-md px-3 text-xs font-medium",
|
|
4740
5277
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
4741
5278
|
"disabled:pointer-events-none disabled:opacity-50",
|
|
@@ -4751,7 +5288,7 @@ function MosaicAgentCard({
|
|
|
4751
5288
|
);
|
|
4752
5289
|
}
|
|
4753
5290
|
MosaicAgentCard.displayName = "MosaicAgentCard";
|
|
4754
|
-
function
|
|
5291
|
+
function cn49(...classes) {
|
|
4755
5292
|
return classes.filter(Boolean).join(" ");
|
|
4756
5293
|
}
|
|
4757
5294
|
function PlusIcon3() {
|
|
@@ -4831,7 +5368,7 @@ function PickerContent({
|
|
|
4831
5368
|
{
|
|
4832
5369
|
type: "button",
|
|
4833
5370
|
onClick: () => onAdd(agent.id),
|
|
4834
|
-
className:
|
|
5371
|
+
className: cn49(
|
|
4835
5372
|
"flex w-full items-center gap-3 rounded-lg px-3 py-2.5 text-sm",
|
|
4836
5373
|
"hover:bg-accent hover:text-accent-foreground",
|
|
4837
5374
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -4840,7 +5377,7 @@ function PickerContent({
|
|
|
4840
5377
|
agent.accentColor && /* @__PURE__ */ jsx(
|
|
4841
5378
|
"span",
|
|
4842
5379
|
{
|
|
4843
|
-
className:
|
|
5380
|
+
className: cn49("h-3 w-3 shrink-0 rounded-full", agent.accentColor),
|
|
4844
5381
|
"aria-hidden": "true"
|
|
4845
5382
|
}
|
|
4846
5383
|
),
|
|
@@ -4857,7 +5394,7 @@ function PickerContent({
|
|
|
4857
5394
|
{
|
|
4858
5395
|
type: "button",
|
|
4859
5396
|
onClick: onOpenBuilder,
|
|
4860
|
-
className:
|
|
5397
|
+
className: cn49(
|
|
4861
5398
|
"flex w-full items-center gap-3 rounded-lg px-3 py-2.5 text-sm",
|
|
4862
5399
|
"hover:bg-accent hover:text-accent-foreground",
|
|
4863
5400
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -4907,11 +5444,11 @@ function MosaicQuickAgentSelector({
|
|
|
4907
5444
|
setPickerOpen(false);
|
|
4908
5445
|
};
|
|
4909
5446
|
const canAdd = selectedAgents.length < maxAgents;
|
|
4910
|
-
return /* @__PURE__ */ jsxs("div", { "data-slot": "quick-agent-selector", className:
|
|
5447
|
+
return /* @__PURE__ */ jsxs("div", { "data-slot": "quick-agent-selector", className: cn49("flex items-center gap-2", className), children: [
|
|
4911
5448
|
/* @__PURE__ */ jsx("div", { className: "flex items-center gap-2 overflow-x-auto", children: selectedAgents.map((agent) => /* @__PURE__ */ jsxs(
|
|
4912
5449
|
"div",
|
|
4913
5450
|
{
|
|
4914
|
-
className:
|
|
5451
|
+
className: cn49(
|
|
4915
5452
|
"group flex shrink-0 items-center gap-2 rounded-md border border-border bg-card",
|
|
4916
5453
|
isMobile ? "px-2 py-1" : "px-3 py-1.5"
|
|
4917
5454
|
),
|
|
@@ -4919,17 +5456,17 @@ function MosaicQuickAgentSelector({
|
|
|
4919
5456
|
agent.accentColor && /* @__PURE__ */ jsx(
|
|
4920
5457
|
"span",
|
|
4921
5458
|
{
|
|
4922
|
-
className:
|
|
5459
|
+
className: cn49("h-2 w-2 shrink-0 rounded-full", agent.accentColor),
|
|
4923
5460
|
"aria-hidden": "true"
|
|
4924
5461
|
}
|
|
4925
5462
|
),
|
|
4926
|
-
/* @__PURE__ */ jsx("span", { className:
|
|
5463
|
+
/* @__PURE__ */ jsx("span", { className: cn49("whitespace-nowrap font-medium", isMobile ? "text-xs" : "text-sm"), children: isMobile ? agent.type.split("-")[0] : agent.name }),
|
|
4927
5464
|
/* @__PURE__ */ jsx(
|
|
4928
5465
|
"button",
|
|
4929
5466
|
{
|
|
4930
5467
|
type: "button",
|
|
4931
5468
|
onClick: () => onRemoveAgent(agent.id),
|
|
4932
|
-
className:
|
|
5469
|
+
className: cn49(
|
|
4933
5470
|
"inline-flex h-4 w-4 items-center justify-center rounded",
|
|
4934
5471
|
"text-muted-foreground hover:text-foreground",
|
|
4935
5472
|
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
@@ -4949,7 +5486,7 @@ function MosaicQuickAgentSelector({
|
|
|
4949
5486
|
{
|
|
4950
5487
|
type: "button",
|
|
4951
5488
|
onClick: () => setPickerOpen((v) => !v),
|
|
4952
|
-
className:
|
|
5489
|
+
className: cn49(
|
|
4953
5490
|
"inline-flex items-center justify-center gap-2 rounded-md border border-border bg-background",
|
|
4954
5491
|
"px-3 py-1.5 text-sm font-medium text-foreground",
|
|
4955
5492
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -4964,7 +5501,7 @@ function MosaicQuickAgentSelector({
|
|
|
4964
5501
|
!isMobile && pickerOpen && /* @__PURE__ */ jsx(
|
|
4965
5502
|
"div",
|
|
4966
5503
|
{
|
|
4967
|
-
className:
|
|
5504
|
+
className: cn49(
|
|
4968
5505
|
"absolute left-0 top-full z-50 mt-2 w-72 rounded-lg border border-border",
|
|
4969
5506
|
"bg-popover shadow-lg"
|
|
4970
5507
|
),
|
|
@@ -5006,7 +5543,7 @@ function MosaicQuickAgentSelector({
|
|
|
5006
5543
|
/* @__PURE__ */ jsxs(
|
|
5007
5544
|
"span",
|
|
5008
5545
|
{
|
|
5009
|
-
className:
|
|
5546
|
+
className: cn49(
|
|
5010
5547
|
"shrink-0 rounded-md bg-secondary px-2 py-0.5 text-xs font-medium text-secondary-foreground"
|
|
5011
5548
|
),
|
|
5012
5549
|
children: [
|
|
@@ -5019,7 +5556,7 @@ function MosaicQuickAgentSelector({
|
|
|
5019
5556
|
] });
|
|
5020
5557
|
}
|
|
5021
5558
|
MosaicQuickAgentSelector.displayName = "MosaicQuickAgentSelector";
|
|
5022
|
-
function
|
|
5559
|
+
function cn50(...classes) {
|
|
5023
5560
|
return classes.filter(Boolean).join(" ");
|
|
5024
5561
|
}
|
|
5025
5562
|
function SearchIcon() {
|
|
@@ -5109,7 +5646,7 @@ function MosaicSelectorModal({
|
|
|
5109
5646
|
value: query,
|
|
5110
5647
|
onChange: (e) => setQuery(e.target.value),
|
|
5111
5648
|
placeholder: searchPlaceholder,
|
|
5112
|
-
className:
|
|
5649
|
+
className: cn50(
|
|
5113
5650
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
5114
5651
|
"text-sm text-foreground placeholder:text-muted-foreground",
|
|
5115
5652
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -5123,7 +5660,7 @@ function MosaicSelectorModal({
|
|
|
5123
5660
|
{
|
|
5124
5661
|
type: "button",
|
|
5125
5662
|
onClick: () => setActiveCategory("all"),
|
|
5126
|
-
className:
|
|
5663
|
+
className: cn50(
|
|
5127
5664
|
"shrink-0 rounded-md px-3 py-1.5 text-sm font-medium transition-colors",
|
|
5128
5665
|
activeCategory === "all" ? "bg-primary text-primary-foreground" : "bg-muted text-muted-foreground hover:bg-accent hover:text-accent-foreground"
|
|
5129
5666
|
),
|
|
@@ -5135,7 +5672,7 @@ function MosaicSelectorModal({
|
|
|
5135
5672
|
{
|
|
5136
5673
|
type: "button",
|
|
5137
5674
|
onClick: () => setActiveCategory(cat.id),
|
|
5138
|
-
className:
|
|
5675
|
+
className: cn50(
|
|
5139
5676
|
"shrink-0 rounded-md px-3 py-1.5 text-sm font-medium transition-colors",
|
|
5140
5677
|
activeCategory === cat.id ? "bg-primary text-primary-foreground" : "bg-muted text-muted-foreground hover:bg-accent hover:text-accent-foreground"
|
|
5141
5678
|
),
|
|
@@ -5147,7 +5684,7 @@ function MosaicSelectorModal({
|
|
|
5147
5684
|
/* @__PURE__ */ jsxs(
|
|
5148
5685
|
"div",
|
|
5149
5686
|
{
|
|
5150
|
-
className:
|
|
5687
|
+
className: cn50(
|
|
5151
5688
|
"max-h-[50vh] overflow-y-auto",
|
|
5152
5689
|
columns === 2 ? "grid grid-cols-1 gap-3 sm:grid-cols-2" : "flex flex-col gap-3"
|
|
5153
5690
|
),
|
|
@@ -5159,7 +5696,7 @@ function MosaicSelectorModal({
|
|
|
5159
5696
|
{
|
|
5160
5697
|
type: "button",
|
|
5161
5698
|
onClick: () => setPendingId(item.id),
|
|
5162
|
-
className:
|
|
5699
|
+
className: cn50(
|
|
5163
5700
|
"group relative rounded-lg border p-4 text-left transition-all duration-150",
|
|
5164
5701
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
5165
5702
|
isSelected ? "border-primary bg-primary/5 ring-2 ring-primary" : "border-border bg-card hover:border-primary/50"
|
|
@@ -5197,7 +5734,7 @@ function MosaicSelectorModal({
|
|
|
5197
5734
|
{
|
|
5198
5735
|
type: "button",
|
|
5199
5736
|
onClick: onClose,
|
|
5200
|
-
className:
|
|
5737
|
+
className: cn50(
|
|
5201
5738
|
"inline-flex min-h-[44px] items-center justify-center rounded-md border border-border",
|
|
5202
5739
|
"bg-background px-4 py-2 text-sm font-medium text-foreground",
|
|
5203
5740
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -5212,7 +5749,7 @@ function MosaicSelectorModal({
|
|
|
5212
5749
|
type: "button",
|
|
5213
5750
|
onClick: handleConfirm,
|
|
5214
5751
|
disabled: !pendingItem,
|
|
5215
|
-
className:
|
|
5752
|
+
className: cn50(
|
|
5216
5753
|
"inline-flex min-h-[44px] items-center justify-center rounded-md",
|
|
5217
5754
|
"bg-primary px-4 py-2 text-sm font-medium text-primary-foreground",
|
|
5218
5755
|
"hover:bg-primary/90",
|
|
@@ -5226,7 +5763,7 @@ function MosaicSelectorModal({
|
|
|
5226
5763
|
] }) });
|
|
5227
5764
|
}
|
|
5228
5765
|
MosaicSelectorModal.displayName = "MosaicSelectorModal";
|
|
5229
|
-
function
|
|
5766
|
+
function cn51(...classes) {
|
|
5230
5767
|
return classes.filter(Boolean).join(" ");
|
|
5231
5768
|
}
|
|
5232
5769
|
function relativeTime(ts) {
|
|
@@ -5475,7 +6012,7 @@ function MosaicMessageCard({
|
|
|
5475
6012
|
"div",
|
|
5476
6013
|
{
|
|
5477
6014
|
"data-slot": "message-card",
|
|
5478
|
-
className:
|
|
6015
|
+
className: cn51(
|
|
5479
6016
|
"rounded-lg border border-border bg-card p-4 shadow-sm transition-shadow hover:shadow-md",
|
|
5480
6017
|
compact && "p-3",
|
|
5481
6018
|
message.sender.type === "user" && "bg-primary/5",
|
|
@@ -5485,7 +6022,7 @@ function MosaicMessageCard({
|
|
|
5485
6022
|
/* @__PURE__ */ jsx(
|
|
5486
6023
|
"span",
|
|
5487
6024
|
{
|
|
5488
|
-
className:
|
|
6025
|
+
className: cn51(
|
|
5489
6026
|
"inline-flex shrink-0 items-center justify-center rounded-full text-white font-semibold",
|
|
5490
6027
|
compact ? "h-8 w-8 text-xs" : "h-10 w-10 text-sm",
|
|
5491
6028
|
message.sender.accentColor ?? "bg-muted text-muted-foreground"
|
|
@@ -5503,7 +6040,7 @@ function MosaicMessageCard({
|
|
|
5503
6040
|
/* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1", children: [
|
|
5504
6041
|
/* @__PURE__ */ jsxs("div", { className: "mb-2 flex items-center justify-between gap-2", children: [
|
|
5505
6042
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
5506
|
-
/* @__PURE__ */ jsx("span", { className:
|
|
6043
|
+
/* @__PURE__ */ jsx("span", { className: cn51("font-medium", compact ? "text-sm" : "text-base"), children: message.sender.name }),
|
|
5507
6044
|
message.sender.type === "ai" && /* @__PURE__ */ jsx("span", { className: "rounded-full bg-secondary px-2 py-0.5 text-xs font-medium text-secondary-foreground", children: "AI" })
|
|
5508
6045
|
] }),
|
|
5509
6046
|
/* @__PURE__ */ jsx("span", { className: "shrink-0 text-xs text-muted-foreground", children: relativeTime(message.timestamp) })
|
|
@@ -5511,7 +6048,7 @@ function MosaicMessageCard({
|
|
|
5511
6048
|
/* @__PURE__ */ jsx(
|
|
5512
6049
|
"p",
|
|
5513
6050
|
{
|
|
5514
|
-
className:
|
|
6051
|
+
className: cn51(
|
|
5515
6052
|
"leading-relaxed text-foreground mb-3",
|
|
5516
6053
|
compact ? "text-sm" : "text-base"
|
|
5517
6054
|
),
|
|
@@ -5526,7 +6063,7 @@ function MosaicMessageCard({
|
|
|
5526
6063
|
{
|
|
5527
6064
|
type: "button",
|
|
5528
6065
|
onClick: handleLike,
|
|
5529
|
-
className:
|
|
6066
|
+
className: cn51(
|
|
5530
6067
|
"inline-flex h-8 items-center gap-1 rounded-md px-2 text-xs",
|
|
5531
6068
|
"hover:bg-accent hover:text-accent-foreground",
|
|
5532
6069
|
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
@@ -5544,7 +6081,7 @@ function MosaicMessageCard({
|
|
|
5544
6081
|
{
|
|
5545
6082
|
type: "button",
|
|
5546
6083
|
onClick: handleDislike,
|
|
5547
|
-
className:
|
|
6084
|
+
className: cn51(
|
|
5548
6085
|
"inline-flex h-8 items-center gap-1 rounded-md px-2 text-xs",
|
|
5549
6086
|
"hover:bg-accent hover:text-accent-foreground",
|
|
5550
6087
|
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
@@ -5589,7 +6126,7 @@ function MosaicMessageCard({
|
|
|
5589
6126
|
{
|
|
5590
6127
|
type: "button",
|
|
5591
6128
|
onClick: handleBookmark,
|
|
5592
|
-
className:
|
|
6129
|
+
className: cn51(
|
|
5593
6130
|
"inline-flex h-8 w-8 items-center justify-center rounded-md",
|
|
5594
6131
|
"hover:bg-accent hover:text-accent-foreground",
|
|
5595
6132
|
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
@@ -5690,7 +6227,7 @@ function MosaicMessageCard({
|
|
|
5690
6227
|
);
|
|
5691
6228
|
}
|
|
5692
6229
|
MosaicMessageCard.displayName = "MosaicMessageCard";
|
|
5693
|
-
function
|
|
6230
|
+
function cn52(...classes) {
|
|
5694
6231
|
return classes.filter(Boolean).join(" ");
|
|
5695
6232
|
}
|
|
5696
6233
|
function SearchIcon2() {
|
|
@@ -5730,7 +6267,7 @@ function MessageListDesktop({
|
|
|
5730
6267
|
const filtered = query ? messages.filter(
|
|
5731
6268
|
(m) => m.content.toLowerCase().includes(query.toLowerCase()) || m.sender.name.toLowerCase().includes(query.toLowerCase())
|
|
5732
6269
|
) : messages;
|
|
5733
|
-
return /* @__PURE__ */ jsxs("div", { "data-slot": "message-list-desktop", className:
|
|
6270
|
+
return /* @__PURE__ */ jsxs("div", { "data-slot": "message-list-desktop", className: cn52("flex h-full flex-col", className), children: [
|
|
5734
6271
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between border-b border-border px-6 py-4", children: [
|
|
5735
6272
|
title && /* @__PURE__ */ jsx("h2", { className: "text-lg font-semibold", children: title }),
|
|
5736
6273
|
/* @__PURE__ */ jsxs("div", { className: "relative ml-auto max-w-xs flex-1", children: [
|
|
@@ -5742,7 +6279,7 @@ function MessageListDesktop({
|
|
|
5742
6279
|
value: query,
|
|
5743
6280
|
onChange: (e) => setQuery(e.target.value),
|
|
5744
6281
|
placeholder: "Search messages\u2026",
|
|
5745
|
-
className:
|
|
6282
|
+
className: cn52(
|
|
5746
6283
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
5747
6284
|
"text-sm placeholder:text-muted-foreground",
|
|
5748
6285
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -5771,7 +6308,7 @@ function MessageListDesktop({
|
|
|
5771
6308
|
{
|
|
5772
6309
|
type: "button",
|
|
5773
6310
|
onClick: onLoadMore,
|
|
5774
|
-
className:
|
|
6311
|
+
className: cn52(
|
|
5775
6312
|
"w-full rounded-md border border-border bg-background px-4 py-2 text-sm font-medium",
|
|
5776
6313
|
"hover:bg-accent hover:text-accent-foreground",
|
|
5777
6314
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -5793,7 +6330,7 @@ function MessageListMobile({
|
|
|
5793
6330
|
isLoading,
|
|
5794
6331
|
className
|
|
5795
6332
|
}) {
|
|
5796
|
-
return /* @__PURE__ */ jsxs("div", { "data-slot": "message-list-mobile", className:
|
|
6333
|
+
return /* @__PURE__ */ jsxs("div", { "data-slot": "message-list-mobile", className: cn52("flex flex-col", className), children: [
|
|
5797
6334
|
title && /* @__PURE__ */ jsx("div", { className: "sticky top-0 z-10 border-b border-border bg-background px-4 py-3", children: /* @__PURE__ */ jsx("h2", { className: "text-base font-semibold", children: title }) }),
|
|
5798
6335
|
/* @__PURE__ */ jsxs("div", { className: "space-y-3 p-4", children: [
|
|
5799
6336
|
isLoading && /* @__PURE__ */ jsx("div", { className: "space-y-3", children: [0, 1, 2].map((i) => /* @__PURE__ */ jsx("div", { className: "h-20 animate-pulse rounded-lg bg-muted" }, i)) }),
|
|
@@ -5816,7 +6353,7 @@ function MessageListMobile({
|
|
|
5816
6353
|
{
|
|
5817
6354
|
type: "button",
|
|
5818
6355
|
onClick: onLoadMore,
|
|
5819
|
-
className:
|
|
6356
|
+
className: cn52(
|
|
5820
6357
|
"w-full min-h-[44px] rounded-md border border-border bg-background px-4 py-2 text-sm font-medium",
|
|
5821
6358
|
"hover:bg-accent hover:text-accent-foreground",
|
|
5822
6359
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -5831,7 +6368,7 @@ function MosaicMessageList(props) {
|
|
|
5831
6368
|
return isMobile ? /* @__PURE__ */ jsx(MessageListMobile, { ...props }) : /* @__PURE__ */ jsx(MessageListDesktop, { ...props });
|
|
5832
6369
|
}
|
|
5833
6370
|
MosaicMessageList.displayName = "MosaicMessageList";
|
|
5834
|
-
function
|
|
6371
|
+
function cn53(...classes) {
|
|
5835
6372
|
return classes.filter(Boolean).join(" ");
|
|
5836
6373
|
}
|
|
5837
6374
|
function ChevronLeftIcon2() {
|
|
@@ -5907,7 +6444,7 @@ function MosaicFilterSidebar({
|
|
|
5907
6444
|
{
|
|
5908
6445
|
"data-slot": "filter-sidebar",
|
|
5909
6446
|
style: { width, minWidth: isCollapsed && !isMobile ? "64px" : void 0 },
|
|
5910
|
-
className:
|
|
6447
|
+
className: cn53(
|
|
5911
6448
|
"relative flex flex-col border-r border-border bg-card",
|
|
5912
6449
|
"transition-[width] duration-200 ease-in-out",
|
|
5913
6450
|
"overflow-hidden",
|
|
@@ -5919,7 +6456,7 @@ function MosaicFilterSidebar({
|
|
|
5919
6456
|
{
|
|
5920
6457
|
type: "button",
|
|
5921
6458
|
onClick: onToggleCollapse,
|
|
5922
|
-
className:
|
|
6459
|
+
className: cn53(
|
|
5923
6460
|
"absolute -right-3 top-6 z-10 flex h-6 w-6 items-center justify-center rounded-full",
|
|
5924
6461
|
"border border-border bg-background shadow-sm",
|
|
5925
6462
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -5949,7 +6486,7 @@ function MosaicFilterSidebar({
|
|
|
5949
6486
|
{
|
|
5950
6487
|
type: "button",
|
|
5951
6488
|
onClick: () => onFilterChange(f.id),
|
|
5952
|
-
className:
|
|
6489
|
+
className: cn53(
|
|
5953
6490
|
"flex min-h-[40px] items-center justify-between rounded-md px-3 py-2 text-sm font-medium",
|
|
5954
6491
|
"transition-colors hover:bg-accent hover:text-accent-foreground",
|
|
5955
6492
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -5969,7 +6506,7 @@ function MosaicFilterSidebar({
|
|
|
5969
6506
|
{
|
|
5970
6507
|
type: "button",
|
|
5971
6508
|
onClick: () => onCategoryChange(cat.id),
|
|
5972
|
-
className:
|
|
6509
|
+
className: cn53(
|
|
5973
6510
|
"flex min-h-[36px] items-center justify-between rounded-md px-3 py-1.5 text-sm",
|
|
5974
6511
|
"transition-colors hover:bg-accent hover:text-accent-foreground",
|
|
5975
6512
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -5989,7 +6526,7 @@ function MosaicFilterSidebar({
|
|
|
5989
6526
|
);
|
|
5990
6527
|
}
|
|
5991
6528
|
MosaicFilterSidebar.displayName = "MosaicFilterSidebar";
|
|
5992
|
-
function
|
|
6529
|
+
function cn54(...classes) {
|
|
5993
6530
|
return classes.filter(Boolean).join(" ");
|
|
5994
6531
|
}
|
|
5995
6532
|
function SearchIcon3() {
|
|
@@ -6104,7 +6641,7 @@ function AgentListDesktop({
|
|
|
6104
6641
|
value: query,
|
|
6105
6642
|
onChange: (e) => setQuery(e.target.value),
|
|
6106
6643
|
placeholder: searchPlaceholder,
|
|
6107
|
-
className:
|
|
6644
|
+
className: cn54(
|
|
6108
6645
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
6109
6646
|
"text-sm placeholder:text-muted-foreground",
|
|
6110
6647
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -6117,7 +6654,7 @@ function AgentListDesktop({
|
|
|
6117
6654
|
{
|
|
6118
6655
|
type: "button",
|
|
6119
6656
|
onClick: onCreateAgent,
|
|
6120
|
-
className:
|
|
6657
|
+
className: cn54(
|
|
6121
6658
|
"inline-flex items-center gap-2 rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground",
|
|
6122
6659
|
"hover:bg-primary/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
6123
6660
|
),
|
|
@@ -6176,7 +6713,7 @@ function AgentListMobile({
|
|
|
6176
6713
|
{
|
|
6177
6714
|
type: "button",
|
|
6178
6715
|
onClick: () => setFilterOpen(true),
|
|
6179
|
-
className:
|
|
6716
|
+
className: cn54(
|
|
6180
6717
|
"inline-flex h-9 w-9 items-center justify-center rounded-md",
|
|
6181
6718
|
"border border-border bg-background text-foreground",
|
|
6182
6719
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -6191,7 +6728,7 @@ function AgentListMobile({
|
|
|
6191
6728
|
{
|
|
6192
6729
|
type: "button",
|
|
6193
6730
|
onClick: onCreateAgent,
|
|
6194
|
-
className:
|
|
6731
|
+
className: cn54(
|
|
6195
6732
|
"inline-flex h-9 items-center gap-1.5 rounded-md bg-primary px-3 text-sm font-medium text-primary-foreground",
|
|
6196
6733
|
"hover:bg-primary/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
6197
6734
|
),
|
|
@@ -6212,7 +6749,7 @@ function AgentListMobile({
|
|
|
6212
6749
|
value: query,
|
|
6213
6750
|
onChange: (e) => setQuery(e.target.value),
|
|
6214
6751
|
placeholder: searchPlaceholder,
|
|
6215
|
-
className:
|
|
6752
|
+
className: cn54(
|
|
6216
6753
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
6217
6754
|
"text-sm placeholder:text-muted-foreground",
|
|
6218
6755
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -6260,7 +6797,7 @@ function MosaicAgentList(props) {
|
|
|
6260
6797
|
return isMobile ? /* @__PURE__ */ jsx(AgentListMobile, { ...props }) : /* @__PURE__ */ jsx(AgentListDesktop, { ...props });
|
|
6261
6798
|
}
|
|
6262
6799
|
MosaicAgentList.displayName = "MosaicAgentList";
|
|
6263
|
-
function
|
|
6800
|
+
function cn55(...classes) {
|
|
6264
6801
|
return classes.filter(Boolean).join(" ");
|
|
6265
6802
|
}
|
|
6266
6803
|
function StarIcon({ filled }) {
|
|
@@ -6356,7 +6893,7 @@ function MarketplaceCard({
|
|
|
6356
6893
|
"div",
|
|
6357
6894
|
{
|
|
6358
6895
|
"data-slot": "marketplace-card",
|
|
6359
|
-
className:
|
|
6896
|
+
className: cn55(
|
|
6360
6897
|
"rounded-lg border border-border bg-card p-4 transition-shadow hover:shadow-md",
|
|
6361
6898
|
compact ? "flex items-center gap-3" : "flex flex-col gap-3"
|
|
6362
6899
|
),
|
|
@@ -6364,7 +6901,7 @@ function MarketplaceCard({
|
|
|
6364
6901
|
item.icon && /* @__PURE__ */ jsx(
|
|
6365
6902
|
"div",
|
|
6366
6903
|
{
|
|
6367
|
-
className:
|
|
6904
|
+
className: cn55(
|
|
6368
6905
|
"flex shrink-0 items-center justify-center rounded-lg",
|
|
6369
6906
|
compact ? "h-10 w-10" : "h-12 w-12",
|
|
6370
6907
|
item.accentClass ?? "bg-muted text-muted-foreground"
|
|
@@ -6375,7 +6912,7 @@ function MarketplaceCard({
|
|
|
6375
6912
|
/* @__PURE__ */ jsxs("div", { className: "flex-1 min-w-0", children: [
|
|
6376
6913
|
/* @__PURE__ */ jsxs("div", { className: "flex items-start justify-between gap-2", children: [
|
|
6377
6914
|
/* @__PURE__ */ jsxs("div", { className: "min-w-0", children: [
|
|
6378
|
-
/* @__PURE__ */ jsx("p", { className:
|
|
6915
|
+
/* @__PURE__ */ jsx("p", { className: cn55("font-semibold leading-tight", compact ? "text-sm" : "text-base"), children: item.title }),
|
|
6379
6916
|
item.description && !compact && /* @__PURE__ */ jsx("p", { className: "mt-1 text-sm text-muted-foreground line-clamp-2", children: item.description })
|
|
6380
6917
|
] }),
|
|
6381
6918
|
item.price && /* @__PURE__ */ jsx("span", { className: "shrink-0 rounded-full bg-muted px-2 py-0.5 text-xs font-medium text-muted-foreground", children: item.price })
|
|
@@ -6392,13 +6929,13 @@ function MarketplaceCard({
|
|
|
6392
6929
|
] })
|
|
6393
6930
|
] })
|
|
6394
6931
|
] }),
|
|
6395
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
6932
|
+
/* @__PURE__ */ jsxs("div", { className: cn55("flex gap-2", compact ? "shrink-0" : "mt-1"), children: [
|
|
6396
6933
|
onPreview && /* @__PURE__ */ jsx(
|
|
6397
6934
|
"button",
|
|
6398
6935
|
{
|
|
6399
6936
|
type: "button",
|
|
6400
6937
|
onClick: () => onPreview(item.id),
|
|
6401
|
-
className:
|
|
6938
|
+
className: cn55(
|
|
6402
6939
|
"inline-flex min-h-[36px] items-center justify-center rounded-md border border-border",
|
|
6403
6940
|
"bg-background px-3 text-xs font-medium text-foreground",
|
|
6404
6941
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -6412,7 +6949,7 @@ function MarketplaceCard({
|
|
|
6412
6949
|
{
|
|
6413
6950
|
type: "button",
|
|
6414
6951
|
onClick: () => onUninstall(item.id),
|
|
6415
|
-
className:
|
|
6952
|
+
className: cn55(
|
|
6416
6953
|
"inline-flex min-h-[36px] items-center justify-center rounded-md",
|
|
6417
6954
|
"bg-secondary px-3 text-xs font-medium text-secondary-foreground",
|
|
6418
6955
|
"hover:bg-secondary/80",
|
|
@@ -6425,7 +6962,7 @@ function MarketplaceCard({
|
|
|
6425
6962
|
{
|
|
6426
6963
|
type: "button",
|
|
6427
6964
|
onClick: () => onInstall(item.id),
|
|
6428
|
-
className:
|
|
6965
|
+
className: cn55(
|
|
6429
6966
|
"inline-flex min-h-[36px] items-center justify-center rounded-md",
|
|
6430
6967
|
"bg-primary px-3 text-xs font-medium text-primary-foreground",
|
|
6431
6968
|
"hover:bg-primary/90",
|
|
@@ -6487,7 +7024,7 @@ function MarketplaceListDesktop(props) {
|
|
|
6487
7024
|
value: query,
|
|
6488
7025
|
onChange: (e) => setQuery(e.target.value),
|
|
6489
7026
|
placeholder: searchPlaceholder,
|
|
6490
|
-
className:
|
|
7027
|
+
className: cn55(
|
|
6491
7028
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
6492
7029
|
"text-sm placeholder:text-muted-foreground",
|
|
6493
7030
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -6560,7 +7097,7 @@ function MarketplaceListMobile(props) {
|
|
|
6560
7097
|
value: query,
|
|
6561
7098
|
onChange: (e) => setQuery(e.target.value),
|
|
6562
7099
|
placeholder: searchPlaceholder,
|
|
6563
|
-
className:
|
|
7100
|
+
className: cn55(
|
|
6564
7101
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
6565
7102
|
"text-sm placeholder:text-muted-foreground",
|
|
6566
7103
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -6611,7 +7148,7 @@ function MosaicMarketplaceList(props) {
|
|
|
6611
7148
|
return isMobile ? /* @__PURE__ */ jsx(MarketplaceListMobile, { ...props }) : /* @__PURE__ */ jsx(MarketplaceListDesktop, { ...props });
|
|
6612
7149
|
}
|
|
6613
7150
|
MosaicMarketplaceList.displayName = "MosaicMarketplaceList";
|
|
6614
|
-
function
|
|
7151
|
+
function cn56(...classes) {
|
|
6615
7152
|
return classes.filter(Boolean).join(" ");
|
|
6616
7153
|
}
|
|
6617
7154
|
function StarIcon2() {
|
|
@@ -6730,7 +7267,7 @@ function MosaicTemplateCard({
|
|
|
6730
7267
|
type: "button",
|
|
6731
7268
|
onClick: () => onSelect(template),
|
|
6732
7269
|
"data-slot": "template-card",
|
|
6733
|
-
className:
|
|
7270
|
+
className: cn56(
|
|
6734
7271
|
"w-full text-left rounded-lg border transition-all duration-200",
|
|
6735
7272
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
6736
7273
|
isSelected ? "border-primary bg-primary/5 ring-2 ring-primary" : "border-border bg-card hover:border-primary/50",
|
|
@@ -6830,7 +7367,7 @@ function MosaicTemplatePreview({
|
|
|
6830
7367
|
agent.accentColor && /* @__PURE__ */ jsx(
|
|
6831
7368
|
"span",
|
|
6832
7369
|
{
|
|
6833
|
-
className:
|
|
7370
|
+
className: cn56("h-2 w-2 rounded-full", agent.accentColor),
|
|
6834
7371
|
"aria-hidden": "true"
|
|
6835
7372
|
}
|
|
6836
7373
|
),
|
|
@@ -6890,7 +7427,7 @@ function MosaicAgentTeamPreview({ agents, label }) {
|
|
|
6890
7427
|
agent.accentColor && /* @__PURE__ */ jsx(
|
|
6891
7428
|
"span",
|
|
6892
7429
|
{
|
|
6893
|
-
className:
|
|
7430
|
+
className: cn56("h-2.5 w-2.5 rounded-full", agent.accentColor),
|
|
6894
7431
|
"aria-hidden": "true"
|
|
6895
7432
|
}
|
|
6896
7433
|
),
|
|
@@ -6914,7 +7451,7 @@ function MosaicQuickStartPanel({
|
|
|
6914
7451
|
scratchLabel = "Start from Scratch",
|
|
6915
7452
|
className
|
|
6916
7453
|
}) {
|
|
6917
|
-
return /* @__PURE__ */ jsxs("div", { "data-slot": "quick-start-panel", className:
|
|
7454
|
+
return /* @__PURE__ */ jsxs("div", { "data-slot": "quick-start-panel", className: cn56("flex flex-col gap-6", className), children: [
|
|
6918
7455
|
scenarios.length > 0 && /* @__PURE__ */ jsxs("div", { children: [
|
|
6919
7456
|
/* @__PURE__ */ jsx("h3", { className: "mb-3 text-sm font-semibold text-foreground", children: scenariosTitle }),
|
|
6920
7457
|
/* @__PURE__ */ jsx("div", { className: "grid gap-3 sm:grid-cols-2", children: scenarios.map((scenario) => /* @__PURE__ */ jsxs(
|
|
@@ -6922,7 +7459,7 @@ function MosaicQuickStartPanel({
|
|
|
6922
7459
|
{
|
|
6923
7460
|
type: "button",
|
|
6924
7461
|
onClick: () => onSelectScenario(scenario),
|
|
6925
|
-
className:
|
|
7462
|
+
className: cn56(
|
|
6926
7463
|
"flex items-start gap-3 rounded-lg border border-border bg-card p-4 text-left",
|
|
6927
7464
|
"hover:border-primary/50 hover:bg-primary/5",
|
|
6928
7465
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -6954,7 +7491,7 @@ function MosaicQuickStartPanel({
|
|
|
6954
7491
|
{
|
|
6955
7492
|
type: "button",
|
|
6956
7493
|
onClick: () => onSelectPreset(preset),
|
|
6957
|
-
className:
|
|
7494
|
+
className: cn56(
|
|
6958
7495
|
"flex items-center justify-between gap-3 rounded-lg border border-border bg-card px-4 py-3 text-left",
|
|
6959
7496
|
"hover:border-primary/50",
|
|
6960
7497
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -6968,7 +7505,7 @@ function MosaicQuickStartPanel({
|
|
|
6968
7505
|
a.accentColor && /* @__PURE__ */ jsx(
|
|
6969
7506
|
"span",
|
|
6970
7507
|
{
|
|
6971
|
-
className:
|
|
7508
|
+
className: cn56("h-2 w-2 rounded-full", a.accentColor),
|
|
6972
7509
|
"aria-hidden": "true"
|
|
6973
7510
|
}
|
|
6974
7511
|
),
|
|
@@ -6986,7 +7523,7 @@ function MosaicQuickStartPanel({
|
|
|
6986
7523
|
{
|
|
6987
7524
|
type: "button",
|
|
6988
7525
|
onClick: onStartFromScratch,
|
|
6989
|
-
className:
|
|
7526
|
+
className: cn56(
|
|
6990
7527
|
"inline-flex min-h-[44px] w-full items-center justify-center rounded-md border border-border",
|
|
6991
7528
|
"bg-background px-4 text-sm font-medium text-foreground",
|
|
6992
7529
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -7066,7 +7603,7 @@ function TemplateGalleryContent({
|
|
|
7066
7603
|
value: query,
|
|
7067
7604
|
onChange: (e) => setQuery(e.target.value),
|
|
7068
7605
|
placeholder: searchPlaceholder,
|
|
7069
|
-
className:
|
|
7606
|
+
className: cn56(
|
|
7070
7607
|
"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"
|
|
7071
7608
|
)
|
|
7072
7609
|
}
|
|
@@ -7114,7 +7651,7 @@ function TemplateGalleryContent({
|
|
|
7114
7651
|
value: query,
|
|
7115
7652
|
onChange: (e) => setQuery(e.target.value),
|
|
7116
7653
|
placeholder: searchPlaceholder,
|
|
7117
|
-
className:
|
|
7654
|
+
className: cn56(
|
|
7118
7655
|
"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"
|
|
7119
7656
|
)
|
|
7120
7657
|
}
|
|
@@ -7144,7 +7681,7 @@ function MosaicTemplateGallery(props) {
|
|
|
7144
7681
|
return /* @__PURE__ */ jsx(TemplateGalleryContent, { ...props, isMobile });
|
|
7145
7682
|
}
|
|
7146
7683
|
MosaicTemplateGallery.displayName = "MosaicTemplateGallery";
|
|
7147
|
-
function
|
|
7684
|
+
function cn57(...classes) {
|
|
7148
7685
|
return classes.filter(Boolean).join(" ");
|
|
7149
7686
|
}
|
|
7150
7687
|
function PlusIcon5() {
|
|
@@ -7288,7 +7825,7 @@ function MosaicModuleForm({
|
|
|
7288
7825
|
onChange: (e) => update("name", e.target.value),
|
|
7289
7826
|
placeholder: "Module name\u2026",
|
|
7290
7827
|
required: true,
|
|
7291
|
-
className:
|
|
7828
|
+
className: cn57(
|
|
7292
7829
|
"w-full rounded-md border border-input bg-background px-3 py-2 min-h-[40px]",
|
|
7293
7830
|
"text-sm placeholder:text-muted-foreground",
|
|
7294
7831
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -7306,7 +7843,7 @@ function MosaicModuleForm({
|
|
|
7306
7843
|
onChange: (e) => update("description", e.target.value),
|
|
7307
7844
|
placeholder: "Describe this module\u2026",
|
|
7308
7845
|
rows: 3,
|
|
7309
|
-
className:
|
|
7846
|
+
className: cn57(
|
|
7310
7847
|
"w-full rounded-md border border-input bg-background px-3 py-2",
|
|
7311
7848
|
"text-sm placeholder:text-muted-foreground resize-none",
|
|
7312
7849
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -7328,7 +7865,7 @@ function MosaicModuleForm({
|
|
|
7328
7865
|
value: formData[field.id] ?? "",
|
|
7329
7866
|
onChange: (e) => update(field.id, e.target.value),
|
|
7330
7867
|
placeholder: field.placeholder,
|
|
7331
|
-
className:
|
|
7868
|
+
className: cn57(
|
|
7332
7869
|
"w-full rounded-md border border-input bg-background px-3 py-2 min-h-[40px]",
|
|
7333
7870
|
"text-sm placeholder:text-muted-foreground",
|
|
7334
7871
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -7343,7 +7880,7 @@ function MosaicModuleForm({
|
|
|
7343
7880
|
onChange: (e) => update(field.id, e.target.value),
|
|
7344
7881
|
placeholder: field.placeholder,
|
|
7345
7882
|
rows: 3,
|
|
7346
|
-
className:
|
|
7883
|
+
className: cn57(
|
|
7347
7884
|
"w-full rounded-md border border-input bg-background px-3 py-2",
|
|
7348
7885
|
"text-sm placeholder:text-muted-foreground resize-none",
|
|
7349
7886
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -7359,7 +7896,7 @@ function MosaicModuleForm({
|
|
|
7359
7896
|
onChange: (e) => update(field.id, e.target.value),
|
|
7360
7897
|
placeholder: field.placeholder ?? "\u{1F9E0}",
|
|
7361
7898
|
maxLength: 4,
|
|
7362
|
-
className:
|
|
7899
|
+
className: cn57(
|
|
7363
7900
|
"w-20 rounded-md border border-input bg-background px-3 py-2 text-2xl",
|
|
7364
7901
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
7365
7902
|
)
|
|
@@ -7380,7 +7917,7 @@ function MosaicModuleForm({
|
|
|
7380
7917
|
}
|
|
7381
7918
|
},
|
|
7382
7919
|
placeholder: field.placeholder ?? "Add item\u2026",
|
|
7383
|
-
className:
|
|
7920
|
+
className: cn57(
|
|
7384
7921
|
"flex-1 rounded-md border border-input bg-background px-3 py-2 min-h-[36px]",
|
|
7385
7922
|
"text-sm placeholder:text-muted-foreground",
|
|
7386
7923
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -7576,7 +8113,7 @@ function LibraryContent({
|
|
|
7576
8113
|
{
|
|
7577
8114
|
type: "button",
|
|
7578
8115
|
onClick: openCreate,
|
|
7579
|
-
className:
|
|
8116
|
+
className: cn57(
|
|
7580
8117
|
"inline-flex items-center gap-2 rounded-md bg-primary px-3 py-2 text-sm font-medium text-primary-foreground",
|
|
7581
8118
|
"hover:bg-primary/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
7582
8119
|
),
|
|
@@ -7596,7 +8133,7 @@ function LibraryContent({
|
|
|
7596
8133
|
value: query,
|
|
7597
8134
|
onChange: (e) => setQuery(e.target.value),
|
|
7598
8135
|
placeholder: searchPlaceholder,
|
|
7599
|
-
className:
|
|
8136
|
+
className: cn57(
|
|
7600
8137
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
7601
8138
|
"text-sm placeholder:text-muted-foreground",
|
|
7602
8139
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -7609,7 +8146,7 @@ function LibraryContent({
|
|
|
7609
8146
|
{
|
|
7610
8147
|
type: "button",
|
|
7611
8148
|
onClick: () => setActiveTab(tab.id),
|
|
7612
|
-
className:
|
|
8149
|
+
className: cn57(
|
|
7613
8150
|
"rounded-md px-3 py-1.5 text-sm font-medium transition-colors",
|
|
7614
8151
|
activeTab === tab.id ? "bg-primary text-primary-foreground" : "bg-muted text-muted-foreground hover:bg-accent hover:text-accent-foreground"
|
|
7615
8152
|
),
|
|
@@ -7643,7 +8180,7 @@ function MosaicModuleLibrary(props) {
|
|
|
7643
8180
|
return /* @__PURE__ */ jsx(LibraryContent, { ...props });
|
|
7644
8181
|
}
|
|
7645
8182
|
MosaicModuleLibrary.displayName = "MosaicModuleLibrary";
|
|
7646
|
-
function
|
|
8183
|
+
function cn58(...classes) {
|
|
7647
8184
|
return classes.filter(Boolean).join(" ");
|
|
7648
8185
|
}
|
|
7649
8186
|
var roleConfig = {
|
|
@@ -7670,7 +8207,7 @@ function MosaicOrgRoleBadge({ role, className }) {
|
|
|
7670
8207
|
{
|
|
7671
8208
|
"data-slot": "org-role-badge",
|
|
7672
8209
|
title: config.description,
|
|
7673
|
-
className:
|
|
8210
|
+
className: cn58(
|
|
7674
8211
|
"inline-flex items-center rounded-full px-2 py-0.5 text-xs font-medium",
|
|
7675
8212
|
config.className,
|
|
7676
8213
|
className
|
|
@@ -7687,13 +8224,13 @@ function MosaicMultiOrgIndicator({
|
|
|
7687
8224
|
className
|
|
7688
8225
|
}) {
|
|
7689
8226
|
if (orgCount <= 1) return null;
|
|
7690
|
-
return /* @__PURE__ */ jsxs("div", { "data-slot": "multi-org-indicator", className:
|
|
8227
|
+
return /* @__PURE__ */ jsxs("div", { "data-slot": "multi-org-indicator", className: cn58("flex items-center gap-2", className), children: [
|
|
7691
8228
|
onSwitchOrg ? /* @__PURE__ */ jsxs(
|
|
7692
8229
|
"button",
|
|
7693
8230
|
{
|
|
7694
8231
|
type: "button",
|
|
7695
8232
|
onClick: onSwitchOrg,
|
|
7696
|
-
className:
|
|
8233
|
+
className: cn58(
|
|
7697
8234
|
"inline-flex items-center gap-1.5 rounded-full bg-secondary px-2.5 py-1 text-xs font-medium text-secondary-foreground",
|
|
7698
8235
|
"hover:bg-secondary/80",
|
|
7699
8236
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -7791,7 +8328,7 @@ function MosaicCreateOrgDialog({
|
|
|
7791
8328
|
onChange: (e) => setName(e.target.value),
|
|
7792
8329
|
placeholder: "Acme Inc.",
|
|
7793
8330
|
required: true,
|
|
7794
|
-
className:
|
|
8331
|
+
className: cn58(
|
|
7795
8332
|
"w-full rounded-md border bg-background px-3 py-2 min-h-[40px] text-sm placeholder:text-muted-foreground",
|
|
7796
8333
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
7797
8334
|
errors.name ? "border-destructive" : "border-input"
|
|
@@ -7811,7 +8348,7 @@ function MosaicCreateOrgDialog({
|
|
|
7811
8348
|
onChange: (e) => setSlug(e.target.value),
|
|
7812
8349
|
placeholder: "acme-inc",
|
|
7813
8350
|
required: true,
|
|
7814
|
-
className:
|
|
8351
|
+
className: cn58(
|
|
7815
8352
|
"w-full rounded-md border bg-background px-3 py-2 min-h-[40px] text-sm placeholder:text-muted-foreground",
|
|
7816
8353
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
7817
8354
|
errors.slug ? "border-destructive" : "border-input"
|
|
@@ -7908,7 +8445,7 @@ function MosaicInviteMemberDialog({
|
|
|
7908
8445
|
onChange: (e) => setEmail(e.target.value),
|
|
7909
8446
|
placeholder: "colleague@example.com",
|
|
7910
8447
|
required: true,
|
|
7911
|
-
className:
|
|
8448
|
+
className: cn58(
|
|
7912
8449
|
"w-full rounded-md border bg-background px-3 py-2 min-h-[40px] text-sm placeholder:text-muted-foreground",
|
|
7913
8450
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
7914
8451
|
errors.email ? "border-destructive" : "border-input"
|
|
@@ -8085,7 +8622,7 @@ function MosaicMemberList({
|
|
|
8085
8622
|
const filtered = members.filter(
|
|
8086
8623
|
(m) => !query || m.name.toLowerCase().includes(query.toLowerCase()) || m.email.toLowerCase().includes(query.toLowerCase())
|
|
8087
8624
|
);
|
|
8088
|
-
return /* @__PURE__ */ jsxs("div", { "data-slot": "member-list", className:
|
|
8625
|
+
return /* @__PURE__ */ jsxs("div", { "data-slot": "member-list", className: cn58("flex flex-col gap-4", className), children: [
|
|
8089
8626
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
8090
8627
|
/* @__PURE__ */ jsxs("div", { className: "relative flex-1", children: [
|
|
8091
8628
|
/* @__PURE__ */ jsx("span", { className: "absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground", children: /* @__PURE__ */ jsxs(
|
|
@@ -8178,7 +8715,7 @@ function MosaicOrgPanel({
|
|
|
8178
8715
|
const { isMobile } = useDevice();
|
|
8179
8716
|
const [activeTab, setActiveTab] = React27.useState(defaultTab ?? tabs[0]?.id ?? "");
|
|
8180
8717
|
const activeContent = tabs.find((t) => t.id === activeTab)?.content;
|
|
8181
|
-
return /* @__PURE__ */ jsxs("div", { "data-slot": "org-panel", className:
|
|
8718
|
+
return /* @__PURE__ */ jsxs("div", { "data-slot": "org-panel", className: cn58("flex h-full flex-col", className), children: [
|
|
8182
8719
|
/* @__PURE__ */ jsxs("div", { className: "border-b border-border px-4 py-4 md:px-6", children: [
|
|
8183
8720
|
/* @__PURE__ */ jsxs("div", { className: "flex items-start justify-between gap-4", children: [
|
|
8184
8721
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
@@ -8200,12 +8737,12 @@ function MosaicOrgPanel({
|
|
|
8200
8737
|
] }),
|
|
8201
8738
|
headerActions
|
|
8202
8739
|
] }),
|
|
8203
|
-
tabs.length > 0 && /* @__PURE__ */ jsx("div", { className:
|
|
8740
|
+
tabs.length > 0 && /* @__PURE__ */ jsx("div", { className: cn58("mt-4 flex gap-1", isMobile && "overflow-x-auto"), children: tabs.map((tab) => /* @__PURE__ */ jsx(
|
|
8204
8741
|
"button",
|
|
8205
8742
|
{
|
|
8206
8743
|
type: "button",
|
|
8207
8744
|
onClick: () => setActiveTab(tab.id),
|
|
8208
|
-
className:
|
|
8745
|
+
className: cn58(
|
|
8209
8746
|
"shrink-0 rounded-md px-3 py-1.5 text-sm font-medium transition-colors",
|
|
8210
8747
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
8211
8748
|
activeTab === tab.id ? "bg-primary text-primary-foreground" : "bg-muted text-muted-foreground hover:bg-accent hover:text-accent-foreground"
|
|
@@ -8219,7 +8756,7 @@ function MosaicOrgPanel({
|
|
|
8219
8756
|
] });
|
|
8220
8757
|
}
|
|
8221
8758
|
MosaicOrgPanel.displayName = "MosaicOrgPanel";
|
|
8222
|
-
function
|
|
8759
|
+
function cn59(...classes) {
|
|
8223
8760
|
return classes.filter(Boolean).join(" ");
|
|
8224
8761
|
}
|
|
8225
8762
|
var ANIM_ID8 = "mosaic-dashboard-content-kf";
|
|
@@ -8256,7 +8793,7 @@ function MosaicDashboardContent({
|
|
|
8256
8793
|
"div",
|
|
8257
8794
|
{
|
|
8258
8795
|
"data-slot": "dashboard-content",
|
|
8259
|
-
className:
|
|
8796
|
+
className: cn59("h-full overflow-auto", isMobile ? "p-4" : "p-6", className),
|
|
8260
8797
|
children: activeView ? /* @__PURE__ */ jsx("div", { className: "mosaic-content-view space-y-6", children: activeView.content }, currentView) : /* @__PURE__ */ jsxs("p", { className: "py-12 text-center text-sm text-muted-foreground", children: [
|
|
8261
8798
|
"View not found: ",
|
|
8262
8799
|
currentView
|
|
@@ -8265,7 +8802,7 @@ function MosaicDashboardContent({
|
|
|
8265
8802
|
);
|
|
8266
8803
|
}
|
|
8267
8804
|
MosaicDashboardContent.displayName = "MosaicDashboardContent";
|
|
8268
|
-
function
|
|
8805
|
+
function cn60(...classes) {
|
|
8269
8806
|
return classes.filter(Boolean).join(" ");
|
|
8270
8807
|
}
|
|
8271
8808
|
var ANIM_ID9 = "mosaic-dashboard-header2-kf";
|
|
@@ -8375,16 +8912,16 @@ function MosaicDashboardHeader({
|
|
|
8375
8912
|
"header",
|
|
8376
8913
|
{
|
|
8377
8914
|
"data-slot": "dashboard-header",
|
|
8378
|
-
className:
|
|
8915
|
+
className: cn60(
|
|
8379
8916
|
"mosaic-dashboard-header2",
|
|
8380
8917
|
"sticky top-0 z-40 border-b border-border/50 bg-background/80 backdrop-blur-sm",
|
|
8381
8918
|
className
|
|
8382
8919
|
),
|
|
8383
|
-
children: /* @__PURE__ */ jsx("div", { className:
|
|
8920
|
+
children: /* @__PURE__ */ jsx("div", { className: cn60(isMobile ? "px-4 py-3" : "container mx-auto px-4 py-4"), children: /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-4", children: [
|
|
8384
8921
|
/* @__PURE__ */ jsx("div", { className: "flex min-w-0 flex-1 items-center gap-2 md:gap-4", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
8385
8922
|
logoSlot ?? /* @__PURE__ */ jsx(SparklesIcon4, {}),
|
|
8386
8923
|
/* @__PURE__ */ jsxs("div", { className: "min-w-0", children: [
|
|
8387
|
-
/* @__PURE__ */ jsx("h1", { className:
|
|
8924
|
+
/* @__PURE__ */ jsx("h1", { className: cn60("font-semibold truncate", isMobile ? "text-lg" : "text-xl"), children: title }),
|
|
8388
8925
|
subtitle && !isMobile && /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground truncate", children: subtitle })
|
|
8389
8926
|
] })
|
|
8390
8927
|
] }) }),
|
|
@@ -8397,7 +8934,7 @@ function MosaicDashboardHeader({
|
|
|
8397
8934
|
value: searchQuery,
|
|
8398
8935
|
onChange: handleSearch,
|
|
8399
8936
|
placeholder: "Search\u2026",
|
|
8400
|
-
className:
|
|
8937
|
+
className: cn60(
|
|
8401
8938
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
8402
8939
|
"text-sm placeholder:text-muted-foreground",
|
|
8403
8940
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -8437,7 +8974,7 @@ function MosaicDashboardHeader({
|
|
|
8437
8974
|
);
|
|
8438
8975
|
}
|
|
8439
8976
|
MosaicDashboardHeader.displayName = "MosaicDashboardHeader";
|
|
8440
|
-
function
|
|
8977
|
+
function cn61(...classes) {
|
|
8441
8978
|
return classes.filter(Boolean).join(" ");
|
|
8442
8979
|
}
|
|
8443
8980
|
function ChevronDownIcon4() {
|
|
@@ -8518,13 +9055,13 @@ function MosaicOrgSwitcher({
|
|
|
8518
9055
|
}, [open]);
|
|
8519
9056
|
if (!currentOrg && organizations.length === 0 && !onCreateOrg) return null;
|
|
8520
9057
|
const initials = currentOrg?.name.split(" ").map((n) => n[0]).filter(Boolean).slice(0, 2).join("").toUpperCase() ?? "?";
|
|
8521
|
-
return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "org-switcher", className:
|
|
9058
|
+
return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "org-switcher", className: cn61("relative", className), children: [
|
|
8522
9059
|
/* @__PURE__ */ jsxs(
|
|
8523
9060
|
"button",
|
|
8524
9061
|
{
|
|
8525
9062
|
type: "button",
|
|
8526
9063
|
onClick: () => setOpen((v) => !v),
|
|
8527
|
-
className:
|
|
9064
|
+
className: cn61(
|
|
8528
9065
|
"inline-flex items-center gap-2 rounded-md border border-border bg-background px-3 py-1.5",
|
|
8529
9066
|
"text-sm font-medium text-foreground",
|
|
8530
9067
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -8551,7 +9088,7 @@ function MosaicOrgSwitcher({
|
|
|
8551
9088
|
{
|
|
8552
9089
|
role: "menu",
|
|
8553
9090
|
"aria-label": "Select organization",
|
|
8554
|
-
className:
|
|
9091
|
+
className: cn61(
|
|
8555
9092
|
"absolute left-0 top-full z-50 mt-1 min-w-[200px] rounded-md border border-border",
|
|
8556
9093
|
"bg-popover py-1 shadow-md"
|
|
8557
9094
|
),
|
|
@@ -8566,7 +9103,7 @@ function MosaicOrgSwitcher({
|
|
|
8566
9103
|
onSelectOrg?.(org.id);
|
|
8567
9104
|
setOpen(false);
|
|
8568
9105
|
},
|
|
8569
|
-
className:
|
|
9106
|
+
className: cn61(
|
|
8570
9107
|
"flex w-full items-center gap-2.5 px-3 py-2 text-sm text-foreground",
|
|
8571
9108
|
"hover:bg-accent hover:text-accent-foreground",
|
|
8572
9109
|
org.id === currentOrgId && "bg-primary/10 text-primary"
|
|
@@ -8603,7 +9140,7 @@ function MosaicOrgSwitcher({
|
|
|
8603
9140
|
] });
|
|
8604
9141
|
}
|
|
8605
9142
|
MosaicOrgSwitcher.displayName = "MosaicOrgSwitcher";
|
|
8606
|
-
function
|
|
9143
|
+
function cn62(...classes) {
|
|
8607
9144
|
return classes.filter(Boolean).join(" ");
|
|
8608
9145
|
}
|
|
8609
9146
|
function PlusIcon7() {
|
|
@@ -8647,19 +9184,19 @@ function MosaicQuickActionsMenu({
|
|
|
8647
9184
|
document.addEventListener("mousedown", h);
|
|
8648
9185
|
return () => document.removeEventListener("mousedown", h);
|
|
8649
9186
|
}, [open]);
|
|
8650
|
-
const itemClass =
|
|
9187
|
+
const itemClass = cn62(
|
|
8651
9188
|
"flex w-full items-center gap-2 px-3 py-2 text-sm text-foreground",
|
|
8652
9189
|
"hover:bg-accent hover:text-accent-foreground",
|
|
8653
9190
|
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
8654
9191
|
"min-h-[44px]"
|
|
8655
9192
|
);
|
|
8656
|
-
return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "quick-actions-menu", className:
|
|
9193
|
+
return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "quick-actions-menu", className: cn62("relative", className), children: [
|
|
8657
9194
|
/* @__PURE__ */ jsxs(
|
|
8658
9195
|
"button",
|
|
8659
9196
|
{
|
|
8660
9197
|
type: "button",
|
|
8661
9198
|
onClick: () => setOpen((v) => !v),
|
|
8662
|
-
className:
|
|
9199
|
+
className: cn62(
|
|
8663
9200
|
"inline-flex items-center justify-center gap-2 rounded-md border border-border bg-background",
|
|
8664
9201
|
"min-h-[44px] min-w-[44px] px-3 py-2 text-sm font-medium text-foreground",
|
|
8665
9202
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -8670,7 +9207,7 @@ function MosaicQuickActionsMenu({
|
|
|
8670
9207
|
"aria-label": label,
|
|
8671
9208
|
children: [
|
|
8672
9209
|
triggerIcon ?? /* @__PURE__ */ jsx(PlusIcon7, {}),
|
|
8673
|
-
/* @__PURE__ */ jsx("span", { className:
|
|
9210
|
+
/* @__PURE__ */ jsx("span", { className: cn62("hidden md:inline"), children: label })
|
|
8674
9211
|
]
|
|
8675
9212
|
}
|
|
8676
9213
|
),
|
|
@@ -8679,13 +9216,13 @@ function MosaicQuickActionsMenu({
|
|
|
8679
9216
|
{
|
|
8680
9217
|
role: "menu",
|
|
8681
9218
|
"aria-label": menuTitle,
|
|
8682
|
-
className:
|
|
9219
|
+
className: cn62(
|
|
8683
9220
|
"absolute right-0 top-full z-50 mt-1 rounded-md border border-border bg-popover py-1 shadow-md",
|
|
8684
9221
|
isMobile ? "w-[min(90vw,280px)]" : "w-56"
|
|
8685
9222
|
),
|
|
8686
9223
|
children: [
|
|
8687
9224
|
menuTitle && /* @__PURE__ */ jsx("div", { className: "px-3 py-1.5", children: /* @__PURE__ */ jsx("p", { className: "text-xs font-semibold text-muted-foreground uppercase tracking-wide", children: menuTitle }) }),
|
|
8688
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
9225
|
+
/* @__PURE__ */ jsx("div", { className: cn62(menuTitle && "border-t border-border") }),
|
|
8689
9226
|
actions.map((action) => /* @__PURE__ */ jsxs(React27.Fragment, { children: [
|
|
8690
9227
|
action.separator && /* @__PURE__ */ jsx("div", { className: "my-1 border-t border-border" }),
|
|
8691
9228
|
action.href && renderLink ? renderLink(
|
|
@@ -9111,6 +9648,6 @@ async function MosaicClerkWebhookHandler(req, options) {
|
|
|
9111
9648
|
return new Response("OK", { status: 200 });
|
|
9112
9649
|
}
|
|
9113
9650
|
|
|
9114
|
-
export { MosaicActivityFeed, MosaicActivityItem, MosaicAdaptiveGrid, MosaicAdaptiveModal, MosaicAdaptiveNavigation, MosaicAgentCard, MosaicAgentComposer, MosaicAgentComposerDesktop, MosaicAgentComposerMobile, MosaicAgentList, AgentListDesktop as MosaicAgentListDesktop, AgentListMobile as MosaicAgentListMobile, MosaicAgentTeamPreview, MosaicAnimatedList, MosaicAppSidebar, MosaicAvatar, MosaicBadge, MosaicBlurredOrb, MosaicButton, MosaicCard, MosaicCardContent, MosaicCardDescription, MosaicCardFooter, MosaicCardHeader, MosaicCardTitle, MosaicClerkOrgSwitcher, MosaicClerkWebhookHandler, MosaicCombobox, MosaicCounter, MosaicCreateOrgDialog, MosaicDashboardContent, MosaicDashboardHeader, MosaicDashboardLayout, MosaicDeleteConfirmationDialog, MosaicDeviceProvider, MosaicDropdownMenu, MosaicFallingPattern, MosaicFeature3Col, MosaicFeatureCenteredMedia, MosaicField, MosaicFieldControl, MosaicFieldDescription, MosaicFieldError, MosaicFieldLabel, MosaicFilterSidebar, MosaicFooterSimple, MosaicHeroSplit, MosaicInput, MosaicInputGroup, MosaicIntegrationsBadge, MosaicInviteMemberDialog, MosaicLogosGrid, MosaicMainNav, MosaicMarketplaceList, MarketplaceListDesktop as MosaicMarketplaceListDesktop, MarketplaceListMobile as MosaicMarketplaceListMobile, MosaicMemberList, MosaicMessageCard, MosaicMessageList, MessageListDesktop as MosaicMessageListDesktop, MessageListMobile as MosaicMessageListMobile, MosaicModuleCard, MosaicModuleForm, MosaicModuleLibrary, MosaicMultiOrgIndicator, MosaicMultiTenantProvider, MosaicNavbar, MosaicOrgPanel, MosaicOrgProfilePage, MosaicOrgRoleBadge, MosaicOrgSwitcher, MosaicPreferencesPanel, MosaicPricingCard, MosaicProfilePanel, MosaicQuickActionCard, MosaicQuickActionsMenu, MosaicQuickAgentSelector, MosaicQuickStartPanel, MosaicSelect, MosaicSelectorModal, MosaicSignInLayout, MosaicSignUpLayout, MosaicStatsGrid, MosaicSwitch, MosaicTemplateCard, MosaicTemplateGallery, MosaicTemplatePreview, MosaicTestimonialsGrid, MosaicThemeProvider, MosaicThemeToggle, MosaicUserButton, Placeholder, badgeVariants, buttonVariants, useBreakpoint, useDevice, useMosaicWorkspace as useEffectiveWorkspaceId, useIsDesktop, useIsMobile, useIsTablet, useMediaQuery, useMosaicWorkspace, useOrientation, useViewport, version };
|
|
9651
|
+
export { MosaicAccordion, MosaicAccordionItem, MosaicAccordionPanel, MosaicAccordionTrigger, MosaicActivityFeed, MosaicActivityItem, MosaicAdaptiveGrid, MosaicAdaptiveModal, MosaicAdaptiveNavigation, MosaicAgentCard, MosaicAgentComposer, MosaicAgentComposerDesktop, MosaicAgentComposerMobile, MosaicAgentList, AgentListDesktop as MosaicAgentListDesktop, AgentListMobile as MosaicAgentListMobile, MosaicAgentTeamPreview, MosaicAnimatedList, MosaicAppSidebar, MosaicAvatar, MosaicBadge, MosaicBlurredOrb, MosaicButton, MosaicCard, MosaicCardContent, MosaicCardDescription, MosaicCardFooter, MosaicCardHeader, MosaicCardTitle, MosaicCheckbox, MosaicClerkOrgSwitcher, MosaicClerkWebhookHandler, MosaicCollapsible, MosaicCollapsiblePanel, MosaicCollapsibleTrigger, MosaicCombobox, MosaicCounter, MosaicCreateOrgDialog, MosaicDashboardContent, MosaicDashboardHeader, MosaicDashboardLayout, MosaicDeleteConfirmationDialog, MosaicDeviceProvider, MosaicDropdownMenu, MosaicFallingPattern, MosaicFeature3Col, MosaicFeatureCenteredMedia, MosaicField, MosaicFieldControl, MosaicFieldDescription, MosaicFieldError, MosaicFieldLabel, MosaicFilterSidebar, MosaicFooterSimple, MosaicHeroSplit, MosaicInput, MosaicInputGroup, MosaicIntegrationsBadge, MosaicInviteMemberDialog, MosaicLogosGrid, MosaicMainNav, MosaicMarketplaceList, MarketplaceListDesktop as MosaicMarketplaceListDesktop, MarketplaceListMobile as MosaicMarketplaceListMobile, MosaicMemberList, MosaicMessageCard, MosaicMessageList, MessageListDesktop as MosaicMessageListDesktop, MessageListMobile as MosaicMessageListMobile, MosaicModuleCard, MosaicModuleForm, MosaicModuleLibrary, MosaicMultiOrgIndicator, MosaicMultiTenantProvider, MosaicNavbar, MosaicOrgPanel, MosaicOrgProfilePage, MosaicOrgRoleBadge, MosaicOrgSwitcher, MosaicPreferencesPanel, MosaicPricingCard, MosaicProfilePanel, MosaicProgress, MosaicQuickActionCard, MosaicQuickActionsMenu, MosaicQuickAgentSelector, MosaicQuickStartPanel, MosaicRadioGroup, MosaicRadioGroupItem, MosaicScrollArea, MosaicSelect, MosaicSelectorModal, MosaicSeparator, MosaicSignInLayout, MosaicSignUpLayout, MosaicSlider, MosaicStatsGrid, MosaicSwitch, MosaicTabs, MosaicTabsList, MosaicTabsPanel, MosaicTabsTrigger, MosaicTemplateCard, MosaicTemplateGallery, MosaicTemplatePreview, MosaicTestimonialsGrid, MosaicTextarea, MosaicThemeProvider, MosaicThemeToggle, MosaicTooltip, MosaicUserButton, Placeholder, badgeVariants, buttonVariants, useBreakpoint, useDevice, useMosaicWorkspace as useEffectiveWorkspaceId, useIsDesktop, useIsMobile, useIsTablet, useMediaQuery, useMosaicWorkspace, useOrientation, useViewport, version };
|
|
9115
9652
|
//# sourceMappingURL=index.js.map
|
|
9116
9653
|
//# sourceMappingURL=index.js.map
|