@vantageos/mosaic-blocks 0.5.19-alpha → 0.5.21-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/README.md +3 -3
- package/dist/index.cjs +803 -409
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +280 -3
- package/dist/index.d.ts +280 -3
- package/dist/index.js +764 -378
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
3
3
|
import { Button } from '@base-ui/react/button';
|
|
4
4
|
import { cva } from 'class-variance-authority';
|
|
5
|
-
import * as
|
|
5
|
+
import * as React29 from 'react';
|
|
6
6
|
import { useState, useEffect, useRef, useId, useLayoutEffect, useCallback, useMemo } from 'react';
|
|
7
7
|
import { Accordion } from '@base-ui/react/accordion';
|
|
8
8
|
export { Accordion } from '@base-ui/react/accordion';
|
|
@@ -25,9 +25,10 @@ import { Select } from '@base-ui/react/select';
|
|
|
25
25
|
import { Combobox } from '@base-ui/react/combobox';
|
|
26
26
|
import { Menu } from '@base-ui/react/menu';
|
|
27
27
|
import { AlertDialog } from '@base-ui/react/alert-dialog';
|
|
28
|
+
import { Dialog } from '@base-ui/react/dialog';
|
|
28
29
|
|
|
29
30
|
// src/version.ts
|
|
30
|
-
var version = "0.5.
|
|
31
|
+
var version = "0.5.21-alpha";
|
|
31
32
|
function Placeholder({ label = "mosaic-blocks placeholder" }) {
|
|
32
33
|
return /* @__PURE__ */ jsx("div", { "data-mosaic-block": "placeholder", children: label });
|
|
33
34
|
}
|
|
@@ -158,11 +159,11 @@ function MosaicNavbar({
|
|
|
158
159
|
className,
|
|
159
160
|
ref
|
|
160
161
|
}) {
|
|
161
|
-
const [isScrolled, setIsScrolled] =
|
|
162
|
-
const [isHidden, setIsHidden] =
|
|
163
|
-
const [isOpen, setIsOpen] =
|
|
164
|
-
const lastScrollY =
|
|
165
|
-
|
|
162
|
+
const [isScrolled, setIsScrolled] = React29.useState(false);
|
|
163
|
+
const [isHidden, setIsHidden] = React29.useState(false);
|
|
164
|
+
const [isOpen, setIsOpen] = React29.useState(false);
|
|
165
|
+
const lastScrollY = React29.useRef(0);
|
|
166
|
+
React29.useEffect(() => {
|
|
166
167
|
const handleScroll = () => {
|
|
167
168
|
const current = window.scrollY;
|
|
168
169
|
setIsScrolled(current > 50);
|
|
@@ -177,7 +178,7 @@ function MosaicNavbar({
|
|
|
177
178
|
window.addEventListener("scroll", handleScroll, { passive: true });
|
|
178
179
|
return () => window.removeEventListener("scroll", handleScroll);
|
|
179
180
|
}, []);
|
|
180
|
-
|
|
181
|
+
React29.useEffect(() => {
|
|
181
182
|
document.body.style.overflow = isOpen ? "hidden" : "";
|
|
182
183
|
return () => {
|
|
183
184
|
document.body.style.overflow = "";
|
|
@@ -705,10 +706,10 @@ function MosaicCounter({
|
|
|
705
706
|
className,
|
|
706
707
|
ref
|
|
707
708
|
}) {
|
|
708
|
-
const [current, setCurrent] =
|
|
709
|
-
const rafRef =
|
|
710
|
-
const startTimeRef =
|
|
711
|
-
|
|
709
|
+
const [current, setCurrent] = React29.useState(0);
|
|
710
|
+
const rafRef = React29.useRef(0);
|
|
711
|
+
const startTimeRef = React29.useRef(null);
|
|
712
|
+
React29.useEffect(() => {
|
|
712
713
|
const prefersReduced = typeof window !== "undefined" && typeof window.matchMedia === "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
713
714
|
if (prefersReduced) {
|
|
714
715
|
setCurrent(value);
|
|
@@ -764,12 +765,12 @@ function MosaicThemeToggle({
|
|
|
764
765
|
switchToDarkLabel,
|
|
765
766
|
ref
|
|
766
767
|
}) {
|
|
767
|
-
const [theme, setTheme] =
|
|
768
|
+
const [theme, setTheme] = React29.useState(() => {
|
|
768
769
|
if (typeof document === "undefined") return themes[0];
|
|
769
770
|
const current = document.documentElement.getAttribute("data-theme");
|
|
770
771
|
return current && themes.includes(current) ? current : themes[0];
|
|
771
772
|
});
|
|
772
|
-
const applyTheme =
|
|
773
|
+
const applyTheme = React29.useCallback(
|
|
773
774
|
(next) => {
|
|
774
775
|
const resolved = next === "system" ? getSystemTheme() : next;
|
|
775
776
|
document.documentElement.setAttribute("data-theme", resolved);
|
|
@@ -897,10 +898,10 @@ function MosaicAnimatedList({
|
|
|
897
898
|
as: Tag = "ul",
|
|
898
899
|
ref
|
|
899
900
|
}) {
|
|
900
|
-
|
|
901
|
+
React29.useEffect(() => {
|
|
901
902
|
injectKeyframes();
|
|
902
903
|
}, []);
|
|
903
|
-
const items =
|
|
904
|
+
const items = React29.Children.toArray(children);
|
|
904
905
|
return /* @__PURE__ */ jsx(
|
|
905
906
|
Tag,
|
|
906
907
|
{
|
|
@@ -908,7 +909,7 @@ function MosaicAnimatedList({
|
|
|
908
909
|
className,
|
|
909
910
|
children: items.map((child, i) => {
|
|
910
911
|
const stableKey = child.key ?? `item-${i}`;
|
|
911
|
-
return /* @__PURE__ */ jsx(
|
|
912
|
+
return /* @__PURE__ */ jsx(React29.Fragment, { children: /* @__PURE__ */ jsx(
|
|
912
913
|
"div",
|
|
913
914
|
{
|
|
914
915
|
className: "mosaic-list-item",
|
|
@@ -981,8 +982,8 @@ function MosaicFallingPattern({
|
|
|
981
982
|
className,
|
|
982
983
|
ref
|
|
983
984
|
}) {
|
|
984
|
-
const uniqueId =
|
|
985
|
-
|
|
985
|
+
const uniqueId = React29.useId();
|
|
986
|
+
React29.useEffect(() => {
|
|
986
987
|
injectPatternKeyframes();
|
|
987
988
|
}, []);
|
|
988
989
|
const cols = density;
|
|
@@ -2078,7 +2079,7 @@ function MosaicSelect({
|
|
|
2078
2079
|
name,
|
|
2079
2080
|
className
|
|
2080
2081
|
}) {
|
|
2081
|
-
const labelMap =
|
|
2082
|
+
const labelMap = React29.useMemo(
|
|
2082
2083
|
() => Object.fromEntries(items.map((item) => [item.value, item.label])),
|
|
2083
2084
|
[items]
|
|
2084
2085
|
);
|
|
@@ -2198,9 +2199,9 @@ function MosaicCombobox({
|
|
|
2198
2199
|
emptyMessage,
|
|
2199
2200
|
className
|
|
2200
2201
|
}) {
|
|
2201
|
-
const [inputValue, setInputValue] =
|
|
2202
|
+
const [inputValue, setInputValue] = React29.useState("");
|
|
2202
2203
|
const filter = Combobox.useFilter({ sensitivity: "base" });
|
|
2203
|
-
const filteredItems =
|
|
2204
|
+
const filteredItems = React29.useMemo(() => {
|
|
2204
2205
|
if (!inputValue) return items;
|
|
2205
2206
|
return items.filter((item) => filter.contains(item.label, inputValue));
|
|
2206
2207
|
}, [items, inputValue, filter]);
|
|
@@ -2265,9 +2266,123 @@ function MosaicCombobox({
|
|
|
2265
2266
|
}
|
|
2266
2267
|
);
|
|
2267
2268
|
}
|
|
2269
|
+
var modelSelectorTriggerVariants = cva(
|
|
2270
|
+
[
|
|
2271
|
+
"flex w-full min-h-[44px] items-center justify-between gap-2 rounded-md border",
|
|
2272
|
+
"border-border bg-background px-3 py-2 text-left text-sm text-foreground shadow-xs",
|
|
2273
|
+
"outline-none transition-colors hover:bg-muted",
|
|
2274
|
+
"focus-visible:ring-ring focus-visible:ring-[3px]",
|
|
2275
|
+
"data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50",
|
|
2276
|
+
"data-[popup-open]:ring-ring data-[popup-open]:ring-[3px]"
|
|
2277
|
+
],
|
|
2278
|
+
{
|
|
2279
|
+
variants: {}
|
|
2280
|
+
}
|
|
2281
|
+
);
|
|
2282
|
+
var modelSelectorItemVariants = cva(
|
|
2283
|
+
[
|
|
2284
|
+
"relative flex cursor-pointer select-none flex-col gap-0.5 rounded-sm px-2 py-1.5",
|
|
2285
|
+
"text-sm text-popover-foreground outline-none transition-colors",
|
|
2286
|
+
"data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground",
|
|
2287
|
+
"data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50",
|
|
2288
|
+
"data-[selected]:font-medium"
|
|
2289
|
+
],
|
|
2290
|
+
{
|
|
2291
|
+
variants: {}
|
|
2292
|
+
}
|
|
2293
|
+
);
|
|
2268
2294
|
function cn36(...classes) {
|
|
2269
2295
|
return classes.filter(Boolean).join(" ");
|
|
2270
2296
|
}
|
|
2297
|
+
function MosaicModelSelector({
|
|
2298
|
+
models,
|
|
2299
|
+
value,
|
|
2300
|
+
onValueChange,
|
|
2301
|
+
placeholder,
|
|
2302
|
+
emptyMessage,
|
|
2303
|
+
disabled,
|
|
2304
|
+
name,
|
|
2305
|
+
className
|
|
2306
|
+
}) {
|
|
2307
|
+
const [inputValue, setInputValue] = React29.useState("");
|
|
2308
|
+
const filter = Combobox.useFilter({ sensitivity: "base" });
|
|
2309
|
+
const filteredModels = React29.useMemo(() => {
|
|
2310
|
+
if (!inputValue) return models;
|
|
2311
|
+
return models.filter((model) => filter.contains(model.label, inputValue));
|
|
2312
|
+
}, [models, inputValue, filter]);
|
|
2313
|
+
const labelMap = React29.useMemo(
|
|
2314
|
+
() => Object.fromEntries(models.map((model) => [model.value, model.label])),
|
|
2315
|
+
[models]
|
|
2316
|
+
);
|
|
2317
|
+
const handleValueChange = React29.useCallback(
|
|
2318
|
+
(nextValue, eventDetails) => {
|
|
2319
|
+
if (typeof nextValue !== "string") return;
|
|
2320
|
+
const selected = models.find((model) => model.value === nextValue);
|
|
2321
|
+
if (!selected || selected.disabled) return;
|
|
2322
|
+
onValueChange?.(nextValue);
|
|
2323
|
+
},
|
|
2324
|
+
[models, onValueChange]
|
|
2325
|
+
);
|
|
2326
|
+
return /* @__PURE__ */ jsx(
|
|
2327
|
+
Combobox.Root,
|
|
2328
|
+
{
|
|
2329
|
+
value,
|
|
2330
|
+
onValueChange: handleValueChange,
|
|
2331
|
+
disabled,
|
|
2332
|
+
name,
|
|
2333
|
+
onInputValueChange: setInputValue,
|
|
2334
|
+
autoHighlight: true,
|
|
2335
|
+
children: /* @__PURE__ */ jsxs("div", { "data-slot": "model-selector", className: cn36("relative w-full", className), children: [
|
|
2336
|
+
/* @__PURE__ */ jsx(
|
|
2337
|
+
Combobox.Input,
|
|
2338
|
+
{
|
|
2339
|
+
placeholder,
|
|
2340
|
+
className: modelSelectorTriggerVariants({ className })
|
|
2341
|
+
}
|
|
2342
|
+
),
|
|
2343
|
+
value != null && value in labelMap && inputValue === "" && /* @__PURE__ */ jsx("span", { className: "pointer-events-none absolute inset-y-0 left-3 flex items-center text-sm text-foreground", children: labelMap[value] }),
|
|
2344
|
+
/* @__PURE__ */ jsx(Combobox.Portal, { children: /* @__PURE__ */ jsx(Combobox.Positioner, { sideOffset: 4, children: /* @__PURE__ */ jsx(
|
|
2345
|
+
Combobox.Popup,
|
|
2346
|
+
{
|
|
2347
|
+
className: cn36(
|
|
2348
|
+
"z-50 min-w-[16rem] overflow-hidden rounded-md border border-border",
|
|
2349
|
+
"bg-popover p-1 text-popover-foreground shadow-md",
|
|
2350
|
+
"origin-[var(--transform-origin)]",
|
|
2351
|
+
"transition-[transform,scale,opacity]",
|
|
2352
|
+
"data-[open]:scale-100 data-[open]:opacity-100",
|
|
2353
|
+
"data-[ending-style]:scale-95 data-[ending-style]:opacity-0",
|
|
2354
|
+
"data-[starting-style]:scale-95 data-[starting-style]:opacity-0"
|
|
2355
|
+
),
|
|
2356
|
+
children: /* @__PURE__ */ jsxs(Combobox.List, { children: [
|
|
2357
|
+
filteredModels.map((model) => /* @__PURE__ */ jsxs(
|
|
2358
|
+
Combobox.Item,
|
|
2359
|
+
{
|
|
2360
|
+
value: model.value,
|
|
2361
|
+
disabled: model.disabled,
|
|
2362
|
+
className: modelSelectorItemVariants({ className: void 0 }),
|
|
2363
|
+
children: [
|
|
2364
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-2", children: [
|
|
2365
|
+
/* @__PURE__ */ jsx("span", { className: "font-medium", children: model.label }),
|
|
2366
|
+
model.badge && /* @__PURE__ */ jsx("span", { className: "rounded-full bg-secondary px-2 py-0.5 text-xs text-secondary-foreground", children: model.badge })
|
|
2367
|
+
] }),
|
|
2368
|
+
model.description && /* @__PURE__ */ jsx("span", { className: "text-xs text-muted-foreground", children: model.description }),
|
|
2369
|
+
model.meta && /* @__PURE__ */ jsx("span", { className: "text-xs text-muted-foreground", children: model.meta })
|
|
2370
|
+
]
|
|
2371
|
+
},
|
|
2372
|
+
model.value
|
|
2373
|
+
)),
|
|
2374
|
+
/* @__PURE__ */ jsx(Combobox.Empty, { className: "py-2 text-center text-sm text-muted-foreground", children: emptyMessage })
|
|
2375
|
+
] })
|
|
2376
|
+
}
|
|
2377
|
+
) }) })
|
|
2378
|
+
] })
|
|
2379
|
+
}
|
|
2380
|
+
);
|
|
2381
|
+
}
|
|
2382
|
+
MosaicModelSelector.displayName = "MosaicModelSelector";
|
|
2383
|
+
function cn37(...classes) {
|
|
2384
|
+
return classes.filter(Boolean).join(" ");
|
|
2385
|
+
}
|
|
2271
2386
|
function MosaicDropdownMenu({
|
|
2272
2387
|
trigger,
|
|
2273
2388
|
items,
|
|
@@ -2282,7 +2397,7 @@ function MosaicDropdownMenu({
|
|
|
2282
2397
|
Menu.Popup,
|
|
2283
2398
|
{
|
|
2284
2399
|
"data-slot": "dropdown-menu",
|
|
2285
|
-
className:
|
|
2400
|
+
className: cn37(
|
|
2286
2401
|
"z-50 min-w-[8rem] overflow-hidden rounded-md border border-border",
|
|
2287
2402
|
"bg-popover p-1 text-popover-foreground shadow-md",
|
|
2288
2403
|
"origin-[var(--transform-origin)]",
|
|
@@ -2292,14 +2407,14 @@ function MosaicDropdownMenu({
|
|
|
2292
2407
|
"data-[starting-style]:scale-95 data-[starting-style]:opacity-0",
|
|
2293
2408
|
className
|
|
2294
2409
|
),
|
|
2295
|
-
children: items.map((item) => /* @__PURE__ */ jsxs(
|
|
2410
|
+
children: items.map((item) => /* @__PURE__ */ jsxs(React29.Fragment, { children: [
|
|
2296
2411
|
item.separator && /* @__PURE__ */ jsx(Menu.Separator, { className: "my-1 h-px bg-border" }),
|
|
2297
2412
|
/* @__PURE__ */ jsx(
|
|
2298
2413
|
Menu.Item,
|
|
2299
2414
|
{
|
|
2300
2415
|
disabled: item.disabled,
|
|
2301
2416
|
onClick: () => onItemSelect?.(item.id),
|
|
2302
|
-
className:
|
|
2417
|
+
className: cn37(
|
|
2303
2418
|
"relative flex cursor-pointer select-none items-center rounded-sm px-2 py-1.5",
|
|
2304
2419
|
"text-sm text-popover-foreground outline-none",
|
|
2305
2420
|
"data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground",
|
|
@@ -2320,8 +2435,8 @@ var BREAKPOINTS = {
|
|
|
2320
2435
|
xl: 1280
|
|
2321
2436
|
};
|
|
2322
2437
|
function useBreakpoint(breakpoint) {
|
|
2323
|
-
const [matches, setMatches] =
|
|
2324
|
-
|
|
2438
|
+
const [matches, setMatches] = React29.useState(false);
|
|
2439
|
+
React29.useEffect(() => {
|
|
2325
2440
|
if (typeof window === "undefined") return;
|
|
2326
2441
|
const mq = window.matchMedia(`(min-width: ${BREAKPOINTS[breakpoint]}px)`);
|
|
2327
2442
|
setMatches(mq.matches);
|
|
@@ -2344,8 +2459,8 @@ function useIsDesktop() {
|
|
|
2344
2459
|
return useBreakpoint("lg");
|
|
2345
2460
|
}
|
|
2346
2461
|
function useViewport() {
|
|
2347
|
-
const [size, setSize] =
|
|
2348
|
-
|
|
2462
|
+
const [size, setSize] = React29.useState({ width: 0, height: 0 });
|
|
2463
|
+
React29.useEffect(() => {
|
|
2349
2464
|
if (typeof window === "undefined") return;
|
|
2350
2465
|
const update = () => setSize({ width: window.innerWidth, height: window.innerHeight });
|
|
2351
2466
|
update();
|
|
@@ -2363,8 +2478,8 @@ function useViewport() {
|
|
|
2363
2478
|
return size;
|
|
2364
2479
|
}
|
|
2365
2480
|
function useOrientation() {
|
|
2366
|
-
const [orientation, setOrientation] =
|
|
2367
|
-
|
|
2481
|
+
const [orientation, setOrientation] = React29.useState("portrait");
|
|
2482
|
+
React29.useEffect(() => {
|
|
2368
2483
|
if (typeof window === "undefined") return;
|
|
2369
2484
|
const update = () => {
|
|
2370
2485
|
setOrientation(window.innerHeight > window.innerWidth ? "portrait" : "landscape");
|
|
@@ -2379,7 +2494,7 @@ function useOrientation() {
|
|
|
2379
2494
|
}, []);
|
|
2380
2495
|
return orientation;
|
|
2381
2496
|
}
|
|
2382
|
-
var DeviceContext =
|
|
2497
|
+
var DeviceContext = React29.createContext(void 0);
|
|
2383
2498
|
function MosaicDeviceProvider({ children }) {
|
|
2384
2499
|
const isMobile = useIsMobile();
|
|
2385
2500
|
const isTablet = useIsTablet();
|
|
@@ -2390,7 +2505,7 @@ function MosaicDeviceProvider({ children }) {
|
|
|
2390
2505
|
const isXlUp = useBreakpoint("xl");
|
|
2391
2506
|
const orientation = useOrientation();
|
|
2392
2507
|
const viewport = useViewport();
|
|
2393
|
-
const isBreakpoint =
|
|
2508
|
+
const isBreakpoint = React29.useCallback(
|
|
2394
2509
|
(bp) => {
|
|
2395
2510
|
switch (bp) {
|
|
2396
2511
|
case "sm":
|
|
@@ -2405,7 +2520,7 @@ function MosaicDeviceProvider({ children }) {
|
|
|
2405
2520
|
},
|
|
2406
2521
|
[isSmUp, isMdUp, isLgUp, isXlUp]
|
|
2407
2522
|
);
|
|
2408
|
-
const value =
|
|
2523
|
+
const value = React29.useMemo(
|
|
2409
2524
|
() => ({
|
|
2410
2525
|
isMobile,
|
|
2411
2526
|
isTablet,
|
|
@@ -2435,13 +2550,13 @@ function MosaicDeviceProvider({ children }) {
|
|
|
2435
2550
|
}
|
|
2436
2551
|
MosaicDeviceProvider.displayName = "MosaicDeviceProvider";
|
|
2437
2552
|
function useDevice() {
|
|
2438
|
-
const ctx =
|
|
2553
|
+
const ctx = React29.useContext(DeviceContext);
|
|
2439
2554
|
if (!ctx) {
|
|
2440
2555
|
throw new Error("useDevice must be used within a MosaicDeviceProvider");
|
|
2441
2556
|
}
|
|
2442
2557
|
return ctx;
|
|
2443
2558
|
}
|
|
2444
|
-
function
|
|
2559
|
+
function cn38(...classes) {
|
|
2445
2560
|
return classes.filter(Boolean).join(" ");
|
|
2446
2561
|
}
|
|
2447
2562
|
function MosaicAdaptiveGrid({
|
|
@@ -2460,14 +2575,14 @@ function MosaicAdaptiveGrid({
|
|
|
2460
2575
|
{
|
|
2461
2576
|
ref,
|
|
2462
2577
|
"data-slot": "adaptive-grid",
|
|
2463
|
-
className:
|
|
2578
|
+
className: cn38("grid", gap, className),
|
|
2464
2579
|
style: { gridTemplateColumns: `repeat(${cols}, minmax(0, 1fr))` },
|
|
2465
2580
|
children
|
|
2466
2581
|
}
|
|
2467
2582
|
);
|
|
2468
2583
|
}
|
|
2469
2584
|
MosaicAdaptiveGrid.displayName = "MosaicAdaptiveGrid";
|
|
2470
|
-
function
|
|
2585
|
+
function cn39(...classes) {
|
|
2471
2586
|
return classes.filter(Boolean).join(" ");
|
|
2472
2587
|
}
|
|
2473
2588
|
var ANIM_ID = "mosaic-adaptive-modal-kf";
|
|
@@ -2521,13 +2636,13 @@ function MosaicAdaptiveModal({
|
|
|
2521
2636
|
closeAriaLabel
|
|
2522
2637
|
}) {
|
|
2523
2638
|
const { isMobile } = useDevice();
|
|
2524
|
-
const dialogRef =
|
|
2525
|
-
const titleId =
|
|
2526
|
-
const descId =
|
|
2527
|
-
|
|
2639
|
+
const dialogRef = React29.useRef(null);
|
|
2640
|
+
const titleId = React29.useId();
|
|
2641
|
+
const descId = React29.useId();
|
|
2642
|
+
React29.useEffect(() => {
|
|
2528
2643
|
injectStyles();
|
|
2529
2644
|
}, []);
|
|
2530
|
-
|
|
2645
|
+
React29.useEffect(() => {
|
|
2531
2646
|
const el = dialogRef.current;
|
|
2532
2647
|
if (!el) return;
|
|
2533
2648
|
if (isOpen) {
|
|
@@ -2536,7 +2651,7 @@ function MosaicAdaptiveModal({
|
|
|
2536
2651
|
if (el.open) el.close();
|
|
2537
2652
|
}
|
|
2538
2653
|
}, [isOpen]);
|
|
2539
|
-
|
|
2654
|
+
React29.useEffect(() => {
|
|
2540
2655
|
const el = dialogRef.current;
|
|
2541
2656
|
if (!el) return;
|
|
2542
2657
|
const handler = (e) => {
|
|
@@ -2546,7 +2661,7 @@ function MosaicAdaptiveModal({
|
|
|
2546
2661
|
el.addEventListener("cancel", handler);
|
|
2547
2662
|
return () => el.removeEventListener("cancel", handler);
|
|
2548
2663
|
}, [onClose]);
|
|
2549
|
-
|
|
2664
|
+
React29.useEffect(() => {
|
|
2550
2665
|
if (!isOpen) return;
|
|
2551
2666
|
const prev = document.body.style.overflow;
|
|
2552
2667
|
document.body.style.overflow = "hidden";
|
|
@@ -2573,7 +2688,7 @@ function MosaicAdaptiveModal({
|
|
|
2573
2688
|
children: /* @__PURE__ */ jsxs(
|
|
2574
2689
|
"div",
|
|
2575
2690
|
{
|
|
2576
|
-
className:
|
|
2691
|
+
className: cn39(
|
|
2577
2692
|
"mosaic-sheet-panel relative w-full rounded-t-2xl border-t border-border bg-background",
|
|
2578
2693
|
"max-h-[90dvh] flex flex-col",
|
|
2579
2694
|
className
|
|
@@ -2606,7 +2721,7 @@ function MosaicAdaptiveModal({
|
|
|
2606
2721
|
children: /* @__PURE__ */ jsxs(
|
|
2607
2722
|
"div",
|
|
2608
2723
|
{
|
|
2609
|
-
className:
|
|
2724
|
+
className: cn39(
|
|
2610
2725
|
"mosaic-modal-panel relative w-[min(90vw,42rem)] rounded-xl border border-border bg-background shadow-xl",
|
|
2611
2726
|
"max-h-[90vh] flex flex-col",
|
|
2612
2727
|
className
|
|
@@ -2654,7 +2769,7 @@ function MosaicAdaptiveModal({
|
|
|
2654
2769
|
);
|
|
2655
2770
|
}
|
|
2656
2771
|
MosaicAdaptiveModal.displayName = "MosaicAdaptiveModal";
|
|
2657
|
-
function
|
|
2772
|
+
function cn40(...classes) {
|
|
2658
2773
|
return classes.filter(Boolean).join(" ");
|
|
2659
2774
|
}
|
|
2660
2775
|
function CheckIcon2() {
|
|
@@ -2715,7 +2830,7 @@ function MosaicAdaptiveNavigation({
|
|
|
2715
2830
|
{
|
|
2716
2831
|
ref,
|
|
2717
2832
|
"data-slot": "adaptive-navigation",
|
|
2718
|
-
className:
|
|
2833
|
+
className: cn40("space-y-3", className),
|
|
2719
2834
|
"aria-label": stepNavAriaLabel,
|
|
2720
2835
|
children: items.map((item, idx) => {
|
|
2721
2836
|
const isExpanded = expandedItems?.has(item.id) ?? false;
|
|
@@ -2733,7 +2848,7 @@ function MosaicAdaptiveNavigation({
|
|
|
2733
2848
|
/* @__PURE__ */ jsx(
|
|
2734
2849
|
"div",
|
|
2735
2850
|
{
|
|
2736
|
-
className:
|
|
2851
|
+
className: cn40(
|
|
2737
2852
|
"flex h-8 w-8 shrink-0 items-center justify-center rounded-full text-xs font-bold",
|
|
2738
2853
|
item.isComplete ? "bg-green-500 text-white" : "bg-muted text-muted-foreground"
|
|
2739
2854
|
),
|
|
@@ -2767,7 +2882,7 @@ function MosaicAdaptiveNavigation({
|
|
|
2767
2882
|
{
|
|
2768
2883
|
ref,
|
|
2769
2884
|
"data-slot": "adaptive-navigation",
|
|
2770
|
-
className:
|
|
2885
|
+
className: cn40("w-full", className),
|
|
2771
2886
|
"aria-label": tabNavAriaLabel,
|
|
2772
2887
|
children: /* @__PURE__ */ jsx(
|
|
2773
2888
|
"div",
|
|
@@ -2784,7 +2899,7 @@ function MosaicAdaptiveNavigation({
|
|
|
2784
2899
|
role: "tab",
|
|
2785
2900
|
"aria-selected": isActive,
|
|
2786
2901
|
onClick: () => onItemChange(item.id),
|
|
2787
|
-
className:
|
|
2902
|
+
className: cn40(
|
|
2788
2903
|
"flex items-center justify-center gap-2 rounded-md px-3 py-2 text-sm font-medium transition-colors",
|
|
2789
2904
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1",
|
|
2790
2905
|
isActive ? "bg-primary text-primary-foreground shadow-sm" : "text-muted-foreground hover:text-foreground"
|
|
@@ -2793,7 +2908,7 @@ function MosaicAdaptiveNavigation({
|
|
|
2793
2908
|
/* @__PURE__ */ jsx(
|
|
2794
2909
|
"div",
|
|
2795
2910
|
{
|
|
2796
|
-
className:
|
|
2911
|
+
className: cn40(
|
|
2797
2912
|
"flex h-6 w-6 shrink-0 items-center justify-center rounded-full text-xs font-bold",
|
|
2798
2913
|
item.isComplete ? "bg-green-500 text-white" : isActive ? "bg-primary-foreground/20 text-primary-foreground" : "bg-background text-muted-foreground"
|
|
2799
2914
|
),
|
|
@@ -2805,7 +2920,7 @@ function MosaicAdaptiveNavigation({
|
|
|
2805
2920
|
item.duration !== void 0 && /* @__PURE__ */ jsxs(
|
|
2806
2921
|
"span",
|
|
2807
2922
|
{
|
|
2808
|
-
className:
|
|
2923
|
+
className: cn40(
|
|
2809
2924
|
"rounded px-1 py-0.5 text-xs",
|
|
2810
2925
|
isActive ? "bg-primary-foreground/20" : "bg-muted"
|
|
2811
2926
|
),
|
|
@@ -2826,7 +2941,7 @@ function MosaicAdaptiveNavigation({
|
|
|
2826
2941
|
);
|
|
2827
2942
|
}
|
|
2828
2943
|
MosaicAdaptiveNavigation.displayName = "MosaicAdaptiveNavigation";
|
|
2829
|
-
function
|
|
2944
|
+
function cn41(...classes) {
|
|
2830
2945
|
return classes.filter(Boolean).join(" ");
|
|
2831
2946
|
}
|
|
2832
2947
|
var ANIM_ID2 = "mosaic-sidebar-kf";
|
|
@@ -2978,8 +3093,8 @@ function MosaicAppSidebar({
|
|
|
2978
3093
|
ref
|
|
2979
3094
|
}) {
|
|
2980
3095
|
const { isMobile } = useDevice();
|
|
2981
|
-
const [expandedItems, setExpandedItems] =
|
|
2982
|
-
|
|
3096
|
+
const [expandedItems, setExpandedItems] = React29.useState(/* @__PURE__ */ new Set());
|
|
3097
|
+
React29.useEffect(() => {
|
|
2983
3098
|
injectStyles2();
|
|
2984
3099
|
}, []);
|
|
2985
3100
|
const sidebarWidth = isMobile ? "100%" : isCollapsed ? "64px" : "280px";
|
|
@@ -3002,7 +3117,7 @@ function MosaicAppSidebar({
|
|
|
3002
3117
|
{
|
|
3003
3118
|
ref,
|
|
3004
3119
|
"data-slot": "app-sidebar",
|
|
3005
|
-
className:
|
|
3120
|
+
className: cn41(
|
|
3006
3121
|
"flex h-full flex-col bg-sidebar border-r border-sidebar-border",
|
|
3007
3122
|
isMobile && "border-r-0",
|
|
3008
3123
|
className
|
|
@@ -3022,7 +3137,7 @@ function MosaicAppSidebar({
|
|
|
3022
3137
|
type: "button",
|
|
3023
3138
|
onClick: onToggleCollapse,
|
|
3024
3139
|
"aria-label": isCollapsed ? expandSidebarAriaLabel : collapseSidebarAriaLabel,
|
|
3025
|
-
className:
|
|
3140
|
+
className: cn41(
|
|
3026
3141
|
"flex h-9 w-9 items-center justify-center rounded-lg transition-colors",
|
|
3027
3142
|
"hover:bg-sidebar-accent text-sidebar-foreground",
|
|
3028
3143
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -3052,7 +3167,7 @@ function MosaicAppSidebar({
|
|
|
3052
3167
|
},
|
|
3053
3168
|
"aria-current": isActive ? "page" : void 0,
|
|
3054
3169
|
"aria-expanded": hasSubmenu && !isCollapsed ? isExpanded : void 0,
|
|
3055
|
-
className:
|
|
3170
|
+
className: cn41(
|
|
3056
3171
|
"group flex w-full min-h-[44px] items-center rounded-lg p-3 transition-colors",
|
|
3057
3172
|
"hover:bg-sidebar-accent",
|
|
3058
3173
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -3079,7 +3194,7 @@ function MosaicAppSidebar({
|
|
|
3079
3194
|
type: "button",
|
|
3080
3195
|
onClick: () => handleNavClick(sub.href),
|
|
3081
3196
|
"aria-current": isSubActive ? "page" : void 0,
|
|
3082
|
-
className:
|
|
3197
|
+
className: cn41(
|
|
3083
3198
|
"flex w-full min-h-[40px] items-center gap-3 rounded-lg px-3 py-2 text-sm transition-colors",
|
|
3084
3199
|
"hover:bg-sidebar-accent/50 text-sidebar-foreground",
|
|
3085
3200
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -3102,7 +3217,7 @@ function MosaicAppSidebar({
|
|
|
3102
3217
|
{
|
|
3103
3218
|
type: "button",
|
|
3104
3219
|
onClick: action.onClick,
|
|
3105
|
-
className:
|
|
3220
|
+
className: cn41(
|
|
3106
3221
|
"flex w-full min-h-[44px] items-center gap-3 rounded-lg px-3 py-2 text-sm font-medium",
|
|
3107
3222
|
"text-sidebar-foreground transition-colors hover:bg-sidebar-accent",
|
|
3108
3223
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -3149,7 +3264,7 @@ function MosaicAppSidebar({
|
|
|
3149
3264
|
);
|
|
3150
3265
|
}
|
|
3151
3266
|
MosaicAppSidebar.displayName = "MosaicAppSidebar";
|
|
3152
|
-
function
|
|
3267
|
+
function cn42(...classes) {
|
|
3153
3268
|
return classes.filter(Boolean).join(" ");
|
|
3154
3269
|
}
|
|
3155
3270
|
var ANIM_ID3 = "mosaic-dashboard-kf";
|
|
@@ -3231,9 +3346,9 @@ function MosaicDashboardLayout({
|
|
|
3231
3346
|
ref
|
|
3232
3347
|
}) {
|
|
3233
3348
|
const { isMobile } = useDevice();
|
|
3234
|
-
const [isSidebarCollapsed, setIsSidebarCollapsed] =
|
|
3235
|
-
const [isMobileSidebarOpen, setIsMobileSidebarOpen] =
|
|
3236
|
-
|
|
3349
|
+
const [isSidebarCollapsed, setIsSidebarCollapsed] = React29.useState(defaultSidebarCollapsed);
|
|
3350
|
+
const [isMobileSidebarOpen, setIsMobileSidebarOpen] = React29.useState(false);
|
|
3351
|
+
React29.useEffect(() => {
|
|
3237
3352
|
injectStyles3();
|
|
3238
3353
|
}, []);
|
|
3239
3354
|
const defaultRenderLink2 = (href, children2) => /* @__PURE__ */ jsx("a", { href, className: "transition-colors hover:text-foreground", children: children2 });
|
|
@@ -3243,7 +3358,7 @@ function MosaicDashboardLayout({
|
|
|
3243
3358
|
{
|
|
3244
3359
|
ref,
|
|
3245
3360
|
"data-slot": "dashboard-layout",
|
|
3246
|
-
className:
|
|
3361
|
+
className: cn42("flex h-screen w-full bg-background", className),
|
|
3247
3362
|
children: [
|
|
3248
3363
|
!isMobile && /* @__PURE__ */ jsx(
|
|
3249
3364
|
MosaicAppSidebar,
|
|
@@ -3267,7 +3382,7 @@ function MosaicDashboardLayout({
|
|
|
3267
3382
|
type: "button",
|
|
3268
3383
|
"aria-label": openNavigationAriaLabel,
|
|
3269
3384
|
onClick: () => setIsMobileSidebarOpen(true),
|
|
3270
|
-
className:
|
|
3385
|
+
className: cn42(
|
|
3271
3386
|
"flex h-11 w-11 shrink-0 items-center justify-center rounded-lg",
|
|
3272
3387
|
"text-foreground transition-colors hover:bg-muted",
|
|
3273
3388
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -3320,7 +3435,7 @@ function MosaicDashboardLayout({
|
|
|
3320
3435
|
);
|
|
3321
3436
|
}
|
|
3322
3437
|
MosaicDashboardLayout.displayName = "MosaicDashboardLayout";
|
|
3323
|
-
function
|
|
3438
|
+
function cn43(...classes) {
|
|
3324
3439
|
return classes.filter(Boolean).join(" ");
|
|
3325
3440
|
}
|
|
3326
3441
|
var ANIM_ID4 = "mosaic-quick-action-kf";
|
|
@@ -3365,7 +3480,7 @@ function MosaicQuickActionCard({
|
|
|
3365
3480
|
ref
|
|
3366
3481
|
}) {
|
|
3367
3482
|
const { mobile = 2, desktop = 3 } = columns;
|
|
3368
|
-
|
|
3483
|
+
React29.useEffect(() => {
|
|
3369
3484
|
injectStyles4();
|
|
3370
3485
|
}, []);
|
|
3371
3486
|
const defaultRenderLink2 = (href, children) => /* @__PURE__ */ jsx("a", { href, className: "block h-full", children });
|
|
@@ -3375,7 +3490,7 @@ function MosaicQuickActionCard({
|
|
|
3375
3490
|
{
|
|
3376
3491
|
ref,
|
|
3377
3492
|
"data-slot": "quick-action-card",
|
|
3378
|
-
className:
|
|
3493
|
+
className: cn43("rounded-xl border border-border bg-card", className),
|
|
3379
3494
|
children: [
|
|
3380
3495
|
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 }) }),
|
|
3381
3496
|
/* @__PURE__ */ jsx(
|
|
@@ -3400,7 +3515,7 @@ function MosaicQuickActionCard({
|
|
|
3400
3515
|
/* @__PURE__ */ jsxs(
|
|
3401
3516
|
"div",
|
|
3402
3517
|
{
|
|
3403
|
-
className:
|
|
3518
|
+
className: cn43(
|
|
3404
3519
|
"flex min-h-[100px] cursor-pointer flex-col items-center justify-center gap-2 rounded-xl border p-4",
|
|
3405
3520
|
"transition-transform duration-150 hover:scale-105 active:scale-[0.98]",
|
|
3406
3521
|
accentClass
|
|
@@ -3433,7 +3548,7 @@ function MosaicQuickActionCard({
|
|
|
3433
3548
|
);
|
|
3434
3549
|
}
|
|
3435
3550
|
MosaicQuickActionCard.displayName = "MosaicQuickActionCard";
|
|
3436
|
-
function
|
|
3551
|
+
function cn44(...classes) {
|
|
3437
3552
|
return classes.filter(Boolean).join(" ");
|
|
3438
3553
|
}
|
|
3439
3554
|
var ANIM_ID5 = "mosaic-activity-feed-kf";
|
|
@@ -3522,7 +3637,7 @@ function MosaicActivityItem({ activity, icon, className }) {
|
|
|
3522
3637
|
"div",
|
|
3523
3638
|
{
|
|
3524
3639
|
"data-slot": "activity-item",
|
|
3525
|
-
className:
|
|
3640
|
+
className: cn44(
|
|
3526
3641
|
"flex cursor-pointer items-start gap-4 rounded-lg p-3 transition-colors hover:bg-muted/50",
|
|
3527
3642
|
className
|
|
3528
3643
|
),
|
|
@@ -3556,7 +3671,7 @@ function MosaicActivityItem({ activity, icon, className }) {
|
|
|
3556
3671
|
/* @__PURE__ */ jsx(
|
|
3557
3672
|
"span",
|
|
3558
3673
|
{
|
|
3559
|
-
className:
|
|
3674
|
+
className: cn44(
|
|
3560
3675
|
"rounded-full px-2 py-0.5 text-xs font-medium",
|
|
3561
3676
|
getStatusClass(activity.status)
|
|
3562
3677
|
),
|
|
@@ -3582,7 +3697,7 @@ function MosaicActivityFeed({
|
|
|
3582
3697
|
className,
|
|
3583
3698
|
ref
|
|
3584
3699
|
}) {
|
|
3585
|
-
|
|
3700
|
+
React29.useEffect(() => {
|
|
3586
3701
|
injectStyles5();
|
|
3587
3702
|
}, []);
|
|
3588
3703
|
const defaultRenderLink2 = (href, children) => /* @__PURE__ */ jsx(
|
|
@@ -3599,7 +3714,7 @@ function MosaicActivityFeed({
|
|
|
3599
3714
|
{
|
|
3600
3715
|
ref,
|
|
3601
3716
|
"data-slot": "activity-feed",
|
|
3602
|
-
className:
|
|
3717
|
+
className: cn44("rounded-xl border border-border bg-card", className),
|
|
3603
3718
|
children: [
|
|
3604
3719
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between border-b border-border px-6 py-4", children: [
|
|
3605
3720
|
/* @__PURE__ */ jsx("h3", { className: "text-lg font-semibold text-foreground", children: heading }),
|
|
@@ -3625,7 +3740,7 @@ function MosaicActivityFeed({
|
|
|
3625
3740
|
);
|
|
3626
3741
|
}
|
|
3627
3742
|
MosaicActivityFeed.displayName = "MosaicActivityFeed";
|
|
3628
|
-
function
|
|
3743
|
+
function cn45(...classes) {
|
|
3629
3744
|
return classes.filter(Boolean).join(" ");
|
|
3630
3745
|
}
|
|
3631
3746
|
function SparklesIcon() {
|
|
@@ -3833,7 +3948,7 @@ function MosaicAgentComposerDesktop({
|
|
|
3833
3948
|
value: agentName,
|
|
3834
3949
|
onChange: (e) => onAgentNameChange(e.target.value),
|
|
3835
3950
|
placeholder: agentNamePlaceholder,
|
|
3836
|
-
className:
|
|
3951
|
+
className: cn45(
|
|
3837
3952
|
"flex min-h-[48px] w-full rounded-lg border border-input bg-transparent px-3 py-2 text-sm",
|
|
3838
3953
|
"placeholder:text-muted-foreground",
|
|
3839
3954
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -3934,7 +4049,7 @@ function MosaicAgentComposerDesktop({
|
|
|
3934
4049
|
onChange: (e) => onCustomInstructionsChange(e.target.value),
|
|
3935
4050
|
placeholder: instructionsPlaceholder,
|
|
3936
4051
|
rows: 5,
|
|
3937
|
-
className:
|
|
4052
|
+
className: cn45(
|
|
3938
4053
|
"flex w-full resize-y rounded-lg border border-input bg-transparent px-3 py-2 text-sm",
|
|
3939
4054
|
"placeholder:text-muted-foreground",
|
|
3940
4055
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -4002,7 +4117,7 @@ function MosaicAgentComposerDesktop({
|
|
|
4002
4117
|
/* @__PURE__ */ jsx(SparklesIcon, {}),
|
|
4003
4118
|
/* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: selectAllModulesLabel })
|
|
4004
4119
|
] }) }),
|
|
4005
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
4120
|
+
/* @__PURE__ */ jsxs("div", { className: cn45("flex gap-2", isEditMode && onCancel ? "flex-row" : "flex-col"), children: [
|
|
4006
4121
|
isEditMode && onCancel && /* @__PURE__ */ jsx(
|
|
4007
4122
|
"button",
|
|
4008
4123
|
{
|
|
@@ -4018,7 +4133,7 @@ function MosaicAgentComposerDesktop({
|
|
|
4018
4133
|
type: "button",
|
|
4019
4134
|
onClick: onSave,
|
|
4020
4135
|
disabled: !canSave,
|
|
4021
|
-
className:
|
|
4136
|
+
className: cn45(
|
|
4022
4137
|
"flex min-h-[48px] items-center justify-center gap-2 rounded-lg text-sm font-medium transition-colors",
|
|
4023
4138
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
4024
4139
|
"bg-primary text-primary-foreground hover:bg-primary/90",
|
|
@@ -4039,7 +4154,7 @@ function MosaicAgentComposerDesktop({
|
|
|
4039
4154
|
] });
|
|
4040
4155
|
}
|
|
4041
4156
|
MosaicAgentComposerDesktop.displayName = "MosaicAgentComposerDesktop";
|
|
4042
|
-
function
|
|
4157
|
+
function cn46(...classes) {
|
|
4043
4158
|
return classes.filter(Boolean).join(" ");
|
|
4044
4159
|
}
|
|
4045
4160
|
function SparklesIcon2() {
|
|
@@ -4252,7 +4367,7 @@ function MosaicAgentComposerMobile({
|
|
|
4252
4367
|
optionalInstructionsHelp
|
|
4253
4368
|
}) {
|
|
4254
4369
|
const L = labels;
|
|
4255
|
-
const instructionsId =
|
|
4370
|
+
const instructionsId = React29.useId();
|
|
4256
4371
|
return /* @__PURE__ */ jsxs("div", { "data-slot": "agent-composer-mobile", className: "flex h-full flex-col", children: [
|
|
4257
4372
|
/* @__PURE__ */ jsxs("div", { className: "shrink-0 sticky top-0 z-10 border-b border-border bg-background px-4 pt-4 pb-3", children: [
|
|
4258
4373
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
@@ -4293,7 +4408,7 @@ function MosaicAgentComposerMobile({
|
|
|
4293
4408
|
disabled: isLoading,
|
|
4294
4409
|
"aria-required": "true",
|
|
4295
4410
|
"aria-invalid": canSave && !agentName ? "true" : "false",
|
|
4296
|
-
className:
|
|
4411
|
+
className: cn46(
|
|
4297
4412
|
"flex min-h-[48px] w-full rounded-lg border border-input bg-transparent px-3 py-2 text-sm",
|
|
4298
4413
|
"placeholder:text-muted-foreground",
|
|
4299
4414
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -4400,7 +4515,7 @@ function MosaicAgentComposerMobile({
|
|
|
4400
4515
|
disabled: isLoading,
|
|
4401
4516
|
"aria-describedby": `${instructionsId}-help`,
|
|
4402
4517
|
rows: 4,
|
|
4403
|
-
className:
|
|
4518
|
+
className: cn46(
|
|
4404
4519
|
"flex w-full resize-y rounded-lg border border-input bg-transparent px-3 py-2 text-sm",
|
|
4405
4520
|
"placeholder:text-muted-foreground",
|
|
4406
4521
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -4456,7 +4571,7 @@ function MosaicAgentComposer(props) {
|
|
|
4456
4571
|
return isMobile ? /* @__PURE__ */ jsx(MosaicAgentComposerMobile, { ...props }) : /* @__PURE__ */ jsx(MosaicAgentComposerDesktop, { ...props });
|
|
4457
4572
|
}
|
|
4458
4573
|
MosaicAgentComposer.displayName = "MosaicAgentComposer";
|
|
4459
|
-
function
|
|
4574
|
+
function cn47(...classes) {
|
|
4460
4575
|
return classes.filter(Boolean).join(" ");
|
|
4461
4576
|
}
|
|
4462
4577
|
function EditIcon() {
|
|
@@ -4517,7 +4632,7 @@ function MosaicModuleCard({
|
|
|
4517
4632
|
{
|
|
4518
4633
|
ref,
|
|
4519
4634
|
"data-slot": "module-card",
|
|
4520
|
-
className:
|
|
4635
|
+
className: cn47(
|
|
4521
4636
|
"min-h-[80px] rounded-xl border border-border bg-card p-4 transition-all",
|
|
4522
4637
|
"flex items-start gap-3",
|
|
4523
4638
|
isSelected && "ring-2 ring-primary bg-primary/5",
|
|
@@ -4579,7 +4694,7 @@ function MosaicThemeProvider({
|
|
|
4579
4694
|
return /* @__PURE__ */ jsx("div", { "data-slot": "theme-provider", children });
|
|
4580
4695
|
}
|
|
4581
4696
|
MosaicThemeProvider.displayName = "MosaicThemeProvider";
|
|
4582
|
-
function
|
|
4697
|
+
function cn48(...classes) {
|
|
4583
4698
|
return classes.filter(Boolean).join(" ");
|
|
4584
4699
|
}
|
|
4585
4700
|
var ANIM_ID6 = "mosaic-delete-dialog-kf";
|
|
@@ -4621,21 +4736,21 @@ function MosaicDeleteConfirmationDialog({
|
|
|
4621
4736
|
cancelLabel,
|
|
4622
4737
|
confirmLabel
|
|
4623
4738
|
}) {
|
|
4624
|
-
|
|
4739
|
+
React29.useEffect(() => {
|
|
4625
4740
|
injectStyles6();
|
|
4626
4741
|
}, []);
|
|
4627
4742
|
return /* @__PURE__ */ jsx(AlertDialog.Root, { open, onOpenChange, children: /* @__PURE__ */ jsxs(AlertDialog.Portal, { children: [
|
|
4628
4743
|
/* @__PURE__ */ jsx(
|
|
4629
4744
|
AlertDialog.Backdrop,
|
|
4630
4745
|
{
|
|
4631
|
-
className:
|
|
4746
|
+
className: cn48("mosaic-delete-overlay", "fixed inset-0 z-50 bg-black/50")
|
|
4632
4747
|
}
|
|
4633
4748
|
),
|
|
4634
4749
|
/* @__PURE__ */ jsxs(
|
|
4635
4750
|
AlertDialog.Popup,
|
|
4636
4751
|
{
|
|
4637
4752
|
"data-slot": "delete-confirmation-dialog",
|
|
4638
|
-
className:
|
|
4753
|
+
className: cn48(
|
|
4639
4754
|
"mosaic-delete-content",
|
|
4640
4755
|
"fixed left-1/2 top-1/2 z-50",
|
|
4641
4756
|
"w-full max-w-[92vw] sm:max-w-md",
|
|
@@ -4648,7 +4763,7 @@ function MosaicDeleteConfirmationDialog({
|
|
|
4648
4763
|
/* @__PURE__ */ jsx(
|
|
4649
4764
|
AlertDialog.Close,
|
|
4650
4765
|
{
|
|
4651
|
-
className:
|
|
4766
|
+
className: cn48(
|
|
4652
4767
|
"inline-flex min-h-[44px] w-full items-center justify-center rounded-md border border-border",
|
|
4653
4768
|
"bg-background px-4 py-2 text-sm font-medium text-foreground",
|
|
4654
4769
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -4662,7 +4777,7 @@ function MosaicDeleteConfirmationDialog({
|
|
|
4662
4777
|
AlertDialog.Close,
|
|
4663
4778
|
{
|
|
4664
4779
|
onClick: onConfirm,
|
|
4665
|
-
className:
|
|
4780
|
+
className: cn48(
|
|
4666
4781
|
"inline-flex min-h-[44px] w-full items-center justify-center rounded-md",
|
|
4667
4782
|
"bg-destructive px-4 py-2 text-sm font-medium text-destructive-foreground",
|
|
4668
4783
|
"hover:bg-destructive/90",
|
|
@@ -4679,7 +4794,7 @@ function MosaicDeleteConfirmationDialog({
|
|
|
4679
4794
|
] }) });
|
|
4680
4795
|
}
|
|
4681
4796
|
MosaicDeleteConfirmationDialog.displayName = "MosaicDeleteConfirmationDialog";
|
|
4682
|
-
function
|
|
4797
|
+
function cn49(...classes) {
|
|
4683
4798
|
return classes.filter(Boolean).join(" ");
|
|
4684
4799
|
}
|
|
4685
4800
|
function Toggle({
|
|
@@ -4695,7 +4810,7 @@ function Toggle({
|
|
|
4695
4810
|
id,
|
|
4696
4811
|
"aria-checked": checked,
|
|
4697
4812
|
onClick: () => onChange(!checked),
|
|
4698
|
-
className:
|
|
4813
|
+
className: cn49(
|
|
4699
4814
|
"relative inline-flex h-6 w-11 shrink-0 cursor-pointer rounded-full border-2 border-transparent",
|
|
4700
4815
|
"transition-colors duration-200 ease-in-out",
|
|
4701
4816
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
@@ -4704,7 +4819,7 @@ function Toggle({
|
|
|
4704
4819
|
children: /* @__PURE__ */ jsx(
|
|
4705
4820
|
"span",
|
|
4706
4821
|
{
|
|
4707
|
-
className:
|
|
4822
|
+
className: cn49(
|
|
4708
4823
|
"pointer-events-none inline-block h-5 w-5 rounded-full bg-background shadow-lg",
|
|
4709
4824
|
"transform transition duration-200 ease-in-out",
|
|
4710
4825
|
checked ? "translate-x-5" : "translate-x-0"
|
|
@@ -4726,7 +4841,7 @@ function NativeSelect({
|
|
|
4726
4841
|
id,
|
|
4727
4842
|
value,
|
|
4728
4843
|
onChange: (e) => onChange(e.target.value),
|
|
4729
|
-
className:
|
|
4844
|
+
className: cn49(
|
|
4730
4845
|
"flex min-h-[48px] w-full rounded-md border border-input bg-background px-3 py-2",
|
|
4731
4846
|
"text-sm text-foreground",
|
|
4732
4847
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -4746,7 +4861,7 @@ function MosaicPreferencesPanel({
|
|
|
4746
4861
|
className
|
|
4747
4862
|
}) {
|
|
4748
4863
|
const { isMobile } = useDevice();
|
|
4749
|
-
return /* @__PURE__ */ jsxs("div", { "data-slot": "preferences-panel", className:
|
|
4864
|
+
return /* @__PURE__ */ jsxs("div", { "data-slot": "preferences-panel", className: cn49("space-y-4 md:space-y-6", className), children: [
|
|
4750
4865
|
groups.map((group) => /* @__PURE__ */ jsxs(
|
|
4751
4866
|
"div",
|
|
4752
4867
|
{
|
|
@@ -4789,13 +4904,13 @@ function MosaicPreferencesPanel({
|
|
|
4789
4904
|
},
|
|
4790
4905
|
group.id
|
|
4791
4906
|
)),
|
|
4792
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
4907
|
+
/* @__PURE__ */ jsx("div", { className: cn49("flex", isMobile ? "flex-col" : "justify-end"), children: /* @__PURE__ */ jsxs(
|
|
4793
4908
|
"button",
|
|
4794
4909
|
{
|
|
4795
4910
|
type: "button",
|
|
4796
4911
|
onClick: onSave,
|
|
4797
4912
|
disabled: isSaving,
|
|
4798
|
-
className:
|
|
4913
|
+
className: cn49(
|
|
4799
4914
|
"inline-flex min-h-[44px] items-center justify-center gap-2 rounded-md",
|
|
4800
4915
|
"bg-primary px-4 py-2 text-sm font-medium text-primary-foreground",
|
|
4801
4916
|
"hover:bg-primary/90",
|
|
@@ -4831,7 +4946,7 @@ function MosaicPreferencesPanel({
|
|
|
4831
4946
|
] });
|
|
4832
4947
|
}
|
|
4833
4948
|
MosaicPreferencesPanel.displayName = "MosaicPreferencesPanel";
|
|
4834
|
-
function
|
|
4949
|
+
function cn50(...classes) {
|
|
4835
4950
|
return classes.filter(Boolean).join(" ");
|
|
4836
4951
|
}
|
|
4837
4952
|
function AvatarDisplay({
|
|
@@ -4844,7 +4959,7 @@ function AvatarDisplay({
|
|
|
4844
4959
|
return /* @__PURE__ */ jsx(
|
|
4845
4960
|
"span",
|
|
4846
4961
|
{
|
|
4847
|
-
className:
|
|
4962
|
+
className: cn50(
|
|
4848
4963
|
"inline-flex shrink-0 items-center justify-center rounded-full bg-muted text-muted-foreground font-semibold overflow-hidden",
|
|
4849
4964
|
sizeClass
|
|
4850
4965
|
),
|
|
@@ -4876,7 +4991,7 @@ function MosaicProfilePanel({
|
|
|
4876
4991
|
className
|
|
4877
4992
|
}) {
|
|
4878
4993
|
const { isMobile } = useDevice();
|
|
4879
|
-
return /* @__PURE__ */ jsxs("div", { "data-slot": "profile-panel", className:
|
|
4994
|
+
return /* @__PURE__ */ jsxs("div", { "data-slot": "profile-panel", className: cn50("space-y-4 md:space-y-6", className), children: [
|
|
4880
4995
|
/* @__PURE__ */ jsxs("div", { className: "rounded-lg border border-border bg-card text-card-foreground shadow-sm", children: [
|
|
4881
4996
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-col space-y-1.5 p-6", children: [
|
|
4882
4997
|
/* @__PURE__ */ jsx("h3", { className: "text-lg font-semibold leading-none tracking-tight md:text-xl", children: avatarHeading }),
|
|
@@ -4896,7 +5011,7 @@ function MosaicProfilePanel({
|
|
|
4896
5011
|
{
|
|
4897
5012
|
type: "button",
|
|
4898
5013
|
onClick: onAvatarUpload,
|
|
4899
|
-
className:
|
|
5014
|
+
className: cn50(
|
|
4900
5015
|
"inline-flex min-h-[44px] items-center justify-center gap-2 rounded-md border border-border",
|
|
4901
5016
|
"bg-background px-4 py-2 text-sm font-medium text-foreground",
|
|
4902
5017
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -4946,7 +5061,7 @@ function MosaicProfilePanel({
|
|
|
4946
5061
|
placeholder: field.placeholder,
|
|
4947
5062
|
onChange: (e) => onFieldChange?.(field.id, e.target.value),
|
|
4948
5063
|
rows: 4,
|
|
4949
|
-
className:
|
|
5064
|
+
className: cn50(
|
|
4950
5065
|
"flex min-h-[120px] w-full rounded-md border border-input bg-background px-3 py-2",
|
|
4951
5066
|
"text-sm text-foreground placeholder:text-muted-foreground",
|
|
4952
5067
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -4962,7 +5077,7 @@ function MosaicProfilePanel({
|
|
|
4962
5077
|
readOnly: field.readOnly,
|
|
4963
5078
|
placeholder: field.placeholder,
|
|
4964
5079
|
onChange: (e) => onFieldChange?.(field.id, e.target.value),
|
|
4965
|
-
className:
|
|
5080
|
+
className: cn50(
|
|
4966
5081
|
"flex min-h-[48px] w-full rounded-md border border-input bg-background px-3 py-2",
|
|
4967
5082
|
"text-sm text-foreground placeholder:text-muted-foreground",
|
|
4968
5083
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -4982,7 +5097,7 @@ function MosaicProfilePanel({
|
|
|
4982
5097
|
{
|
|
4983
5098
|
type: "button",
|
|
4984
5099
|
onClick: onChangePassword,
|
|
4985
|
-
className:
|
|
5100
|
+
className: cn50(
|
|
4986
5101
|
"inline-flex min-h-[44px] items-center justify-center rounded-md border border-border",
|
|
4987
5102
|
"bg-background px-4 py-2 text-sm font-medium text-foreground",
|
|
4988
5103
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -4994,13 +5109,13 @@ function MosaicProfilePanel({
|
|
|
4994
5109
|
) })
|
|
4995
5110
|
] }),
|
|
4996
5111
|
extraSections,
|
|
4997
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
5112
|
+
/* @__PURE__ */ jsx("div", { className: cn50("flex", isMobile ? "flex-col" : "justify-end"), children: /* @__PURE__ */ jsxs(
|
|
4998
5113
|
"button",
|
|
4999
5114
|
{
|
|
5000
5115
|
type: "button",
|
|
5001
5116
|
onClick: onSave,
|
|
5002
5117
|
disabled: isSaving,
|
|
5003
|
-
className:
|
|
5118
|
+
className: cn50(
|
|
5004
5119
|
"inline-flex min-h-[44px] items-center justify-center gap-2 rounded-md",
|
|
5005
5120
|
"bg-primary px-4 py-2 text-sm font-medium text-primary-foreground",
|
|
5006
5121
|
"hover:bg-primary/90",
|
|
@@ -5036,7 +5151,7 @@ function MosaicProfilePanel({
|
|
|
5036
5151
|
] });
|
|
5037
5152
|
}
|
|
5038
5153
|
MosaicProfilePanel.displayName = "MosaicProfilePanel";
|
|
5039
|
-
function
|
|
5154
|
+
function cn51(...classes) {
|
|
5040
5155
|
return classes.filter(Boolean).join(" ");
|
|
5041
5156
|
}
|
|
5042
5157
|
var ANIM_ID7 = "mosaic-main-nav-kf";
|
|
@@ -5127,12 +5242,12 @@ function MosaicMainNav({
|
|
|
5127
5242
|
className
|
|
5128
5243
|
}) {
|
|
5129
5244
|
const { isMobile } = useDevice();
|
|
5130
|
-
const [isOpen, setIsOpen] =
|
|
5245
|
+
const [isOpen, setIsOpen] = React29.useState(false);
|
|
5131
5246
|
const linkRenderer = renderLink ?? defaultRenderLink;
|
|
5132
|
-
|
|
5247
|
+
React29.useEffect(() => {
|
|
5133
5248
|
injectStyles7();
|
|
5134
5249
|
}, []);
|
|
5135
|
-
|
|
5250
|
+
React29.useEffect(() => {
|
|
5136
5251
|
if (!isOpen) return;
|
|
5137
5252
|
const handler = (e) => {
|
|
5138
5253
|
if (e.key === "Escape") setIsOpen(false);
|
|
@@ -5149,7 +5264,7 @@ function MosaicMainNav({
|
|
|
5149
5264
|
{
|
|
5150
5265
|
type: "button",
|
|
5151
5266
|
onClick: () => setIsOpen(!isOpen),
|
|
5152
|
-
className:
|
|
5267
|
+
className: cn51(
|
|
5153
5268
|
"inline-flex min-h-[44px] min-w-[44px] items-center justify-center rounded-md p-0",
|
|
5154
5269
|
"text-foreground hover:bg-accent hover:text-accent-foreground",
|
|
5155
5270
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -5175,7 +5290,7 @@ function MosaicMainNav({
|
|
|
5175
5290
|
"aria-label": drawerNavAriaLabel,
|
|
5176
5291
|
open: isOpen,
|
|
5177
5292
|
"data-open": isOpen ? "true" : "false",
|
|
5178
|
-
className:
|
|
5293
|
+
className: cn51(
|
|
5179
5294
|
"mosaic-nav-drawer",
|
|
5180
5295
|
"fixed inset-y-0 left-0 z-50 m-0 w-[280px] max-h-none h-full p-0",
|
|
5181
5296
|
"border-r border-border bg-background shadow-xl",
|
|
@@ -5192,7 +5307,7 @@ function MosaicMainNav({
|
|
|
5192
5307
|
{
|
|
5193
5308
|
type: "button",
|
|
5194
5309
|
onClick: () => setIsOpen(false),
|
|
5195
|
-
className:
|
|
5310
|
+
className: cn51(
|
|
5196
5311
|
"inline-flex h-8 w-8 items-center justify-center rounded-md",
|
|
5197
5312
|
"text-muted-foreground hover:bg-accent hover:text-accent-foreground",
|
|
5198
5313
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -5205,13 +5320,13 @@ function MosaicMainNav({
|
|
|
5205
5320
|
/* @__PURE__ */ jsx("nav", { className: "flex flex-col gap-1 p-4", "aria-label": mainNavAriaLabel, children: filteredItems.map((item) => {
|
|
5206
5321
|
const Icon = item.icon;
|
|
5207
5322
|
const active = isItemActive(item);
|
|
5208
|
-
const itemClass =
|
|
5323
|
+
const itemClass = cn51(
|
|
5209
5324
|
"flex items-center gap-3 rounded-lg px-3 py-3 text-sm font-medium transition-colors",
|
|
5210
5325
|
"hover:bg-accent hover:text-accent-foreground",
|
|
5211
5326
|
"min-h-[44px]",
|
|
5212
5327
|
active && "bg-accent text-accent-foreground"
|
|
5213
5328
|
);
|
|
5214
|
-
return /* @__PURE__ */ jsx(
|
|
5329
|
+
return /* @__PURE__ */ jsx(React29.Fragment, { children: linkRenderer(
|
|
5215
5330
|
item,
|
|
5216
5331
|
/* @__PURE__ */ jsxs(Fragment, { children: [
|
|
5217
5332
|
Icon && /* @__PURE__ */ jsx(Icon, { className: "h-5 w-5 shrink-0", "aria-hidden": "true" }),
|
|
@@ -5231,18 +5346,18 @@ function MosaicMainNav({
|
|
|
5231
5346
|
"nav",
|
|
5232
5347
|
{
|
|
5233
5348
|
"data-slot": "main-nav",
|
|
5234
|
-
className:
|
|
5349
|
+
className: cn51("flex items-center gap-1", className),
|
|
5235
5350
|
"aria-label": mainNavAriaLabel,
|
|
5236
5351
|
children: filteredItems.map((item) => {
|
|
5237
5352
|
const Icon = item.icon;
|
|
5238
5353
|
const active = isItemActive(item);
|
|
5239
|
-
const itemClass =
|
|
5354
|
+
const itemClass = cn51(
|
|
5240
5355
|
"flex items-center gap-2 rounded-lg px-3 py-2 text-sm font-medium transition-colors",
|
|
5241
5356
|
"hover:bg-accent hover:text-accent-foreground",
|
|
5242
5357
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
5243
5358
|
active && "bg-accent text-accent-foreground"
|
|
5244
5359
|
);
|
|
5245
|
-
return /* @__PURE__ */ jsx(
|
|
5360
|
+
return /* @__PURE__ */ jsx(React29.Fragment, { children: linkRenderer(
|
|
5246
5361
|
item,
|
|
5247
5362
|
/* @__PURE__ */ jsxs(Fragment, { children: [
|
|
5248
5363
|
Icon && /* @__PURE__ */ jsx(Icon, { className: "h-4 w-4", "aria-hidden": "true" }),
|
|
@@ -5256,7 +5371,7 @@ function MosaicMainNav({
|
|
|
5256
5371
|
);
|
|
5257
5372
|
}
|
|
5258
5373
|
MosaicMainNav.displayName = "MosaicMainNav";
|
|
5259
|
-
function
|
|
5374
|
+
function cn52(...classes) {
|
|
5260
5375
|
return classes.filter(Boolean).join(" ");
|
|
5261
5376
|
}
|
|
5262
5377
|
function MoreVertIcon() {
|
|
@@ -5379,10 +5494,10 @@ function MosaicAgentCard({
|
|
|
5379
5494
|
createdLabel,
|
|
5380
5495
|
className
|
|
5381
5496
|
}) {
|
|
5382
|
-
const [menuOpen, setMenuOpen] =
|
|
5383
|
-
const menuRef =
|
|
5497
|
+
const [menuOpen, setMenuOpen] = React29.useState(false);
|
|
5498
|
+
const menuRef = React29.useRef(null);
|
|
5384
5499
|
const formattedDate = agent.createdAt ? new Date(agent.createdAt).toLocaleDateString() : void 0;
|
|
5385
|
-
|
|
5500
|
+
React29.useEffect(() => {
|
|
5386
5501
|
if (!menuOpen) return;
|
|
5387
5502
|
const handler = (e) => {
|
|
5388
5503
|
if (menuRef.current && !menuRef.current.contains(e.target)) {
|
|
@@ -5396,7 +5511,7 @@ function MosaicAgentCard({
|
|
|
5396
5511
|
"div",
|
|
5397
5512
|
{
|
|
5398
5513
|
"data-slot": "agent-card",
|
|
5399
|
-
className:
|
|
5514
|
+
className: cn52(
|
|
5400
5515
|
"relative overflow-hidden rounded-lg border border-border bg-card text-card-foreground shadow-sm",
|
|
5401
5516
|
"transition-shadow hover:shadow-md",
|
|
5402
5517
|
agent.isActive && "ring-2 ring-primary",
|
|
@@ -5406,7 +5521,7 @@ function MosaicAgentCard({
|
|
|
5406
5521
|
/* @__PURE__ */ jsx(
|
|
5407
5522
|
"div",
|
|
5408
5523
|
{
|
|
5409
|
-
className:
|
|
5524
|
+
className: cn52(
|
|
5410
5525
|
"absolute left-0 top-0 h-1 w-full",
|
|
5411
5526
|
agent.isActive ? "bg-primary" : "bg-muted"
|
|
5412
5527
|
)
|
|
@@ -5418,7 +5533,7 @@ function MosaicAgentCard({
|
|
|
5418
5533
|
agent.accentColor && /* @__PURE__ */ jsx(
|
|
5419
5534
|
"span",
|
|
5420
5535
|
{
|
|
5421
|
-
className:
|
|
5536
|
+
className: cn52("h-3 w-3 shrink-0 rounded-full", agent.accentColor),
|
|
5422
5537
|
"aria-hidden": "true"
|
|
5423
5538
|
}
|
|
5424
5539
|
),
|
|
@@ -5436,7 +5551,7 @@ function MosaicAgentCard({
|
|
|
5436
5551
|
{
|
|
5437
5552
|
type: "button",
|
|
5438
5553
|
onClick: () => setMenuOpen((v) => !v),
|
|
5439
|
-
className:
|
|
5554
|
+
className: cn52(
|
|
5440
5555
|
"inline-flex h-8 w-8 items-center justify-center rounded-md",
|
|
5441
5556
|
"text-muted-foreground hover:bg-accent hover:text-accent-foreground",
|
|
5442
5557
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -5451,7 +5566,7 @@ function MosaicAgentCard({
|
|
|
5451
5566
|
"div",
|
|
5452
5567
|
{
|
|
5453
5568
|
role: "menu",
|
|
5454
|
-
className:
|
|
5569
|
+
className: cn52(
|
|
5455
5570
|
"absolute right-0 top-full z-50 mt-1 min-w-[140px] rounded-md border border-border",
|
|
5456
5571
|
"bg-popover py-1 shadow-md"
|
|
5457
5572
|
),
|
|
@@ -5466,7 +5581,7 @@ function MosaicAgentCard({
|
|
|
5466
5581
|
onToggleStatus(agent.id);
|
|
5467
5582
|
setMenuOpen(false);
|
|
5468
5583
|
},
|
|
5469
|
-
className:
|
|
5584
|
+
className: cn52(
|
|
5470
5585
|
"flex w-full items-center gap-2 px-3 py-2 text-sm text-foreground",
|
|
5471
5586
|
"hover:bg-accent hover:text-accent-foreground",
|
|
5472
5587
|
"disabled:pointer-events-none disabled:opacity-50"
|
|
@@ -5525,7 +5640,7 @@ function MosaicAgentCard({
|
|
|
5525
5640
|
type: "button",
|
|
5526
5641
|
disabled: isLoading,
|
|
5527
5642
|
onClick: () => onToggleStatus(agent.id),
|
|
5528
|
-
className:
|
|
5643
|
+
className: cn52(
|
|
5529
5644
|
"inline-flex h-7 items-center justify-center rounded-md px-3 text-xs font-medium",
|
|
5530
5645
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
5531
5646
|
"disabled:pointer-events-none disabled:opacity-50",
|
|
@@ -5541,7 +5656,7 @@ function MosaicAgentCard({
|
|
|
5541
5656
|
);
|
|
5542
5657
|
}
|
|
5543
5658
|
MosaicAgentCard.displayName = "MosaicAgentCard";
|
|
5544
|
-
function
|
|
5659
|
+
function cn53(...classes) {
|
|
5545
5660
|
return classes.filter(Boolean).join(" ");
|
|
5546
5661
|
}
|
|
5547
5662
|
function PlusIcon3() {
|
|
@@ -5624,7 +5739,7 @@ function PickerContent({
|
|
|
5624
5739
|
{
|
|
5625
5740
|
type: "button",
|
|
5626
5741
|
onClick: () => onAdd(agent.id),
|
|
5627
|
-
className:
|
|
5742
|
+
className: cn53(
|
|
5628
5743
|
"flex w-full items-center gap-3 rounded-lg px-3 py-2.5 text-sm",
|
|
5629
5744
|
"hover:bg-accent hover:text-accent-foreground",
|
|
5630
5745
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -5633,7 +5748,7 @@ function PickerContent({
|
|
|
5633
5748
|
agent.accentColor && /* @__PURE__ */ jsx(
|
|
5634
5749
|
"span",
|
|
5635
5750
|
{
|
|
5636
|
-
className:
|
|
5751
|
+
className: cn53("h-3 w-3 shrink-0 rounded-full", agent.accentColor),
|
|
5637
5752
|
"aria-hidden": "true"
|
|
5638
5753
|
}
|
|
5639
5754
|
),
|
|
@@ -5650,7 +5765,7 @@ function PickerContent({
|
|
|
5650
5765
|
{
|
|
5651
5766
|
type: "button",
|
|
5652
5767
|
onClick: onOpenBuilder,
|
|
5653
|
-
className:
|
|
5768
|
+
className: cn53(
|
|
5654
5769
|
"flex w-full items-center gap-3 rounded-lg px-3 py-2.5 text-sm",
|
|
5655
5770
|
"hover:bg-accent hover:text-accent-foreground",
|
|
5656
5771
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -5685,9 +5800,9 @@ function MosaicQuickAgentSelector({
|
|
|
5685
5800
|
className
|
|
5686
5801
|
}) {
|
|
5687
5802
|
const { isMobile } = useDevice();
|
|
5688
|
-
const [pickerOpen, setPickerOpen] =
|
|
5689
|
-
const dropdownRef =
|
|
5690
|
-
|
|
5803
|
+
const [pickerOpen, setPickerOpen] = React29.useState(false);
|
|
5804
|
+
const dropdownRef = React29.useRef(null);
|
|
5805
|
+
React29.useEffect(() => {
|
|
5691
5806
|
if (!pickerOpen || isMobile) return;
|
|
5692
5807
|
const handler = (e) => {
|
|
5693
5808
|
if (dropdownRef.current && !dropdownRef.current.contains(e.target)) {
|
|
@@ -5705,11 +5820,11 @@ function MosaicQuickAgentSelector({
|
|
|
5705
5820
|
setPickerOpen(false);
|
|
5706
5821
|
};
|
|
5707
5822
|
const canAdd = selectedAgents.length < maxAgents;
|
|
5708
|
-
return /* @__PURE__ */ jsxs("div", { "data-slot": "quick-agent-selector", className:
|
|
5823
|
+
return /* @__PURE__ */ jsxs("div", { "data-slot": "quick-agent-selector", className: cn53("flex items-center gap-2", className), children: [
|
|
5709
5824
|
/* @__PURE__ */ jsx("div", { className: "flex items-center gap-2 overflow-x-auto", children: selectedAgents.map((agent) => /* @__PURE__ */ jsxs(
|
|
5710
5825
|
"div",
|
|
5711
5826
|
{
|
|
5712
|
-
className:
|
|
5827
|
+
className: cn53(
|
|
5713
5828
|
"group flex shrink-0 items-center gap-2 rounded-md border border-border bg-card",
|
|
5714
5829
|
isMobile ? "px-2 py-1" : "px-3 py-1.5"
|
|
5715
5830
|
),
|
|
@@ -5717,17 +5832,17 @@ function MosaicQuickAgentSelector({
|
|
|
5717
5832
|
agent.accentColor && /* @__PURE__ */ jsx(
|
|
5718
5833
|
"span",
|
|
5719
5834
|
{
|
|
5720
|
-
className:
|
|
5835
|
+
className: cn53("h-2 w-2 shrink-0 rounded-full", agent.accentColor),
|
|
5721
5836
|
"aria-hidden": "true"
|
|
5722
5837
|
}
|
|
5723
5838
|
),
|
|
5724
|
-
/* @__PURE__ */ jsx("span", { className:
|
|
5839
|
+
/* @__PURE__ */ jsx("span", { className: cn53("whitespace-nowrap font-medium", isMobile ? "text-xs" : "text-sm"), children: isMobile ? agent.type.split("-")[0] : agent.name }),
|
|
5725
5840
|
/* @__PURE__ */ jsx(
|
|
5726
5841
|
"button",
|
|
5727
5842
|
{
|
|
5728
5843
|
type: "button",
|
|
5729
5844
|
onClick: () => onRemoveAgent(agent.id),
|
|
5730
|
-
className:
|
|
5845
|
+
className: cn53(
|
|
5731
5846
|
"inline-flex h-4 w-4 items-center justify-center rounded",
|
|
5732
5847
|
"text-muted-foreground hover:text-foreground",
|
|
5733
5848
|
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
@@ -5747,7 +5862,7 @@ function MosaicQuickAgentSelector({
|
|
|
5747
5862
|
{
|
|
5748
5863
|
type: "button",
|
|
5749
5864
|
onClick: () => setPickerOpen((v) => !v),
|
|
5750
|
-
className:
|
|
5865
|
+
className: cn53(
|
|
5751
5866
|
"inline-flex items-center justify-center gap-2 rounded-md border border-border bg-background",
|
|
5752
5867
|
"px-3 py-1.5 text-sm font-medium text-foreground",
|
|
5753
5868
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -5762,7 +5877,7 @@ function MosaicQuickAgentSelector({
|
|
|
5762
5877
|
!isMobile && pickerOpen && /* @__PURE__ */ jsx(
|
|
5763
5878
|
"div",
|
|
5764
5879
|
{
|
|
5765
|
-
className:
|
|
5880
|
+
className: cn53(
|
|
5766
5881
|
"absolute left-0 top-full z-50 mt-2 w-72 rounded-lg border border-border",
|
|
5767
5882
|
"bg-popover shadow-lg"
|
|
5768
5883
|
),
|
|
@@ -5811,7 +5926,7 @@ function MosaicQuickAgentSelector({
|
|
|
5811
5926
|
/* @__PURE__ */ jsxs(
|
|
5812
5927
|
"span",
|
|
5813
5928
|
{
|
|
5814
|
-
className:
|
|
5929
|
+
className: cn53(
|
|
5815
5930
|
"shrink-0 rounded-md bg-secondary px-2 py-0.5 text-xs font-medium text-secondary-foreground"
|
|
5816
5931
|
),
|
|
5817
5932
|
children: [
|
|
@@ -5889,7 +6004,7 @@ var memoryActionsMenuTriggerVariants = cva(
|
|
|
5889
6004
|
}
|
|
5890
6005
|
}
|
|
5891
6006
|
);
|
|
5892
|
-
function
|
|
6007
|
+
function cn54(...classes) {
|
|
5893
6008
|
return classes.filter(Boolean).join(" ");
|
|
5894
6009
|
}
|
|
5895
6010
|
var MAX_VISIBLE_TAGS = 3;
|
|
@@ -6043,10 +6158,10 @@ function MosaicMemoryCard(props) {
|
|
|
6043
6158
|
ref
|
|
6044
6159
|
} = props;
|
|
6045
6160
|
const variant = props.variant ?? "detailed";
|
|
6046
|
-
const [menuOpen, setMenuOpen] =
|
|
6047
|
-
const menuRef =
|
|
6161
|
+
const [menuOpen, setMenuOpen] = React29.useState(false);
|
|
6162
|
+
const menuRef = React29.useRef(null);
|
|
6048
6163
|
const SourceIcon = SOURCE_ICONS[memory.source];
|
|
6049
|
-
|
|
6164
|
+
React29.useEffect(() => {
|
|
6050
6165
|
if (!menuOpen) return;
|
|
6051
6166
|
const handler = (event) => {
|
|
6052
6167
|
if (menuRef.current && !menuRef.current.contains(event.target)) {
|
|
@@ -6067,7 +6182,7 @@ function MosaicMemoryCard(props) {
|
|
|
6067
6182
|
"aria-label": moreActionsLabel,
|
|
6068
6183
|
"aria-haspopup": "menu",
|
|
6069
6184
|
"aria-expanded": menuOpen,
|
|
6070
|
-
className:
|
|
6185
|
+
className: cn54(memoryActionsMenuTriggerVariants({ variant })),
|
|
6071
6186
|
children: /* @__PURE__ */ jsx(MoreVertIcon2, {})
|
|
6072
6187
|
}
|
|
6073
6188
|
),
|
|
@@ -6075,7 +6190,7 @@ function MosaicMemoryCard(props) {
|
|
|
6075
6190
|
"div",
|
|
6076
6191
|
{
|
|
6077
6192
|
role: "menu",
|
|
6078
|
-
className:
|
|
6193
|
+
className: cn54(
|
|
6079
6194
|
"absolute right-0 top-full z-50 mt-1 min-w-[140px] rounded-md border border-border",
|
|
6080
6195
|
"bg-popover py-1 shadow-md"
|
|
6081
6196
|
),
|
|
@@ -6116,7 +6231,7 @@ function MosaicMemoryCard(props) {
|
|
|
6116
6231
|
ref,
|
|
6117
6232
|
"data-slot": "memory-card",
|
|
6118
6233
|
"data-variant": variant,
|
|
6119
|
-
className:
|
|
6234
|
+
className: cn54(memoryCardVariants({ variant }), className),
|
|
6120
6235
|
children: props.variant !== "compact" ? /* @__PURE__ */ jsxs("div", { className: "space-y-3", children: [
|
|
6121
6236
|
/* @__PURE__ */ jsxs("div", { className: "flex items-start justify-between gap-3", children: [
|
|
6122
6237
|
/* @__PURE__ */ jsxs("div", { className: "flex min-w-0 flex-1 items-start gap-3", children: [
|
|
@@ -6126,7 +6241,7 @@ function MosaicMemoryCard(props) {
|
|
|
6126
6241
|
/* @__PURE__ */ jsx(
|
|
6127
6242
|
"span",
|
|
6128
6243
|
{
|
|
6129
|
-
className:
|
|
6244
|
+
className: cn54(
|
|
6130
6245
|
memoryScopeBadgeVariants({ scope: memory.scope, bordered: true }),
|
|
6131
6246
|
"mt-1"
|
|
6132
6247
|
),
|
|
@@ -6139,8 +6254,8 @@ function MosaicMemoryCard(props) {
|
|
|
6139
6254
|
] }),
|
|
6140
6255
|
/* @__PURE__ */ jsx("p", { className: "line-clamp-3 text-sm text-muted-foreground", children: memory.content }),
|
|
6141
6256
|
/* @__PURE__ */ jsxs("div", { "data-slot": "memory-tags", className: "flex flex-wrap gap-1", children: [
|
|
6142
|
-
visibleTags.map((tag) => /* @__PURE__ */ jsx("span", { className:
|
|
6143
|
-
hiddenTagCount > 0 && /* @__PURE__ */ jsx("span", { className:
|
|
6257
|
+
visibleTags.map((tag) => /* @__PURE__ */ jsx("span", { className: cn54(memoryTagBadgeVariants()), children: tag }, tag)),
|
|
6258
|
+
hiddenTagCount > 0 && /* @__PURE__ */ jsx("span", { className: cn54(memoryTagBadgeVariants()), children: props.formatMoreTags(hiddenTagCount) })
|
|
6144
6259
|
] }),
|
|
6145
6260
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between border-t pt-2 text-xs text-muted-foreground", children: [
|
|
6146
6261
|
/* @__PURE__ */ jsxs("span", { className: "flex items-center gap-1", children: [
|
|
@@ -6168,7 +6283,7 @@ function MosaicMemoryCard(props) {
|
|
|
6168
6283
|
/* @__PURE__ */ jsx(
|
|
6169
6284
|
"span",
|
|
6170
6285
|
{
|
|
6171
|
-
className:
|
|
6286
|
+
className: cn54(memoryScopeBadgeVariants({ scope: memory.scope, bordered: false })),
|
|
6172
6287
|
children: formatScope(memory.scope)
|
|
6173
6288
|
}
|
|
6174
6289
|
),
|
|
@@ -6187,7 +6302,169 @@ function MosaicMemoryCard(props) {
|
|
|
6187
6302
|
);
|
|
6188
6303
|
}
|
|
6189
6304
|
MosaicMemoryCard.displayName = "MosaicMemoryCard";
|
|
6190
|
-
|
|
6305
|
+
var templateAgentCardVariants = cva(
|
|
6306
|
+
[
|
|
6307
|
+
"rounded-lg border border-border bg-card text-card-foreground shadow-sm",
|
|
6308
|
+
"transition-all hover:border-primary/50"
|
|
6309
|
+
],
|
|
6310
|
+
{
|
|
6311
|
+
variants: {
|
|
6312
|
+
selected: {
|
|
6313
|
+
true: "ring-2 ring-primary border-primary bg-primary/5",
|
|
6314
|
+
false: ""
|
|
6315
|
+
}
|
|
6316
|
+
},
|
|
6317
|
+
defaultVariants: {
|
|
6318
|
+
selected: false
|
|
6319
|
+
}
|
|
6320
|
+
}
|
|
6321
|
+
);
|
|
6322
|
+
var templateAgentCardBadgeVariants = cva([
|
|
6323
|
+
"inline-flex items-center rounded-md border border-border px-2 py-0.5 text-xs font-medium"
|
|
6324
|
+
]);
|
|
6325
|
+
var templateAgentCardTagVariants = cva([
|
|
6326
|
+
"inline-flex items-center rounded-full border border-border bg-muted px-2 py-0.5 text-xs text-muted-foreground"
|
|
6327
|
+
]);
|
|
6328
|
+
function cn55(...classes) {
|
|
6329
|
+
return classes.filter(Boolean).join(" ");
|
|
6330
|
+
}
|
|
6331
|
+
var MAX_VISIBLE_TAGS2 = 3;
|
|
6332
|
+
function EyeIcon() {
|
|
6333
|
+
return /* @__PURE__ */ jsxs(
|
|
6334
|
+
"svg",
|
|
6335
|
+
{
|
|
6336
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
6337
|
+
width: "14",
|
|
6338
|
+
height: "14",
|
|
6339
|
+
viewBox: "0 0 24 24",
|
|
6340
|
+
fill: "none",
|
|
6341
|
+
stroke: "currentColor",
|
|
6342
|
+
strokeWidth: "2",
|
|
6343
|
+
strokeLinecap: "round",
|
|
6344
|
+
strokeLinejoin: "round",
|
|
6345
|
+
"aria-hidden": "true",
|
|
6346
|
+
children: [
|
|
6347
|
+
/* @__PURE__ */ jsx("path", { d: "M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z" }),
|
|
6348
|
+
/* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "3" })
|
|
6349
|
+
]
|
|
6350
|
+
}
|
|
6351
|
+
);
|
|
6352
|
+
}
|
|
6353
|
+
function CopyIcon() {
|
|
6354
|
+
return /* @__PURE__ */ jsxs(
|
|
6355
|
+
"svg",
|
|
6356
|
+
{
|
|
6357
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
6358
|
+
width: "14",
|
|
6359
|
+
height: "14",
|
|
6360
|
+
viewBox: "0 0 24 24",
|
|
6361
|
+
fill: "none",
|
|
6362
|
+
stroke: "currentColor",
|
|
6363
|
+
strokeWidth: "2",
|
|
6364
|
+
strokeLinecap: "round",
|
|
6365
|
+
strokeLinejoin: "round",
|
|
6366
|
+
"aria-hidden": "true",
|
|
6367
|
+
children: [
|
|
6368
|
+
/* @__PURE__ */ jsx("rect", { x: "9", y: "9", width: "13", height: "13", rx: "2", ry: "2" }),
|
|
6369
|
+
/* @__PURE__ */ jsx("path", { d: "M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1" })
|
|
6370
|
+
]
|
|
6371
|
+
}
|
|
6372
|
+
);
|
|
6373
|
+
}
|
|
6374
|
+
function MosaicTemplateAgentCard({
|
|
6375
|
+
template,
|
|
6376
|
+
isSelected = false,
|
|
6377
|
+
onSelect,
|
|
6378
|
+
onPreview,
|
|
6379
|
+
onDuplicate,
|
|
6380
|
+
icon,
|
|
6381
|
+
selectAriaLabel,
|
|
6382
|
+
agentCountLabel,
|
|
6383
|
+
formatUsageCount,
|
|
6384
|
+
formatMoreTags,
|
|
6385
|
+
previewAriaLabel,
|
|
6386
|
+
duplicateAriaLabel,
|
|
6387
|
+
className,
|
|
6388
|
+
ref
|
|
6389
|
+
}) {
|
|
6390
|
+
const visibleTags = template.tags?.slice(0, MAX_VISIBLE_TAGS2) ?? [];
|
|
6391
|
+
const hiddenTagCount = (template.tags?.length ?? 0) - visibleTags.length;
|
|
6392
|
+
return /* @__PURE__ */ jsxs(
|
|
6393
|
+
"div",
|
|
6394
|
+
{
|
|
6395
|
+
ref,
|
|
6396
|
+
"data-slot": "template-agent-card",
|
|
6397
|
+
className: cn55(templateAgentCardVariants({ selected: isSelected }), "p-4", className),
|
|
6398
|
+
children: [
|
|
6399
|
+
/* @__PURE__ */ jsx("div", { className: "flex items-start justify-between gap-2", children: /* @__PURE__ */ jsxs(
|
|
6400
|
+
"button",
|
|
6401
|
+
{
|
|
6402
|
+
type: "button",
|
|
6403
|
+
onClick: () => onSelect(template),
|
|
6404
|
+
"aria-label": selectAriaLabel,
|
|
6405
|
+
"aria-pressed": isSelected,
|
|
6406
|
+
className: cn55(
|
|
6407
|
+
"flex min-w-0 flex-1 items-start gap-2 rounded-md text-left",
|
|
6408
|
+
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
6409
|
+
),
|
|
6410
|
+
children: [
|
|
6411
|
+
icon && /* @__PURE__ */ jsx("span", { className: "mt-0.5 shrink-0 text-primary", "aria-hidden": "true", children: icon }),
|
|
6412
|
+
/* @__PURE__ */ jsxs("span", { className: "min-w-0", children: [
|
|
6413
|
+
/* @__PURE__ */ jsx("span", { className: "block truncate text-sm font-semibold leading-tight", children: template.name }),
|
|
6414
|
+
/* @__PURE__ */ jsx("span", { className: "mt-1 block line-clamp-2 text-xs text-muted-foreground", children: template.description })
|
|
6415
|
+
] })
|
|
6416
|
+
]
|
|
6417
|
+
}
|
|
6418
|
+
) }),
|
|
6419
|
+
/* @__PURE__ */ jsxs("div", { className: "mt-3 flex flex-wrap items-center gap-2", children: [
|
|
6420
|
+
template.category && /* @__PURE__ */ jsx("span", { className: cn55(templateAgentCardBadgeVariants()), children: template.category }),
|
|
6421
|
+
/* @__PURE__ */ jsx("span", { className: cn55(templateAgentCardBadgeVariants()), children: agentCountLabel }),
|
|
6422
|
+
formatUsageCount(template.usageCount) != null && /* @__PURE__ */ jsx("span", { className: cn55(templateAgentCardBadgeVariants()), children: formatUsageCount(template.usageCount) }),
|
|
6423
|
+
visibleTags.map((tag) => /* @__PURE__ */ jsx("span", { className: cn55(templateAgentCardTagVariants()), children: tag }, tag)),
|
|
6424
|
+
hiddenTagCount > 0 && /* @__PURE__ */ jsx("span", { className: cn55(templateAgentCardTagVariants()), children: formatMoreTags(hiddenTagCount) })
|
|
6425
|
+
] }),
|
|
6426
|
+
(onPreview || onDuplicate) && /* @__PURE__ */ jsxs("div", { className: "mt-3 flex items-center gap-2 border-t border-border pt-2", children: [
|
|
6427
|
+
onPreview && /* @__PURE__ */ jsxs(
|
|
6428
|
+
"button",
|
|
6429
|
+
{
|
|
6430
|
+
type: "button",
|
|
6431
|
+
onClick: () => onPreview(template),
|
|
6432
|
+
"aria-label": previewAriaLabel,
|
|
6433
|
+
className: cn55(
|
|
6434
|
+
"inline-flex h-8 flex-1 items-center justify-center gap-1.5 rounded-md text-xs font-medium",
|
|
6435
|
+
"text-muted-foreground hover:bg-accent hover:text-accent-foreground",
|
|
6436
|
+
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
6437
|
+
),
|
|
6438
|
+
children: [
|
|
6439
|
+
/* @__PURE__ */ jsx(EyeIcon, {}),
|
|
6440
|
+
previewAriaLabel
|
|
6441
|
+
]
|
|
6442
|
+
}
|
|
6443
|
+
),
|
|
6444
|
+
onDuplicate && /* @__PURE__ */ jsxs(
|
|
6445
|
+
"button",
|
|
6446
|
+
{
|
|
6447
|
+
type: "button",
|
|
6448
|
+
onClick: () => onDuplicate(template),
|
|
6449
|
+
"aria-label": duplicateAriaLabel,
|
|
6450
|
+
className: cn55(
|
|
6451
|
+
"inline-flex h-8 flex-1 items-center justify-center gap-1.5 rounded-md text-xs font-medium",
|
|
6452
|
+
"text-muted-foreground hover:bg-accent hover:text-accent-foreground",
|
|
6453
|
+
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
6454
|
+
),
|
|
6455
|
+
children: [
|
|
6456
|
+
/* @__PURE__ */ jsx(CopyIcon, {}),
|
|
6457
|
+
duplicateAriaLabel
|
|
6458
|
+
]
|
|
6459
|
+
}
|
|
6460
|
+
)
|
|
6461
|
+
] })
|
|
6462
|
+
]
|
|
6463
|
+
}
|
|
6464
|
+
);
|
|
6465
|
+
}
|
|
6466
|
+
MosaicTemplateAgentCard.displayName = "MosaicTemplateAgentCard";
|
|
6467
|
+
function cn56(...classes) {
|
|
6191
6468
|
return classes.filter(Boolean).join(" ");
|
|
6192
6469
|
}
|
|
6193
6470
|
function SearchIcon() {
|
|
@@ -6247,10 +6524,10 @@ function MosaicSelectorModal({
|
|
|
6247
6524
|
emptyMessage,
|
|
6248
6525
|
closeAriaLabel
|
|
6249
6526
|
}) {
|
|
6250
|
-
const [query, setQuery] =
|
|
6251
|
-
const [activeCategory, setActiveCategory] =
|
|
6252
|
-
const [pendingId, setPendingId] =
|
|
6253
|
-
|
|
6527
|
+
const [query, setQuery] = React29.useState("");
|
|
6528
|
+
const [activeCategory, setActiveCategory] = React29.useState("all");
|
|
6529
|
+
const [pendingId, setPendingId] = React29.useState(selectedId);
|
|
6530
|
+
React29.useEffect(() => {
|
|
6254
6531
|
if (isOpen) {
|
|
6255
6532
|
setPendingId(selectedId);
|
|
6256
6533
|
setQuery("");
|
|
@@ -6288,7 +6565,7 @@ function MosaicSelectorModal({
|
|
|
6288
6565
|
value: query,
|
|
6289
6566
|
onChange: (e) => setQuery(e.target.value),
|
|
6290
6567
|
placeholder: searchPlaceholder,
|
|
6291
|
-
className:
|
|
6568
|
+
className: cn56(
|
|
6292
6569
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
6293
6570
|
"text-sm text-foreground placeholder:text-muted-foreground",
|
|
6294
6571
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -6302,7 +6579,7 @@ function MosaicSelectorModal({
|
|
|
6302
6579
|
{
|
|
6303
6580
|
type: "button",
|
|
6304
6581
|
onClick: () => setActiveCategory("all"),
|
|
6305
|
-
className:
|
|
6582
|
+
className: cn56(
|
|
6306
6583
|
"shrink-0 rounded-md px-3 py-1.5 text-sm font-medium transition-colors",
|
|
6307
6584
|
activeCategory === "all" ? "bg-primary text-primary-foreground" : "bg-muted text-muted-foreground hover:bg-accent hover:text-accent-foreground"
|
|
6308
6585
|
),
|
|
@@ -6314,7 +6591,7 @@ function MosaicSelectorModal({
|
|
|
6314
6591
|
{
|
|
6315
6592
|
type: "button",
|
|
6316
6593
|
onClick: () => setActiveCategory(cat.id),
|
|
6317
|
-
className:
|
|
6594
|
+
className: cn56(
|
|
6318
6595
|
"shrink-0 rounded-md px-3 py-1.5 text-sm font-medium transition-colors",
|
|
6319
6596
|
activeCategory === cat.id ? "bg-primary text-primary-foreground" : "bg-muted text-muted-foreground hover:bg-accent hover:text-accent-foreground"
|
|
6320
6597
|
),
|
|
@@ -6326,7 +6603,7 @@ function MosaicSelectorModal({
|
|
|
6326
6603
|
/* @__PURE__ */ jsxs(
|
|
6327
6604
|
"div",
|
|
6328
6605
|
{
|
|
6329
|
-
className:
|
|
6606
|
+
className: cn56(
|
|
6330
6607
|
"max-h-[50vh] overflow-y-auto",
|
|
6331
6608
|
columns === 2 ? "grid grid-cols-1 gap-3 sm:grid-cols-2" : "flex flex-col gap-3"
|
|
6332
6609
|
),
|
|
@@ -6338,7 +6615,7 @@ function MosaicSelectorModal({
|
|
|
6338
6615
|
{
|
|
6339
6616
|
type: "button",
|
|
6340
6617
|
onClick: () => setPendingId(item.id),
|
|
6341
|
-
className:
|
|
6618
|
+
className: cn56(
|
|
6342
6619
|
"group relative rounded-lg border p-4 text-left transition-all duration-150",
|
|
6343
6620
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
6344
6621
|
isSelected ? "border-primary bg-primary/5 ring-2 ring-primary" : "border-border bg-card hover:border-primary/50"
|
|
@@ -6376,7 +6653,7 @@ function MosaicSelectorModal({
|
|
|
6376
6653
|
{
|
|
6377
6654
|
type: "button",
|
|
6378
6655
|
onClick: onClose,
|
|
6379
|
-
className:
|
|
6656
|
+
className: cn56(
|
|
6380
6657
|
"inline-flex min-h-[44px] items-center justify-center rounded-md border border-border",
|
|
6381
6658
|
"bg-background px-4 py-2 text-sm font-medium text-foreground",
|
|
6382
6659
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -6391,7 +6668,7 @@ function MosaicSelectorModal({
|
|
|
6391
6668
|
type: "button",
|
|
6392
6669
|
onClick: handleConfirm,
|
|
6393
6670
|
disabled: !pendingItem,
|
|
6394
|
-
className:
|
|
6671
|
+
className: cn56(
|
|
6395
6672
|
"inline-flex min-h-[44px] items-center justify-center rounded-md",
|
|
6396
6673
|
"bg-primary px-4 py-2 text-sm font-medium text-primary-foreground",
|
|
6397
6674
|
"hover:bg-primary/90",
|
|
@@ -6407,7 +6684,7 @@ function MosaicSelectorModal({
|
|
|
6407
6684
|
);
|
|
6408
6685
|
}
|
|
6409
6686
|
MosaicSelectorModal.displayName = "MosaicSelectorModal";
|
|
6410
|
-
function
|
|
6687
|
+
function cn57(...classes) {
|
|
6411
6688
|
return classes.filter(Boolean).join(" ");
|
|
6412
6689
|
}
|
|
6413
6690
|
function relativeTime(ts) {
|
|
@@ -6607,13 +6884,13 @@ function MosaicMessageCard({
|
|
|
6607
6884
|
copyMessageLabel,
|
|
6608
6885
|
className
|
|
6609
6886
|
}) {
|
|
6610
|
-
const [bookmarked, setBookmarked] =
|
|
6611
|
-
const [likes, setLikes] =
|
|
6612
|
-
const [dislikes, setDislikes] =
|
|
6613
|
-
const [hasLiked, setHasLiked] =
|
|
6614
|
-
const [hasDisliked, setHasDisliked] =
|
|
6615
|
-
const [menuOpen, setMenuOpen] =
|
|
6616
|
-
const menuRef =
|
|
6887
|
+
const [bookmarked, setBookmarked] = React29.useState(message.bookmarked ?? false);
|
|
6888
|
+
const [likes, setLikes] = React29.useState(message.reactions?.likes ?? 0);
|
|
6889
|
+
const [dislikes, setDislikes] = React29.useState(message.reactions?.dislikes ?? 0);
|
|
6890
|
+
const [hasLiked, setHasLiked] = React29.useState(false);
|
|
6891
|
+
const [hasDisliked, setHasDisliked] = React29.useState(false);
|
|
6892
|
+
const [menuOpen, setMenuOpen] = React29.useState(false);
|
|
6893
|
+
const menuRef = React29.useRef(null);
|
|
6617
6894
|
const initials = message.sender.name.split(" ").map((n) => n[0]).filter(Boolean).slice(0, 2).join("").toUpperCase();
|
|
6618
6895
|
const handleLike = () => {
|
|
6619
6896
|
if (hasLiked) {
|
|
@@ -6651,7 +6928,7 @@ function MosaicMessageCard({
|
|
|
6651
6928
|
navigator.clipboard.writeText(message.content).catch(() => null);
|
|
6652
6929
|
onCopy?.(message.id, message.content);
|
|
6653
6930
|
};
|
|
6654
|
-
|
|
6931
|
+
React29.useEffect(() => {
|
|
6655
6932
|
if (!menuOpen) return;
|
|
6656
6933
|
const h = (e) => {
|
|
6657
6934
|
if (menuRef.current && !menuRef.current.contains(e.target)) setMenuOpen(false);
|
|
@@ -6663,7 +6940,7 @@ function MosaicMessageCard({
|
|
|
6663
6940
|
"div",
|
|
6664
6941
|
{
|
|
6665
6942
|
"data-slot": "message-card",
|
|
6666
|
-
className:
|
|
6943
|
+
className: cn57(
|
|
6667
6944
|
"rounded-lg border border-border bg-card p-4 shadow-sm transition-shadow hover:shadow-md",
|
|
6668
6945
|
compact && "p-3",
|
|
6669
6946
|
message.sender.type === "user" && "bg-primary/5",
|
|
@@ -6673,7 +6950,7 @@ function MosaicMessageCard({
|
|
|
6673
6950
|
/* @__PURE__ */ jsx(
|
|
6674
6951
|
"span",
|
|
6675
6952
|
{
|
|
6676
|
-
className:
|
|
6953
|
+
className: cn57(
|
|
6677
6954
|
"inline-flex shrink-0 items-center justify-center rounded-full text-white font-semibold",
|
|
6678
6955
|
compact ? "h-8 w-8 text-xs" : "h-10 w-10 text-sm",
|
|
6679
6956
|
message.sender.accentColor ?? "bg-muted text-muted-foreground"
|
|
@@ -6691,7 +6968,7 @@ function MosaicMessageCard({
|
|
|
6691
6968
|
/* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1", children: [
|
|
6692
6969
|
/* @__PURE__ */ jsxs("div", { className: "mb-2 flex items-center justify-between gap-2", children: [
|
|
6693
6970
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
6694
|
-
/* @__PURE__ */ jsx("span", { className:
|
|
6971
|
+
/* @__PURE__ */ jsx("span", { className: cn57("font-medium", compact ? "text-sm" : "text-base"), children: message.sender.name }),
|
|
6695
6972
|
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" })
|
|
6696
6973
|
] }),
|
|
6697
6974
|
/* @__PURE__ */ jsx("span", { className: "shrink-0 text-xs text-muted-foreground", children: relativeTime(message.timestamp) })
|
|
@@ -6699,7 +6976,7 @@ function MosaicMessageCard({
|
|
|
6699
6976
|
/* @__PURE__ */ jsx(
|
|
6700
6977
|
"p",
|
|
6701
6978
|
{
|
|
6702
|
-
className:
|
|
6979
|
+
className: cn57(
|
|
6703
6980
|
"leading-relaxed text-foreground mb-3",
|
|
6704
6981
|
compact ? "text-sm" : "text-base"
|
|
6705
6982
|
),
|
|
@@ -6714,7 +6991,7 @@ function MosaicMessageCard({
|
|
|
6714
6991
|
{
|
|
6715
6992
|
type: "button",
|
|
6716
6993
|
onClick: handleLike,
|
|
6717
|
-
className:
|
|
6994
|
+
className: cn57(
|
|
6718
6995
|
"inline-flex h-8 items-center gap-1 rounded-md px-2 text-xs",
|
|
6719
6996
|
"hover:bg-accent hover:text-accent-foreground",
|
|
6720
6997
|
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
@@ -6732,7 +7009,7 @@ function MosaicMessageCard({
|
|
|
6732
7009
|
{
|
|
6733
7010
|
type: "button",
|
|
6734
7011
|
onClick: handleDislike,
|
|
6735
|
-
className:
|
|
7012
|
+
className: cn57(
|
|
6736
7013
|
"inline-flex h-8 items-center gap-1 rounded-md px-2 text-xs",
|
|
6737
7014
|
"hover:bg-accent hover:text-accent-foreground",
|
|
6738
7015
|
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
@@ -6777,7 +7054,7 @@ function MosaicMessageCard({
|
|
|
6777
7054
|
{
|
|
6778
7055
|
type: "button",
|
|
6779
7056
|
onClick: handleBookmark,
|
|
6780
|
-
className:
|
|
7057
|
+
className: cn57(
|
|
6781
7058
|
"inline-flex h-8 w-8 items-center justify-center rounded-md",
|
|
6782
7059
|
"hover:bg-accent hover:text-accent-foreground",
|
|
6783
7060
|
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
@@ -6878,7 +7155,7 @@ function MosaicMessageCard({
|
|
|
6878
7155
|
);
|
|
6879
7156
|
}
|
|
6880
7157
|
MosaicMessageCard.displayName = "MosaicMessageCard";
|
|
6881
|
-
function
|
|
7158
|
+
function cn58(...classes) {
|
|
6882
7159
|
return classes.filter(Boolean).join(" ");
|
|
6883
7160
|
}
|
|
6884
7161
|
function SearchIcon2() {
|
|
@@ -6924,11 +7201,11 @@ function MessageListDesktop({
|
|
|
6924
7201
|
copyMessageLabel,
|
|
6925
7202
|
className
|
|
6926
7203
|
}) {
|
|
6927
|
-
const [query, setQuery] =
|
|
7204
|
+
const [query, setQuery] = React29.useState("");
|
|
6928
7205
|
const filtered = query ? messages.filter(
|
|
6929
7206
|
(m) => m.content.toLowerCase().includes(query.toLowerCase()) || m.sender.name.toLowerCase().includes(query.toLowerCase())
|
|
6930
7207
|
) : messages;
|
|
6931
|
-
return /* @__PURE__ */ jsxs("div", { "data-slot": "message-list-desktop", className:
|
|
7208
|
+
return /* @__PURE__ */ jsxs("div", { "data-slot": "message-list-desktop", className: cn58("flex h-full flex-col", className), children: [
|
|
6932
7209
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between border-b border-border px-6 py-4", children: [
|
|
6933
7210
|
title && /* @__PURE__ */ jsx("h2", { className: "text-lg font-semibold", children: title }),
|
|
6934
7211
|
/* @__PURE__ */ jsxs("div", { className: "relative ml-auto max-w-xs flex-1", children: [
|
|
@@ -6940,7 +7217,7 @@ function MessageListDesktop({
|
|
|
6940
7217
|
value: query,
|
|
6941
7218
|
onChange: (e) => setQuery(e.target.value),
|
|
6942
7219
|
placeholder: searchPlaceholder,
|
|
6943
|
-
className:
|
|
7220
|
+
className: cn58(
|
|
6944
7221
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
6945
7222
|
"text-sm placeholder:text-muted-foreground",
|
|
6946
7223
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -6976,7 +7253,7 @@ function MessageListDesktop({
|
|
|
6976
7253
|
{
|
|
6977
7254
|
type: "button",
|
|
6978
7255
|
onClick: onLoadMore,
|
|
6979
|
-
className:
|
|
7256
|
+
className: cn58(
|
|
6980
7257
|
"w-full rounded-md border border-border bg-background px-4 py-2 text-sm font-medium",
|
|
6981
7258
|
"hover:bg-accent hover:text-accent-foreground",
|
|
6982
7259
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -7007,7 +7284,7 @@ function MessageListMobile({
|
|
|
7007
7284
|
copyMessageLabel,
|
|
7008
7285
|
className
|
|
7009
7286
|
}) {
|
|
7010
|
-
return /* @__PURE__ */ jsxs("div", { "data-slot": "message-list-mobile", className:
|
|
7287
|
+
return /* @__PURE__ */ jsxs("div", { "data-slot": "message-list-mobile", className: cn58("flex flex-col", className), children: [
|
|
7011
7288
|
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 }) }),
|
|
7012
7289
|
/* @__PURE__ */ jsxs("div", { className: "space-y-3 p-4", children: [
|
|
7013
7290
|
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)) }),
|
|
@@ -7037,7 +7314,7 @@ function MessageListMobile({
|
|
|
7037
7314
|
{
|
|
7038
7315
|
type: "button",
|
|
7039
7316
|
onClick: onLoadMore,
|
|
7040
|
-
className:
|
|
7317
|
+
className: cn58(
|
|
7041
7318
|
"w-full min-h-[44px] rounded-md border border-border bg-background px-4 py-2 text-sm font-medium",
|
|
7042
7319
|
"hover:bg-accent hover:text-accent-foreground",
|
|
7043
7320
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -7052,7 +7329,7 @@ function MosaicMessageList(props) {
|
|
|
7052
7329
|
return isMobile ? /* @__PURE__ */ jsx(MessageListMobile, { ...props }) : /* @__PURE__ */ jsx(MessageListDesktop, { ...props });
|
|
7053
7330
|
}
|
|
7054
7331
|
MosaicMessageList.displayName = "MosaicMessageList";
|
|
7055
|
-
function
|
|
7332
|
+
function cn59(...classes) {
|
|
7056
7333
|
return classes.filter(Boolean).join(" ");
|
|
7057
7334
|
}
|
|
7058
7335
|
function ChevronLeftIcon2() {
|
|
@@ -7132,7 +7409,7 @@ function MosaicFilterSidebar({
|
|
|
7132
7409
|
{
|
|
7133
7410
|
"data-slot": "filter-sidebar",
|
|
7134
7411
|
style: { width, minWidth: isCollapsed && !isMobile ? "64px" : void 0 },
|
|
7135
|
-
className:
|
|
7412
|
+
className: cn59(
|
|
7136
7413
|
"relative flex flex-col border-r border-border bg-card",
|
|
7137
7414
|
"transition-[width] duration-200 ease-in-out",
|
|
7138
7415
|
"overflow-hidden",
|
|
@@ -7144,7 +7421,7 @@ function MosaicFilterSidebar({
|
|
|
7144
7421
|
{
|
|
7145
7422
|
type: "button",
|
|
7146
7423
|
onClick: onToggleCollapse,
|
|
7147
|
-
className:
|
|
7424
|
+
className: cn59(
|
|
7148
7425
|
"absolute -right-3 top-6 z-10 flex h-6 w-6 items-center justify-center rounded-full",
|
|
7149
7426
|
"border border-border bg-background shadow-sm",
|
|
7150
7427
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -7174,7 +7451,7 @@ function MosaicFilterSidebar({
|
|
|
7174
7451
|
{
|
|
7175
7452
|
type: "button",
|
|
7176
7453
|
onClick: () => onFilterChange(f.id),
|
|
7177
|
-
className:
|
|
7454
|
+
className: cn59(
|
|
7178
7455
|
"flex min-h-[40px] items-center justify-between rounded-md px-3 py-2 text-sm font-medium",
|
|
7179
7456
|
"transition-colors hover:bg-accent hover:text-accent-foreground",
|
|
7180
7457
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -7194,7 +7471,7 @@ function MosaicFilterSidebar({
|
|
|
7194
7471
|
{
|
|
7195
7472
|
type: "button",
|
|
7196
7473
|
onClick: () => onCategoryChange(cat.id),
|
|
7197
|
-
className:
|
|
7474
|
+
className: cn59(
|
|
7198
7475
|
"flex min-h-[36px] items-center justify-between rounded-md px-3 py-1.5 text-sm",
|
|
7199
7476
|
"transition-colors hover:bg-accent hover:text-accent-foreground",
|
|
7200
7477
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -7214,7 +7491,7 @@ function MosaicFilterSidebar({
|
|
|
7214
7491
|
);
|
|
7215
7492
|
}
|
|
7216
7493
|
MosaicFilterSidebar.displayName = "MosaicFilterSidebar";
|
|
7217
|
-
function
|
|
7494
|
+
function cn60(...classes) {
|
|
7218
7495
|
return classes.filter(Boolean).join(" ");
|
|
7219
7496
|
}
|
|
7220
7497
|
function SearchIcon3() {
|
|
@@ -7300,8 +7577,8 @@ function AgentListDesktop({
|
|
|
7300
7577
|
collapseSidebarAriaLabel,
|
|
7301
7578
|
expandSidebarAriaLabel
|
|
7302
7579
|
}) {
|
|
7303
|
-
const [query, setQuery] =
|
|
7304
|
-
const [sidebarCollapsed, setSidebarCollapsed] =
|
|
7580
|
+
const [query, setQuery] = React29.useState("");
|
|
7581
|
+
const [sidebarCollapsed, setSidebarCollapsed] = React29.useState(false);
|
|
7305
7582
|
const filtered = agents.filter(
|
|
7306
7583
|
(a) => !query || a.name.toLowerCase().includes(query.toLowerCase()) || a.description?.toLowerCase().includes(query.toLowerCase())
|
|
7307
7584
|
);
|
|
@@ -7339,7 +7616,7 @@ function AgentListDesktop({
|
|
|
7339
7616
|
value: query,
|
|
7340
7617
|
onChange: (e) => setQuery(e.target.value),
|
|
7341
7618
|
placeholder: searchPlaceholder,
|
|
7342
|
-
className:
|
|
7619
|
+
className: cn60(
|
|
7343
7620
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
7344
7621
|
"text-sm placeholder:text-muted-foreground",
|
|
7345
7622
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -7352,7 +7629,7 @@ function AgentListDesktop({
|
|
|
7352
7629
|
{
|
|
7353
7630
|
type: "button",
|
|
7354
7631
|
onClick: onCreateAgent,
|
|
7355
|
-
className:
|
|
7632
|
+
className: cn60(
|
|
7356
7633
|
"inline-flex items-center gap-2 rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground",
|
|
7357
7634
|
"hover:bg-primary/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
7358
7635
|
),
|
|
@@ -7406,8 +7683,8 @@ function AgentListMobile({
|
|
|
7406
7683
|
collapseSidebarAriaLabel,
|
|
7407
7684
|
expandSidebarAriaLabel
|
|
7408
7685
|
}) {
|
|
7409
|
-
const [filterOpen, setFilterOpen] =
|
|
7410
|
-
const [query, setQuery] =
|
|
7686
|
+
const [filterOpen, setFilterOpen] = React29.useState(false);
|
|
7687
|
+
const [query, setQuery] = React29.useState("");
|
|
7411
7688
|
const filtered = agents.filter(
|
|
7412
7689
|
(a) => !query || a.name.toLowerCase().includes(query.toLowerCase()) || a.description?.toLowerCase().includes(query.toLowerCase())
|
|
7413
7690
|
);
|
|
@@ -7421,7 +7698,7 @@ function AgentListMobile({
|
|
|
7421
7698
|
{
|
|
7422
7699
|
type: "button",
|
|
7423
7700
|
onClick: () => setFilterOpen(true),
|
|
7424
|
-
className:
|
|
7701
|
+
className: cn60(
|
|
7425
7702
|
"inline-flex h-9 w-9 items-center justify-center rounded-md",
|
|
7426
7703
|
"border border-border bg-background text-foreground",
|
|
7427
7704
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -7436,7 +7713,7 @@ function AgentListMobile({
|
|
|
7436
7713
|
{
|
|
7437
7714
|
type: "button",
|
|
7438
7715
|
onClick: onCreateAgent,
|
|
7439
|
-
className:
|
|
7716
|
+
className: cn60(
|
|
7440
7717
|
"inline-flex h-9 items-center gap-1.5 rounded-md bg-primary px-3 text-sm font-medium text-primary-foreground",
|
|
7441
7718
|
"hover:bg-primary/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
7442
7719
|
),
|
|
@@ -7457,7 +7734,7 @@ function AgentListMobile({
|
|
|
7457
7734
|
value: query,
|
|
7458
7735
|
onChange: (e) => setQuery(e.target.value),
|
|
7459
7736
|
placeholder: searchPlaceholder,
|
|
7460
|
-
className:
|
|
7737
|
+
className: cn60(
|
|
7461
7738
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
7462
7739
|
"text-sm placeholder:text-muted-foreground",
|
|
7463
7740
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -7519,7 +7796,7 @@ function MosaicAgentList(props) {
|
|
|
7519
7796
|
return isMobile ? /* @__PURE__ */ jsx(AgentListMobile, { ...props }) : /* @__PURE__ */ jsx(AgentListDesktop, { ...props });
|
|
7520
7797
|
}
|
|
7521
7798
|
MosaicAgentList.displayName = "MosaicAgentList";
|
|
7522
|
-
function
|
|
7799
|
+
function cn61(...classes) {
|
|
7523
7800
|
return classes.filter(Boolean).join(" ");
|
|
7524
7801
|
}
|
|
7525
7802
|
function StarIcon({ filled }) {
|
|
@@ -7616,7 +7893,7 @@ function MarketplaceCard({
|
|
|
7616
7893
|
"div",
|
|
7617
7894
|
{
|
|
7618
7895
|
"data-slot": "marketplace-card",
|
|
7619
|
-
className:
|
|
7896
|
+
className: cn61(
|
|
7620
7897
|
"rounded-lg border border-border bg-card p-4 transition-shadow hover:shadow-md",
|
|
7621
7898
|
compact ? "flex items-center gap-3" : "flex flex-col gap-3"
|
|
7622
7899
|
),
|
|
@@ -7624,7 +7901,7 @@ function MarketplaceCard({
|
|
|
7624
7901
|
item.icon && /* @__PURE__ */ jsx(
|
|
7625
7902
|
"div",
|
|
7626
7903
|
{
|
|
7627
|
-
className:
|
|
7904
|
+
className: cn61(
|
|
7628
7905
|
"flex shrink-0 items-center justify-center rounded-lg",
|
|
7629
7906
|
compact ? "h-10 w-10" : "h-12 w-12",
|
|
7630
7907
|
item.accentClass ?? "bg-muted text-muted-foreground"
|
|
@@ -7635,7 +7912,7 @@ function MarketplaceCard({
|
|
|
7635
7912
|
/* @__PURE__ */ jsxs("div", { className: "flex-1 min-w-0", children: [
|
|
7636
7913
|
/* @__PURE__ */ jsxs("div", { className: "flex items-start justify-between gap-2", children: [
|
|
7637
7914
|
/* @__PURE__ */ jsxs("div", { className: "min-w-0", children: [
|
|
7638
|
-
/* @__PURE__ */ jsx("p", { className:
|
|
7915
|
+
/* @__PURE__ */ jsx("p", { className: cn61("font-semibold leading-tight", compact ? "text-sm" : "text-base"), children: item.title }),
|
|
7639
7916
|
item.description && !compact && /* @__PURE__ */ jsx("p", { className: "mt-1 text-sm text-muted-foreground line-clamp-2", children: item.description })
|
|
7640
7917
|
] }),
|
|
7641
7918
|
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 })
|
|
@@ -7652,13 +7929,13 @@ function MarketplaceCard({
|
|
|
7652
7929
|
] })
|
|
7653
7930
|
] })
|
|
7654
7931
|
] }),
|
|
7655
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
7932
|
+
/* @__PURE__ */ jsxs("div", { className: cn61("flex gap-2", compact ? "shrink-0" : "mt-1"), children: [
|
|
7656
7933
|
onPreview && /* @__PURE__ */ jsx(
|
|
7657
7934
|
"button",
|
|
7658
7935
|
{
|
|
7659
7936
|
type: "button",
|
|
7660
7937
|
onClick: () => onPreview(item.id),
|
|
7661
|
-
className:
|
|
7938
|
+
className: cn61(
|
|
7662
7939
|
"inline-flex min-h-[36px] items-center justify-center rounded-md border border-border",
|
|
7663
7940
|
"bg-background px-3 text-xs font-medium text-foreground",
|
|
7664
7941
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -7672,7 +7949,7 @@ function MarketplaceCard({
|
|
|
7672
7949
|
{
|
|
7673
7950
|
type: "button",
|
|
7674
7951
|
onClick: () => onUninstall(item.id),
|
|
7675
|
-
className:
|
|
7952
|
+
className: cn61(
|
|
7676
7953
|
"inline-flex min-h-[36px] items-center justify-center rounded-md",
|
|
7677
7954
|
"bg-secondary px-3 text-xs font-medium text-secondary-foreground",
|
|
7678
7955
|
"hover:bg-secondary/80",
|
|
@@ -7685,7 +7962,7 @@ function MarketplaceCard({
|
|
|
7685
7962
|
{
|
|
7686
7963
|
type: "button",
|
|
7687
7964
|
onClick: () => onInstall(item.id),
|
|
7688
|
-
className:
|
|
7965
|
+
className: cn61(
|
|
7689
7966
|
"inline-flex min-h-[36px] items-center justify-center rounded-md",
|
|
7690
7967
|
"bg-primary px-3 text-xs font-medium text-primary-foreground",
|
|
7691
7968
|
"hover:bg-primary/90",
|
|
@@ -7722,8 +7999,8 @@ function MarketplaceListDesktop(props) {
|
|
|
7722
7999
|
collapseSidebarAriaLabel,
|
|
7723
8000
|
expandSidebarAriaLabel
|
|
7724
8001
|
} = props;
|
|
7725
|
-
const [query, setQuery] =
|
|
7726
|
-
const [sidebarCollapsed, setSidebarCollapsed] =
|
|
8002
|
+
const [query, setQuery] = React29.useState("");
|
|
8003
|
+
const [sidebarCollapsed, setSidebarCollapsed] = React29.useState(false);
|
|
7727
8004
|
const filtered = items.filter(
|
|
7728
8005
|
(i) => !query || i.title.toLowerCase().includes(query.toLowerCase()) || (i.description ?? "").toLowerCase().includes(query.toLowerCase())
|
|
7729
8006
|
);
|
|
@@ -7757,7 +8034,7 @@ function MarketplaceListDesktop(props) {
|
|
|
7757
8034
|
value: query,
|
|
7758
8035
|
onChange: (e) => setQuery(e.target.value),
|
|
7759
8036
|
placeholder: searchPlaceholder,
|
|
7760
|
-
className:
|
|
8037
|
+
className: cn61(
|
|
7761
8038
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
7762
8039
|
"text-sm placeholder:text-muted-foreground",
|
|
7763
8040
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -7811,8 +8088,8 @@ function MarketplaceListMobile(props) {
|
|
|
7811
8088
|
collapseSidebarAriaLabel,
|
|
7812
8089
|
expandSidebarAriaLabel
|
|
7813
8090
|
} = props;
|
|
7814
|
-
const [filterOpen, setFilterOpen] =
|
|
7815
|
-
const [query, setQuery] =
|
|
8091
|
+
const [filterOpen, setFilterOpen] = React29.useState(false);
|
|
8092
|
+
const [query, setQuery] = React29.useState("");
|
|
7816
8093
|
const filtered = items.filter(
|
|
7817
8094
|
(i) => !query || i.title.toLowerCase().includes(query.toLowerCase()) || (i.description ?? "").toLowerCase().includes(query.toLowerCase())
|
|
7818
8095
|
);
|
|
@@ -7840,7 +8117,7 @@ function MarketplaceListMobile(props) {
|
|
|
7840
8117
|
value: query,
|
|
7841
8118
|
onChange: (e) => setQuery(e.target.value),
|
|
7842
8119
|
placeholder: searchPlaceholder,
|
|
7843
|
-
className:
|
|
8120
|
+
className: cn61(
|
|
7844
8121
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
7845
8122
|
"text-sm placeholder:text-muted-foreground",
|
|
7846
8123
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -7905,7 +8182,7 @@ function MosaicMarketplaceList(props) {
|
|
|
7905
8182
|
return isMobile ? /* @__PURE__ */ jsx(MarketplaceListMobile, { ...props }) : /* @__PURE__ */ jsx(MarketplaceListDesktop, { ...props });
|
|
7906
8183
|
}
|
|
7907
8184
|
MosaicMarketplaceList.displayName = "MosaicMarketplaceList";
|
|
7908
|
-
function
|
|
8185
|
+
function cn62(...classes) {
|
|
7909
8186
|
return classes.filter(Boolean).join(" ");
|
|
7910
8187
|
}
|
|
7911
8188
|
function StarIcon2() {
|
|
@@ -8026,7 +8303,7 @@ function MosaicTemplateCard({
|
|
|
8026
8303
|
type: "button",
|
|
8027
8304
|
onClick: () => onSelect(template),
|
|
8028
8305
|
"data-slot": "template-card",
|
|
8029
|
-
className:
|
|
8306
|
+
className: cn62(
|
|
8030
8307
|
"w-full text-left rounded-lg border transition-all duration-200",
|
|
8031
8308
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
8032
8309
|
isSelected ? "border-primary bg-primary/5 ring-2 ring-primary" : "border-border bg-card hover:border-primary/50",
|
|
@@ -8127,7 +8404,7 @@ function MosaicTemplatePreview({
|
|
|
8127
8404
|
agent.accentColor && /* @__PURE__ */ jsx(
|
|
8128
8405
|
"span",
|
|
8129
8406
|
{
|
|
8130
|
-
className:
|
|
8407
|
+
className: cn62("h-2 w-2 rounded-full", agent.accentColor),
|
|
8131
8408
|
"aria-hidden": "true"
|
|
8132
8409
|
}
|
|
8133
8410
|
),
|
|
@@ -8187,7 +8464,7 @@ function MosaicAgentTeamPreview({ agents, label }) {
|
|
|
8187
8464
|
agent.accentColor && /* @__PURE__ */ jsx(
|
|
8188
8465
|
"span",
|
|
8189
8466
|
{
|
|
8190
|
-
className:
|
|
8467
|
+
className: cn62("h-2.5 w-2.5 rounded-full", agent.accentColor),
|
|
8191
8468
|
"aria-hidden": "true"
|
|
8192
8469
|
}
|
|
8193
8470
|
),
|
|
@@ -8211,7 +8488,7 @@ function MosaicQuickStartPanel({
|
|
|
8211
8488
|
scratchLabel,
|
|
8212
8489
|
className
|
|
8213
8490
|
}) {
|
|
8214
|
-
return /* @__PURE__ */ jsxs("div", { "data-slot": "quick-start-panel", className:
|
|
8491
|
+
return /* @__PURE__ */ jsxs("div", { "data-slot": "quick-start-panel", className: cn62("flex flex-col gap-6", className), children: [
|
|
8215
8492
|
scenarios.length > 0 && /* @__PURE__ */ jsxs("div", { children: [
|
|
8216
8493
|
/* @__PURE__ */ jsx("h3", { className: "mb-3 text-sm font-semibold text-foreground", children: scenariosTitle }),
|
|
8217
8494
|
/* @__PURE__ */ jsx("div", { className: "grid gap-3 sm:grid-cols-2", children: scenarios.map((scenario) => /* @__PURE__ */ jsxs(
|
|
@@ -8219,7 +8496,7 @@ function MosaicQuickStartPanel({
|
|
|
8219
8496
|
{
|
|
8220
8497
|
type: "button",
|
|
8221
8498
|
onClick: () => onSelectScenario(scenario),
|
|
8222
|
-
className:
|
|
8499
|
+
className: cn62(
|
|
8223
8500
|
"flex items-start gap-3 rounded-lg border border-border bg-card p-4 text-left",
|
|
8224
8501
|
"hover:border-primary/50 hover:bg-primary/5",
|
|
8225
8502
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -8251,7 +8528,7 @@ function MosaicQuickStartPanel({
|
|
|
8251
8528
|
{
|
|
8252
8529
|
type: "button",
|
|
8253
8530
|
onClick: () => onSelectPreset(preset),
|
|
8254
|
-
className:
|
|
8531
|
+
className: cn62(
|
|
8255
8532
|
"flex items-center justify-between gap-3 rounded-lg border border-border bg-card px-4 py-3 text-left",
|
|
8256
8533
|
"hover:border-primary/50",
|
|
8257
8534
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -8265,7 +8542,7 @@ function MosaicQuickStartPanel({
|
|
|
8265
8542
|
a.accentColor && /* @__PURE__ */ jsx(
|
|
8266
8543
|
"span",
|
|
8267
8544
|
{
|
|
8268
|
-
className:
|
|
8545
|
+
className: cn62("h-2 w-2 rounded-full", a.accentColor),
|
|
8269
8546
|
"aria-hidden": "true"
|
|
8270
8547
|
}
|
|
8271
8548
|
),
|
|
@@ -8283,7 +8560,7 @@ function MosaicQuickStartPanel({
|
|
|
8283
8560
|
{
|
|
8284
8561
|
type: "button",
|
|
8285
8562
|
onClick: onStartFromScratch,
|
|
8286
|
-
className:
|
|
8563
|
+
className: cn62(
|
|
8287
8564
|
"inline-flex min-h-[44px] w-full items-center justify-center rounded-md border border-border",
|
|
8288
8565
|
"bg-background px-4 text-sm font-medium text-foreground",
|
|
8289
8566
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -8322,9 +8599,9 @@ function TemplateGalleryContent({
|
|
|
8322
8599
|
duplicateLabel,
|
|
8323
8600
|
isMobile
|
|
8324
8601
|
}) {
|
|
8325
|
-
const [query, setQuery] =
|
|
8326
|
-
const [filterOpen, setFilterOpen] =
|
|
8327
|
-
const [sidebarCollapsed, setSidebarCollapsed] =
|
|
8602
|
+
const [query, setQuery] = React29.useState("");
|
|
8603
|
+
const [filterOpen, setFilterOpen] = React29.useState(false);
|
|
8604
|
+
const [sidebarCollapsed, setSidebarCollapsed] = React29.useState(false);
|
|
8328
8605
|
const filtered = templates.filter(
|
|
8329
8606
|
(t) => !query || t.name.toLowerCase().includes(query.toLowerCase()) || (t.description ?? "").toLowerCase().includes(query.toLowerCase())
|
|
8330
8607
|
);
|
|
@@ -8377,7 +8654,7 @@ function TemplateGalleryContent({
|
|
|
8377
8654
|
value: query,
|
|
8378
8655
|
onChange: (e) => setQuery(e.target.value),
|
|
8379
8656
|
placeholder: searchPlaceholder,
|
|
8380
|
-
className:
|
|
8657
|
+
className: cn62(
|
|
8381
8658
|
"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"
|
|
8382
8659
|
)
|
|
8383
8660
|
}
|
|
@@ -8428,7 +8705,7 @@ function TemplateGalleryContent({
|
|
|
8428
8705
|
value: query,
|
|
8429
8706
|
onChange: (e) => setQuery(e.target.value),
|
|
8430
8707
|
placeholder: searchPlaceholder,
|
|
8431
|
-
className:
|
|
8708
|
+
className: cn62(
|
|
8432
8709
|
"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"
|
|
8433
8710
|
)
|
|
8434
8711
|
}
|
|
@@ -8460,7 +8737,7 @@ function MosaicTemplateGallery(props) {
|
|
|
8460
8737
|
return /* @__PURE__ */ jsx(TemplateGalleryContent, { ...props, isMobile });
|
|
8461
8738
|
}
|
|
8462
8739
|
MosaicTemplateGallery.displayName = "MosaicTemplateGallery";
|
|
8463
|
-
function
|
|
8740
|
+
function cn63(...classes) {
|
|
8464
8741
|
return classes.filter(Boolean).join(" ");
|
|
8465
8742
|
}
|
|
8466
8743
|
function PlusIcon5() {
|
|
@@ -8562,7 +8839,7 @@ function MosaicModuleForm(props) {
|
|
|
8562
8839
|
cancelLabel,
|
|
8563
8840
|
tagListAddPlaceholder
|
|
8564
8841
|
} = props;
|
|
8565
|
-
const [formData, setFormData] =
|
|
8842
|
+
const [formData, setFormData] = React29.useState({
|
|
8566
8843
|
name: item?.name ?? "",
|
|
8567
8844
|
description: item?.description ?? "",
|
|
8568
8845
|
icon: item?.icon ?? "",
|
|
@@ -8573,7 +8850,7 @@ function MosaicModuleForm(props) {
|
|
|
8573
8850
|
formFields.map((f) => [f.id, item?.[f.id] ?? (f.type === "tag-list" ? [] : "")])
|
|
8574
8851
|
)
|
|
8575
8852
|
});
|
|
8576
|
-
const [tagInputs, setTagInputs] =
|
|
8853
|
+
const [tagInputs, setTagInputs] = React29.useState({});
|
|
8577
8854
|
const update = (key, value) => {
|
|
8578
8855
|
setFormData((prev) => ({ ...prev, [key]: value }));
|
|
8579
8856
|
};
|
|
@@ -8611,7 +8888,7 @@ function MosaicModuleForm(props) {
|
|
|
8611
8888
|
onChange: (e) => update("name", e.target.value),
|
|
8612
8889
|
placeholder: namePlaceholder,
|
|
8613
8890
|
required: true,
|
|
8614
|
-
className:
|
|
8891
|
+
className: cn63(
|
|
8615
8892
|
"w-full rounded-md border border-input bg-background px-3 py-2 min-h-[40px]",
|
|
8616
8893
|
"text-sm placeholder:text-muted-foreground",
|
|
8617
8894
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -8629,7 +8906,7 @@ function MosaicModuleForm(props) {
|
|
|
8629
8906
|
onChange: (e) => update("description", e.target.value),
|
|
8630
8907
|
placeholder: descriptionPlaceholder,
|
|
8631
8908
|
rows: 3,
|
|
8632
|
-
className:
|
|
8909
|
+
className: cn63(
|
|
8633
8910
|
"w-full rounded-md border border-input bg-background px-3 py-2",
|
|
8634
8911
|
"text-sm placeholder:text-muted-foreground resize-none",
|
|
8635
8912
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -8651,7 +8928,7 @@ function MosaicModuleForm(props) {
|
|
|
8651
8928
|
value: formData[field.id] ?? "",
|
|
8652
8929
|
onChange: (e) => update(field.id, e.target.value),
|
|
8653
8930
|
placeholder: field.placeholder,
|
|
8654
|
-
className:
|
|
8931
|
+
className: cn63(
|
|
8655
8932
|
"w-full rounded-md border border-input bg-background px-3 py-2 min-h-[40px]",
|
|
8656
8933
|
"text-sm placeholder:text-muted-foreground",
|
|
8657
8934
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -8666,7 +8943,7 @@ function MosaicModuleForm(props) {
|
|
|
8666
8943
|
onChange: (e) => update(field.id, e.target.value),
|
|
8667
8944
|
placeholder: field.placeholder,
|
|
8668
8945
|
rows: 3,
|
|
8669
|
-
className:
|
|
8946
|
+
className: cn63(
|
|
8670
8947
|
"w-full rounded-md border border-input bg-background px-3 py-2",
|
|
8671
8948
|
"text-sm placeholder:text-muted-foreground resize-none",
|
|
8672
8949
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -8682,7 +8959,7 @@ function MosaicModuleForm(props) {
|
|
|
8682
8959
|
onChange: (e) => update(field.id, e.target.value),
|
|
8683
8960
|
placeholder: field.placeholder ?? "\u{1F9E0}",
|
|
8684
8961
|
maxLength: 4,
|
|
8685
|
-
className:
|
|
8962
|
+
className: cn63(
|
|
8686
8963
|
"w-20 rounded-md border border-input bg-background px-3 py-2 text-2xl",
|
|
8687
8964
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
8688
8965
|
)
|
|
@@ -8703,7 +8980,7 @@ function MosaicModuleForm(props) {
|
|
|
8703
8980
|
}
|
|
8704
8981
|
},
|
|
8705
8982
|
placeholder: field.placeholder ?? tagListAddPlaceholder,
|
|
8706
|
-
className:
|
|
8983
|
+
className: cn63(
|
|
8707
8984
|
"flex-1 rounded-md border border-input bg-background px-3 py-2 min-h-[36px]",
|
|
8708
8985
|
"text-sm placeholder:text-muted-foreground",
|
|
8709
8986
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -8774,9 +9051,9 @@ function ModuleItemCard({
|
|
|
8774
9051
|
editItemLabel,
|
|
8775
9052
|
deleteItemLabel
|
|
8776
9053
|
}) {
|
|
8777
|
-
const [menuOpen, setMenuOpen] =
|
|
8778
|
-
const menuRef =
|
|
8779
|
-
|
|
9054
|
+
const [menuOpen, setMenuOpen] = React29.useState(false);
|
|
9055
|
+
const menuRef = React29.useRef(null);
|
|
9056
|
+
React29.useEffect(() => {
|
|
8780
9057
|
if (!menuOpen) return;
|
|
8781
9058
|
const h = (e) => {
|
|
8782
9059
|
if (menuRef.current && !menuRef.current.contains(e.target)) setMenuOpen(false);
|
|
@@ -8877,11 +9154,11 @@ function LibraryContent({
|
|
|
8877
9154
|
editModalTitle,
|
|
8878
9155
|
tagListAddPlaceholder
|
|
8879
9156
|
}) {
|
|
8880
|
-
const [query, setQuery] =
|
|
8881
|
-
const [activeTab, setActiveTab] =
|
|
8882
|
-
const [editorOpen, setEditorOpen] =
|
|
8883
|
-
const [editingItem, setEditingItem] =
|
|
8884
|
-
const [editorMode, setEditorMode] =
|
|
9157
|
+
const [query, setQuery] = React29.useState("");
|
|
9158
|
+
const [activeTab, setActiveTab] = React29.useState(tabs?.[0]?.id ?? "all");
|
|
9159
|
+
const [editorOpen, setEditorOpen] = React29.useState(false);
|
|
9160
|
+
const [editingItem, setEditingItem] = React29.useState();
|
|
9161
|
+
const [editorMode, setEditorMode] = React29.useState("create");
|
|
8885
9162
|
const openCreate = () => {
|
|
8886
9163
|
setEditingItem(void 0);
|
|
8887
9164
|
setEditorMode("create");
|
|
@@ -8915,7 +9192,7 @@ function LibraryContent({
|
|
|
8915
9192
|
{
|
|
8916
9193
|
type: "button",
|
|
8917
9194
|
onClick: openCreate,
|
|
8918
|
-
className:
|
|
9195
|
+
className: cn63(
|
|
8919
9196
|
"inline-flex items-center gap-2 rounded-md bg-primary px-3 py-2 text-sm font-medium text-primary-foreground",
|
|
8920
9197
|
"hover:bg-primary/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
8921
9198
|
),
|
|
@@ -8935,7 +9212,7 @@ function LibraryContent({
|
|
|
8935
9212
|
value: query,
|
|
8936
9213
|
onChange: (e) => setQuery(e.target.value),
|
|
8937
9214
|
placeholder: searchPlaceholder,
|
|
8938
|
-
className:
|
|
9215
|
+
className: cn63(
|
|
8939
9216
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
8940
9217
|
"text-sm placeholder:text-muted-foreground",
|
|
8941
9218
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -8948,7 +9225,7 @@ function LibraryContent({
|
|
|
8948
9225
|
{
|
|
8949
9226
|
type: "button",
|
|
8950
9227
|
onClick: () => setActiveTab(tab.id),
|
|
8951
|
-
className:
|
|
9228
|
+
className: cn63(
|
|
8952
9229
|
"rounded-md px-3 py-1.5 text-sm font-medium transition-colors",
|
|
8953
9230
|
activeTab === tab.id ? "bg-primary text-primary-foreground" : "bg-muted text-muted-foreground hover:bg-accent hover:text-accent-foreground"
|
|
8954
9231
|
),
|
|
@@ -9000,7 +9277,7 @@ function MosaicModuleLibrary(props) {
|
|
|
9000
9277
|
return /* @__PURE__ */ jsx(LibraryContent, { ...props });
|
|
9001
9278
|
}
|
|
9002
9279
|
MosaicModuleLibrary.displayName = "MosaicModuleLibrary";
|
|
9003
|
-
function
|
|
9280
|
+
function cn64(...classes) {
|
|
9004
9281
|
return classes.filter(Boolean).join(" ");
|
|
9005
9282
|
}
|
|
9006
9283
|
var roleConfig = {
|
|
@@ -9027,7 +9304,7 @@ function MosaicOrgRoleBadge({ role, className }) {
|
|
|
9027
9304
|
{
|
|
9028
9305
|
"data-slot": "org-role-badge",
|
|
9029
9306
|
title: config.description,
|
|
9030
|
-
className:
|
|
9307
|
+
className: cn64(
|
|
9031
9308
|
"inline-flex items-center rounded-full px-2 py-0.5 text-xs font-medium",
|
|
9032
9309
|
config.className,
|
|
9033
9310
|
className
|
|
@@ -9044,13 +9321,13 @@ function MosaicMultiOrgIndicator({
|
|
|
9044
9321
|
className
|
|
9045
9322
|
}) {
|
|
9046
9323
|
if (orgCount <= 1) return null;
|
|
9047
|
-
return /* @__PURE__ */ jsxs("div", { "data-slot": "multi-org-indicator", className:
|
|
9324
|
+
return /* @__PURE__ */ jsxs("div", { "data-slot": "multi-org-indicator", className: cn64("flex items-center gap-2", className), children: [
|
|
9048
9325
|
onSwitchOrg ? /* @__PURE__ */ jsxs(
|
|
9049
9326
|
"button",
|
|
9050
9327
|
{
|
|
9051
9328
|
type: "button",
|
|
9052
9329
|
onClick: onSwitchOrg,
|
|
9053
|
-
className:
|
|
9330
|
+
className: cn64(
|
|
9054
9331
|
"inline-flex items-center gap-1.5 rounded-full bg-secondary px-2.5 py-1 text-xs font-medium text-secondary-foreground",
|
|
9055
9332
|
"hover:bg-secondary/80",
|
|
9056
9333
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -9103,10 +9380,10 @@ function MosaicCreateOrgDialog({
|
|
|
9103
9380
|
creatingLabel,
|
|
9104
9381
|
createLabel
|
|
9105
9382
|
}) {
|
|
9106
|
-
const [name, setName] =
|
|
9107
|
-
const [slug, setSlug] =
|
|
9108
|
-
const [description, setDescription] =
|
|
9109
|
-
const [errors, setErrors] =
|
|
9383
|
+
const [name, setName] = React29.useState("");
|
|
9384
|
+
const [slug, setSlug] = React29.useState("");
|
|
9385
|
+
const [description, setDescription] = React29.useState("");
|
|
9386
|
+
const [errors, setErrors] = React29.useState({});
|
|
9110
9387
|
const validate = () => {
|
|
9111
9388
|
const errs = {};
|
|
9112
9389
|
if (!name.trim()) errs.name = "Name is required";
|
|
@@ -9130,7 +9407,7 @@ function MosaicCreateOrgDialog({
|
|
|
9130
9407
|
setErrors({});
|
|
9131
9408
|
onOpenChange(false);
|
|
9132
9409
|
};
|
|
9133
|
-
|
|
9410
|
+
React29.useEffect(() => {
|
|
9134
9411
|
if (!name) {
|
|
9135
9412
|
setSlug("");
|
|
9136
9413
|
return;
|
|
@@ -9164,7 +9441,7 @@ function MosaicCreateOrgDialog({
|
|
|
9164
9441
|
onChange: (e) => setName(e.target.value),
|
|
9165
9442
|
placeholder: orgNamePlaceholder,
|
|
9166
9443
|
required: true,
|
|
9167
|
-
className:
|
|
9444
|
+
className: cn64(
|
|
9168
9445
|
"w-full rounded-md border bg-background px-3 py-2 min-h-[40px] text-sm placeholder:text-muted-foreground",
|
|
9169
9446
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
9170
9447
|
errors.name ? "border-destructive" : "border-input"
|
|
@@ -9184,7 +9461,7 @@ function MosaicCreateOrgDialog({
|
|
|
9184
9461
|
onChange: (e) => setSlug(e.target.value),
|
|
9185
9462
|
placeholder: "acme-inc",
|
|
9186
9463
|
required: true,
|
|
9187
|
-
className:
|
|
9464
|
+
className: cn64(
|
|
9188
9465
|
"w-full rounded-md border bg-background px-3 py-2 min-h-[40px] text-sm placeholder:text-muted-foreground",
|
|
9189
9466
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
9190
9467
|
errors.slug ? "border-destructive" : "border-input"
|
|
@@ -9253,9 +9530,9 @@ function MosaicInviteMemberDialog({
|
|
|
9253
9530
|
sendingLabel,
|
|
9254
9531
|
sendInvitationLabel
|
|
9255
9532
|
}) {
|
|
9256
|
-
const [email, setEmail] =
|
|
9257
|
-
const [role, setRole] =
|
|
9258
|
-
const [errors, setErrors] =
|
|
9533
|
+
const [email, setEmail] = React29.useState("");
|
|
9534
|
+
const [role, setRole] = React29.useState("member");
|
|
9535
|
+
const [errors, setErrors] = React29.useState({});
|
|
9259
9536
|
const validate = () => {
|
|
9260
9537
|
const errs = {};
|
|
9261
9538
|
if (!email.trim()) errs.email = "Email is required";
|
|
@@ -9297,7 +9574,7 @@ function MosaicInviteMemberDialog({
|
|
|
9297
9574
|
onChange: (e) => setEmail(e.target.value),
|
|
9298
9575
|
placeholder: emailPlaceholder,
|
|
9299
9576
|
required: true,
|
|
9300
|
-
className:
|
|
9577
|
+
className: cn64(
|
|
9301
9578
|
"w-full rounded-md border bg-background px-3 py-2 min-h-[40px] text-sm placeholder:text-muted-foreground",
|
|
9302
9579
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
9303
9580
|
errors.email ? "border-destructive" : "border-input"
|
|
@@ -9356,10 +9633,10 @@ function MemberRow({
|
|
|
9356
9633
|
memberActionsAriaLabel,
|
|
9357
9634
|
removeMemberLabel
|
|
9358
9635
|
}) {
|
|
9359
|
-
const [menuOpen, setMenuOpen] =
|
|
9360
|
-
const menuRef =
|
|
9636
|
+
const [menuOpen, setMenuOpen] = React29.useState(false);
|
|
9637
|
+
const menuRef = React29.useRef(null);
|
|
9361
9638
|
const isSelf = member.id === currentUserId;
|
|
9362
|
-
|
|
9639
|
+
React29.useEffect(() => {
|
|
9363
9640
|
if (!menuOpen) return;
|
|
9364
9641
|
const h = (e) => {
|
|
9365
9642
|
if (menuRef.current && !menuRef.current.contains(e.target)) setMenuOpen(false);
|
|
@@ -9480,11 +9757,11 @@ function MosaicMemberList({
|
|
|
9480
9757
|
inviteLabel,
|
|
9481
9758
|
className
|
|
9482
9759
|
}) {
|
|
9483
|
-
const [query, setQuery] =
|
|
9760
|
+
const [query, setQuery] = React29.useState("");
|
|
9484
9761
|
const filtered = members.filter(
|
|
9485
9762
|
(m) => !query || m.name.toLowerCase().includes(query.toLowerCase()) || m.email.toLowerCase().includes(query.toLowerCase())
|
|
9486
9763
|
);
|
|
9487
|
-
return /* @__PURE__ */ jsxs("div", { "data-slot": "member-list", className:
|
|
9764
|
+
return /* @__PURE__ */ jsxs("div", { "data-slot": "member-list", className: cn64("flex flex-col gap-4", className), children: [
|
|
9488
9765
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
9489
9766
|
/* @__PURE__ */ jsxs("div", { className: "relative flex-1", children: [
|
|
9490
9767
|
/* @__PURE__ */ jsx("span", { className: "absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground", children: /* @__PURE__ */ jsxs(
|
|
@@ -9578,9 +9855,9 @@ function MosaicOrgPanel({
|
|
|
9578
9855
|
className
|
|
9579
9856
|
}) {
|
|
9580
9857
|
const { isMobile } = useDevice();
|
|
9581
|
-
const [activeTab, setActiveTab] =
|
|
9858
|
+
const [activeTab, setActiveTab] = React29.useState(defaultTab ?? tabs[0]?.id ?? "");
|
|
9582
9859
|
const activeContent = tabs.find((t) => t.id === activeTab)?.content;
|
|
9583
|
-
return /* @__PURE__ */ jsxs("div", { "data-slot": "org-panel", className:
|
|
9860
|
+
return /* @__PURE__ */ jsxs("div", { "data-slot": "org-panel", className: cn64("flex h-full flex-col", className), children: [
|
|
9584
9861
|
/* @__PURE__ */ jsxs("div", { className: "border-b border-border px-4 py-4 md:px-6", children: [
|
|
9585
9862
|
/* @__PURE__ */ jsxs("div", { className: "flex items-start justify-between gap-4", children: [
|
|
9586
9863
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
@@ -9602,12 +9879,12 @@ function MosaicOrgPanel({
|
|
|
9602
9879
|
] }),
|
|
9603
9880
|
headerActions
|
|
9604
9881
|
] }),
|
|
9605
|
-
tabs.length > 0 && /* @__PURE__ */ jsx("div", { className:
|
|
9882
|
+
tabs.length > 0 && /* @__PURE__ */ jsx("div", { className: cn64("mt-4 flex gap-1", isMobile && "overflow-x-auto"), children: tabs.map((tab) => /* @__PURE__ */ jsx(
|
|
9606
9883
|
"button",
|
|
9607
9884
|
{
|
|
9608
9885
|
type: "button",
|
|
9609
9886
|
onClick: () => setActiveTab(tab.id),
|
|
9610
|
-
className:
|
|
9887
|
+
className: cn64(
|
|
9611
9888
|
"shrink-0 rounded-md px-3 py-1.5 text-sm font-medium transition-colors",
|
|
9612
9889
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
9613
9890
|
activeTab === tab.id ? "bg-primary text-primary-foreground" : "bg-muted text-muted-foreground hover:bg-accent hover:text-accent-foreground"
|
|
@@ -9621,7 +9898,7 @@ function MosaicOrgPanel({
|
|
|
9621
9898
|
] });
|
|
9622
9899
|
}
|
|
9623
9900
|
MosaicOrgPanel.displayName = "MosaicOrgPanel";
|
|
9624
|
-
function
|
|
9901
|
+
function cn65(...classes) {
|
|
9625
9902
|
return classes.filter(Boolean).join(" ");
|
|
9626
9903
|
}
|
|
9627
9904
|
var ANIM_ID8 = "mosaic-dashboard-content-kf";
|
|
@@ -9650,7 +9927,7 @@ function MosaicDashboardContent({
|
|
|
9650
9927
|
className
|
|
9651
9928
|
}) {
|
|
9652
9929
|
const { isMobile } = useDevice();
|
|
9653
|
-
|
|
9930
|
+
React29.useEffect(() => {
|
|
9654
9931
|
injectStyles8();
|
|
9655
9932
|
}, []);
|
|
9656
9933
|
const activeView = views.find((v) => v.id === currentView);
|
|
@@ -9658,7 +9935,7 @@ function MosaicDashboardContent({
|
|
|
9658
9935
|
"div",
|
|
9659
9936
|
{
|
|
9660
9937
|
"data-slot": "dashboard-content",
|
|
9661
|
-
className:
|
|
9938
|
+
className: cn65("h-full overflow-auto", isMobile ? "p-4" : "p-6", className),
|
|
9662
9939
|
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: [
|
|
9663
9940
|
"View not found: ",
|
|
9664
9941
|
currentView
|
|
@@ -9667,7 +9944,7 @@ function MosaicDashboardContent({
|
|
|
9667
9944
|
);
|
|
9668
9945
|
}
|
|
9669
9946
|
MosaicDashboardContent.displayName = "MosaicDashboardContent";
|
|
9670
|
-
function
|
|
9947
|
+
function cn66(...classes) {
|
|
9671
9948
|
return classes.filter(Boolean).join(" ");
|
|
9672
9949
|
}
|
|
9673
9950
|
var ANIM_ID9 = "mosaic-dashboard-header2-kf";
|
|
@@ -9767,8 +10044,8 @@ function MosaicDashboardHeader({
|
|
|
9767
10044
|
className
|
|
9768
10045
|
}) {
|
|
9769
10046
|
const { isMobile } = useDevice();
|
|
9770
|
-
const [searchQuery, setSearchQuery] =
|
|
9771
|
-
|
|
10047
|
+
const [searchQuery, setSearchQuery] = React29.useState("");
|
|
10048
|
+
React29.useEffect(() => {
|
|
9772
10049
|
injectStyles9();
|
|
9773
10050
|
}, []);
|
|
9774
10051
|
const handleSearch = (e) => {
|
|
@@ -9779,16 +10056,16 @@ function MosaicDashboardHeader({
|
|
|
9779
10056
|
"header",
|
|
9780
10057
|
{
|
|
9781
10058
|
"data-slot": "dashboard-header",
|
|
9782
|
-
className:
|
|
10059
|
+
className: cn66(
|
|
9783
10060
|
"mosaic-dashboard-header2",
|
|
9784
10061
|
"sticky top-0 z-40 border-b border-border/50 bg-background/80 backdrop-blur-sm",
|
|
9785
10062
|
className
|
|
9786
10063
|
),
|
|
9787
|
-
children: /* @__PURE__ */ jsx("div", { className:
|
|
10064
|
+
children: /* @__PURE__ */ jsx("div", { className: cn66(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: [
|
|
9788
10065
|
/* @__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: [
|
|
9789
10066
|
logoSlot ?? /* @__PURE__ */ jsx(SparklesIcon4, {}),
|
|
9790
10067
|
/* @__PURE__ */ jsxs("div", { className: "min-w-0", children: [
|
|
9791
|
-
/* @__PURE__ */ jsx("h1", { className:
|
|
10068
|
+
/* @__PURE__ */ jsx("h1", { className: cn66("font-semibold truncate", isMobile ? "text-lg" : "text-xl"), children: title }),
|
|
9792
10069
|
subtitle && !isMobile && /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground truncate", children: subtitle })
|
|
9793
10070
|
] })
|
|
9794
10071
|
] }) }),
|
|
@@ -9801,7 +10078,7 @@ function MosaicDashboardHeader({
|
|
|
9801
10078
|
value: searchQuery,
|
|
9802
10079
|
onChange: handleSearch,
|
|
9803
10080
|
placeholder: searchPlaceholder,
|
|
9804
|
-
className:
|
|
10081
|
+
className: cn66(
|
|
9805
10082
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
9806
10083
|
"text-sm placeholder:text-muted-foreground",
|
|
9807
10084
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -9841,7 +10118,7 @@ function MosaicDashboardHeader({
|
|
|
9841
10118
|
);
|
|
9842
10119
|
}
|
|
9843
10120
|
MosaicDashboardHeader.displayName = "MosaicDashboardHeader";
|
|
9844
|
-
function
|
|
10121
|
+
function cn67(...classes) {
|
|
9845
10122
|
return classes.filter(Boolean).join(" ");
|
|
9846
10123
|
}
|
|
9847
10124
|
function ChevronDownIcon4() {
|
|
@@ -9911,10 +10188,10 @@ function MosaicOrgSwitcher({
|
|
|
9911
10188
|
noOrgSelectedLabel,
|
|
9912
10189
|
className
|
|
9913
10190
|
}) {
|
|
9914
|
-
const [open, setOpen] =
|
|
9915
|
-
const ref =
|
|
10191
|
+
const [open, setOpen] = React29.useState(false);
|
|
10192
|
+
const ref = React29.useRef(null);
|
|
9916
10193
|
const currentOrg = organizations.find((o) => o.id === currentOrgId) ?? organizations[0];
|
|
9917
|
-
|
|
10194
|
+
React29.useEffect(() => {
|
|
9918
10195
|
if (!open) return;
|
|
9919
10196
|
const h = (e) => {
|
|
9920
10197
|
if (ref.current && !ref.current.contains(e.target)) setOpen(false);
|
|
@@ -9924,13 +10201,13 @@ function MosaicOrgSwitcher({
|
|
|
9924
10201
|
}, [open]);
|
|
9925
10202
|
if (!currentOrg && organizations.length === 0 && !onCreateOrg) return null;
|
|
9926
10203
|
const initials = currentOrg?.name.split(" ").map((n) => n[0]).filter(Boolean).slice(0, 2).join("").toUpperCase() ?? "?";
|
|
9927
|
-
return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "org-switcher", className:
|
|
10204
|
+
return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "org-switcher", className: cn67("relative", className), children: [
|
|
9928
10205
|
/* @__PURE__ */ jsxs(
|
|
9929
10206
|
"button",
|
|
9930
10207
|
{
|
|
9931
10208
|
type: "button",
|
|
9932
10209
|
onClick: () => setOpen((v) => !v),
|
|
9933
|
-
className:
|
|
10210
|
+
className: cn67(
|
|
9934
10211
|
"inline-flex items-center gap-2 rounded-md border border-border bg-background px-3 py-1.5",
|
|
9935
10212
|
"text-sm font-medium text-foreground",
|
|
9936
10213
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -9957,7 +10234,7 @@ function MosaicOrgSwitcher({
|
|
|
9957
10234
|
{
|
|
9958
10235
|
role: "menu",
|
|
9959
10236
|
"aria-label": triggerAriaLabel,
|
|
9960
|
-
className:
|
|
10237
|
+
className: cn67(
|
|
9961
10238
|
"absolute left-0 top-full z-50 mt-1 min-w-[200px] rounded-md border border-border",
|
|
9962
10239
|
"bg-popover py-1 shadow-md"
|
|
9963
10240
|
),
|
|
@@ -9972,7 +10249,7 @@ function MosaicOrgSwitcher({
|
|
|
9972
10249
|
onSelectOrg?.(org.id);
|
|
9973
10250
|
setOpen(false);
|
|
9974
10251
|
},
|
|
9975
|
-
className:
|
|
10252
|
+
className: cn67(
|
|
9976
10253
|
"flex w-full items-center gap-2.5 px-3 py-2 text-sm text-foreground",
|
|
9977
10254
|
"hover:bg-accent hover:text-accent-foreground",
|
|
9978
10255
|
org.id === currentOrgId && "bg-primary/10 text-primary"
|
|
@@ -10009,7 +10286,7 @@ function MosaicOrgSwitcher({
|
|
|
10009
10286
|
] });
|
|
10010
10287
|
}
|
|
10011
10288
|
MosaicOrgSwitcher.displayName = "MosaicOrgSwitcher";
|
|
10012
|
-
function
|
|
10289
|
+
function cn68(...classes) {
|
|
10013
10290
|
return classes.filter(Boolean).join(" ");
|
|
10014
10291
|
}
|
|
10015
10292
|
function PlusIcon7() {
|
|
@@ -10044,9 +10321,9 @@ function MosaicQuickActionsMenu({
|
|
|
10044
10321
|
className
|
|
10045
10322
|
}) {
|
|
10046
10323
|
const { isMobile } = useDevice();
|
|
10047
|
-
const [open, setOpen] =
|
|
10048
|
-
const ref =
|
|
10049
|
-
|
|
10324
|
+
const [open, setOpen] = React29.useState(false);
|
|
10325
|
+
const ref = React29.useRef(null);
|
|
10326
|
+
React29.useEffect(() => {
|
|
10050
10327
|
if (!open) return;
|
|
10051
10328
|
const h = (e) => {
|
|
10052
10329
|
if (ref.current && !ref.current.contains(e.target)) setOpen(false);
|
|
@@ -10054,19 +10331,19 @@ function MosaicQuickActionsMenu({
|
|
|
10054
10331
|
document.addEventListener("mousedown", h);
|
|
10055
10332
|
return () => document.removeEventListener("mousedown", h);
|
|
10056
10333
|
}, [open]);
|
|
10057
|
-
const itemClass =
|
|
10334
|
+
const itemClass = cn68(
|
|
10058
10335
|
"flex w-full items-center gap-2 px-3 py-2 text-sm text-foreground",
|
|
10059
10336
|
"hover:bg-accent hover:text-accent-foreground",
|
|
10060
10337
|
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
10061
10338
|
"min-h-[44px]"
|
|
10062
10339
|
);
|
|
10063
|
-
return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "quick-actions-menu", className:
|
|
10340
|
+
return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "quick-actions-menu", className: cn68("relative", className), children: [
|
|
10064
10341
|
/* @__PURE__ */ jsxs(
|
|
10065
10342
|
"button",
|
|
10066
10343
|
{
|
|
10067
10344
|
type: "button",
|
|
10068
10345
|
onClick: () => setOpen((v) => !v),
|
|
10069
|
-
className:
|
|
10346
|
+
className: cn68(
|
|
10070
10347
|
"inline-flex items-center justify-center gap-2 rounded-md border border-border bg-background",
|
|
10071
10348
|
"min-h-[44px] min-w-[44px] px-3 py-2 text-sm font-medium text-foreground",
|
|
10072
10349
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -10077,7 +10354,7 @@ function MosaicQuickActionsMenu({
|
|
|
10077
10354
|
"aria-label": label,
|
|
10078
10355
|
children: [
|
|
10079
10356
|
triggerIcon ?? /* @__PURE__ */ jsx(PlusIcon7, {}),
|
|
10080
|
-
/* @__PURE__ */ jsx("span", { className:
|
|
10357
|
+
/* @__PURE__ */ jsx("span", { className: cn68("hidden md:inline"), children: label })
|
|
10081
10358
|
]
|
|
10082
10359
|
}
|
|
10083
10360
|
),
|
|
@@ -10086,14 +10363,14 @@ function MosaicQuickActionsMenu({
|
|
|
10086
10363
|
{
|
|
10087
10364
|
role: "menu",
|
|
10088
10365
|
"aria-label": menuTitle,
|
|
10089
|
-
className:
|
|
10366
|
+
className: cn68(
|
|
10090
10367
|
"absolute right-0 top-full z-50 mt-1 rounded-md border border-border bg-popover py-1 shadow-md",
|
|
10091
10368
|
isMobile ? "w-[min(90vw,280px)]" : "w-56"
|
|
10092
10369
|
),
|
|
10093
10370
|
children: [
|
|
10094
10371
|
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 }) }),
|
|
10095
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
10096
|
-
actions.map((action) => /* @__PURE__ */ jsxs(
|
|
10372
|
+
/* @__PURE__ */ jsx("div", { className: cn68(menuTitle && "border-t border-border") }),
|
|
10373
|
+
actions.map((action) => /* @__PURE__ */ jsxs(React29.Fragment, { children: [
|
|
10097
10374
|
action.separator && /* @__PURE__ */ jsx("div", { className: "my-1 border-t border-border" }),
|
|
10098
10375
|
action.href && renderLink ? renderLink(
|
|
10099
10376
|
action,
|
|
@@ -10397,7 +10674,7 @@ function MosaicOrgProfilePage({
|
|
|
10397
10674
|
);
|
|
10398
10675
|
}
|
|
10399
10676
|
MosaicOrgProfilePage.displayName = "MosaicOrgProfilePage";
|
|
10400
|
-
function
|
|
10677
|
+
function cn69(...classes) {
|
|
10401
10678
|
return classes.filter(Boolean).join(" ");
|
|
10402
10679
|
}
|
|
10403
10680
|
function defaultCompare(a, b) {
|
|
@@ -10460,7 +10737,7 @@ function MosaicDataTable({
|
|
|
10460
10737
|
{
|
|
10461
10738
|
ref,
|
|
10462
10739
|
"data-slot": "data-table",
|
|
10463
|
-
className:
|
|
10740
|
+
className: cn69("w-full border-collapse text-sm", className),
|
|
10464
10741
|
children: [
|
|
10465
10742
|
/* @__PURE__ */ jsx("thead", { "data-slot": "data-table-header", children: /* @__PURE__ */ jsx("tr", { "data-slot": "data-table-header-row", className: "border-b border-border bg-muted", children: columns.map((col, colIndex) => {
|
|
10466
10743
|
const isSortable = masterSortable && col.sortable;
|
|
@@ -10478,7 +10755,7 @@ function MosaicDataTable({
|
|
|
10478
10755
|
handleHeaderClick(col);
|
|
10479
10756
|
}
|
|
10480
10757
|
} : void 0,
|
|
10481
|
-
className:
|
|
10758
|
+
className: cn69(
|
|
10482
10759
|
"px-4 py-3 font-medium text-muted-foreground",
|
|
10483
10760
|
alignClass(col.align),
|
|
10484
10761
|
col.className,
|
|
@@ -10514,7 +10791,7 @@ function MosaicDataTable({
|
|
|
10514
10791
|
"td",
|
|
10515
10792
|
{
|
|
10516
10793
|
"data-slot": "data-table-td",
|
|
10517
|
-
className:
|
|
10794
|
+
className: cn69(
|
|
10518
10795
|
"px-4 py-3 text-foreground",
|
|
10519
10796
|
alignClass(col.align),
|
|
10520
10797
|
col.className
|
|
@@ -10653,7 +10930,7 @@ var stepSegmentVariants = cva(["h-1.5 flex-1 min-w-2 rounded-full transition-col
|
|
|
10653
10930
|
filled: false
|
|
10654
10931
|
}
|
|
10655
10932
|
});
|
|
10656
|
-
function
|
|
10933
|
+
function cn70(...classes) {
|
|
10657
10934
|
return classes.filter(Boolean).join(" ");
|
|
10658
10935
|
}
|
|
10659
10936
|
function resolveStatus(step, index, currentIndex) {
|
|
@@ -10694,7 +10971,7 @@ function MosaicStepPipelineSegments({
|
|
|
10694
10971
|
"aria-valuemax": total,
|
|
10695
10972
|
"aria-valuenow": current,
|
|
10696
10973
|
"aria-valuetext": progressLabel ? progressLabel(current, total) : void 0,
|
|
10697
|
-
className:
|
|
10974
|
+
className: cn70(stepSegmentBarVariants(), className),
|
|
10698
10975
|
children: steps.map((step, index) => {
|
|
10699
10976
|
const status = resolveStatus(step, index, currentIndex);
|
|
10700
10977
|
const filled = status !== "upcoming";
|
|
@@ -10706,7 +10983,7 @@ function MosaicStepPipelineSegments({
|
|
|
10706
10983
|
"data-status": status,
|
|
10707
10984
|
"data-filled": filled,
|
|
10708
10985
|
"aria-hidden": "true",
|
|
10709
|
-
className:
|
|
10986
|
+
className: cn70(stepSegmentVariants({ filled }))
|
|
10710
10987
|
},
|
|
10711
10988
|
key
|
|
10712
10989
|
);
|
|
@@ -10727,7 +11004,7 @@ function MosaicStepPipelineDots({
|
|
|
10727
11004
|
{
|
|
10728
11005
|
ref,
|
|
10729
11006
|
"data-slot": "step-pipeline",
|
|
10730
|
-
className:
|
|
11007
|
+
className: cn70(stepPipelineVariants({ orientation }), className),
|
|
10731
11008
|
children: steps.map((step, index) => {
|
|
10732
11009
|
const status = resolveStatus(step, index, currentIndex);
|
|
10733
11010
|
const isCurrent = status === "current";
|
|
@@ -10739,7 +11016,7 @@ function MosaicStepPipelineDots({
|
|
|
10739
11016
|
"data-slot": "step",
|
|
10740
11017
|
"data-status": status,
|
|
10741
11018
|
"aria-current": isCurrent ? "step" : void 0,
|
|
10742
|
-
className:
|
|
11019
|
+
className: cn70(
|
|
10743
11020
|
"flex shrink-0",
|
|
10744
11021
|
orientation === "horizontal" ? "flex-col items-center gap-2" : "flex-row items-start gap-3",
|
|
10745
11022
|
orientation === "horizontal" && !isLast && "flex-1"
|
|
@@ -10750,14 +11027,14 @@ function MosaicStepPipelineDots({
|
|
|
10750
11027
|
"div",
|
|
10751
11028
|
{
|
|
10752
11029
|
"data-slot": "step-connector",
|
|
10753
|
-
className:
|
|
11030
|
+
className: cn70(stepConnectorVariants({ status, orientation }))
|
|
10754
11031
|
}
|
|
10755
11032
|
),
|
|
10756
11033
|
/* @__PURE__ */ jsx(
|
|
10757
11034
|
"div",
|
|
10758
11035
|
{
|
|
10759
11036
|
"data-slot": "step-indicator",
|
|
10760
|
-
className:
|
|
11037
|
+
className: cn70(stepIndicatorVariants({ status, orientation })),
|
|
10761
11038
|
"aria-hidden": "true",
|
|
10762
11039
|
children: status === "done" ? "\u2713" : /* @__PURE__ */ jsx("span", { children: index + 1 })
|
|
10763
11040
|
}
|
|
@@ -10766,7 +11043,7 @@ function MosaicStepPipelineDots({
|
|
|
10766
11043
|
"div",
|
|
10767
11044
|
{
|
|
10768
11045
|
"data-slot": "step-connector",
|
|
10769
|
-
className:
|
|
11046
|
+
className: cn70(
|
|
10770
11047
|
stepConnectorVariants({
|
|
10771
11048
|
// connector after current step is still upcoming
|
|
10772
11049
|
status: status === "done" ? "done" : "upcoming",
|
|
@@ -10777,12 +11054,12 @@ function MosaicStepPipelineDots({
|
|
|
10777
11054
|
)
|
|
10778
11055
|
] }),
|
|
10779
11056
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center gap-0.5 text-center px-1", children: [
|
|
10780
|
-
/* @__PURE__ */ jsx("span", { "data-slot": "step-label", className:
|
|
11057
|
+
/* @__PURE__ */ jsx("span", { "data-slot": "step-label", className: cn70(stepLabelVariants({ status })), children: step.label }),
|
|
10781
11058
|
step.description !== void 0 && /* @__PURE__ */ jsx(
|
|
10782
11059
|
"span",
|
|
10783
11060
|
{
|
|
10784
11061
|
"data-slot": "step-description",
|
|
10785
|
-
className:
|
|
11062
|
+
className: cn70(stepDescriptionVariants({ status })),
|
|
10786
11063
|
children: step.description
|
|
10787
11064
|
}
|
|
10788
11065
|
)
|
|
@@ -10793,7 +11070,7 @@ function MosaicStepPipelineDots({
|
|
|
10793
11070
|
"div",
|
|
10794
11071
|
{
|
|
10795
11072
|
"data-slot": "step-indicator",
|
|
10796
|
-
className:
|
|
11073
|
+
className: cn70(stepIndicatorVariants({ status, orientation })),
|
|
10797
11074
|
"aria-hidden": "true",
|
|
10798
11075
|
children: status === "done" ? "\u2713" : /* @__PURE__ */ jsx("span", { children: index + 1 })
|
|
10799
11076
|
}
|
|
@@ -10802,7 +11079,7 @@ function MosaicStepPipelineDots({
|
|
|
10802
11079
|
"div",
|
|
10803
11080
|
{
|
|
10804
11081
|
"data-slot": "step-connector",
|
|
10805
|
-
className:
|
|
11082
|
+
className: cn70(
|
|
10806
11083
|
stepConnectorVariants({
|
|
10807
11084
|
status: status === "done" ? "done" : "upcoming",
|
|
10808
11085
|
orientation
|
|
@@ -10812,12 +11089,12 @@ function MosaicStepPipelineDots({
|
|
|
10812
11089
|
)
|
|
10813
11090
|
] }),
|
|
10814
11091
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-0.5 pt-1 pb-4", children: [
|
|
10815
|
-
/* @__PURE__ */ jsx("span", { "data-slot": "step-label", className:
|
|
11092
|
+
/* @__PURE__ */ jsx("span", { "data-slot": "step-label", className: cn70(stepLabelVariants({ status })), children: step.label }),
|
|
10816
11093
|
step.description !== void 0 && /* @__PURE__ */ jsx(
|
|
10817
11094
|
"span",
|
|
10818
11095
|
{
|
|
10819
11096
|
"data-slot": "step-description",
|
|
10820
|
-
className:
|
|
11097
|
+
className: cn70(stepDescriptionVariants({ status })),
|
|
10821
11098
|
children: step.description
|
|
10822
11099
|
}
|
|
10823
11100
|
)
|
|
@@ -10831,7 +11108,7 @@ function MosaicStepPipelineDots({
|
|
|
10831
11108
|
);
|
|
10832
11109
|
}
|
|
10833
11110
|
MosaicStepPipelineDots.displayName = "MosaicStepPipelineDots";
|
|
10834
|
-
function
|
|
11111
|
+
function cn71(...classes) {
|
|
10835
11112
|
return classes.filter(Boolean).join(" ");
|
|
10836
11113
|
}
|
|
10837
11114
|
function MosaicKanbanBoard({ children, className, ref, ...props }) {
|
|
@@ -10840,7 +11117,7 @@ function MosaicKanbanBoard({ children, className, ref, ...props }) {
|
|
|
10840
11117
|
{
|
|
10841
11118
|
ref,
|
|
10842
11119
|
"data-slot": "kanban-board",
|
|
10843
|
-
className:
|
|
11120
|
+
className: cn71(
|
|
10844
11121
|
"flex gap-4 overflow-x-auto pb-4",
|
|
10845
11122
|
"min-h-0",
|
|
10846
11123
|
// Smooth momentum scrolling on iOS
|
|
@@ -10853,7 +11130,7 @@ function MosaicKanbanBoard({ children, className, ref, ...props }) {
|
|
|
10853
11130
|
);
|
|
10854
11131
|
}
|
|
10855
11132
|
MosaicKanbanBoard.displayName = "MosaicKanbanBoard";
|
|
10856
|
-
function
|
|
11133
|
+
function cn72(...classes) {
|
|
10857
11134
|
return classes.filter(Boolean).join(" ");
|
|
10858
11135
|
}
|
|
10859
11136
|
function MosaicKanbanColumn({
|
|
@@ -10871,7 +11148,7 @@ function MosaicKanbanColumn({
|
|
|
10871
11148
|
{
|
|
10872
11149
|
ref,
|
|
10873
11150
|
"data-slot": "kanban-column",
|
|
10874
|
-
className:
|
|
11151
|
+
className: cn72(
|
|
10875
11152
|
// Fixed column width, never shrink so board stays scrollable
|
|
10876
11153
|
"flex flex-col w-72 shrink-0",
|
|
10877
11154
|
// Surface
|
|
@@ -10892,7 +11169,7 @@ function MosaicKanbanColumn({
|
|
|
10892
11169
|
{
|
|
10893
11170
|
"data-slot": "kanban-column-count",
|
|
10894
11171
|
"aria-label": countLabel(count),
|
|
10895
|
-
className:
|
|
11172
|
+
className: cn72(
|
|
10896
11173
|
"inline-flex items-center justify-center",
|
|
10897
11174
|
"min-w-[1.25rem] h-5 px-1.5 rounded-full",
|
|
10898
11175
|
"bg-muted text-muted-foreground",
|
|
@@ -10935,12 +11212,12 @@ function MosaicKanbanColumn({
|
|
|
10935
11212
|
);
|
|
10936
11213
|
}
|
|
10937
11214
|
MosaicKanbanColumn.displayName = "MosaicKanbanColumn";
|
|
10938
|
-
var WorkspaceCtx =
|
|
11215
|
+
var WorkspaceCtx = React29.createContext({
|
|
10939
11216
|
workspaceId: null,
|
|
10940
11217
|
isLoading: false
|
|
10941
11218
|
});
|
|
10942
11219
|
function useMosaicWorkspace() {
|
|
10943
|
-
return
|
|
11220
|
+
return React29.useContext(WorkspaceCtx);
|
|
10944
11221
|
}
|
|
10945
11222
|
var defaultClerkAppearance = {
|
|
10946
11223
|
variables: {
|
|
@@ -10953,9 +11230,9 @@ var defaultClerkAppearance = {
|
|
|
10953
11230
|
}
|
|
10954
11231
|
};
|
|
10955
11232
|
function WorkspaceResolver({ resolveWorkspaceId, initialOrgId, children }) {
|
|
10956
|
-
const [workspaceId, setWorkspaceId] =
|
|
10957
|
-
const [isLoading, setIsLoading] =
|
|
10958
|
-
|
|
11233
|
+
const [workspaceId, setWorkspaceId] = React29.useState(null);
|
|
11234
|
+
const [isLoading, setIsLoading] = React29.useState(false);
|
|
11235
|
+
React29.useEffect(() => {
|
|
10959
11236
|
if (!resolveWorkspaceId) {
|
|
10960
11237
|
setWorkspaceId(initialOrgId ?? null);
|
|
10961
11238
|
return;
|
|
@@ -11114,7 +11391,7 @@ var documentUploadProgressFillVariants = cva(
|
|
|
11114
11391
|
defaultVariants: {}
|
|
11115
11392
|
}
|
|
11116
11393
|
);
|
|
11117
|
-
function
|
|
11394
|
+
function cn73(...classes) {
|
|
11118
11395
|
return classes.filter(Boolean).join(" ");
|
|
11119
11396
|
}
|
|
11120
11397
|
function MosaicDocumentUpload({
|
|
@@ -11155,7 +11432,7 @@ function MosaicDocumentUpload({
|
|
|
11155
11432
|
if (selected.length > 0) onFilesSelected(selected);
|
|
11156
11433
|
event.target.value = "";
|
|
11157
11434
|
}
|
|
11158
|
-
return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "document-upload", className:
|
|
11435
|
+
return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "document-upload", className: cn73("flex flex-col gap-4", className), children: [
|
|
11159
11436
|
/* @__PURE__ */ jsxs(
|
|
11160
11437
|
"div",
|
|
11161
11438
|
{
|
|
@@ -11220,7 +11497,7 @@ function MosaicDocumentUpload({
|
|
|
11220
11497
|
"aria-valuemin": 0,
|
|
11221
11498
|
"aria-valuemax": 100,
|
|
11222
11499
|
"aria-valuenow": file.progress ?? 0,
|
|
11223
|
-
className:
|
|
11500
|
+
className: cn73(documentUploadProgressTrackVariants(), "mt-2"),
|
|
11224
11501
|
children: /* @__PURE__ */ jsx(
|
|
11225
11502
|
"div",
|
|
11226
11503
|
{
|
|
@@ -11297,7 +11574,7 @@ var urlScraperCardVariants = cva(["flex flex-col gap-2 rounded-lg border p-4"],
|
|
|
11297
11574
|
tone: "neutral"
|
|
11298
11575
|
}
|
|
11299
11576
|
});
|
|
11300
|
-
function
|
|
11577
|
+
function cn74(...classes) {
|
|
11301
11578
|
return classes.filter(Boolean).join(" ");
|
|
11302
11579
|
}
|
|
11303
11580
|
function isSyntacticallyValidUrl(candidate) {
|
|
@@ -11336,7 +11613,7 @@ function MosaicUrlScraper(props) {
|
|
|
11336
11613
|
setIsLocallyInvalid(false);
|
|
11337
11614
|
onUrlChange(event.target.value);
|
|
11338
11615
|
}
|
|
11339
|
-
return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "url-scraper", className:
|
|
11616
|
+
return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "url-scraper", className: cn74("flex flex-col gap-4", className), children: [
|
|
11340
11617
|
/* @__PURE__ */ jsxs(
|
|
11341
11618
|
"form",
|
|
11342
11619
|
{
|
|
@@ -11472,7 +11749,7 @@ var chatThreadScrollButtonVariants = cva([
|
|
|
11472
11749
|
"items-center justify-center rounded-full border border-border bg-card text-foreground shadow-sm",
|
|
11473
11750
|
"transition-colors hover:bg-accent/50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
11474
11751
|
]);
|
|
11475
|
-
function
|
|
11752
|
+
function cn75(...classes) {
|
|
11476
11753
|
return classes.filter(Boolean).join(" ");
|
|
11477
11754
|
}
|
|
11478
11755
|
var BOTTOM_THRESHOLD_PX = 24;
|
|
@@ -11556,7 +11833,7 @@ function MosaicChatThread({
|
|
|
11556
11833
|
role: "log",
|
|
11557
11834
|
onScroll: handleScroll,
|
|
11558
11835
|
onKeyDown: handleKeyDown,
|
|
11559
|
-
className:
|
|
11836
|
+
className: cn75(chatThreadRootVariants(), className),
|
|
11560
11837
|
children: [
|
|
11561
11838
|
/* @__PURE__ */ jsx("div", { "data-slot": "chat-thread-content", className: chatThreadContentVariants(), children }),
|
|
11562
11839
|
!isAtBottom && /* @__PURE__ */ jsx(
|
|
@@ -11597,7 +11874,7 @@ var chatComposerActionButtonVariants = cva(
|
|
|
11597
11874
|
}
|
|
11598
11875
|
}
|
|
11599
11876
|
);
|
|
11600
|
-
function
|
|
11877
|
+
function cn76(...classes) {
|
|
11601
11878
|
return classes.filter(Boolean).join(" ");
|
|
11602
11879
|
}
|
|
11603
11880
|
function MosaicChatComposer(props) {
|
|
@@ -11652,7 +11929,7 @@ function MosaicChatComposer(props) {
|
|
|
11652
11929
|
{
|
|
11653
11930
|
ref,
|
|
11654
11931
|
"data-slot": "chat-composer",
|
|
11655
|
-
className:
|
|
11932
|
+
className: cn76(chatComposerRootVariants(), className),
|
|
11656
11933
|
onSubmit: handleSubmit,
|
|
11657
11934
|
children: [
|
|
11658
11935
|
/* @__PURE__ */ jsx(
|
|
@@ -11768,7 +12045,7 @@ var markdownTableCellVariants = cva(["border border-border px-3 py-1.5"], {
|
|
|
11768
12045
|
align: "left"
|
|
11769
12046
|
}
|
|
11770
12047
|
});
|
|
11771
|
-
function
|
|
12048
|
+
function cn77(...classes) {
|
|
11772
12049
|
return classes.filter(Boolean).join(" ");
|
|
11773
12050
|
}
|
|
11774
12051
|
function sanitizeHref(rawHref) {
|
|
@@ -11963,7 +12240,7 @@ function parseBlocks(content) {
|
|
|
11963
12240
|
function MosaicMarkdown({ content, renderCodeBlock, className, ref }) {
|
|
11964
12241
|
const blocks = parseBlocks(content);
|
|
11965
12242
|
const ids = makeIdSource();
|
|
11966
|
-
return /* @__PURE__ */ jsx("div", { ref, "data-slot": "markdown", className:
|
|
12243
|
+
return /* @__PURE__ */ jsx("div", { ref, "data-slot": "markdown", className: cn77(markdownRootVariants(), className), children: blocks.map((block) => {
|
|
11967
12244
|
if (block.kind === "heading") {
|
|
11968
12245
|
const HeadingTag = `h${block.level}`;
|
|
11969
12246
|
return /* @__PURE__ */ jsx(HeadingTag, { className: markdownHeadingVariants({ level: block.level }), children: parseInline(block.text, ids) }, block.id);
|
|
@@ -12041,11 +12318,13 @@ var chatMessageToolStatusVariants = cva(["text-xs font-medium"], {
|
|
|
12041
12318
|
status: "running"
|
|
12042
12319
|
}
|
|
12043
12320
|
});
|
|
12044
|
-
function
|
|
12321
|
+
function cn78(...classes) {
|
|
12045
12322
|
return classes.filter(Boolean).join(" ");
|
|
12046
12323
|
}
|
|
12047
12324
|
function partKey(part, index) {
|
|
12048
|
-
|
|
12325
|
+
if (part.type === "tool") return part.toolCallId;
|
|
12326
|
+
if (part.type === "attachment") return part.attachmentId;
|
|
12327
|
+
return `${part.type}:${index}`;
|
|
12049
12328
|
}
|
|
12050
12329
|
function toolStatusOf(part) {
|
|
12051
12330
|
switch (part.state) {
|
|
@@ -12147,6 +12426,21 @@ function ChatMessageToolPartView({
|
|
|
12147
12426
|
)
|
|
12148
12427
|
] });
|
|
12149
12428
|
}
|
|
12429
|
+
function ChatMessageAttachmentPartView({ part }) {
|
|
12430
|
+
return /* @__PURE__ */ jsx(
|
|
12431
|
+
"div",
|
|
12432
|
+
{
|
|
12433
|
+
"data-slot": "chat-message-attachment",
|
|
12434
|
+
"data-attachment-id": part.attachmentId,
|
|
12435
|
+
"data-attachment-filename": part.fileName,
|
|
12436
|
+
"data-attachment-mimetype": part.mimeType,
|
|
12437
|
+
"data-attachment-size": part.sizeBytes,
|
|
12438
|
+
"data-attachment-url": part.url,
|
|
12439
|
+
className: "my-2",
|
|
12440
|
+
children: part.renderAttachment(part)
|
|
12441
|
+
}
|
|
12442
|
+
);
|
|
12443
|
+
}
|
|
12150
12444
|
function ChatMessagePartView({
|
|
12151
12445
|
part,
|
|
12152
12446
|
renderText,
|
|
@@ -12169,6 +12463,8 @@ function ChatMessagePartView({
|
|
|
12169
12463
|
);
|
|
12170
12464
|
case "tool":
|
|
12171
12465
|
return /* @__PURE__ */ jsx(ChatMessageToolPartView, { part, toolStatusLabels });
|
|
12466
|
+
case "attachment":
|
|
12467
|
+
return /* @__PURE__ */ jsx(ChatMessageAttachmentPartView, { part });
|
|
12172
12468
|
}
|
|
12173
12469
|
}
|
|
12174
12470
|
function MosaicChatMessage({
|
|
@@ -12188,7 +12484,7 @@ function MosaicChatMessage({
|
|
|
12188
12484
|
ref,
|
|
12189
12485
|
"data-slot": "chat-message",
|
|
12190
12486
|
"data-role": messageRole,
|
|
12191
|
-
className:
|
|
12487
|
+
className: cn78(chatMessageContainerVariants({ align: isUser ? "end" : "start" }), className),
|
|
12192
12488
|
children: /* @__PURE__ */ jsx("div", { className: chatMessageBubbleVariants({ role: messageRole }), children: parts.map((part, index) => /* @__PURE__ */ jsx(
|
|
12193
12489
|
ChatMessagePartView,
|
|
12194
12490
|
{
|
|
@@ -12243,7 +12539,7 @@ var approvalPromptButtonVariants = cva(
|
|
|
12243
12539
|
}
|
|
12244
12540
|
}
|
|
12245
12541
|
);
|
|
12246
|
-
function
|
|
12542
|
+
function cn79(...classes) {
|
|
12247
12543
|
return classes.filter(Boolean).join(" ");
|
|
12248
12544
|
}
|
|
12249
12545
|
function MosaicApprovalPrompt(props) {
|
|
@@ -12255,7 +12551,7 @@ function MosaicApprovalPrompt(props) {
|
|
|
12255
12551
|
ref,
|
|
12256
12552
|
"data-slot": "approval-prompt",
|
|
12257
12553
|
"aria-label": promptTitle,
|
|
12258
|
-
className:
|
|
12554
|
+
className: cn79("border-0 p-0 m-0", approvalPromptCardVariants({ tone }), className),
|
|
12259
12555
|
children: [
|
|
12260
12556
|
/* @__PURE__ */ jsx("legend", { "data-slot": "approval-prompt-title", className: "text-base font-semibold md:text-lg", children: promptTitle }),
|
|
12261
12557
|
/* @__PURE__ */ jsxs("div", { "data-slot": "approval-prompt-tool", className: "flex flex-col gap-1", children: [
|
|
@@ -12332,7 +12628,7 @@ var toolToggleListRowVariants = cva(
|
|
|
12332
12628
|
}
|
|
12333
12629
|
}
|
|
12334
12630
|
);
|
|
12335
|
-
function
|
|
12631
|
+
function cn80(...classes) {
|
|
12336
12632
|
return classes.filter(Boolean).join(" ");
|
|
12337
12633
|
}
|
|
12338
12634
|
function MosaicToolToggleList({
|
|
@@ -12348,7 +12644,7 @@ function MosaicToolToggleList({
|
|
|
12348
12644
|
}) {
|
|
12349
12645
|
const toolsById = new Map(tools.map((tool) => [tool.id, tool]));
|
|
12350
12646
|
const approvalLabelById = new Map(approvalLevels.map((level) => [level.id, level.label]));
|
|
12351
|
-
return /* @__PURE__ */ jsx("div", { ref, "data-slot": "tool-toggle-list", className:
|
|
12647
|
+
return /* @__PURE__ */ jsx("div", { ref, "data-slot": "tool-toggle-list", className: cn80("flex flex-col gap-6", className), children: sections.map((section) => /* @__PURE__ */ jsxs(
|
|
12352
12648
|
"div",
|
|
12353
12649
|
{
|
|
12354
12650
|
"data-slot": "tool-toggle-list-section",
|
|
@@ -12379,7 +12675,7 @@ function MosaicToolToggleList({
|
|
|
12379
12675
|
onCheckedChange: (checked) => onToggleTool(tool.id, checked),
|
|
12380
12676
|
"aria-label": toggleAriaLabel(tool.name),
|
|
12381
12677
|
"data-slot": "tool-toggle-list-switch",
|
|
12382
|
-
className:
|
|
12678
|
+
className: cn80(
|
|
12383
12679
|
"relative inline-flex h-6 w-10 shrink-0 cursor-pointer items-center",
|
|
12384
12680
|
"rounded-full border-2 border-transparent outline-none",
|
|
12385
12681
|
"bg-muted transition-colors",
|
|
@@ -12390,7 +12686,7 @@ function MosaicToolToggleList({
|
|
|
12390
12686
|
Switch.Thumb,
|
|
12391
12687
|
{
|
|
12392
12688
|
"data-slot": "tool-toggle-list-switch-thumb",
|
|
12393
|
-
className:
|
|
12689
|
+
className: cn80(
|
|
12394
12690
|
"pointer-events-none block h-4 w-4 rounded-full",
|
|
12395
12691
|
"bg-background shadow-sm",
|
|
12396
12692
|
"translate-x-0 transition-transform",
|
|
@@ -12432,7 +12728,7 @@ function MosaicToolToggleList({
|
|
|
12432
12728
|
{
|
|
12433
12729
|
"aria-label": approvalSelectAriaLabel(tool.name),
|
|
12434
12730
|
"data-slot": "tool-toggle-list-approval-trigger",
|
|
12435
|
-
className:
|
|
12731
|
+
className: cn80(
|
|
12436
12732
|
"inline-flex h-9 min-w-[10rem] items-center justify-between gap-2",
|
|
12437
12733
|
"rounded-md border border-border bg-background px-3 py-2",
|
|
12438
12734
|
"text-sm text-foreground shadow-xs outline-none",
|
|
@@ -12450,7 +12746,7 @@ function MosaicToolToggleList({
|
|
|
12450
12746
|
Select.Popup,
|
|
12451
12747
|
{
|
|
12452
12748
|
"data-slot": "tool-toggle-list-approval-popup",
|
|
12453
|
-
className:
|
|
12749
|
+
className: cn80(
|
|
12454
12750
|
"z-50 min-w-[10rem] overflow-hidden rounded-md border border-border",
|
|
12455
12751
|
"bg-popover p-1 text-popover-foreground shadow-md",
|
|
12456
12752
|
"origin-[var(--transform-origin)]",
|
|
@@ -12463,7 +12759,7 @@ function MosaicToolToggleList({
|
|
|
12463
12759
|
Select.Item,
|
|
12464
12760
|
{
|
|
12465
12761
|
value: level.id,
|
|
12466
|
-
className:
|
|
12762
|
+
className: cn80(
|
|
12467
12763
|
"relative flex cursor-pointer select-none items-center rounded-sm px-2 py-1.5",
|
|
12468
12764
|
"text-sm text-popover-foreground outline-none",
|
|
12469
12765
|
"data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground",
|
|
@@ -12571,7 +12867,7 @@ var apiKeyPanelMessageVariants = cva(["text-sm"], {
|
|
|
12571
12867
|
tone: "muted"
|
|
12572
12868
|
}
|
|
12573
12869
|
});
|
|
12574
|
-
function
|
|
12870
|
+
function cn81(...classes) {
|
|
12575
12871
|
return classes.filter(Boolean).join(" ");
|
|
12576
12872
|
}
|
|
12577
12873
|
function MosaicApiKeyPanel(props) {
|
|
@@ -12599,7 +12895,7 @@ function MosaicApiKeyPanel(props) {
|
|
|
12599
12895
|
function handleKeyChange(event) {
|
|
12600
12896
|
onKeyChange(event.target.value);
|
|
12601
12897
|
}
|
|
12602
|
-
return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "api-key-panel", className:
|
|
12898
|
+
return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "api-key-panel", className: cn81("flex flex-col gap-3", className), children: [
|
|
12603
12899
|
/* @__PURE__ */ jsx(
|
|
12604
12900
|
"div",
|
|
12605
12901
|
{
|
|
@@ -12694,7 +12990,7 @@ MosaicApiKeyPanel.displayName = "MosaicApiKeyPanel";
|
|
|
12694
12990
|
var agentChatRootVariants = cva([
|
|
12695
12991
|
"flex min-h-0 w-full flex-1 flex-col gap-2 overflow-hidden rounded-lg border border-border bg-card"
|
|
12696
12992
|
]);
|
|
12697
|
-
function
|
|
12993
|
+
function cn82(...classes) {
|
|
12698
12994
|
return classes.filter(Boolean).join(" ");
|
|
12699
12995
|
}
|
|
12700
12996
|
function formatPayload2(value) {
|
|
@@ -12830,7 +13126,7 @@ function MosaicAgentChat(props) {
|
|
|
12830
13126
|
setDecisions((previous) => ({ ...previous, [payload.requestId]: decision }));
|
|
12831
13127
|
onApprovalResponse(payload);
|
|
12832
13128
|
}
|
|
12833
|
-
return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "agent-chat", className:
|
|
13129
|
+
return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "agent-chat", className: cn82(agentChatRootVariants(), className), children: [
|
|
12834
13130
|
/* @__PURE__ */ jsx(MosaicChatThread, { scrollToBottomLabel, children: messages.map((message) => /* @__PURE__ */ jsx(
|
|
12835
13131
|
MosaicChatMessage,
|
|
12836
13132
|
{
|
|
@@ -12919,7 +13215,7 @@ var toastProviderPositionVariants = cva(
|
|
|
12919
13215
|
}
|
|
12920
13216
|
}
|
|
12921
13217
|
);
|
|
12922
|
-
function
|
|
13218
|
+
function cn83(...classes) {
|
|
12923
13219
|
return classes.filter(Boolean).join(" ");
|
|
12924
13220
|
}
|
|
12925
13221
|
function MosaicToast({
|
|
@@ -12945,7 +13241,7 @@ function MosaicToast({
|
|
|
12945
13241
|
ref,
|
|
12946
13242
|
"data-slot": "toast",
|
|
12947
13243
|
role,
|
|
12948
|
-
className:
|
|
13244
|
+
className: cn83(toastCardVariants({ variant }), className),
|
|
12949
13245
|
children: [
|
|
12950
13246
|
/* @__PURE__ */ jsxs("div", { "data-slot": "toast-body", className: "flex min-w-0 flex-1 flex-col gap-1", children: [
|
|
12951
13247
|
/* @__PURE__ */ jsx("p", { "data-slot": "toast-title", className: toastTitleVariants({ variant }), children: title }),
|
|
@@ -12985,7 +13281,7 @@ function MosaicToast({
|
|
|
12985
13281
|
);
|
|
12986
13282
|
}
|
|
12987
13283
|
MosaicToast.displayName = "MosaicToast";
|
|
12988
|
-
function
|
|
13284
|
+
function cn84(...classes) {
|
|
12989
13285
|
return classes.filter(Boolean).join(" ");
|
|
12990
13286
|
}
|
|
12991
13287
|
function MosaicToastProvider({
|
|
@@ -12999,7 +13295,7 @@ function MosaicToastProvider({
|
|
|
12999
13295
|
{
|
|
13000
13296
|
ref,
|
|
13001
13297
|
"data-slot": "toast-provider",
|
|
13002
|
-
className:
|
|
13298
|
+
className: cn84(toastProviderPositionVariants({ position }), className),
|
|
13003
13299
|
children
|
|
13004
13300
|
}
|
|
13005
13301
|
);
|
|
@@ -13026,7 +13322,7 @@ var pdfViewerToolbarButtonVariants = cva([
|
|
|
13026
13322
|
"inline-flex min-h-8 min-w-8 items-center justify-center rounded-md border border-border text-sm",
|
|
13027
13323
|
"transition-colors hover:bg-accent/50 disabled:opacity-50 disabled:hover:bg-transparent"
|
|
13028
13324
|
]);
|
|
13029
|
-
function
|
|
13325
|
+
function cn85(...classes) {
|
|
13030
13326
|
return classes.filter(Boolean).join(" ");
|
|
13031
13327
|
}
|
|
13032
13328
|
function buildFrameSrc(fileUrl, currentPage, zoom) {
|
|
@@ -13091,7 +13387,7 @@ function MosaicPdfViewer({
|
|
|
13091
13387
|
if (zoom === void 0 || onZoomChange === void 0) return;
|
|
13092
13388
|
onZoomChange(Math.round((zoom + 0.1) * 100) / 100);
|
|
13093
13389
|
}
|
|
13094
|
-
return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "pdf-viewer", className:
|
|
13390
|
+
return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "pdf-viewer", className: cn85("flex flex-col gap-2", className), children: [
|
|
13095
13391
|
(showPageControls || showZoomControls) && /* @__PURE__ */ jsxs(
|
|
13096
13392
|
"div",
|
|
13097
13393
|
{
|
|
@@ -13180,7 +13476,7 @@ function MosaicPdfViewer({
|
|
|
13180
13476
|
"data-slot": "pdf-viewer-frame",
|
|
13181
13477
|
src: buildFrameSrc(fileUrl, currentPage, zoom),
|
|
13182
13478
|
title: fileUrl,
|
|
13183
|
-
className:
|
|
13479
|
+
className: cn85(
|
|
13184
13480
|
"h-full min-h-64 w-full border-0",
|
|
13185
13481
|
status !== "loaded" && "pointer-events-none absolute inset-0 opacity-0"
|
|
13186
13482
|
)
|
|
@@ -13199,7 +13495,7 @@ var splitPaneCollapseButtonVariants = cva([
|
|
|
13199
13495
|
"inline-flex h-11 w-6 shrink-0 items-center justify-center self-center rounded-md border border-border text-sm",
|
|
13200
13496
|
"transition-colors hover:bg-accent/50"
|
|
13201
13497
|
]);
|
|
13202
|
-
function
|
|
13498
|
+
function cn86(...classes) {
|
|
13203
13499
|
return classes.filter(Boolean).join(" ");
|
|
13204
13500
|
}
|
|
13205
13501
|
function mergeRefs(externalRef, node) {
|
|
@@ -13272,7 +13568,7 @@ function MosaicResizableSplitPane({
|
|
|
13272
13568
|
mergeRefs(ref, node);
|
|
13273
13569
|
},
|
|
13274
13570
|
"data-slot": "resizable-split-pane",
|
|
13275
|
-
className:
|
|
13571
|
+
className: cn86(splitPaneRootVariants(), className),
|
|
13276
13572
|
children: [
|
|
13277
13573
|
/* @__PURE__ */ jsx("div", { "data-slot": "resizable-split-pane-main", className: "min-h-0 min-w-0 flex-1 overflow-auto", children: main }),
|
|
13278
13574
|
!isSideCollapsed && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
@@ -13339,7 +13635,7 @@ var tagInputFieldVariants = cva([
|
|
|
13339
13635
|
"min-w-[6ch] flex-1 border-none bg-transparent px-1 py-0.5 text-sm text-foreground outline-none",
|
|
13340
13636
|
"placeholder:text-muted-foreground"
|
|
13341
13637
|
]);
|
|
13342
|
-
function
|
|
13638
|
+
function cn87(...classes) {
|
|
13343
13639
|
return classes.filter(Boolean).join(" ");
|
|
13344
13640
|
}
|
|
13345
13641
|
function mergeRefs2(externalRef, node) {
|
|
@@ -13390,7 +13686,7 @@ function MosaicTagInput({
|
|
|
13390
13686
|
if (lastTag !== void 0) onRemoveTag(lastTag);
|
|
13391
13687
|
}
|
|
13392
13688
|
}
|
|
13393
|
-
return /* @__PURE__ */ jsxs("div", { "data-slot": "tag-input", className:
|
|
13689
|
+
return /* @__PURE__ */ jsxs("div", { "data-slot": "tag-input", className: cn87(tagInputRootVariants(), className), children: [
|
|
13394
13690
|
tags.map((tag) => /* @__PURE__ */ jsxs("span", { "data-slot": "tag-input-tag", className: tagInputTagVariants(), children: [
|
|
13395
13691
|
tag,
|
|
13396
13692
|
/* @__PURE__ */ jsx(
|
|
@@ -13427,7 +13723,7 @@ function MosaicTagInput({
|
|
|
13427
13723
|
"ul",
|
|
13428
13724
|
{
|
|
13429
13725
|
"data-slot": "tag-input-suggestions",
|
|
13430
|
-
className:
|
|
13726
|
+
className: cn87(
|
|
13431
13727
|
"z-50 mt-1 w-full min-w-[8rem] overflow-hidden rounded-md border border-border",
|
|
13432
13728
|
"bg-popover p-1 text-sm text-popover-foreground shadow-md"
|
|
13433
13729
|
),
|
|
@@ -13446,7 +13742,97 @@ function MosaicTagInput({
|
|
|
13446
13742
|
] });
|
|
13447
13743
|
}
|
|
13448
13744
|
MosaicTagInput.displayName = "MosaicTagInput";
|
|
13745
|
+
var drawerPopupVariants = cva(
|
|
13746
|
+
[
|
|
13747
|
+
"fixed z-50 flex flex-col bg-background shadow-xl outline-none",
|
|
13748
|
+
"transition-transform duration-200 ease-out",
|
|
13749
|
+
"data-[ending-style]:transition-none"
|
|
13750
|
+
],
|
|
13751
|
+
{
|
|
13752
|
+
variants: {
|
|
13753
|
+
side: {
|
|
13754
|
+
right: "inset-y-0 right-0 h-full w-3/4 border-l border-border sm:max-w-sm",
|
|
13755
|
+
left: "inset-y-0 left-0 h-full w-3/4 border-r border-border sm:max-w-sm",
|
|
13756
|
+
top: "inset-x-0 top-0 max-h-[80vh] w-full border-b border-border",
|
|
13757
|
+
bottom: "inset-x-0 bottom-0 max-h-[80vh] w-full border-t border-border"
|
|
13758
|
+
}
|
|
13759
|
+
},
|
|
13760
|
+
defaultVariants: {
|
|
13761
|
+
side: "right"
|
|
13762
|
+
}
|
|
13763
|
+
}
|
|
13764
|
+
);
|
|
13765
|
+
var drawerBackdropVariants = cva(["fixed inset-0 z-50 bg-black/50"]);
|
|
13766
|
+
function cn88(...classes) {
|
|
13767
|
+
return classes.filter(Boolean).join(" ");
|
|
13768
|
+
}
|
|
13769
|
+
function MosaicDrawer({
|
|
13770
|
+
open,
|
|
13771
|
+
onOpenChange,
|
|
13772
|
+
title,
|
|
13773
|
+
closeAriaLabel,
|
|
13774
|
+
children,
|
|
13775
|
+
side = "right",
|
|
13776
|
+
className
|
|
13777
|
+
}) {
|
|
13778
|
+
const titleId = React29.useId();
|
|
13779
|
+
return /* @__PURE__ */ jsx(Dialog.Root, { open, onOpenChange: (nextOpen) => onOpenChange(nextOpen), modal: true, children: /* @__PURE__ */ jsxs(Dialog.Portal, { children: [
|
|
13780
|
+
/* @__PURE__ */ jsx(Dialog.Backdrop, { "data-slot": "drawer-backdrop", className: drawerBackdropVariants() }),
|
|
13781
|
+
/* @__PURE__ */ jsxs(
|
|
13782
|
+
Dialog.Popup,
|
|
13783
|
+
{
|
|
13784
|
+
"data-slot": "drawer",
|
|
13785
|
+
"aria-labelledby": titleId,
|
|
13786
|
+
"aria-modal": "true",
|
|
13787
|
+
className: cn88(drawerPopupVariants({ side }), className),
|
|
13788
|
+
children: [
|
|
13789
|
+
/* @__PURE__ */ jsxs(
|
|
13790
|
+
"div",
|
|
13791
|
+
{
|
|
13792
|
+
"data-slot": "drawer-header",
|
|
13793
|
+
className: "flex items-center justify-between gap-4 border-b border-border p-4",
|
|
13794
|
+
children: [
|
|
13795
|
+
/* @__PURE__ */ jsx(Dialog.Title, { id: titleId, className: "text-base font-semibold text-foreground", children: title }),
|
|
13796
|
+
/* @__PURE__ */ jsx(
|
|
13797
|
+
Dialog.Close,
|
|
13798
|
+
{
|
|
13799
|
+
"aria-label": closeAriaLabel,
|
|
13800
|
+
className: cn88(
|
|
13801
|
+
"flex h-8 w-8 shrink-0 items-center justify-center rounded-md text-muted-foreground transition-colors",
|
|
13802
|
+
"hover:bg-muted hover:text-foreground",
|
|
13803
|
+
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
13804
|
+
),
|
|
13805
|
+
children: /* @__PURE__ */ jsxs(
|
|
13806
|
+
"svg",
|
|
13807
|
+
{
|
|
13808
|
+
width: "16",
|
|
13809
|
+
height: "16",
|
|
13810
|
+
viewBox: "0 0 24 24",
|
|
13811
|
+
fill: "none",
|
|
13812
|
+
stroke: "currentColor",
|
|
13813
|
+
strokeWidth: "2",
|
|
13814
|
+
strokeLinecap: "round",
|
|
13815
|
+
strokeLinejoin: "round",
|
|
13816
|
+
"aria-hidden": "true",
|
|
13817
|
+
children: [
|
|
13818
|
+
/* @__PURE__ */ jsx("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
|
|
13819
|
+
/* @__PURE__ */ jsx("line", { x1: "6", y1: "6", x2: "18", y2: "18" })
|
|
13820
|
+
]
|
|
13821
|
+
}
|
|
13822
|
+
)
|
|
13823
|
+
}
|
|
13824
|
+
)
|
|
13825
|
+
]
|
|
13826
|
+
}
|
|
13827
|
+
),
|
|
13828
|
+
/* @__PURE__ */ jsx("div", { className: "min-h-0 flex-1 overflow-y-auto p-4", children })
|
|
13829
|
+
]
|
|
13830
|
+
}
|
|
13831
|
+
)
|
|
13832
|
+
] }) });
|
|
13833
|
+
}
|
|
13834
|
+
MosaicDrawer.displayName = "MosaicDrawer";
|
|
13449
13835
|
|
|
13450
|
-
export { MosaicAccordion, MosaicAccordionItem, MosaicAccordionPanel, MosaicAccordionTrigger, MosaicActivityFeed, MosaicActivityItem, MosaicAdaptiveGrid, MosaicAdaptiveModal, MosaicAdaptiveNavigation, MosaicAgentCard, MosaicAgentChat, MosaicAgentComposer, MosaicAgentComposerDesktop, MosaicAgentComposerMobile, MosaicAgentList, AgentListDesktop as MosaicAgentListDesktop, AgentListMobile as MosaicAgentListMobile, MosaicAgentTeamPreview, MosaicAnimatedList, MosaicApiKeyPanel, MosaicAppSidebar, MosaicApprovalPrompt, MosaicAvatar, MosaicBadge, MosaicBlurredOrb, MosaicButton, MosaicCard, MosaicCardContent, MosaicCardDescription, MosaicCardFooter, MosaicCardHeader, MosaicCardTitle, MosaicChatComposer, MosaicChatMessage, MosaicChatThread, MosaicCheckbox, MosaicClerkOrgSwitcher, MosaicClerkWebhookHandler, MosaicCollapsible, MosaicCollapsiblePanel, MosaicCollapsibleTrigger, MosaicCombobox, MosaicCounter, MosaicCreateOrgDialog, MosaicDashboardContent, MosaicDashboardHeader, MosaicDashboardLayout, MosaicDataTable, MosaicDeleteConfirmationDialog, MosaicDeviceProvider, MosaicDocumentUpload, MosaicDropdownMenu, MosaicEmptyState, MosaicFallingPattern, MosaicFeature3Col, MosaicFeatureCenteredMedia, MosaicField, MosaicFieldControl, MosaicFieldDescription, MosaicFieldError, MosaicFieldLabel, MosaicFilterBar, MosaicFilterSidebar, MosaicFooterSimple, MosaicHeroSplit, MosaicInput, MosaicInputGroup, MosaicIntegrationsBadge, MosaicInviteMemberDialog, MosaicKanbanBoard, MosaicKanbanColumn, MosaicLogosGrid, MosaicMainNav, MosaicMarkdown, MosaicMarketplaceList, MarketplaceListDesktop as MosaicMarketplaceListDesktop, MarketplaceListMobile as MosaicMarketplaceListMobile, MosaicMemberList, MosaicMemoryCard, MosaicMessageCard, MosaicMessageList, MessageListDesktop as MosaicMessageListDesktop, MessageListMobile as MosaicMessageListMobile, MosaicModuleCard, MosaicModuleForm, MosaicModuleLibrary, MosaicMultiOrgIndicator, MosaicMultiTenantProvider, MosaicNavbar, MosaicOrgPanel, MosaicOrgProfilePage, MosaicOrgRoleBadge, MosaicOrgSwitcher, MosaicPdfViewer, MosaicPreferencesPanel, MosaicPricingCard, MosaicProfilePanel, MosaicProgress, MosaicQuickActionCard, MosaicQuickActionsMenu, MosaicQuickAgentSelector, MosaicQuickStartPanel, MosaicRadioGroup, MosaicRadioGroupItem, MosaicResizableSplitPane, MosaicScrollArea, MosaicSelect, MosaicSelectorModal, MosaicSeparator, MosaicSignInLayout, MosaicSignUpLayout, MosaicSkeleton, MosaicSlider, MosaicStatsGrid, MosaicStepPipeline, MosaicSwitch, MosaicTabs, MosaicTabsList, MosaicTabsPanel, MosaicTabsTrigger, MosaicTagInput, MosaicTemplateCard, MosaicTemplateGallery, MosaicTemplatePreview, MosaicTestimonialsGrid, MosaicTextarea, MosaicThemeProvider, MosaicThemeToggle, MosaicToast, MosaicToastProvider, MosaicToolToggleList, MosaicTooltip, MosaicTooltipContent, MosaicTooltipProvider, MosaicTooltipRoot, MosaicTooltipTrigger, MosaicUrlScraper, MosaicUserButton, Placeholder, agentChatRootVariants, badgeVariants, buttonVariants, chatMessageBubbleVariants, chatMessageContainerVariants, chatMessageToolStatusVariants, pdfViewerFrameVariants, pdfViewerStatusVariants, pdfViewerToolbarButtonVariants, skeletonVariants, splitPaneCollapseButtonVariants, splitPaneHandleVariants, splitPaneRootVariants, tagInputFieldVariants, tagInputRemoveButtonVariants, tagInputRootVariants, tagInputTagVariants, toastCardVariants, toastDismissButtonVariants, toastProviderPositionVariants, toastTitleVariants, toolToggleListRowVariants, toolToggleListSectionVariants, useBreakpoint, useDevice, useMosaicWorkspace as useEffectiveWorkspaceId, useIsDesktop, useIsMobile, useIsTablet, useMediaQuery, useMosaicWorkspace, useOrientation, useViewport, version };
|
|
13836
|
+
export { MosaicAccordion, MosaicAccordionItem, MosaicAccordionPanel, MosaicAccordionTrigger, MosaicActivityFeed, MosaicActivityItem, MosaicAdaptiveGrid, MosaicAdaptiveModal, MosaicAdaptiveNavigation, MosaicAgentCard, MosaicAgentChat, MosaicAgentComposer, MosaicAgentComposerDesktop, MosaicAgentComposerMobile, MosaicAgentList, AgentListDesktop as MosaicAgentListDesktop, AgentListMobile as MosaicAgentListMobile, MosaicAgentTeamPreview, MosaicAnimatedList, MosaicApiKeyPanel, MosaicAppSidebar, MosaicApprovalPrompt, MosaicAvatar, MosaicBadge, MosaicBlurredOrb, MosaicButton, MosaicCard, MosaicCardContent, MosaicCardDescription, MosaicCardFooter, MosaicCardHeader, MosaicCardTitle, MosaicChatComposer, MosaicChatMessage, MosaicChatThread, MosaicCheckbox, MosaicClerkOrgSwitcher, MosaicClerkWebhookHandler, MosaicCollapsible, MosaicCollapsiblePanel, MosaicCollapsibleTrigger, MosaicCombobox, MosaicCounter, MosaicCreateOrgDialog, MosaicDashboardContent, MosaicDashboardHeader, MosaicDashboardLayout, MosaicDataTable, MosaicDeleteConfirmationDialog, MosaicDeviceProvider, MosaicDocumentUpload, MosaicDrawer, MosaicDropdownMenu, MosaicEmptyState, MosaicFallingPattern, MosaicFeature3Col, MosaicFeatureCenteredMedia, MosaicField, MosaicFieldControl, MosaicFieldDescription, MosaicFieldError, MosaicFieldLabel, MosaicFilterBar, MosaicFilterSidebar, MosaicFooterSimple, MosaicHeroSplit, MosaicInput, MosaicInputGroup, MosaicIntegrationsBadge, MosaicInviteMemberDialog, MosaicKanbanBoard, MosaicKanbanColumn, MosaicLogosGrid, MosaicMainNav, MosaicMarkdown, MosaicMarketplaceList, MarketplaceListDesktop as MosaicMarketplaceListDesktop, MarketplaceListMobile as MosaicMarketplaceListMobile, MosaicMemberList, MosaicMemoryCard, MosaicMessageCard, MosaicMessageList, MessageListDesktop as MosaicMessageListDesktop, MessageListMobile as MosaicMessageListMobile, MosaicModelSelector, MosaicModuleCard, MosaicModuleForm, MosaicModuleLibrary, MosaicMultiOrgIndicator, MosaicMultiTenantProvider, MosaicNavbar, MosaicOrgPanel, MosaicOrgProfilePage, MosaicOrgRoleBadge, MosaicOrgSwitcher, MosaicPdfViewer, MosaicPreferencesPanel, MosaicPricingCard, MosaicProfilePanel, MosaicProgress, MosaicQuickActionCard, MosaicQuickActionsMenu, MosaicQuickAgentSelector, MosaicQuickStartPanel, MosaicRadioGroup, MosaicRadioGroupItem, MosaicResizableSplitPane, MosaicScrollArea, MosaicSelect, MosaicSelectorModal, MosaicSeparator, MosaicSignInLayout, MosaicSignUpLayout, MosaicSkeleton, MosaicSlider, MosaicStatsGrid, MosaicStepPipeline, MosaicSwitch, MosaicTabs, MosaicTabsList, MosaicTabsPanel, MosaicTabsTrigger, MosaicTagInput, MosaicTemplateAgentCard, MosaicTemplateCard, MosaicTemplateGallery, MosaicTemplatePreview, MosaicTestimonialsGrid, MosaicTextarea, MosaicThemeProvider, MosaicThemeToggle, MosaicToast, MosaicToastProvider, MosaicToolToggleList, MosaicTooltip, MosaicTooltipContent, MosaicTooltipProvider, MosaicTooltipRoot, MosaicTooltipTrigger, MosaicUrlScraper, MosaicUserButton, Placeholder, agentChatRootVariants, badgeVariants, buttonVariants, chatMessageBubbleVariants, chatMessageContainerVariants, chatMessageToolStatusVariants, drawerBackdropVariants, drawerPopupVariants, pdfViewerFrameVariants, pdfViewerStatusVariants, pdfViewerToolbarButtonVariants, skeletonVariants, splitPaneCollapseButtonVariants, splitPaneHandleVariants, splitPaneRootVariants, tagInputFieldVariants, tagInputRemoveButtonVariants, tagInputRootVariants, tagInputTagVariants, templateAgentCardBadgeVariants, templateAgentCardTagVariants, templateAgentCardVariants, toastCardVariants, toastDismissButtonVariants, toastProviderPositionVariants, toastTitleVariants, toolToggleListRowVariants, toolToggleListSectionVariants, useBreakpoint, useDevice, useMosaicWorkspace as useEffectiveWorkspaceId, useIsDesktop, useIsMobile, useIsTablet, useMediaQuery, useMosaicWorkspace, useOrientation, useViewport, version };
|
|
13451
13837
|
//# sourceMappingURL=index.js.map
|
|
13452
13838
|
//# sourceMappingURL=index.js.map
|