@vantageos/mosaic-blocks 0.5.20-alpha → 0.5.22-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 +1190 -419
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +624 -2
- package/dist/index.d.ts +624 -2
- package/dist/index.js +1132 -388
- 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.22-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,108 @@ function MosaicAgentComposer(props) {
|
|
|
4456
4571
|
return isMobile ? /* @__PURE__ */ jsx(MosaicAgentComposerMobile, { ...props }) : /* @__PURE__ */ jsx(MosaicAgentComposerDesktop, { ...props });
|
|
4457
4572
|
}
|
|
4458
4573
|
MosaicAgentComposer.displayName = "MosaicAgentComposer";
|
|
4459
|
-
|
|
4574
|
+
var agentEditorVariants = cva("flex flex-col gap-4 w-full", {
|
|
4575
|
+
variants: {},
|
|
4576
|
+
defaultVariants: {}
|
|
4577
|
+
});
|
|
4578
|
+
function MosaicAgentEditor({
|
|
4579
|
+
className,
|
|
4580
|
+
ref,
|
|
4581
|
+
nameLabel,
|
|
4582
|
+
nameValue,
|
|
4583
|
+
onNameChange,
|
|
4584
|
+
nameError,
|
|
4585
|
+
roleLabel,
|
|
4586
|
+
roleValue,
|
|
4587
|
+
onRoleChange,
|
|
4588
|
+
roleError,
|
|
4589
|
+
instructionsLabel,
|
|
4590
|
+
instructionsValue,
|
|
4591
|
+
onInstructionsChange,
|
|
4592
|
+
instructionsError,
|
|
4593
|
+
saveLabel,
|
|
4594
|
+
cancelLabel,
|
|
4595
|
+
onSave,
|
|
4596
|
+
onCancel,
|
|
4597
|
+
canSave,
|
|
4598
|
+
isSaving,
|
|
4599
|
+
savingLabel
|
|
4600
|
+
}) {
|
|
4601
|
+
const nameErrorId = nameError ? "mosaic-agent-editor-name-error" : void 0;
|
|
4602
|
+
const roleErrorId = roleError ? "mosaic-agent-editor-role-error" : void 0;
|
|
4603
|
+
const instructionsErrorId = instructionsError ? "mosaic-agent-editor-instructions-error" : void 0;
|
|
4604
|
+
const saveDisabled = !canSave || isSaving;
|
|
4605
|
+
const handleSave = () => {
|
|
4606
|
+
if (saveDisabled) return;
|
|
4607
|
+
onSave();
|
|
4608
|
+
};
|
|
4609
|
+
return /* @__PURE__ */ jsxs(
|
|
4610
|
+
"div",
|
|
4611
|
+
{
|
|
4612
|
+
ref,
|
|
4613
|
+
"data-slot": "agent-editor",
|
|
4614
|
+
"aria-busy": isSaving ? "true" : void 0,
|
|
4615
|
+
className: agentEditorVariants({ className }),
|
|
4616
|
+
children: [
|
|
4617
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1.5", children: [
|
|
4618
|
+
/* @__PURE__ */ jsx("label", { htmlFor: "mosaic-agent-editor-name", className: "text-sm font-medium text-foreground", children: nameLabel }),
|
|
4619
|
+
/* @__PURE__ */ jsx(
|
|
4620
|
+
MosaicInput,
|
|
4621
|
+
{
|
|
4622
|
+
id: "mosaic-agent-editor-name",
|
|
4623
|
+
value: nameValue,
|
|
4624
|
+
onChange: (event) => onNameChange(event.target.value),
|
|
4625
|
+
"aria-invalid": nameError ? "true" : void 0,
|
|
4626
|
+
"aria-describedby": nameErrorId
|
|
4627
|
+
}
|
|
4628
|
+
),
|
|
4629
|
+
nameError ? /* @__PURE__ */ jsx("p", { id: nameErrorId, className: "text-xs font-medium text-destructive", children: nameError }) : null
|
|
4630
|
+
] }),
|
|
4631
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1.5", children: [
|
|
4632
|
+
/* @__PURE__ */ jsx("label", { htmlFor: "mosaic-agent-editor-role", className: "text-sm font-medium text-foreground", children: roleLabel }),
|
|
4633
|
+
/* @__PURE__ */ jsx(
|
|
4634
|
+
MosaicInput,
|
|
4635
|
+
{
|
|
4636
|
+
id: "mosaic-agent-editor-role",
|
|
4637
|
+
value: roleValue,
|
|
4638
|
+
onChange: (event) => onRoleChange(event.target.value),
|
|
4639
|
+
"aria-invalid": roleError ? "true" : void 0,
|
|
4640
|
+
"aria-describedby": roleErrorId
|
|
4641
|
+
}
|
|
4642
|
+
),
|
|
4643
|
+
roleError ? /* @__PURE__ */ jsx("p", { id: roleErrorId, className: "text-xs font-medium text-destructive", children: roleError }) : null
|
|
4644
|
+
] }),
|
|
4645
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1.5", children: [
|
|
4646
|
+
/* @__PURE__ */ jsx(
|
|
4647
|
+
"label",
|
|
4648
|
+
{
|
|
4649
|
+
htmlFor: "mosaic-agent-editor-instructions",
|
|
4650
|
+
className: "text-sm font-medium text-foreground",
|
|
4651
|
+
children: instructionsLabel
|
|
4652
|
+
}
|
|
4653
|
+
),
|
|
4654
|
+
/* @__PURE__ */ jsx(
|
|
4655
|
+
MosaicTextarea,
|
|
4656
|
+
{
|
|
4657
|
+
id: "mosaic-agent-editor-instructions",
|
|
4658
|
+
value: instructionsValue,
|
|
4659
|
+
onChange: (event) => onInstructionsChange(event.target.value),
|
|
4660
|
+
"aria-invalid": instructionsError ? "true" : void 0,
|
|
4661
|
+
"aria-describedby": instructionsErrorId
|
|
4662
|
+
}
|
|
4663
|
+
),
|
|
4664
|
+
instructionsError ? /* @__PURE__ */ jsx("p", { id: instructionsErrorId, className: "text-xs font-medium text-destructive", children: instructionsError }) : null
|
|
4665
|
+
] }),
|
|
4666
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-end gap-2", children: [
|
|
4667
|
+
/* @__PURE__ */ jsx(MosaicButton, { type: "button", variant: "outline", onClick: onCancel, children: cancelLabel }),
|
|
4668
|
+
/* @__PURE__ */ jsx(MosaicButton, { type: "button", onClick: handleSave, disabled: saveDisabled, children: isSaving ? savingLabel : saveLabel })
|
|
4669
|
+
] })
|
|
4670
|
+
]
|
|
4671
|
+
}
|
|
4672
|
+
);
|
|
4673
|
+
}
|
|
4674
|
+
MosaicAgentEditor.displayName = "MosaicAgentEditor";
|
|
4675
|
+
function cn47(...classes) {
|
|
4460
4676
|
return classes.filter(Boolean).join(" ");
|
|
4461
4677
|
}
|
|
4462
4678
|
function EditIcon() {
|
|
@@ -4517,7 +4733,7 @@ function MosaicModuleCard({
|
|
|
4517
4733
|
{
|
|
4518
4734
|
ref,
|
|
4519
4735
|
"data-slot": "module-card",
|
|
4520
|
-
className:
|
|
4736
|
+
className: cn47(
|
|
4521
4737
|
"min-h-[80px] rounded-xl border border-border bg-card p-4 transition-all",
|
|
4522
4738
|
"flex items-start gap-3",
|
|
4523
4739
|
isSelected && "ring-2 ring-primary bg-primary/5",
|
|
@@ -4579,7 +4795,7 @@ function MosaicThemeProvider({
|
|
|
4579
4795
|
return /* @__PURE__ */ jsx("div", { "data-slot": "theme-provider", children });
|
|
4580
4796
|
}
|
|
4581
4797
|
MosaicThemeProvider.displayName = "MosaicThemeProvider";
|
|
4582
|
-
function
|
|
4798
|
+
function cn48(...classes) {
|
|
4583
4799
|
return classes.filter(Boolean).join(" ");
|
|
4584
4800
|
}
|
|
4585
4801
|
var ANIM_ID6 = "mosaic-delete-dialog-kf";
|
|
@@ -4621,21 +4837,21 @@ function MosaicDeleteConfirmationDialog({
|
|
|
4621
4837
|
cancelLabel,
|
|
4622
4838
|
confirmLabel
|
|
4623
4839
|
}) {
|
|
4624
|
-
|
|
4840
|
+
React29.useEffect(() => {
|
|
4625
4841
|
injectStyles6();
|
|
4626
4842
|
}, []);
|
|
4627
4843
|
return /* @__PURE__ */ jsx(AlertDialog.Root, { open, onOpenChange, children: /* @__PURE__ */ jsxs(AlertDialog.Portal, { children: [
|
|
4628
4844
|
/* @__PURE__ */ jsx(
|
|
4629
4845
|
AlertDialog.Backdrop,
|
|
4630
4846
|
{
|
|
4631
|
-
className:
|
|
4847
|
+
className: cn48("mosaic-delete-overlay", "fixed inset-0 z-50 bg-black/50")
|
|
4632
4848
|
}
|
|
4633
4849
|
),
|
|
4634
4850
|
/* @__PURE__ */ jsxs(
|
|
4635
4851
|
AlertDialog.Popup,
|
|
4636
4852
|
{
|
|
4637
4853
|
"data-slot": "delete-confirmation-dialog",
|
|
4638
|
-
className:
|
|
4854
|
+
className: cn48(
|
|
4639
4855
|
"mosaic-delete-content",
|
|
4640
4856
|
"fixed left-1/2 top-1/2 z-50",
|
|
4641
4857
|
"w-full max-w-[92vw] sm:max-w-md",
|
|
@@ -4648,7 +4864,7 @@ function MosaicDeleteConfirmationDialog({
|
|
|
4648
4864
|
/* @__PURE__ */ jsx(
|
|
4649
4865
|
AlertDialog.Close,
|
|
4650
4866
|
{
|
|
4651
|
-
className:
|
|
4867
|
+
className: cn48(
|
|
4652
4868
|
"inline-flex min-h-[44px] w-full items-center justify-center rounded-md border border-border",
|
|
4653
4869
|
"bg-background px-4 py-2 text-sm font-medium text-foreground",
|
|
4654
4870
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -4662,7 +4878,7 @@ function MosaicDeleteConfirmationDialog({
|
|
|
4662
4878
|
AlertDialog.Close,
|
|
4663
4879
|
{
|
|
4664
4880
|
onClick: onConfirm,
|
|
4665
|
-
className:
|
|
4881
|
+
className: cn48(
|
|
4666
4882
|
"inline-flex min-h-[44px] w-full items-center justify-center rounded-md",
|
|
4667
4883
|
"bg-destructive px-4 py-2 text-sm font-medium text-destructive-foreground",
|
|
4668
4884
|
"hover:bg-destructive/90",
|
|
@@ -4679,7 +4895,154 @@ function MosaicDeleteConfirmationDialog({
|
|
|
4679
4895
|
] }) });
|
|
4680
4896
|
}
|
|
4681
4897
|
MosaicDeleteConfirmationDialog.displayName = "MosaicDeleteConfirmationDialog";
|
|
4682
|
-
|
|
4898
|
+
var alertDialogContentVariants = cva([
|
|
4899
|
+
"fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)]",
|
|
4900
|
+
"-translate-x-1/2 -translate-y-1/2 gap-4",
|
|
4901
|
+
"rounded-lg border border-border bg-background p-6 shadow-lg",
|
|
4902
|
+
"sm:max-w-lg"
|
|
4903
|
+
]);
|
|
4904
|
+
var alertDialogOverlayVariants = cva(["fixed inset-0 z-50 bg-black/50"]);
|
|
4905
|
+
function cn49(...classes) {
|
|
4906
|
+
return classes.filter(Boolean).join(" ");
|
|
4907
|
+
}
|
|
4908
|
+
function MosaicAlertDialog(props) {
|
|
4909
|
+
return /* @__PURE__ */ jsx(AlertDialog.Root, { "data-slot": "alert-dialog", ...props });
|
|
4910
|
+
}
|
|
4911
|
+
MosaicAlertDialog.displayName = "MosaicAlertDialog";
|
|
4912
|
+
function MosaicAlertDialogTrigger(props) {
|
|
4913
|
+
return /* @__PURE__ */ jsx(AlertDialog.Trigger, { "data-slot": "alert-dialog-trigger", ...props });
|
|
4914
|
+
}
|
|
4915
|
+
MosaicAlertDialogTrigger.displayName = "MosaicAlertDialogTrigger";
|
|
4916
|
+
function MosaicAlertDialogPortal(props) {
|
|
4917
|
+
return /* @__PURE__ */ jsx(AlertDialog.Portal, { "data-slot": "alert-dialog-portal", ...props });
|
|
4918
|
+
}
|
|
4919
|
+
MosaicAlertDialogPortal.displayName = "MosaicAlertDialogPortal";
|
|
4920
|
+
function MosaicAlertDialogOverlay({ className, ...props }) {
|
|
4921
|
+
return /* @__PURE__ */ jsx(
|
|
4922
|
+
AlertDialog.Backdrop,
|
|
4923
|
+
{
|
|
4924
|
+
"data-slot": "alert-dialog-overlay",
|
|
4925
|
+
className: cn49(alertDialogOverlayVariants(), className),
|
|
4926
|
+
...props
|
|
4927
|
+
}
|
|
4928
|
+
);
|
|
4929
|
+
}
|
|
4930
|
+
MosaicAlertDialogOverlay.displayName = "MosaicAlertDialogOverlay";
|
|
4931
|
+
function MosaicAlertDialogContent({ className, ...props }) {
|
|
4932
|
+
return /* @__PURE__ */ jsxs(MosaicAlertDialogPortal, { children: [
|
|
4933
|
+
/* @__PURE__ */ jsx(MosaicAlertDialogOverlay, {}),
|
|
4934
|
+
/* @__PURE__ */ jsx(
|
|
4935
|
+
AlertDialog.Popup,
|
|
4936
|
+
{
|
|
4937
|
+
"data-slot": "alert-dialog-content",
|
|
4938
|
+
className: cn49(alertDialogContentVariants(), className),
|
|
4939
|
+
...props
|
|
4940
|
+
}
|
|
4941
|
+
)
|
|
4942
|
+
] });
|
|
4943
|
+
}
|
|
4944
|
+
MosaicAlertDialogContent.displayName = "MosaicAlertDialogContent";
|
|
4945
|
+
function MosaicAlertDialogHeader({ className, ...props }) {
|
|
4946
|
+
return /* @__PURE__ */ jsx(
|
|
4947
|
+
"div",
|
|
4948
|
+
{
|
|
4949
|
+
"data-slot": "alert-dialog-header",
|
|
4950
|
+
className: cn49("flex flex-col gap-2 text-center sm:text-left", className),
|
|
4951
|
+
...props
|
|
4952
|
+
}
|
|
4953
|
+
);
|
|
4954
|
+
}
|
|
4955
|
+
MosaicAlertDialogHeader.displayName = "MosaicAlertDialogHeader";
|
|
4956
|
+
function MosaicAlertDialogFooter({ className, ...props }) {
|
|
4957
|
+
return /* @__PURE__ */ jsx(
|
|
4958
|
+
"div",
|
|
4959
|
+
{
|
|
4960
|
+
"data-slot": "alert-dialog-footer",
|
|
4961
|
+
className: cn49("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", className),
|
|
4962
|
+
...props
|
|
4963
|
+
}
|
|
4964
|
+
);
|
|
4965
|
+
}
|
|
4966
|
+
MosaicAlertDialogFooter.displayName = "MosaicAlertDialogFooter";
|
|
4967
|
+
function MosaicAlertDialogTitle({
|
|
4968
|
+
className,
|
|
4969
|
+
children,
|
|
4970
|
+
...props
|
|
4971
|
+
}) {
|
|
4972
|
+
return /* @__PURE__ */ jsx(
|
|
4973
|
+
AlertDialog.Title,
|
|
4974
|
+
{
|
|
4975
|
+
"data-slot": "alert-dialog-title",
|
|
4976
|
+
className: cn49("text-lg font-semibold text-foreground", className),
|
|
4977
|
+
...props,
|
|
4978
|
+
children
|
|
4979
|
+
}
|
|
4980
|
+
);
|
|
4981
|
+
}
|
|
4982
|
+
MosaicAlertDialogTitle.displayName = "MosaicAlertDialogTitle";
|
|
4983
|
+
function MosaicAlertDialogDescription({
|
|
4984
|
+
className,
|
|
4985
|
+
children,
|
|
4986
|
+
...props
|
|
4987
|
+
}) {
|
|
4988
|
+
return /* @__PURE__ */ jsx(
|
|
4989
|
+
AlertDialog.Description,
|
|
4990
|
+
{
|
|
4991
|
+
"data-slot": "alert-dialog-description",
|
|
4992
|
+
className: cn49("text-sm text-muted-foreground", className),
|
|
4993
|
+
...props,
|
|
4994
|
+
children
|
|
4995
|
+
}
|
|
4996
|
+
);
|
|
4997
|
+
}
|
|
4998
|
+
MosaicAlertDialogDescription.displayName = "MosaicAlertDialogDescription";
|
|
4999
|
+
function MosaicAlertDialogAction({
|
|
5000
|
+
className,
|
|
5001
|
+
children,
|
|
5002
|
+
...props
|
|
5003
|
+
}) {
|
|
5004
|
+
return /* @__PURE__ */ jsx(
|
|
5005
|
+
AlertDialog.Close,
|
|
5006
|
+
{
|
|
5007
|
+
"data-slot": "alert-dialog-action",
|
|
5008
|
+
className: cn49(
|
|
5009
|
+
"inline-flex h-9 items-center justify-center gap-1.5 rounded-md px-4",
|
|
5010
|
+
"bg-destructive text-sm font-medium text-destructive-foreground",
|
|
5011
|
+
"hover:bg-destructive/90",
|
|
5012
|
+
"focus-visible:outline-none focus-visible:ring-[3px] focus-visible:ring-ring",
|
|
5013
|
+
"disabled:pointer-events-none disabled:opacity-50",
|
|
5014
|
+
className
|
|
5015
|
+
),
|
|
5016
|
+
...props,
|
|
5017
|
+
children
|
|
5018
|
+
}
|
|
5019
|
+
);
|
|
5020
|
+
}
|
|
5021
|
+
MosaicAlertDialogAction.displayName = "MosaicAlertDialogAction";
|
|
5022
|
+
function MosaicAlertDialogCancel({
|
|
5023
|
+
className,
|
|
5024
|
+
children,
|
|
5025
|
+
...props
|
|
5026
|
+
}) {
|
|
5027
|
+
return /* @__PURE__ */ jsx(
|
|
5028
|
+
AlertDialog.Close,
|
|
5029
|
+
{
|
|
5030
|
+
"data-slot": "alert-dialog-cancel",
|
|
5031
|
+
className: cn49(
|
|
5032
|
+
"inline-flex h-9 items-center justify-center gap-1.5 rounded-md border border-border px-4",
|
|
5033
|
+
"bg-background text-sm font-medium text-foreground shadow-xs",
|
|
5034
|
+
"hover:bg-muted hover:text-foreground",
|
|
5035
|
+
"focus-visible:outline-none focus-visible:ring-[3px] focus-visible:ring-ring",
|
|
5036
|
+
"disabled:pointer-events-none disabled:opacity-50",
|
|
5037
|
+
className
|
|
5038
|
+
),
|
|
5039
|
+
...props,
|
|
5040
|
+
children
|
|
5041
|
+
}
|
|
5042
|
+
);
|
|
5043
|
+
}
|
|
5044
|
+
MosaicAlertDialogCancel.displayName = "MosaicAlertDialogCancel";
|
|
5045
|
+
function cn50(...classes) {
|
|
4683
5046
|
return classes.filter(Boolean).join(" ");
|
|
4684
5047
|
}
|
|
4685
5048
|
function Toggle({
|
|
@@ -4695,7 +5058,7 @@ function Toggle({
|
|
|
4695
5058
|
id,
|
|
4696
5059
|
"aria-checked": checked,
|
|
4697
5060
|
onClick: () => onChange(!checked),
|
|
4698
|
-
className:
|
|
5061
|
+
className: cn50(
|
|
4699
5062
|
"relative inline-flex h-6 w-11 shrink-0 cursor-pointer rounded-full border-2 border-transparent",
|
|
4700
5063
|
"transition-colors duration-200 ease-in-out",
|
|
4701
5064
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
@@ -4704,7 +5067,7 @@ function Toggle({
|
|
|
4704
5067
|
children: /* @__PURE__ */ jsx(
|
|
4705
5068
|
"span",
|
|
4706
5069
|
{
|
|
4707
|
-
className:
|
|
5070
|
+
className: cn50(
|
|
4708
5071
|
"pointer-events-none inline-block h-5 w-5 rounded-full bg-background shadow-lg",
|
|
4709
5072
|
"transform transition duration-200 ease-in-out",
|
|
4710
5073
|
checked ? "translate-x-5" : "translate-x-0"
|
|
@@ -4726,7 +5089,7 @@ function NativeSelect({
|
|
|
4726
5089
|
id,
|
|
4727
5090
|
value,
|
|
4728
5091
|
onChange: (e) => onChange(e.target.value),
|
|
4729
|
-
className:
|
|
5092
|
+
className: cn50(
|
|
4730
5093
|
"flex min-h-[48px] w-full rounded-md border border-input bg-background px-3 py-2",
|
|
4731
5094
|
"text-sm text-foreground",
|
|
4732
5095
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -4746,7 +5109,7 @@ function MosaicPreferencesPanel({
|
|
|
4746
5109
|
className
|
|
4747
5110
|
}) {
|
|
4748
5111
|
const { isMobile } = useDevice();
|
|
4749
|
-
return /* @__PURE__ */ jsxs("div", { "data-slot": "preferences-panel", className:
|
|
5112
|
+
return /* @__PURE__ */ jsxs("div", { "data-slot": "preferences-panel", className: cn50("space-y-4 md:space-y-6", className), children: [
|
|
4750
5113
|
groups.map((group) => /* @__PURE__ */ jsxs(
|
|
4751
5114
|
"div",
|
|
4752
5115
|
{
|
|
@@ -4789,13 +5152,13 @@ function MosaicPreferencesPanel({
|
|
|
4789
5152
|
},
|
|
4790
5153
|
group.id
|
|
4791
5154
|
)),
|
|
4792
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
5155
|
+
/* @__PURE__ */ jsx("div", { className: cn50("flex", isMobile ? "flex-col" : "justify-end"), children: /* @__PURE__ */ jsxs(
|
|
4793
5156
|
"button",
|
|
4794
5157
|
{
|
|
4795
5158
|
type: "button",
|
|
4796
5159
|
onClick: onSave,
|
|
4797
5160
|
disabled: isSaving,
|
|
4798
|
-
className:
|
|
5161
|
+
className: cn50(
|
|
4799
5162
|
"inline-flex min-h-[44px] items-center justify-center gap-2 rounded-md",
|
|
4800
5163
|
"bg-primary px-4 py-2 text-sm font-medium text-primary-foreground",
|
|
4801
5164
|
"hover:bg-primary/90",
|
|
@@ -4831,7 +5194,7 @@ function MosaicPreferencesPanel({
|
|
|
4831
5194
|
] });
|
|
4832
5195
|
}
|
|
4833
5196
|
MosaicPreferencesPanel.displayName = "MosaicPreferencesPanel";
|
|
4834
|
-
function
|
|
5197
|
+
function cn51(...classes) {
|
|
4835
5198
|
return classes.filter(Boolean).join(" ");
|
|
4836
5199
|
}
|
|
4837
5200
|
function AvatarDisplay({
|
|
@@ -4844,7 +5207,7 @@ function AvatarDisplay({
|
|
|
4844
5207
|
return /* @__PURE__ */ jsx(
|
|
4845
5208
|
"span",
|
|
4846
5209
|
{
|
|
4847
|
-
className:
|
|
5210
|
+
className: cn51(
|
|
4848
5211
|
"inline-flex shrink-0 items-center justify-center rounded-full bg-muted text-muted-foreground font-semibold overflow-hidden",
|
|
4849
5212
|
sizeClass
|
|
4850
5213
|
),
|
|
@@ -4876,7 +5239,7 @@ function MosaicProfilePanel({
|
|
|
4876
5239
|
className
|
|
4877
5240
|
}) {
|
|
4878
5241
|
const { isMobile } = useDevice();
|
|
4879
|
-
return /* @__PURE__ */ jsxs("div", { "data-slot": "profile-panel", className:
|
|
5242
|
+
return /* @__PURE__ */ jsxs("div", { "data-slot": "profile-panel", className: cn51("space-y-4 md:space-y-6", className), children: [
|
|
4880
5243
|
/* @__PURE__ */ jsxs("div", { className: "rounded-lg border border-border bg-card text-card-foreground shadow-sm", children: [
|
|
4881
5244
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-col space-y-1.5 p-6", children: [
|
|
4882
5245
|
/* @__PURE__ */ jsx("h3", { className: "text-lg font-semibold leading-none tracking-tight md:text-xl", children: avatarHeading }),
|
|
@@ -4896,7 +5259,7 @@ function MosaicProfilePanel({
|
|
|
4896
5259
|
{
|
|
4897
5260
|
type: "button",
|
|
4898
5261
|
onClick: onAvatarUpload,
|
|
4899
|
-
className:
|
|
5262
|
+
className: cn51(
|
|
4900
5263
|
"inline-flex min-h-[44px] items-center justify-center gap-2 rounded-md border border-border",
|
|
4901
5264
|
"bg-background px-4 py-2 text-sm font-medium text-foreground",
|
|
4902
5265
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -4946,7 +5309,7 @@ function MosaicProfilePanel({
|
|
|
4946
5309
|
placeholder: field.placeholder,
|
|
4947
5310
|
onChange: (e) => onFieldChange?.(field.id, e.target.value),
|
|
4948
5311
|
rows: 4,
|
|
4949
|
-
className:
|
|
5312
|
+
className: cn51(
|
|
4950
5313
|
"flex min-h-[120px] w-full rounded-md border border-input bg-background px-3 py-2",
|
|
4951
5314
|
"text-sm text-foreground placeholder:text-muted-foreground",
|
|
4952
5315
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -4962,7 +5325,7 @@ function MosaicProfilePanel({
|
|
|
4962
5325
|
readOnly: field.readOnly,
|
|
4963
5326
|
placeholder: field.placeholder,
|
|
4964
5327
|
onChange: (e) => onFieldChange?.(field.id, e.target.value),
|
|
4965
|
-
className:
|
|
5328
|
+
className: cn51(
|
|
4966
5329
|
"flex min-h-[48px] w-full rounded-md border border-input bg-background px-3 py-2",
|
|
4967
5330
|
"text-sm text-foreground placeholder:text-muted-foreground",
|
|
4968
5331
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -4982,7 +5345,7 @@ function MosaicProfilePanel({
|
|
|
4982
5345
|
{
|
|
4983
5346
|
type: "button",
|
|
4984
5347
|
onClick: onChangePassword,
|
|
4985
|
-
className:
|
|
5348
|
+
className: cn51(
|
|
4986
5349
|
"inline-flex min-h-[44px] items-center justify-center rounded-md border border-border",
|
|
4987
5350
|
"bg-background px-4 py-2 text-sm font-medium text-foreground",
|
|
4988
5351
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -4994,13 +5357,13 @@ function MosaicProfilePanel({
|
|
|
4994
5357
|
) })
|
|
4995
5358
|
] }),
|
|
4996
5359
|
extraSections,
|
|
4997
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
5360
|
+
/* @__PURE__ */ jsx("div", { className: cn51("flex", isMobile ? "flex-col" : "justify-end"), children: /* @__PURE__ */ jsxs(
|
|
4998
5361
|
"button",
|
|
4999
5362
|
{
|
|
5000
5363
|
type: "button",
|
|
5001
5364
|
onClick: onSave,
|
|
5002
5365
|
disabled: isSaving,
|
|
5003
|
-
className:
|
|
5366
|
+
className: cn51(
|
|
5004
5367
|
"inline-flex min-h-[44px] items-center justify-center gap-2 rounded-md",
|
|
5005
5368
|
"bg-primary px-4 py-2 text-sm font-medium text-primary-foreground",
|
|
5006
5369
|
"hover:bg-primary/90",
|
|
@@ -5036,7 +5399,7 @@ function MosaicProfilePanel({
|
|
|
5036
5399
|
] });
|
|
5037
5400
|
}
|
|
5038
5401
|
MosaicProfilePanel.displayName = "MosaicProfilePanel";
|
|
5039
|
-
function
|
|
5402
|
+
function cn52(...classes) {
|
|
5040
5403
|
return classes.filter(Boolean).join(" ");
|
|
5041
5404
|
}
|
|
5042
5405
|
var ANIM_ID7 = "mosaic-main-nav-kf";
|
|
@@ -5127,12 +5490,12 @@ function MosaicMainNav({
|
|
|
5127
5490
|
className
|
|
5128
5491
|
}) {
|
|
5129
5492
|
const { isMobile } = useDevice();
|
|
5130
|
-
const [isOpen, setIsOpen] =
|
|
5493
|
+
const [isOpen, setIsOpen] = React29.useState(false);
|
|
5131
5494
|
const linkRenderer = renderLink ?? defaultRenderLink;
|
|
5132
|
-
|
|
5495
|
+
React29.useEffect(() => {
|
|
5133
5496
|
injectStyles7();
|
|
5134
5497
|
}, []);
|
|
5135
|
-
|
|
5498
|
+
React29.useEffect(() => {
|
|
5136
5499
|
if (!isOpen) return;
|
|
5137
5500
|
const handler = (e) => {
|
|
5138
5501
|
if (e.key === "Escape") setIsOpen(false);
|
|
@@ -5149,7 +5512,7 @@ function MosaicMainNav({
|
|
|
5149
5512
|
{
|
|
5150
5513
|
type: "button",
|
|
5151
5514
|
onClick: () => setIsOpen(!isOpen),
|
|
5152
|
-
className:
|
|
5515
|
+
className: cn52(
|
|
5153
5516
|
"inline-flex min-h-[44px] min-w-[44px] items-center justify-center rounded-md p-0",
|
|
5154
5517
|
"text-foreground hover:bg-accent hover:text-accent-foreground",
|
|
5155
5518
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -5175,7 +5538,7 @@ function MosaicMainNav({
|
|
|
5175
5538
|
"aria-label": drawerNavAriaLabel,
|
|
5176
5539
|
open: isOpen,
|
|
5177
5540
|
"data-open": isOpen ? "true" : "false",
|
|
5178
|
-
className:
|
|
5541
|
+
className: cn52(
|
|
5179
5542
|
"mosaic-nav-drawer",
|
|
5180
5543
|
"fixed inset-y-0 left-0 z-50 m-0 w-[280px] max-h-none h-full p-0",
|
|
5181
5544
|
"border-r border-border bg-background shadow-xl",
|
|
@@ -5192,7 +5555,7 @@ function MosaicMainNav({
|
|
|
5192
5555
|
{
|
|
5193
5556
|
type: "button",
|
|
5194
5557
|
onClick: () => setIsOpen(false),
|
|
5195
|
-
className:
|
|
5558
|
+
className: cn52(
|
|
5196
5559
|
"inline-flex h-8 w-8 items-center justify-center rounded-md",
|
|
5197
5560
|
"text-muted-foreground hover:bg-accent hover:text-accent-foreground",
|
|
5198
5561
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -5205,13 +5568,13 @@ function MosaicMainNav({
|
|
|
5205
5568
|
/* @__PURE__ */ jsx("nav", { className: "flex flex-col gap-1 p-4", "aria-label": mainNavAriaLabel, children: filteredItems.map((item) => {
|
|
5206
5569
|
const Icon = item.icon;
|
|
5207
5570
|
const active = isItemActive(item);
|
|
5208
|
-
const itemClass =
|
|
5571
|
+
const itemClass = cn52(
|
|
5209
5572
|
"flex items-center gap-3 rounded-lg px-3 py-3 text-sm font-medium transition-colors",
|
|
5210
5573
|
"hover:bg-accent hover:text-accent-foreground",
|
|
5211
5574
|
"min-h-[44px]",
|
|
5212
5575
|
active && "bg-accent text-accent-foreground"
|
|
5213
5576
|
);
|
|
5214
|
-
return /* @__PURE__ */ jsx(
|
|
5577
|
+
return /* @__PURE__ */ jsx(React29.Fragment, { children: linkRenderer(
|
|
5215
5578
|
item,
|
|
5216
5579
|
/* @__PURE__ */ jsxs(Fragment, { children: [
|
|
5217
5580
|
Icon && /* @__PURE__ */ jsx(Icon, { className: "h-5 w-5 shrink-0", "aria-hidden": "true" }),
|
|
@@ -5231,18 +5594,18 @@ function MosaicMainNav({
|
|
|
5231
5594
|
"nav",
|
|
5232
5595
|
{
|
|
5233
5596
|
"data-slot": "main-nav",
|
|
5234
|
-
className:
|
|
5597
|
+
className: cn52("flex items-center gap-1", className),
|
|
5235
5598
|
"aria-label": mainNavAriaLabel,
|
|
5236
5599
|
children: filteredItems.map((item) => {
|
|
5237
5600
|
const Icon = item.icon;
|
|
5238
5601
|
const active = isItemActive(item);
|
|
5239
|
-
const itemClass =
|
|
5602
|
+
const itemClass = cn52(
|
|
5240
5603
|
"flex items-center gap-2 rounded-lg px-3 py-2 text-sm font-medium transition-colors",
|
|
5241
5604
|
"hover:bg-accent hover:text-accent-foreground",
|
|
5242
5605
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
5243
5606
|
active && "bg-accent text-accent-foreground"
|
|
5244
5607
|
);
|
|
5245
|
-
return /* @__PURE__ */ jsx(
|
|
5608
|
+
return /* @__PURE__ */ jsx(React29.Fragment, { children: linkRenderer(
|
|
5246
5609
|
item,
|
|
5247
5610
|
/* @__PURE__ */ jsxs(Fragment, { children: [
|
|
5248
5611
|
Icon && /* @__PURE__ */ jsx(Icon, { className: "h-4 w-4", "aria-hidden": "true" }),
|
|
@@ -5256,7 +5619,7 @@ function MosaicMainNav({
|
|
|
5256
5619
|
);
|
|
5257
5620
|
}
|
|
5258
5621
|
MosaicMainNav.displayName = "MosaicMainNav";
|
|
5259
|
-
function
|
|
5622
|
+
function cn53(...classes) {
|
|
5260
5623
|
return classes.filter(Boolean).join(" ");
|
|
5261
5624
|
}
|
|
5262
5625
|
function MoreVertIcon() {
|
|
@@ -5379,10 +5742,10 @@ function MosaicAgentCard({
|
|
|
5379
5742
|
createdLabel,
|
|
5380
5743
|
className
|
|
5381
5744
|
}) {
|
|
5382
|
-
const [menuOpen, setMenuOpen] =
|
|
5383
|
-
const menuRef =
|
|
5745
|
+
const [menuOpen, setMenuOpen] = React29.useState(false);
|
|
5746
|
+
const menuRef = React29.useRef(null);
|
|
5384
5747
|
const formattedDate = agent.createdAt ? new Date(agent.createdAt).toLocaleDateString() : void 0;
|
|
5385
|
-
|
|
5748
|
+
React29.useEffect(() => {
|
|
5386
5749
|
if (!menuOpen) return;
|
|
5387
5750
|
const handler = (e) => {
|
|
5388
5751
|
if (menuRef.current && !menuRef.current.contains(e.target)) {
|
|
@@ -5396,7 +5759,7 @@ function MosaicAgentCard({
|
|
|
5396
5759
|
"div",
|
|
5397
5760
|
{
|
|
5398
5761
|
"data-slot": "agent-card",
|
|
5399
|
-
className:
|
|
5762
|
+
className: cn53(
|
|
5400
5763
|
"relative overflow-hidden rounded-lg border border-border bg-card text-card-foreground shadow-sm",
|
|
5401
5764
|
"transition-shadow hover:shadow-md",
|
|
5402
5765
|
agent.isActive && "ring-2 ring-primary",
|
|
@@ -5406,7 +5769,7 @@ function MosaicAgentCard({
|
|
|
5406
5769
|
/* @__PURE__ */ jsx(
|
|
5407
5770
|
"div",
|
|
5408
5771
|
{
|
|
5409
|
-
className:
|
|
5772
|
+
className: cn53(
|
|
5410
5773
|
"absolute left-0 top-0 h-1 w-full",
|
|
5411
5774
|
agent.isActive ? "bg-primary" : "bg-muted"
|
|
5412
5775
|
)
|
|
@@ -5418,7 +5781,7 @@ function MosaicAgentCard({
|
|
|
5418
5781
|
agent.accentColor && /* @__PURE__ */ jsx(
|
|
5419
5782
|
"span",
|
|
5420
5783
|
{
|
|
5421
|
-
className:
|
|
5784
|
+
className: cn53("h-3 w-3 shrink-0 rounded-full", agent.accentColor),
|
|
5422
5785
|
"aria-hidden": "true"
|
|
5423
5786
|
}
|
|
5424
5787
|
),
|
|
@@ -5436,7 +5799,7 @@ function MosaicAgentCard({
|
|
|
5436
5799
|
{
|
|
5437
5800
|
type: "button",
|
|
5438
5801
|
onClick: () => setMenuOpen((v) => !v),
|
|
5439
|
-
className:
|
|
5802
|
+
className: cn53(
|
|
5440
5803
|
"inline-flex h-8 w-8 items-center justify-center rounded-md",
|
|
5441
5804
|
"text-muted-foreground hover:bg-accent hover:text-accent-foreground",
|
|
5442
5805
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -5451,7 +5814,7 @@ function MosaicAgentCard({
|
|
|
5451
5814
|
"div",
|
|
5452
5815
|
{
|
|
5453
5816
|
role: "menu",
|
|
5454
|
-
className:
|
|
5817
|
+
className: cn53(
|
|
5455
5818
|
"absolute right-0 top-full z-50 mt-1 min-w-[140px] rounded-md border border-border",
|
|
5456
5819
|
"bg-popover py-1 shadow-md"
|
|
5457
5820
|
),
|
|
@@ -5466,7 +5829,7 @@ function MosaicAgentCard({
|
|
|
5466
5829
|
onToggleStatus(agent.id);
|
|
5467
5830
|
setMenuOpen(false);
|
|
5468
5831
|
},
|
|
5469
|
-
className:
|
|
5832
|
+
className: cn53(
|
|
5470
5833
|
"flex w-full items-center gap-2 px-3 py-2 text-sm text-foreground",
|
|
5471
5834
|
"hover:bg-accent hover:text-accent-foreground",
|
|
5472
5835
|
"disabled:pointer-events-none disabled:opacity-50"
|
|
@@ -5525,7 +5888,7 @@ function MosaicAgentCard({
|
|
|
5525
5888
|
type: "button",
|
|
5526
5889
|
disabled: isLoading,
|
|
5527
5890
|
onClick: () => onToggleStatus(agent.id),
|
|
5528
|
-
className:
|
|
5891
|
+
className: cn53(
|
|
5529
5892
|
"inline-flex h-7 items-center justify-center rounded-md px-3 text-xs font-medium",
|
|
5530
5893
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
5531
5894
|
"disabled:pointer-events-none disabled:opacity-50",
|
|
@@ -5541,7 +5904,7 @@ function MosaicAgentCard({
|
|
|
5541
5904
|
);
|
|
5542
5905
|
}
|
|
5543
5906
|
MosaicAgentCard.displayName = "MosaicAgentCard";
|
|
5544
|
-
function
|
|
5907
|
+
function cn54(...classes) {
|
|
5545
5908
|
return classes.filter(Boolean).join(" ");
|
|
5546
5909
|
}
|
|
5547
5910
|
function PlusIcon3() {
|
|
@@ -5624,7 +5987,7 @@ function PickerContent({
|
|
|
5624
5987
|
{
|
|
5625
5988
|
type: "button",
|
|
5626
5989
|
onClick: () => onAdd(agent.id),
|
|
5627
|
-
className:
|
|
5990
|
+
className: cn54(
|
|
5628
5991
|
"flex w-full items-center gap-3 rounded-lg px-3 py-2.5 text-sm",
|
|
5629
5992
|
"hover:bg-accent hover:text-accent-foreground",
|
|
5630
5993
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -5633,7 +5996,7 @@ function PickerContent({
|
|
|
5633
5996
|
agent.accentColor && /* @__PURE__ */ jsx(
|
|
5634
5997
|
"span",
|
|
5635
5998
|
{
|
|
5636
|
-
className:
|
|
5999
|
+
className: cn54("h-3 w-3 shrink-0 rounded-full", agent.accentColor),
|
|
5637
6000
|
"aria-hidden": "true"
|
|
5638
6001
|
}
|
|
5639
6002
|
),
|
|
@@ -5650,7 +6013,7 @@ function PickerContent({
|
|
|
5650
6013
|
{
|
|
5651
6014
|
type: "button",
|
|
5652
6015
|
onClick: onOpenBuilder,
|
|
5653
|
-
className:
|
|
6016
|
+
className: cn54(
|
|
5654
6017
|
"flex w-full items-center gap-3 rounded-lg px-3 py-2.5 text-sm",
|
|
5655
6018
|
"hover:bg-accent hover:text-accent-foreground",
|
|
5656
6019
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -5685,9 +6048,9 @@ function MosaicQuickAgentSelector({
|
|
|
5685
6048
|
className
|
|
5686
6049
|
}) {
|
|
5687
6050
|
const { isMobile } = useDevice();
|
|
5688
|
-
const [pickerOpen, setPickerOpen] =
|
|
5689
|
-
const dropdownRef =
|
|
5690
|
-
|
|
6051
|
+
const [pickerOpen, setPickerOpen] = React29.useState(false);
|
|
6052
|
+
const dropdownRef = React29.useRef(null);
|
|
6053
|
+
React29.useEffect(() => {
|
|
5691
6054
|
if (!pickerOpen || isMobile) return;
|
|
5692
6055
|
const handler = (e) => {
|
|
5693
6056
|
if (dropdownRef.current && !dropdownRef.current.contains(e.target)) {
|
|
@@ -5705,11 +6068,11 @@ function MosaicQuickAgentSelector({
|
|
|
5705
6068
|
setPickerOpen(false);
|
|
5706
6069
|
};
|
|
5707
6070
|
const canAdd = selectedAgents.length < maxAgents;
|
|
5708
|
-
return /* @__PURE__ */ jsxs("div", { "data-slot": "quick-agent-selector", className:
|
|
6071
|
+
return /* @__PURE__ */ jsxs("div", { "data-slot": "quick-agent-selector", className: cn54("flex items-center gap-2", className), children: [
|
|
5709
6072
|
/* @__PURE__ */ jsx("div", { className: "flex items-center gap-2 overflow-x-auto", children: selectedAgents.map((agent) => /* @__PURE__ */ jsxs(
|
|
5710
6073
|
"div",
|
|
5711
6074
|
{
|
|
5712
|
-
className:
|
|
6075
|
+
className: cn54(
|
|
5713
6076
|
"group flex shrink-0 items-center gap-2 rounded-md border border-border bg-card",
|
|
5714
6077
|
isMobile ? "px-2 py-1" : "px-3 py-1.5"
|
|
5715
6078
|
),
|
|
@@ -5717,17 +6080,17 @@ function MosaicQuickAgentSelector({
|
|
|
5717
6080
|
agent.accentColor && /* @__PURE__ */ jsx(
|
|
5718
6081
|
"span",
|
|
5719
6082
|
{
|
|
5720
|
-
className:
|
|
6083
|
+
className: cn54("h-2 w-2 shrink-0 rounded-full", agent.accentColor),
|
|
5721
6084
|
"aria-hidden": "true"
|
|
5722
6085
|
}
|
|
5723
6086
|
),
|
|
5724
|
-
/* @__PURE__ */ jsx("span", { className:
|
|
6087
|
+
/* @__PURE__ */ jsx("span", { className: cn54("whitespace-nowrap font-medium", isMobile ? "text-xs" : "text-sm"), children: isMobile ? agent.type.split("-")[0] : agent.name }),
|
|
5725
6088
|
/* @__PURE__ */ jsx(
|
|
5726
6089
|
"button",
|
|
5727
6090
|
{
|
|
5728
6091
|
type: "button",
|
|
5729
6092
|
onClick: () => onRemoveAgent(agent.id),
|
|
5730
|
-
className:
|
|
6093
|
+
className: cn54(
|
|
5731
6094
|
"inline-flex h-4 w-4 items-center justify-center rounded",
|
|
5732
6095
|
"text-muted-foreground hover:text-foreground",
|
|
5733
6096
|
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
@@ -5747,7 +6110,7 @@ function MosaicQuickAgentSelector({
|
|
|
5747
6110
|
{
|
|
5748
6111
|
type: "button",
|
|
5749
6112
|
onClick: () => setPickerOpen((v) => !v),
|
|
5750
|
-
className:
|
|
6113
|
+
className: cn54(
|
|
5751
6114
|
"inline-flex items-center justify-center gap-2 rounded-md border border-border bg-background",
|
|
5752
6115
|
"px-3 py-1.5 text-sm font-medium text-foreground",
|
|
5753
6116
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -5762,7 +6125,7 @@ function MosaicQuickAgentSelector({
|
|
|
5762
6125
|
!isMobile && pickerOpen && /* @__PURE__ */ jsx(
|
|
5763
6126
|
"div",
|
|
5764
6127
|
{
|
|
5765
|
-
className:
|
|
6128
|
+
className: cn54(
|
|
5766
6129
|
"absolute left-0 top-full z-50 mt-2 w-72 rounded-lg border border-border",
|
|
5767
6130
|
"bg-popover shadow-lg"
|
|
5768
6131
|
),
|
|
@@ -5811,7 +6174,7 @@ function MosaicQuickAgentSelector({
|
|
|
5811
6174
|
/* @__PURE__ */ jsxs(
|
|
5812
6175
|
"span",
|
|
5813
6176
|
{
|
|
5814
|
-
className:
|
|
6177
|
+
className: cn54(
|
|
5815
6178
|
"shrink-0 rounded-md bg-secondary px-2 py-0.5 text-xs font-medium text-secondary-foreground"
|
|
5816
6179
|
),
|
|
5817
6180
|
children: [
|
|
@@ -5824,6 +6187,81 @@ function MosaicQuickAgentSelector({
|
|
|
5824
6187
|
] });
|
|
5825
6188
|
}
|
|
5826
6189
|
MosaicQuickAgentSelector.displayName = "MosaicQuickAgentSelector";
|
|
6190
|
+
var agentPreviewVariants = cva(["rounded-lg border border-border"], {
|
|
6191
|
+
variants: {
|
|
6192
|
+
variant: {
|
|
6193
|
+
summary: ["flex items-center gap-3 p-3 bg-background"],
|
|
6194
|
+
detailed: []
|
|
6195
|
+
}
|
|
6196
|
+
},
|
|
6197
|
+
defaultVariants: {
|
|
6198
|
+
variant: "summary"
|
|
6199
|
+
}
|
|
6200
|
+
});
|
|
6201
|
+
function cn55(...classes) {
|
|
6202
|
+
return classes.filter(Boolean).join(" ");
|
|
6203
|
+
}
|
|
6204
|
+
function MosaicAgentPreview(props) {
|
|
6205
|
+
if (props.variant === "detailed") {
|
|
6206
|
+
const { name: name2, title, attributes, className: className2 } = props;
|
|
6207
|
+
return /* @__PURE__ */ jsxs(
|
|
6208
|
+
"div",
|
|
6209
|
+
{
|
|
6210
|
+
"data-slot": "agent-preview",
|
|
6211
|
+
className: cn55(agentPreviewVariants({ variant: "detailed" }), className2),
|
|
6212
|
+
children: [
|
|
6213
|
+
/* @__PURE__ */ jsx("div", { "data-slot": "agent-preview-header", className: "p-4 pb-0", children: /* @__PURE__ */ jsx("p", { className: "text-base font-semibold leading-none tracking-tight", children: title }) }),
|
|
6214
|
+
/* @__PURE__ */ jsxs("div", { className: "p-4", children: [
|
|
6215
|
+
/* @__PURE__ */ jsx("p", { className: "mb-3 truncate text-sm font-medium", children: name2 }),
|
|
6216
|
+
attributes.length > 0 && /* @__PURE__ */ jsx("ul", { className: "space-y-2", children: attributes.map((attribute) => /* @__PURE__ */ jsxs(
|
|
6217
|
+
"li",
|
|
6218
|
+
{
|
|
6219
|
+
"data-slot": "agent-preview-attribute",
|
|
6220
|
+
className: "flex items-start justify-between gap-3",
|
|
6221
|
+
children: [
|
|
6222
|
+
/* @__PURE__ */ jsx("span", { className: "text-xs font-medium text-muted-foreground", children: attribute.label }),
|
|
6223
|
+
/* @__PURE__ */ jsx("span", { className: "text-xs font-medium", children: attribute.value })
|
|
6224
|
+
]
|
|
6225
|
+
},
|
|
6226
|
+
attribute.id
|
|
6227
|
+
)) })
|
|
6228
|
+
] })
|
|
6229
|
+
]
|
|
6230
|
+
}
|
|
6231
|
+
);
|
|
6232
|
+
}
|
|
6233
|
+
const { name, tagline, badgeLabel, className } = props;
|
|
6234
|
+
return /* @__PURE__ */ jsxs(
|
|
6235
|
+
"div",
|
|
6236
|
+
{
|
|
6237
|
+
"data-slot": "agent-preview",
|
|
6238
|
+
className: cn55(agentPreviewVariants({ variant: "summary" }), className),
|
|
6239
|
+
children: [
|
|
6240
|
+
/* @__PURE__ */ jsx(
|
|
6241
|
+
"span",
|
|
6242
|
+
{
|
|
6243
|
+
"aria-hidden": "true",
|
|
6244
|
+
"data-slot": "agent-preview-avatar",
|
|
6245
|
+
className: "h-10 w-10 shrink-0 rounded-full bg-primary/10"
|
|
6246
|
+
}
|
|
6247
|
+
),
|
|
6248
|
+
/* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1", children: [
|
|
6249
|
+
/* @__PURE__ */ jsx("p", { className: "truncate text-sm font-medium", children: name }),
|
|
6250
|
+
/* @__PURE__ */ jsx("p", { className: "truncate text-xs text-muted-foreground", children: tagline })
|
|
6251
|
+
] }),
|
|
6252
|
+
/* @__PURE__ */ jsx(
|
|
6253
|
+
"span",
|
|
6254
|
+
{
|
|
6255
|
+
"data-slot": "agent-preview-badge",
|
|
6256
|
+
className: "shrink-0 rounded-full bg-secondary px-2.5 py-0.5 text-xs font-semibold text-secondary-foreground",
|
|
6257
|
+
children: badgeLabel
|
|
6258
|
+
}
|
|
6259
|
+
)
|
|
6260
|
+
]
|
|
6261
|
+
}
|
|
6262
|
+
);
|
|
6263
|
+
}
|
|
6264
|
+
MosaicAgentPreview.displayName = "MosaicAgentPreview";
|
|
5827
6265
|
var memoryCardVariants = cva(
|
|
5828
6266
|
[
|
|
5829
6267
|
"group relative rounded-lg border border-border bg-card text-card-foreground shadow-sm",
|
|
@@ -5889,7 +6327,7 @@ var memoryActionsMenuTriggerVariants = cva(
|
|
|
5889
6327
|
}
|
|
5890
6328
|
}
|
|
5891
6329
|
);
|
|
5892
|
-
function
|
|
6330
|
+
function cn56(...classes) {
|
|
5893
6331
|
return classes.filter(Boolean).join(" ");
|
|
5894
6332
|
}
|
|
5895
6333
|
var MAX_VISIBLE_TAGS = 3;
|
|
@@ -6043,10 +6481,10 @@ function MosaicMemoryCard(props) {
|
|
|
6043
6481
|
ref
|
|
6044
6482
|
} = props;
|
|
6045
6483
|
const variant = props.variant ?? "detailed";
|
|
6046
|
-
const [menuOpen, setMenuOpen] =
|
|
6047
|
-
const menuRef =
|
|
6484
|
+
const [menuOpen, setMenuOpen] = React29.useState(false);
|
|
6485
|
+
const menuRef = React29.useRef(null);
|
|
6048
6486
|
const SourceIcon = SOURCE_ICONS[memory.source];
|
|
6049
|
-
|
|
6487
|
+
React29.useEffect(() => {
|
|
6050
6488
|
if (!menuOpen) return;
|
|
6051
6489
|
const handler = (event) => {
|
|
6052
6490
|
if (menuRef.current && !menuRef.current.contains(event.target)) {
|
|
@@ -6067,7 +6505,7 @@ function MosaicMemoryCard(props) {
|
|
|
6067
6505
|
"aria-label": moreActionsLabel,
|
|
6068
6506
|
"aria-haspopup": "menu",
|
|
6069
6507
|
"aria-expanded": menuOpen,
|
|
6070
|
-
className:
|
|
6508
|
+
className: cn56(memoryActionsMenuTriggerVariants({ variant })),
|
|
6071
6509
|
children: /* @__PURE__ */ jsx(MoreVertIcon2, {})
|
|
6072
6510
|
}
|
|
6073
6511
|
),
|
|
@@ -6075,7 +6513,7 @@ function MosaicMemoryCard(props) {
|
|
|
6075
6513
|
"div",
|
|
6076
6514
|
{
|
|
6077
6515
|
role: "menu",
|
|
6078
|
-
className:
|
|
6516
|
+
className: cn56(
|
|
6079
6517
|
"absolute right-0 top-full z-50 mt-1 min-w-[140px] rounded-md border border-border",
|
|
6080
6518
|
"bg-popover py-1 shadow-md"
|
|
6081
6519
|
),
|
|
@@ -6116,7 +6554,7 @@ function MosaicMemoryCard(props) {
|
|
|
6116
6554
|
ref,
|
|
6117
6555
|
"data-slot": "memory-card",
|
|
6118
6556
|
"data-variant": variant,
|
|
6119
|
-
className:
|
|
6557
|
+
className: cn56(memoryCardVariants({ variant }), className),
|
|
6120
6558
|
children: props.variant !== "compact" ? /* @__PURE__ */ jsxs("div", { className: "space-y-3", children: [
|
|
6121
6559
|
/* @__PURE__ */ jsxs("div", { className: "flex items-start justify-between gap-3", children: [
|
|
6122
6560
|
/* @__PURE__ */ jsxs("div", { className: "flex min-w-0 flex-1 items-start gap-3", children: [
|
|
@@ -6126,7 +6564,7 @@ function MosaicMemoryCard(props) {
|
|
|
6126
6564
|
/* @__PURE__ */ jsx(
|
|
6127
6565
|
"span",
|
|
6128
6566
|
{
|
|
6129
|
-
className:
|
|
6567
|
+
className: cn56(
|
|
6130
6568
|
memoryScopeBadgeVariants({ scope: memory.scope, bordered: true }),
|
|
6131
6569
|
"mt-1"
|
|
6132
6570
|
),
|
|
@@ -6139,8 +6577,8 @@ function MosaicMemoryCard(props) {
|
|
|
6139
6577
|
] }),
|
|
6140
6578
|
/* @__PURE__ */ jsx("p", { className: "line-clamp-3 text-sm text-muted-foreground", children: memory.content }),
|
|
6141
6579
|
/* @__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:
|
|
6580
|
+
visibleTags.map((tag) => /* @__PURE__ */ jsx("span", { className: cn56(memoryTagBadgeVariants()), children: tag }, tag)),
|
|
6581
|
+
hiddenTagCount > 0 && /* @__PURE__ */ jsx("span", { className: cn56(memoryTagBadgeVariants()), children: props.formatMoreTags(hiddenTagCount) })
|
|
6144
6582
|
] }),
|
|
6145
6583
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between border-t pt-2 text-xs text-muted-foreground", children: [
|
|
6146
6584
|
/* @__PURE__ */ jsxs("span", { className: "flex items-center gap-1", children: [
|
|
@@ -6168,26 +6606,188 @@ function MosaicMemoryCard(props) {
|
|
|
6168
6606
|
/* @__PURE__ */ jsx(
|
|
6169
6607
|
"span",
|
|
6170
6608
|
{
|
|
6171
|
-
className:
|
|
6609
|
+
className: cn56(memoryScopeBadgeVariants({ scope: memory.scope, bordered: false })),
|
|
6172
6610
|
children: formatScope(memory.scope)
|
|
6173
6611
|
}
|
|
6174
6612
|
),
|
|
6175
|
-
/* @__PURE__ */ jsxs("span", { className: "flex items-center gap-1", children: [
|
|
6176
|
-
/* @__PURE__ */ jsx(ClockIcon3, {}),
|
|
6177
|
-
formatTimeAgo(memory.createdAt)
|
|
6178
|
-
] })
|
|
6179
|
-
] }),
|
|
6180
|
-
/* @__PURE__ */ jsxs("span", { className: "flex items-center gap-1", children: [
|
|
6181
|
-
/* @__PURE__ */ jsx(TagIcon, {}),
|
|
6182
|
-
formatUsageCount(memory.usageCount)
|
|
6183
|
-
] })
|
|
6613
|
+
/* @__PURE__ */ jsxs("span", { className: "flex items-center gap-1", children: [
|
|
6614
|
+
/* @__PURE__ */ jsx(ClockIcon3, {}),
|
|
6615
|
+
formatTimeAgo(memory.createdAt)
|
|
6616
|
+
] })
|
|
6617
|
+
] }),
|
|
6618
|
+
/* @__PURE__ */ jsxs("span", { className: "flex items-center gap-1", children: [
|
|
6619
|
+
/* @__PURE__ */ jsx(TagIcon, {}),
|
|
6620
|
+
formatUsageCount(memory.usageCount)
|
|
6621
|
+
] })
|
|
6622
|
+
] })
|
|
6623
|
+
] })
|
|
6624
|
+
}
|
|
6625
|
+
);
|
|
6626
|
+
}
|
|
6627
|
+
MosaicMemoryCard.displayName = "MosaicMemoryCard";
|
|
6628
|
+
var templateAgentCardVariants = cva(
|
|
6629
|
+
[
|
|
6630
|
+
"rounded-lg border border-border bg-card text-card-foreground shadow-sm",
|
|
6631
|
+
"transition-all hover:border-primary/50"
|
|
6632
|
+
],
|
|
6633
|
+
{
|
|
6634
|
+
variants: {
|
|
6635
|
+
selected: {
|
|
6636
|
+
true: "ring-2 ring-primary border-primary bg-primary/5",
|
|
6637
|
+
false: ""
|
|
6638
|
+
}
|
|
6639
|
+
},
|
|
6640
|
+
defaultVariants: {
|
|
6641
|
+
selected: false
|
|
6642
|
+
}
|
|
6643
|
+
}
|
|
6644
|
+
);
|
|
6645
|
+
var templateAgentCardBadgeVariants = cva([
|
|
6646
|
+
"inline-flex items-center rounded-md border border-border px-2 py-0.5 text-xs font-medium"
|
|
6647
|
+
]);
|
|
6648
|
+
var templateAgentCardTagVariants = cva([
|
|
6649
|
+
"inline-flex items-center rounded-full border border-border bg-muted px-2 py-0.5 text-xs text-muted-foreground"
|
|
6650
|
+
]);
|
|
6651
|
+
function cn57(...classes) {
|
|
6652
|
+
return classes.filter(Boolean).join(" ");
|
|
6653
|
+
}
|
|
6654
|
+
var MAX_VISIBLE_TAGS2 = 3;
|
|
6655
|
+
function EyeIcon() {
|
|
6656
|
+
return /* @__PURE__ */ jsxs(
|
|
6657
|
+
"svg",
|
|
6658
|
+
{
|
|
6659
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
6660
|
+
width: "14",
|
|
6661
|
+
height: "14",
|
|
6662
|
+
viewBox: "0 0 24 24",
|
|
6663
|
+
fill: "none",
|
|
6664
|
+
stroke: "currentColor",
|
|
6665
|
+
strokeWidth: "2",
|
|
6666
|
+
strokeLinecap: "round",
|
|
6667
|
+
strokeLinejoin: "round",
|
|
6668
|
+
"aria-hidden": "true",
|
|
6669
|
+
children: [
|
|
6670
|
+
/* @__PURE__ */ jsx("path", { d: "M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z" }),
|
|
6671
|
+
/* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "3" })
|
|
6672
|
+
]
|
|
6673
|
+
}
|
|
6674
|
+
);
|
|
6675
|
+
}
|
|
6676
|
+
function CopyIcon() {
|
|
6677
|
+
return /* @__PURE__ */ jsxs(
|
|
6678
|
+
"svg",
|
|
6679
|
+
{
|
|
6680
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
6681
|
+
width: "14",
|
|
6682
|
+
height: "14",
|
|
6683
|
+
viewBox: "0 0 24 24",
|
|
6684
|
+
fill: "none",
|
|
6685
|
+
stroke: "currentColor",
|
|
6686
|
+
strokeWidth: "2",
|
|
6687
|
+
strokeLinecap: "round",
|
|
6688
|
+
strokeLinejoin: "round",
|
|
6689
|
+
"aria-hidden": "true",
|
|
6690
|
+
children: [
|
|
6691
|
+
/* @__PURE__ */ jsx("rect", { x: "9", y: "9", width: "13", height: "13", rx: "2", ry: "2" }),
|
|
6692
|
+
/* @__PURE__ */ jsx("path", { d: "M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1" })
|
|
6693
|
+
]
|
|
6694
|
+
}
|
|
6695
|
+
);
|
|
6696
|
+
}
|
|
6697
|
+
function MosaicTemplateAgentCard({
|
|
6698
|
+
template,
|
|
6699
|
+
isSelected = false,
|
|
6700
|
+
onSelect,
|
|
6701
|
+
onPreview,
|
|
6702
|
+
onDuplicate,
|
|
6703
|
+
icon,
|
|
6704
|
+
selectAriaLabel,
|
|
6705
|
+
agentCountLabel,
|
|
6706
|
+
formatUsageCount,
|
|
6707
|
+
formatMoreTags,
|
|
6708
|
+
previewAriaLabel,
|
|
6709
|
+
duplicateAriaLabel,
|
|
6710
|
+
className,
|
|
6711
|
+
ref
|
|
6712
|
+
}) {
|
|
6713
|
+
const visibleTags = template.tags?.slice(0, MAX_VISIBLE_TAGS2) ?? [];
|
|
6714
|
+
const hiddenTagCount = (template.tags?.length ?? 0) - visibleTags.length;
|
|
6715
|
+
return /* @__PURE__ */ jsxs(
|
|
6716
|
+
"div",
|
|
6717
|
+
{
|
|
6718
|
+
ref,
|
|
6719
|
+
"data-slot": "template-agent-card",
|
|
6720
|
+
className: cn57(templateAgentCardVariants({ selected: isSelected }), "p-4", className),
|
|
6721
|
+
children: [
|
|
6722
|
+
/* @__PURE__ */ jsx("div", { className: "flex items-start justify-between gap-2", children: /* @__PURE__ */ jsxs(
|
|
6723
|
+
"button",
|
|
6724
|
+
{
|
|
6725
|
+
type: "button",
|
|
6726
|
+
onClick: () => onSelect(template),
|
|
6727
|
+
"aria-label": selectAriaLabel,
|
|
6728
|
+
"aria-pressed": isSelected,
|
|
6729
|
+
className: cn57(
|
|
6730
|
+
"flex min-w-0 flex-1 items-start gap-2 rounded-md text-left",
|
|
6731
|
+
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
6732
|
+
),
|
|
6733
|
+
children: [
|
|
6734
|
+
icon && /* @__PURE__ */ jsx("span", { className: "mt-0.5 shrink-0 text-primary", "aria-hidden": "true", children: icon }),
|
|
6735
|
+
/* @__PURE__ */ jsxs("span", { className: "min-w-0", children: [
|
|
6736
|
+
/* @__PURE__ */ jsx("span", { className: "block truncate text-sm font-semibold leading-tight", children: template.name }),
|
|
6737
|
+
/* @__PURE__ */ jsx("span", { className: "mt-1 block line-clamp-2 text-xs text-muted-foreground", children: template.description })
|
|
6738
|
+
] })
|
|
6739
|
+
]
|
|
6740
|
+
}
|
|
6741
|
+
) }),
|
|
6742
|
+
/* @__PURE__ */ jsxs("div", { className: "mt-3 flex flex-wrap items-center gap-2", children: [
|
|
6743
|
+
template.category && /* @__PURE__ */ jsx("span", { className: cn57(templateAgentCardBadgeVariants()), children: template.category }),
|
|
6744
|
+
/* @__PURE__ */ jsx("span", { className: cn57(templateAgentCardBadgeVariants()), children: agentCountLabel }),
|
|
6745
|
+
formatUsageCount(template.usageCount) != null && /* @__PURE__ */ jsx("span", { className: cn57(templateAgentCardBadgeVariants()), children: formatUsageCount(template.usageCount) }),
|
|
6746
|
+
visibleTags.map((tag) => /* @__PURE__ */ jsx("span", { className: cn57(templateAgentCardTagVariants()), children: tag }, tag)),
|
|
6747
|
+
hiddenTagCount > 0 && /* @__PURE__ */ jsx("span", { className: cn57(templateAgentCardTagVariants()), children: formatMoreTags(hiddenTagCount) })
|
|
6748
|
+
] }),
|
|
6749
|
+
(onPreview || onDuplicate) && /* @__PURE__ */ jsxs("div", { className: "mt-3 flex items-center gap-2 border-t border-border pt-2", children: [
|
|
6750
|
+
onPreview && /* @__PURE__ */ jsxs(
|
|
6751
|
+
"button",
|
|
6752
|
+
{
|
|
6753
|
+
type: "button",
|
|
6754
|
+
onClick: () => onPreview(template),
|
|
6755
|
+
"aria-label": previewAriaLabel,
|
|
6756
|
+
className: cn57(
|
|
6757
|
+
"inline-flex h-8 flex-1 items-center justify-center gap-1.5 rounded-md text-xs font-medium",
|
|
6758
|
+
"text-muted-foreground hover:bg-accent hover:text-accent-foreground",
|
|
6759
|
+
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
6760
|
+
),
|
|
6761
|
+
children: [
|
|
6762
|
+
/* @__PURE__ */ jsx(EyeIcon, {}),
|
|
6763
|
+
previewAriaLabel
|
|
6764
|
+
]
|
|
6765
|
+
}
|
|
6766
|
+
),
|
|
6767
|
+
onDuplicate && /* @__PURE__ */ jsxs(
|
|
6768
|
+
"button",
|
|
6769
|
+
{
|
|
6770
|
+
type: "button",
|
|
6771
|
+
onClick: () => onDuplicate(template),
|
|
6772
|
+
"aria-label": duplicateAriaLabel,
|
|
6773
|
+
className: cn57(
|
|
6774
|
+
"inline-flex h-8 flex-1 items-center justify-center gap-1.5 rounded-md text-xs font-medium",
|
|
6775
|
+
"text-muted-foreground hover:bg-accent hover:text-accent-foreground",
|
|
6776
|
+
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
6777
|
+
),
|
|
6778
|
+
children: [
|
|
6779
|
+
/* @__PURE__ */ jsx(CopyIcon, {}),
|
|
6780
|
+
duplicateAriaLabel
|
|
6781
|
+
]
|
|
6782
|
+
}
|
|
6783
|
+
)
|
|
6184
6784
|
] })
|
|
6185
|
-
]
|
|
6785
|
+
]
|
|
6186
6786
|
}
|
|
6187
6787
|
);
|
|
6188
6788
|
}
|
|
6189
|
-
|
|
6190
|
-
function
|
|
6789
|
+
MosaicTemplateAgentCard.displayName = "MosaicTemplateAgentCard";
|
|
6790
|
+
function cn58(...classes) {
|
|
6191
6791
|
return classes.filter(Boolean).join(" ");
|
|
6192
6792
|
}
|
|
6193
6793
|
function SearchIcon() {
|
|
@@ -6247,10 +6847,10 @@ function MosaicSelectorModal({
|
|
|
6247
6847
|
emptyMessage,
|
|
6248
6848
|
closeAriaLabel
|
|
6249
6849
|
}) {
|
|
6250
|
-
const [query, setQuery] =
|
|
6251
|
-
const [activeCategory, setActiveCategory] =
|
|
6252
|
-
const [pendingId, setPendingId] =
|
|
6253
|
-
|
|
6850
|
+
const [query, setQuery] = React29.useState("");
|
|
6851
|
+
const [activeCategory, setActiveCategory] = React29.useState("all");
|
|
6852
|
+
const [pendingId, setPendingId] = React29.useState(selectedId);
|
|
6853
|
+
React29.useEffect(() => {
|
|
6254
6854
|
if (isOpen) {
|
|
6255
6855
|
setPendingId(selectedId);
|
|
6256
6856
|
setQuery("");
|
|
@@ -6288,7 +6888,7 @@ function MosaicSelectorModal({
|
|
|
6288
6888
|
value: query,
|
|
6289
6889
|
onChange: (e) => setQuery(e.target.value),
|
|
6290
6890
|
placeholder: searchPlaceholder,
|
|
6291
|
-
className:
|
|
6891
|
+
className: cn58(
|
|
6292
6892
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
6293
6893
|
"text-sm text-foreground placeholder:text-muted-foreground",
|
|
6294
6894
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -6302,7 +6902,7 @@ function MosaicSelectorModal({
|
|
|
6302
6902
|
{
|
|
6303
6903
|
type: "button",
|
|
6304
6904
|
onClick: () => setActiveCategory("all"),
|
|
6305
|
-
className:
|
|
6905
|
+
className: cn58(
|
|
6306
6906
|
"shrink-0 rounded-md px-3 py-1.5 text-sm font-medium transition-colors",
|
|
6307
6907
|
activeCategory === "all" ? "bg-primary text-primary-foreground" : "bg-muted text-muted-foreground hover:bg-accent hover:text-accent-foreground"
|
|
6308
6908
|
),
|
|
@@ -6314,7 +6914,7 @@ function MosaicSelectorModal({
|
|
|
6314
6914
|
{
|
|
6315
6915
|
type: "button",
|
|
6316
6916
|
onClick: () => setActiveCategory(cat.id),
|
|
6317
|
-
className:
|
|
6917
|
+
className: cn58(
|
|
6318
6918
|
"shrink-0 rounded-md px-3 py-1.5 text-sm font-medium transition-colors",
|
|
6319
6919
|
activeCategory === cat.id ? "bg-primary text-primary-foreground" : "bg-muted text-muted-foreground hover:bg-accent hover:text-accent-foreground"
|
|
6320
6920
|
),
|
|
@@ -6326,7 +6926,7 @@ function MosaicSelectorModal({
|
|
|
6326
6926
|
/* @__PURE__ */ jsxs(
|
|
6327
6927
|
"div",
|
|
6328
6928
|
{
|
|
6329
|
-
className:
|
|
6929
|
+
className: cn58(
|
|
6330
6930
|
"max-h-[50vh] overflow-y-auto",
|
|
6331
6931
|
columns === 2 ? "grid grid-cols-1 gap-3 sm:grid-cols-2" : "flex flex-col gap-3"
|
|
6332
6932
|
),
|
|
@@ -6338,7 +6938,7 @@ function MosaicSelectorModal({
|
|
|
6338
6938
|
{
|
|
6339
6939
|
type: "button",
|
|
6340
6940
|
onClick: () => setPendingId(item.id),
|
|
6341
|
-
className:
|
|
6941
|
+
className: cn58(
|
|
6342
6942
|
"group relative rounded-lg border p-4 text-left transition-all duration-150",
|
|
6343
6943
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
6344
6944
|
isSelected ? "border-primary bg-primary/5 ring-2 ring-primary" : "border-border bg-card hover:border-primary/50"
|
|
@@ -6376,7 +6976,7 @@ function MosaicSelectorModal({
|
|
|
6376
6976
|
{
|
|
6377
6977
|
type: "button",
|
|
6378
6978
|
onClick: onClose,
|
|
6379
|
-
className:
|
|
6979
|
+
className: cn58(
|
|
6380
6980
|
"inline-flex min-h-[44px] items-center justify-center rounded-md border border-border",
|
|
6381
6981
|
"bg-background px-4 py-2 text-sm font-medium text-foreground",
|
|
6382
6982
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -6391,7 +6991,7 @@ function MosaicSelectorModal({
|
|
|
6391
6991
|
type: "button",
|
|
6392
6992
|
onClick: handleConfirm,
|
|
6393
6993
|
disabled: !pendingItem,
|
|
6394
|
-
className:
|
|
6994
|
+
className: cn58(
|
|
6395
6995
|
"inline-flex min-h-[44px] items-center justify-center rounded-md",
|
|
6396
6996
|
"bg-primary px-4 py-2 text-sm font-medium text-primary-foreground",
|
|
6397
6997
|
"hover:bg-primary/90",
|
|
@@ -6407,7 +7007,7 @@ function MosaicSelectorModal({
|
|
|
6407
7007
|
);
|
|
6408
7008
|
}
|
|
6409
7009
|
MosaicSelectorModal.displayName = "MosaicSelectorModal";
|
|
6410
|
-
function
|
|
7010
|
+
function cn59(...classes) {
|
|
6411
7011
|
return classes.filter(Boolean).join(" ");
|
|
6412
7012
|
}
|
|
6413
7013
|
function relativeTime(ts) {
|
|
@@ -6607,13 +7207,13 @@ function MosaicMessageCard({
|
|
|
6607
7207
|
copyMessageLabel,
|
|
6608
7208
|
className
|
|
6609
7209
|
}) {
|
|
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 =
|
|
7210
|
+
const [bookmarked, setBookmarked] = React29.useState(message.bookmarked ?? false);
|
|
7211
|
+
const [likes, setLikes] = React29.useState(message.reactions?.likes ?? 0);
|
|
7212
|
+
const [dislikes, setDislikes] = React29.useState(message.reactions?.dislikes ?? 0);
|
|
7213
|
+
const [hasLiked, setHasLiked] = React29.useState(false);
|
|
7214
|
+
const [hasDisliked, setHasDisliked] = React29.useState(false);
|
|
7215
|
+
const [menuOpen, setMenuOpen] = React29.useState(false);
|
|
7216
|
+
const menuRef = React29.useRef(null);
|
|
6617
7217
|
const initials = message.sender.name.split(" ").map((n) => n[0]).filter(Boolean).slice(0, 2).join("").toUpperCase();
|
|
6618
7218
|
const handleLike = () => {
|
|
6619
7219
|
if (hasLiked) {
|
|
@@ -6651,7 +7251,7 @@ function MosaicMessageCard({
|
|
|
6651
7251
|
navigator.clipboard.writeText(message.content).catch(() => null);
|
|
6652
7252
|
onCopy?.(message.id, message.content);
|
|
6653
7253
|
};
|
|
6654
|
-
|
|
7254
|
+
React29.useEffect(() => {
|
|
6655
7255
|
if (!menuOpen) return;
|
|
6656
7256
|
const h = (e) => {
|
|
6657
7257
|
if (menuRef.current && !menuRef.current.contains(e.target)) setMenuOpen(false);
|
|
@@ -6663,7 +7263,7 @@ function MosaicMessageCard({
|
|
|
6663
7263
|
"div",
|
|
6664
7264
|
{
|
|
6665
7265
|
"data-slot": "message-card",
|
|
6666
|
-
className:
|
|
7266
|
+
className: cn59(
|
|
6667
7267
|
"rounded-lg border border-border bg-card p-4 shadow-sm transition-shadow hover:shadow-md",
|
|
6668
7268
|
compact && "p-3",
|
|
6669
7269
|
message.sender.type === "user" && "bg-primary/5",
|
|
@@ -6673,7 +7273,7 @@ function MosaicMessageCard({
|
|
|
6673
7273
|
/* @__PURE__ */ jsx(
|
|
6674
7274
|
"span",
|
|
6675
7275
|
{
|
|
6676
|
-
className:
|
|
7276
|
+
className: cn59(
|
|
6677
7277
|
"inline-flex shrink-0 items-center justify-center rounded-full text-white font-semibold",
|
|
6678
7278
|
compact ? "h-8 w-8 text-xs" : "h-10 w-10 text-sm",
|
|
6679
7279
|
message.sender.accentColor ?? "bg-muted text-muted-foreground"
|
|
@@ -6691,7 +7291,7 @@ function MosaicMessageCard({
|
|
|
6691
7291
|
/* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1", children: [
|
|
6692
7292
|
/* @__PURE__ */ jsxs("div", { className: "mb-2 flex items-center justify-between gap-2", children: [
|
|
6693
7293
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
6694
|
-
/* @__PURE__ */ jsx("span", { className:
|
|
7294
|
+
/* @__PURE__ */ jsx("span", { className: cn59("font-medium", compact ? "text-sm" : "text-base"), children: message.sender.name }),
|
|
6695
7295
|
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
7296
|
] }),
|
|
6697
7297
|
/* @__PURE__ */ jsx("span", { className: "shrink-0 text-xs text-muted-foreground", children: relativeTime(message.timestamp) })
|
|
@@ -6699,7 +7299,7 @@ function MosaicMessageCard({
|
|
|
6699
7299
|
/* @__PURE__ */ jsx(
|
|
6700
7300
|
"p",
|
|
6701
7301
|
{
|
|
6702
|
-
className:
|
|
7302
|
+
className: cn59(
|
|
6703
7303
|
"leading-relaxed text-foreground mb-3",
|
|
6704
7304
|
compact ? "text-sm" : "text-base"
|
|
6705
7305
|
),
|
|
@@ -6714,7 +7314,7 @@ function MosaicMessageCard({
|
|
|
6714
7314
|
{
|
|
6715
7315
|
type: "button",
|
|
6716
7316
|
onClick: handleLike,
|
|
6717
|
-
className:
|
|
7317
|
+
className: cn59(
|
|
6718
7318
|
"inline-flex h-8 items-center gap-1 rounded-md px-2 text-xs",
|
|
6719
7319
|
"hover:bg-accent hover:text-accent-foreground",
|
|
6720
7320
|
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
@@ -6732,7 +7332,7 @@ function MosaicMessageCard({
|
|
|
6732
7332
|
{
|
|
6733
7333
|
type: "button",
|
|
6734
7334
|
onClick: handleDislike,
|
|
6735
|
-
className:
|
|
7335
|
+
className: cn59(
|
|
6736
7336
|
"inline-flex h-8 items-center gap-1 rounded-md px-2 text-xs",
|
|
6737
7337
|
"hover:bg-accent hover:text-accent-foreground",
|
|
6738
7338
|
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
@@ -6777,7 +7377,7 @@ function MosaicMessageCard({
|
|
|
6777
7377
|
{
|
|
6778
7378
|
type: "button",
|
|
6779
7379
|
onClick: handleBookmark,
|
|
6780
|
-
className:
|
|
7380
|
+
className: cn59(
|
|
6781
7381
|
"inline-flex h-8 w-8 items-center justify-center rounded-md",
|
|
6782
7382
|
"hover:bg-accent hover:text-accent-foreground",
|
|
6783
7383
|
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
@@ -6878,7 +7478,7 @@ function MosaicMessageCard({
|
|
|
6878
7478
|
);
|
|
6879
7479
|
}
|
|
6880
7480
|
MosaicMessageCard.displayName = "MosaicMessageCard";
|
|
6881
|
-
function
|
|
7481
|
+
function cn60(...classes) {
|
|
6882
7482
|
return classes.filter(Boolean).join(" ");
|
|
6883
7483
|
}
|
|
6884
7484
|
function SearchIcon2() {
|
|
@@ -6924,11 +7524,11 @@ function MessageListDesktop({
|
|
|
6924
7524
|
copyMessageLabel,
|
|
6925
7525
|
className
|
|
6926
7526
|
}) {
|
|
6927
|
-
const [query, setQuery] =
|
|
7527
|
+
const [query, setQuery] = React29.useState("");
|
|
6928
7528
|
const filtered = query ? messages.filter(
|
|
6929
7529
|
(m) => m.content.toLowerCase().includes(query.toLowerCase()) || m.sender.name.toLowerCase().includes(query.toLowerCase())
|
|
6930
7530
|
) : messages;
|
|
6931
|
-
return /* @__PURE__ */ jsxs("div", { "data-slot": "message-list-desktop", className:
|
|
7531
|
+
return /* @__PURE__ */ jsxs("div", { "data-slot": "message-list-desktop", className: cn60("flex h-full flex-col", className), children: [
|
|
6932
7532
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between border-b border-border px-6 py-4", children: [
|
|
6933
7533
|
title && /* @__PURE__ */ jsx("h2", { className: "text-lg font-semibold", children: title }),
|
|
6934
7534
|
/* @__PURE__ */ jsxs("div", { className: "relative ml-auto max-w-xs flex-1", children: [
|
|
@@ -6940,7 +7540,7 @@ function MessageListDesktop({
|
|
|
6940
7540
|
value: query,
|
|
6941
7541
|
onChange: (e) => setQuery(e.target.value),
|
|
6942
7542
|
placeholder: searchPlaceholder,
|
|
6943
|
-
className:
|
|
7543
|
+
className: cn60(
|
|
6944
7544
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
6945
7545
|
"text-sm placeholder:text-muted-foreground",
|
|
6946
7546
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -6976,7 +7576,7 @@ function MessageListDesktop({
|
|
|
6976
7576
|
{
|
|
6977
7577
|
type: "button",
|
|
6978
7578
|
onClick: onLoadMore,
|
|
6979
|
-
className:
|
|
7579
|
+
className: cn60(
|
|
6980
7580
|
"w-full rounded-md border border-border bg-background px-4 py-2 text-sm font-medium",
|
|
6981
7581
|
"hover:bg-accent hover:text-accent-foreground",
|
|
6982
7582
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -7007,7 +7607,7 @@ function MessageListMobile({
|
|
|
7007
7607
|
copyMessageLabel,
|
|
7008
7608
|
className
|
|
7009
7609
|
}) {
|
|
7010
|
-
return /* @__PURE__ */ jsxs("div", { "data-slot": "message-list-mobile", className:
|
|
7610
|
+
return /* @__PURE__ */ jsxs("div", { "data-slot": "message-list-mobile", className: cn60("flex flex-col", className), children: [
|
|
7011
7611
|
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
7612
|
/* @__PURE__ */ jsxs("div", { className: "space-y-3 p-4", children: [
|
|
7013
7613
|
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 +7637,7 @@ function MessageListMobile({
|
|
|
7037
7637
|
{
|
|
7038
7638
|
type: "button",
|
|
7039
7639
|
onClick: onLoadMore,
|
|
7040
|
-
className:
|
|
7640
|
+
className: cn60(
|
|
7041
7641
|
"w-full min-h-[44px] rounded-md border border-border bg-background px-4 py-2 text-sm font-medium",
|
|
7042
7642
|
"hover:bg-accent hover:text-accent-foreground",
|
|
7043
7643
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -7052,7 +7652,7 @@ function MosaicMessageList(props) {
|
|
|
7052
7652
|
return isMobile ? /* @__PURE__ */ jsx(MessageListMobile, { ...props }) : /* @__PURE__ */ jsx(MessageListDesktop, { ...props });
|
|
7053
7653
|
}
|
|
7054
7654
|
MosaicMessageList.displayName = "MosaicMessageList";
|
|
7055
|
-
function
|
|
7655
|
+
function cn61(...classes) {
|
|
7056
7656
|
return classes.filter(Boolean).join(" ");
|
|
7057
7657
|
}
|
|
7058
7658
|
function ChevronLeftIcon2() {
|
|
@@ -7132,7 +7732,7 @@ function MosaicFilterSidebar({
|
|
|
7132
7732
|
{
|
|
7133
7733
|
"data-slot": "filter-sidebar",
|
|
7134
7734
|
style: { width, minWidth: isCollapsed && !isMobile ? "64px" : void 0 },
|
|
7135
|
-
className:
|
|
7735
|
+
className: cn61(
|
|
7136
7736
|
"relative flex flex-col border-r border-border bg-card",
|
|
7137
7737
|
"transition-[width] duration-200 ease-in-out",
|
|
7138
7738
|
"overflow-hidden",
|
|
@@ -7144,7 +7744,7 @@ function MosaicFilterSidebar({
|
|
|
7144
7744
|
{
|
|
7145
7745
|
type: "button",
|
|
7146
7746
|
onClick: onToggleCollapse,
|
|
7147
|
-
className:
|
|
7747
|
+
className: cn61(
|
|
7148
7748
|
"absolute -right-3 top-6 z-10 flex h-6 w-6 items-center justify-center rounded-full",
|
|
7149
7749
|
"border border-border bg-background shadow-sm",
|
|
7150
7750
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -7174,7 +7774,7 @@ function MosaicFilterSidebar({
|
|
|
7174
7774
|
{
|
|
7175
7775
|
type: "button",
|
|
7176
7776
|
onClick: () => onFilterChange(f.id),
|
|
7177
|
-
className:
|
|
7777
|
+
className: cn61(
|
|
7178
7778
|
"flex min-h-[40px] items-center justify-between rounded-md px-3 py-2 text-sm font-medium",
|
|
7179
7779
|
"transition-colors hover:bg-accent hover:text-accent-foreground",
|
|
7180
7780
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -7194,7 +7794,7 @@ function MosaicFilterSidebar({
|
|
|
7194
7794
|
{
|
|
7195
7795
|
type: "button",
|
|
7196
7796
|
onClick: () => onCategoryChange(cat.id),
|
|
7197
|
-
className:
|
|
7797
|
+
className: cn61(
|
|
7198
7798
|
"flex min-h-[36px] items-center justify-between rounded-md px-3 py-1.5 text-sm",
|
|
7199
7799
|
"transition-colors hover:bg-accent hover:text-accent-foreground",
|
|
7200
7800
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -7214,7 +7814,7 @@ function MosaicFilterSidebar({
|
|
|
7214
7814
|
);
|
|
7215
7815
|
}
|
|
7216
7816
|
MosaicFilterSidebar.displayName = "MosaicFilterSidebar";
|
|
7217
|
-
function
|
|
7817
|
+
function cn62(...classes) {
|
|
7218
7818
|
return classes.filter(Boolean).join(" ");
|
|
7219
7819
|
}
|
|
7220
7820
|
function SearchIcon3() {
|
|
@@ -7300,8 +7900,8 @@ function AgentListDesktop({
|
|
|
7300
7900
|
collapseSidebarAriaLabel,
|
|
7301
7901
|
expandSidebarAriaLabel
|
|
7302
7902
|
}) {
|
|
7303
|
-
const [query, setQuery] =
|
|
7304
|
-
const [sidebarCollapsed, setSidebarCollapsed] =
|
|
7903
|
+
const [query, setQuery] = React29.useState("");
|
|
7904
|
+
const [sidebarCollapsed, setSidebarCollapsed] = React29.useState(false);
|
|
7305
7905
|
const filtered = agents.filter(
|
|
7306
7906
|
(a) => !query || a.name.toLowerCase().includes(query.toLowerCase()) || a.description?.toLowerCase().includes(query.toLowerCase())
|
|
7307
7907
|
);
|
|
@@ -7339,7 +7939,7 @@ function AgentListDesktop({
|
|
|
7339
7939
|
value: query,
|
|
7340
7940
|
onChange: (e) => setQuery(e.target.value),
|
|
7341
7941
|
placeholder: searchPlaceholder,
|
|
7342
|
-
className:
|
|
7942
|
+
className: cn62(
|
|
7343
7943
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
7344
7944
|
"text-sm placeholder:text-muted-foreground",
|
|
7345
7945
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -7352,7 +7952,7 @@ function AgentListDesktop({
|
|
|
7352
7952
|
{
|
|
7353
7953
|
type: "button",
|
|
7354
7954
|
onClick: onCreateAgent,
|
|
7355
|
-
className:
|
|
7955
|
+
className: cn62(
|
|
7356
7956
|
"inline-flex items-center gap-2 rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground",
|
|
7357
7957
|
"hover:bg-primary/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
7358
7958
|
),
|
|
@@ -7406,8 +8006,8 @@ function AgentListMobile({
|
|
|
7406
8006
|
collapseSidebarAriaLabel,
|
|
7407
8007
|
expandSidebarAriaLabel
|
|
7408
8008
|
}) {
|
|
7409
|
-
const [filterOpen, setFilterOpen] =
|
|
7410
|
-
const [query, setQuery] =
|
|
8009
|
+
const [filterOpen, setFilterOpen] = React29.useState(false);
|
|
8010
|
+
const [query, setQuery] = React29.useState("");
|
|
7411
8011
|
const filtered = agents.filter(
|
|
7412
8012
|
(a) => !query || a.name.toLowerCase().includes(query.toLowerCase()) || a.description?.toLowerCase().includes(query.toLowerCase())
|
|
7413
8013
|
);
|
|
@@ -7421,7 +8021,7 @@ function AgentListMobile({
|
|
|
7421
8021
|
{
|
|
7422
8022
|
type: "button",
|
|
7423
8023
|
onClick: () => setFilterOpen(true),
|
|
7424
|
-
className:
|
|
8024
|
+
className: cn62(
|
|
7425
8025
|
"inline-flex h-9 w-9 items-center justify-center rounded-md",
|
|
7426
8026
|
"border border-border bg-background text-foreground",
|
|
7427
8027
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -7436,7 +8036,7 @@ function AgentListMobile({
|
|
|
7436
8036
|
{
|
|
7437
8037
|
type: "button",
|
|
7438
8038
|
onClick: onCreateAgent,
|
|
7439
|
-
className:
|
|
8039
|
+
className: cn62(
|
|
7440
8040
|
"inline-flex h-9 items-center gap-1.5 rounded-md bg-primary px-3 text-sm font-medium text-primary-foreground",
|
|
7441
8041
|
"hover:bg-primary/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
7442
8042
|
),
|
|
@@ -7457,7 +8057,7 @@ function AgentListMobile({
|
|
|
7457
8057
|
value: query,
|
|
7458
8058
|
onChange: (e) => setQuery(e.target.value),
|
|
7459
8059
|
placeholder: searchPlaceholder,
|
|
7460
|
-
className:
|
|
8060
|
+
className: cn62(
|
|
7461
8061
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
7462
8062
|
"text-sm placeholder:text-muted-foreground",
|
|
7463
8063
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -7519,7 +8119,7 @@ function MosaicAgentList(props) {
|
|
|
7519
8119
|
return isMobile ? /* @__PURE__ */ jsx(AgentListMobile, { ...props }) : /* @__PURE__ */ jsx(AgentListDesktop, { ...props });
|
|
7520
8120
|
}
|
|
7521
8121
|
MosaicAgentList.displayName = "MosaicAgentList";
|
|
7522
|
-
function
|
|
8122
|
+
function cn63(...classes) {
|
|
7523
8123
|
return classes.filter(Boolean).join(" ");
|
|
7524
8124
|
}
|
|
7525
8125
|
function StarIcon({ filled }) {
|
|
@@ -7616,7 +8216,7 @@ function MarketplaceCard({
|
|
|
7616
8216
|
"div",
|
|
7617
8217
|
{
|
|
7618
8218
|
"data-slot": "marketplace-card",
|
|
7619
|
-
className:
|
|
8219
|
+
className: cn63(
|
|
7620
8220
|
"rounded-lg border border-border bg-card p-4 transition-shadow hover:shadow-md",
|
|
7621
8221
|
compact ? "flex items-center gap-3" : "flex flex-col gap-3"
|
|
7622
8222
|
),
|
|
@@ -7624,7 +8224,7 @@ function MarketplaceCard({
|
|
|
7624
8224
|
item.icon && /* @__PURE__ */ jsx(
|
|
7625
8225
|
"div",
|
|
7626
8226
|
{
|
|
7627
|
-
className:
|
|
8227
|
+
className: cn63(
|
|
7628
8228
|
"flex shrink-0 items-center justify-center rounded-lg",
|
|
7629
8229
|
compact ? "h-10 w-10" : "h-12 w-12",
|
|
7630
8230
|
item.accentClass ?? "bg-muted text-muted-foreground"
|
|
@@ -7635,7 +8235,7 @@ function MarketplaceCard({
|
|
|
7635
8235
|
/* @__PURE__ */ jsxs("div", { className: "flex-1 min-w-0", children: [
|
|
7636
8236
|
/* @__PURE__ */ jsxs("div", { className: "flex items-start justify-between gap-2", children: [
|
|
7637
8237
|
/* @__PURE__ */ jsxs("div", { className: "min-w-0", children: [
|
|
7638
|
-
/* @__PURE__ */ jsx("p", { className:
|
|
8238
|
+
/* @__PURE__ */ jsx("p", { className: cn63("font-semibold leading-tight", compact ? "text-sm" : "text-base"), children: item.title }),
|
|
7639
8239
|
item.description && !compact && /* @__PURE__ */ jsx("p", { className: "mt-1 text-sm text-muted-foreground line-clamp-2", children: item.description })
|
|
7640
8240
|
] }),
|
|
7641
8241
|
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 +8252,13 @@ function MarketplaceCard({
|
|
|
7652
8252
|
] })
|
|
7653
8253
|
] })
|
|
7654
8254
|
] }),
|
|
7655
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
8255
|
+
/* @__PURE__ */ jsxs("div", { className: cn63("flex gap-2", compact ? "shrink-0" : "mt-1"), children: [
|
|
7656
8256
|
onPreview && /* @__PURE__ */ jsx(
|
|
7657
8257
|
"button",
|
|
7658
8258
|
{
|
|
7659
8259
|
type: "button",
|
|
7660
8260
|
onClick: () => onPreview(item.id),
|
|
7661
|
-
className:
|
|
8261
|
+
className: cn63(
|
|
7662
8262
|
"inline-flex min-h-[36px] items-center justify-center rounded-md border border-border",
|
|
7663
8263
|
"bg-background px-3 text-xs font-medium text-foreground",
|
|
7664
8264
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -7672,7 +8272,7 @@ function MarketplaceCard({
|
|
|
7672
8272
|
{
|
|
7673
8273
|
type: "button",
|
|
7674
8274
|
onClick: () => onUninstall(item.id),
|
|
7675
|
-
className:
|
|
8275
|
+
className: cn63(
|
|
7676
8276
|
"inline-flex min-h-[36px] items-center justify-center rounded-md",
|
|
7677
8277
|
"bg-secondary px-3 text-xs font-medium text-secondary-foreground",
|
|
7678
8278
|
"hover:bg-secondary/80",
|
|
@@ -7685,7 +8285,7 @@ function MarketplaceCard({
|
|
|
7685
8285
|
{
|
|
7686
8286
|
type: "button",
|
|
7687
8287
|
onClick: () => onInstall(item.id),
|
|
7688
|
-
className:
|
|
8288
|
+
className: cn63(
|
|
7689
8289
|
"inline-flex min-h-[36px] items-center justify-center rounded-md",
|
|
7690
8290
|
"bg-primary px-3 text-xs font-medium text-primary-foreground",
|
|
7691
8291
|
"hover:bg-primary/90",
|
|
@@ -7722,8 +8322,8 @@ function MarketplaceListDesktop(props) {
|
|
|
7722
8322
|
collapseSidebarAriaLabel,
|
|
7723
8323
|
expandSidebarAriaLabel
|
|
7724
8324
|
} = props;
|
|
7725
|
-
const [query, setQuery] =
|
|
7726
|
-
const [sidebarCollapsed, setSidebarCollapsed] =
|
|
8325
|
+
const [query, setQuery] = React29.useState("");
|
|
8326
|
+
const [sidebarCollapsed, setSidebarCollapsed] = React29.useState(false);
|
|
7727
8327
|
const filtered = items.filter(
|
|
7728
8328
|
(i) => !query || i.title.toLowerCase().includes(query.toLowerCase()) || (i.description ?? "").toLowerCase().includes(query.toLowerCase())
|
|
7729
8329
|
);
|
|
@@ -7757,7 +8357,7 @@ function MarketplaceListDesktop(props) {
|
|
|
7757
8357
|
value: query,
|
|
7758
8358
|
onChange: (e) => setQuery(e.target.value),
|
|
7759
8359
|
placeholder: searchPlaceholder,
|
|
7760
|
-
className:
|
|
8360
|
+
className: cn63(
|
|
7761
8361
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
7762
8362
|
"text-sm placeholder:text-muted-foreground",
|
|
7763
8363
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -7811,8 +8411,8 @@ function MarketplaceListMobile(props) {
|
|
|
7811
8411
|
collapseSidebarAriaLabel,
|
|
7812
8412
|
expandSidebarAriaLabel
|
|
7813
8413
|
} = props;
|
|
7814
|
-
const [filterOpen, setFilterOpen] =
|
|
7815
|
-
const [query, setQuery] =
|
|
8414
|
+
const [filterOpen, setFilterOpen] = React29.useState(false);
|
|
8415
|
+
const [query, setQuery] = React29.useState("");
|
|
7816
8416
|
const filtered = items.filter(
|
|
7817
8417
|
(i) => !query || i.title.toLowerCase().includes(query.toLowerCase()) || (i.description ?? "").toLowerCase().includes(query.toLowerCase())
|
|
7818
8418
|
);
|
|
@@ -7840,7 +8440,7 @@ function MarketplaceListMobile(props) {
|
|
|
7840
8440
|
value: query,
|
|
7841
8441
|
onChange: (e) => setQuery(e.target.value),
|
|
7842
8442
|
placeholder: searchPlaceholder,
|
|
7843
|
-
className:
|
|
8443
|
+
className: cn63(
|
|
7844
8444
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
7845
8445
|
"text-sm placeholder:text-muted-foreground",
|
|
7846
8446
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -7905,7 +8505,7 @@ function MosaicMarketplaceList(props) {
|
|
|
7905
8505
|
return isMobile ? /* @__PURE__ */ jsx(MarketplaceListMobile, { ...props }) : /* @__PURE__ */ jsx(MarketplaceListDesktop, { ...props });
|
|
7906
8506
|
}
|
|
7907
8507
|
MosaicMarketplaceList.displayName = "MosaicMarketplaceList";
|
|
7908
|
-
function
|
|
8508
|
+
function cn64(...classes) {
|
|
7909
8509
|
return classes.filter(Boolean).join(" ");
|
|
7910
8510
|
}
|
|
7911
8511
|
function StarIcon2() {
|
|
@@ -8026,7 +8626,7 @@ function MosaicTemplateCard({
|
|
|
8026
8626
|
type: "button",
|
|
8027
8627
|
onClick: () => onSelect(template),
|
|
8028
8628
|
"data-slot": "template-card",
|
|
8029
|
-
className:
|
|
8629
|
+
className: cn64(
|
|
8030
8630
|
"w-full text-left rounded-lg border transition-all duration-200",
|
|
8031
8631
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
8032
8632
|
isSelected ? "border-primary bg-primary/5 ring-2 ring-primary" : "border-border bg-card hover:border-primary/50",
|
|
@@ -8127,7 +8727,7 @@ function MosaicTemplatePreview({
|
|
|
8127
8727
|
agent.accentColor && /* @__PURE__ */ jsx(
|
|
8128
8728
|
"span",
|
|
8129
8729
|
{
|
|
8130
|
-
className:
|
|
8730
|
+
className: cn64("h-2 w-2 rounded-full", agent.accentColor),
|
|
8131
8731
|
"aria-hidden": "true"
|
|
8132
8732
|
}
|
|
8133
8733
|
),
|
|
@@ -8187,7 +8787,7 @@ function MosaicAgentTeamPreview({ agents, label }) {
|
|
|
8187
8787
|
agent.accentColor && /* @__PURE__ */ jsx(
|
|
8188
8788
|
"span",
|
|
8189
8789
|
{
|
|
8190
|
-
className:
|
|
8790
|
+
className: cn64("h-2.5 w-2.5 rounded-full", agent.accentColor),
|
|
8191
8791
|
"aria-hidden": "true"
|
|
8192
8792
|
}
|
|
8193
8793
|
),
|
|
@@ -8211,7 +8811,7 @@ function MosaicQuickStartPanel({
|
|
|
8211
8811
|
scratchLabel,
|
|
8212
8812
|
className
|
|
8213
8813
|
}) {
|
|
8214
|
-
return /* @__PURE__ */ jsxs("div", { "data-slot": "quick-start-panel", className:
|
|
8814
|
+
return /* @__PURE__ */ jsxs("div", { "data-slot": "quick-start-panel", className: cn64("flex flex-col gap-6", className), children: [
|
|
8215
8815
|
scenarios.length > 0 && /* @__PURE__ */ jsxs("div", { children: [
|
|
8216
8816
|
/* @__PURE__ */ jsx("h3", { className: "mb-3 text-sm font-semibold text-foreground", children: scenariosTitle }),
|
|
8217
8817
|
/* @__PURE__ */ jsx("div", { className: "grid gap-3 sm:grid-cols-2", children: scenarios.map((scenario) => /* @__PURE__ */ jsxs(
|
|
@@ -8219,7 +8819,7 @@ function MosaicQuickStartPanel({
|
|
|
8219
8819
|
{
|
|
8220
8820
|
type: "button",
|
|
8221
8821
|
onClick: () => onSelectScenario(scenario),
|
|
8222
|
-
className:
|
|
8822
|
+
className: cn64(
|
|
8223
8823
|
"flex items-start gap-3 rounded-lg border border-border bg-card p-4 text-left",
|
|
8224
8824
|
"hover:border-primary/50 hover:bg-primary/5",
|
|
8225
8825
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -8251,7 +8851,7 @@ function MosaicQuickStartPanel({
|
|
|
8251
8851
|
{
|
|
8252
8852
|
type: "button",
|
|
8253
8853
|
onClick: () => onSelectPreset(preset),
|
|
8254
|
-
className:
|
|
8854
|
+
className: cn64(
|
|
8255
8855
|
"flex items-center justify-between gap-3 rounded-lg border border-border bg-card px-4 py-3 text-left",
|
|
8256
8856
|
"hover:border-primary/50",
|
|
8257
8857
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -8265,7 +8865,7 @@ function MosaicQuickStartPanel({
|
|
|
8265
8865
|
a.accentColor && /* @__PURE__ */ jsx(
|
|
8266
8866
|
"span",
|
|
8267
8867
|
{
|
|
8268
|
-
className:
|
|
8868
|
+
className: cn64("h-2 w-2 rounded-full", a.accentColor),
|
|
8269
8869
|
"aria-hidden": "true"
|
|
8270
8870
|
}
|
|
8271
8871
|
),
|
|
@@ -8283,7 +8883,7 @@ function MosaicQuickStartPanel({
|
|
|
8283
8883
|
{
|
|
8284
8884
|
type: "button",
|
|
8285
8885
|
onClick: onStartFromScratch,
|
|
8286
|
-
className:
|
|
8886
|
+
className: cn64(
|
|
8287
8887
|
"inline-flex min-h-[44px] w-full items-center justify-center rounded-md border border-border",
|
|
8288
8888
|
"bg-background px-4 text-sm font-medium text-foreground",
|
|
8289
8889
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -8322,9 +8922,9 @@ function TemplateGalleryContent({
|
|
|
8322
8922
|
duplicateLabel,
|
|
8323
8923
|
isMobile
|
|
8324
8924
|
}) {
|
|
8325
|
-
const [query, setQuery] =
|
|
8326
|
-
const [filterOpen, setFilterOpen] =
|
|
8327
|
-
const [sidebarCollapsed, setSidebarCollapsed] =
|
|
8925
|
+
const [query, setQuery] = React29.useState("");
|
|
8926
|
+
const [filterOpen, setFilterOpen] = React29.useState(false);
|
|
8927
|
+
const [sidebarCollapsed, setSidebarCollapsed] = React29.useState(false);
|
|
8328
8928
|
const filtered = templates.filter(
|
|
8329
8929
|
(t) => !query || t.name.toLowerCase().includes(query.toLowerCase()) || (t.description ?? "").toLowerCase().includes(query.toLowerCase())
|
|
8330
8930
|
);
|
|
@@ -8377,7 +8977,7 @@ function TemplateGalleryContent({
|
|
|
8377
8977
|
value: query,
|
|
8378
8978
|
onChange: (e) => setQuery(e.target.value),
|
|
8379
8979
|
placeholder: searchPlaceholder,
|
|
8380
|
-
className:
|
|
8980
|
+
className: cn64(
|
|
8381
8981
|
"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
8982
|
)
|
|
8383
8983
|
}
|
|
@@ -8428,7 +9028,7 @@ function TemplateGalleryContent({
|
|
|
8428
9028
|
value: query,
|
|
8429
9029
|
onChange: (e) => setQuery(e.target.value),
|
|
8430
9030
|
placeholder: searchPlaceholder,
|
|
8431
|
-
className:
|
|
9031
|
+
className: cn64(
|
|
8432
9032
|
"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
9033
|
)
|
|
8434
9034
|
}
|
|
@@ -8460,7 +9060,7 @@ function MosaicTemplateGallery(props) {
|
|
|
8460
9060
|
return /* @__PURE__ */ jsx(TemplateGalleryContent, { ...props, isMobile });
|
|
8461
9061
|
}
|
|
8462
9062
|
MosaicTemplateGallery.displayName = "MosaicTemplateGallery";
|
|
8463
|
-
function
|
|
9063
|
+
function cn65(...classes) {
|
|
8464
9064
|
return classes.filter(Boolean).join(" ");
|
|
8465
9065
|
}
|
|
8466
9066
|
function PlusIcon5() {
|
|
@@ -8562,7 +9162,7 @@ function MosaicModuleForm(props) {
|
|
|
8562
9162
|
cancelLabel,
|
|
8563
9163
|
tagListAddPlaceholder
|
|
8564
9164
|
} = props;
|
|
8565
|
-
const [formData, setFormData] =
|
|
9165
|
+
const [formData, setFormData] = React29.useState({
|
|
8566
9166
|
name: item?.name ?? "",
|
|
8567
9167
|
description: item?.description ?? "",
|
|
8568
9168
|
icon: item?.icon ?? "",
|
|
@@ -8573,7 +9173,7 @@ function MosaicModuleForm(props) {
|
|
|
8573
9173
|
formFields.map((f) => [f.id, item?.[f.id] ?? (f.type === "tag-list" ? [] : "")])
|
|
8574
9174
|
)
|
|
8575
9175
|
});
|
|
8576
|
-
const [tagInputs, setTagInputs] =
|
|
9176
|
+
const [tagInputs, setTagInputs] = React29.useState({});
|
|
8577
9177
|
const update = (key, value) => {
|
|
8578
9178
|
setFormData((prev) => ({ ...prev, [key]: value }));
|
|
8579
9179
|
};
|
|
@@ -8611,7 +9211,7 @@ function MosaicModuleForm(props) {
|
|
|
8611
9211
|
onChange: (e) => update("name", e.target.value),
|
|
8612
9212
|
placeholder: namePlaceholder,
|
|
8613
9213
|
required: true,
|
|
8614
|
-
className:
|
|
9214
|
+
className: cn65(
|
|
8615
9215
|
"w-full rounded-md border border-input bg-background px-3 py-2 min-h-[40px]",
|
|
8616
9216
|
"text-sm placeholder:text-muted-foreground",
|
|
8617
9217
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -8629,7 +9229,7 @@ function MosaicModuleForm(props) {
|
|
|
8629
9229
|
onChange: (e) => update("description", e.target.value),
|
|
8630
9230
|
placeholder: descriptionPlaceholder,
|
|
8631
9231
|
rows: 3,
|
|
8632
|
-
className:
|
|
9232
|
+
className: cn65(
|
|
8633
9233
|
"w-full rounded-md border border-input bg-background px-3 py-2",
|
|
8634
9234
|
"text-sm placeholder:text-muted-foreground resize-none",
|
|
8635
9235
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -8651,7 +9251,7 @@ function MosaicModuleForm(props) {
|
|
|
8651
9251
|
value: formData[field.id] ?? "",
|
|
8652
9252
|
onChange: (e) => update(field.id, e.target.value),
|
|
8653
9253
|
placeholder: field.placeholder,
|
|
8654
|
-
className:
|
|
9254
|
+
className: cn65(
|
|
8655
9255
|
"w-full rounded-md border border-input bg-background px-3 py-2 min-h-[40px]",
|
|
8656
9256
|
"text-sm placeholder:text-muted-foreground",
|
|
8657
9257
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -8666,7 +9266,7 @@ function MosaicModuleForm(props) {
|
|
|
8666
9266
|
onChange: (e) => update(field.id, e.target.value),
|
|
8667
9267
|
placeholder: field.placeholder,
|
|
8668
9268
|
rows: 3,
|
|
8669
|
-
className:
|
|
9269
|
+
className: cn65(
|
|
8670
9270
|
"w-full rounded-md border border-input bg-background px-3 py-2",
|
|
8671
9271
|
"text-sm placeholder:text-muted-foreground resize-none",
|
|
8672
9272
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -8682,7 +9282,7 @@ function MosaicModuleForm(props) {
|
|
|
8682
9282
|
onChange: (e) => update(field.id, e.target.value),
|
|
8683
9283
|
placeholder: field.placeholder ?? "\u{1F9E0}",
|
|
8684
9284
|
maxLength: 4,
|
|
8685
|
-
className:
|
|
9285
|
+
className: cn65(
|
|
8686
9286
|
"w-20 rounded-md border border-input bg-background px-3 py-2 text-2xl",
|
|
8687
9287
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
8688
9288
|
)
|
|
@@ -8703,7 +9303,7 @@ function MosaicModuleForm(props) {
|
|
|
8703
9303
|
}
|
|
8704
9304
|
},
|
|
8705
9305
|
placeholder: field.placeholder ?? tagListAddPlaceholder,
|
|
8706
|
-
className:
|
|
9306
|
+
className: cn65(
|
|
8707
9307
|
"flex-1 rounded-md border border-input bg-background px-3 py-2 min-h-[36px]",
|
|
8708
9308
|
"text-sm placeholder:text-muted-foreground",
|
|
8709
9309
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -8774,9 +9374,9 @@ function ModuleItemCard({
|
|
|
8774
9374
|
editItemLabel,
|
|
8775
9375
|
deleteItemLabel
|
|
8776
9376
|
}) {
|
|
8777
|
-
const [menuOpen, setMenuOpen] =
|
|
8778
|
-
const menuRef =
|
|
8779
|
-
|
|
9377
|
+
const [menuOpen, setMenuOpen] = React29.useState(false);
|
|
9378
|
+
const menuRef = React29.useRef(null);
|
|
9379
|
+
React29.useEffect(() => {
|
|
8780
9380
|
if (!menuOpen) return;
|
|
8781
9381
|
const h = (e) => {
|
|
8782
9382
|
if (menuRef.current && !menuRef.current.contains(e.target)) setMenuOpen(false);
|
|
@@ -8877,11 +9477,11 @@ function LibraryContent({
|
|
|
8877
9477
|
editModalTitle,
|
|
8878
9478
|
tagListAddPlaceholder
|
|
8879
9479
|
}) {
|
|
8880
|
-
const [query, setQuery] =
|
|
8881
|
-
const [activeTab, setActiveTab] =
|
|
8882
|
-
const [editorOpen, setEditorOpen] =
|
|
8883
|
-
const [editingItem, setEditingItem] =
|
|
8884
|
-
const [editorMode, setEditorMode] =
|
|
9480
|
+
const [query, setQuery] = React29.useState("");
|
|
9481
|
+
const [activeTab, setActiveTab] = React29.useState(tabs?.[0]?.id ?? "all");
|
|
9482
|
+
const [editorOpen, setEditorOpen] = React29.useState(false);
|
|
9483
|
+
const [editingItem, setEditingItem] = React29.useState();
|
|
9484
|
+
const [editorMode, setEditorMode] = React29.useState("create");
|
|
8885
9485
|
const openCreate = () => {
|
|
8886
9486
|
setEditingItem(void 0);
|
|
8887
9487
|
setEditorMode("create");
|
|
@@ -8915,7 +9515,7 @@ function LibraryContent({
|
|
|
8915
9515
|
{
|
|
8916
9516
|
type: "button",
|
|
8917
9517
|
onClick: openCreate,
|
|
8918
|
-
className:
|
|
9518
|
+
className: cn65(
|
|
8919
9519
|
"inline-flex items-center gap-2 rounded-md bg-primary px-3 py-2 text-sm font-medium text-primary-foreground",
|
|
8920
9520
|
"hover:bg-primary/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
8921
9521
|
),
|
|
@@ -8935,7 +9535,7 @@ function LibraryContent({
|
|
|
8935
9535
|
value: query,
|
|
8936
9536
|
onChange: (e) => setQuery(e.target.value),
|
|
8937
9537
|
placeholder: searchPlaceholder,
|
|
8938
|
-
className:
|
|
9538
|
+
className: cn65(
|
|
8939
9539
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
8940
9540
|
"text-sm placeholder:text-muted-foreground",
|
|
8941
9541
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -8948,7 +9548,7 @@ function LibraryContent({
|
|
|
8948
9548
|
{
|
|
8949
9549
|
type: "button",
|
|
8950
9550
|
onClick: () => setActiveTab(tab.id),
|
|
8951
|
-
className:
|
|
9551
|
+
className: cn65(
|
|
8952
9552
|
"rounded-md px-3 py-1.5 text-sm font-medium transition-colors",
|
|
8953
9553
|
activeTab === tab.id ? "bg-primary text-primary-foreground" : "bg-muted text-muted-foreground hover:bg-accent hover:text-accent-foreground"
|
|
8954
9554
|
),
|
|
@@ -9000,7 +9600,7 @@ function MosaicModuleLibrary(props) {
|
|
|
9000
9600
|
return /* @__PURE__ */ jsx(LibraryContent, { ...props });
|
|
9001
9601
|
}
|
|
9002
9602
|
MosaicModuleLibrary.displayName = "MosaicModuleLibrary";
|
|
9003
|
-
function
|
|
9603
|
+
function cn66(...classes) {
|
|
9004
9604
|
return classes.filter(Boolean).join(" ");
|
|
9005
9605
|
}
|
|
9006
9606
|
var roleConfig = {
|
|
@@ -9027,7 +9627,7 @@ function MosaicOrgRoleBadge({ role, className }) {
|
|
|
9027
9627
|
{
|
|
9028
9628
|
"data-slot": "org-role-badge",
|
|
9029
9629
|
title: config.description,
|
|
9030
|
-
className:
|
|
9630
|
+
className: cn66(
|
|
9031
9631
|
"inline-flex items-center rounded-full px-2 py-0.5 text-xs font-medium",
|
|
9032
9632
|
config.className,
|
|
9033
9633
|
className
|
|
@@ -9044,13 +9644,13 @@ function MosaicMultiOrgIndicator({
|
|
|
9044
9644
|
className
|
|
9045
9645
|
}) {
|
|
9046
9646
|
if (orgCount <= 1) return null;
|
|
9047
|
-
return /* @__PURE__ */ jsxs("div", { "data-slot": "multi-org-indicator", className:
|
|
9647
|
+
return /* @__PURE__ */ jsxs("div", { "data-slot": "multi-org-indicator", className: cn66("flex items-center gap-2", className), children: [
|
|
9048
9648
|
onSwitchOrg ? /* @__PURE__ */ jsxs(
|
|
9049
9649
|
"button",
|
|
9050
9650
|
{
|
|
9051
9651
|
type: "button",
|
|
9052
9652
|
onClick: onSwitchOrg,
|
|
9053
|
-
className:
|
|
9653
|
+
className: cn66(
|
|
9054
9654
|
"inline-flex items-center gap-1.5 rounded-full bg-secondary px-2.5 py-1 text-xs font-medium text-secondary-foreground",
|
|
9055
9655
|
"hover:bg-secondary/80",
|
|
9056
9656
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -9103,10 +9703,10 @@ function MosaicCreateOrgDialog({
|
|
|
9103
9703
|
creatingLabel,
|
|
9104
9704
|
createLabel
|
|
9105
9705
|
}) {
|
|
9106
|
-
const [name, setName] =
|
|
9107
|
-
const [slug, setSlug] =
|
|
9108
|
-
const [description, setDescription] =
|
|
9109
|
-
const [errors, setErrors] =
|
|
9706
|
+
const [name, setName] = React29.useState("");
|
|
9707
|
+
const [slug, setSlug] = React29.useState("");
|
|
9708
|
+
const [description, setDescription] = React29.useState("");
|
|
9709
|
+
const [errors, setErrors] = React29.useState({});
|
|
9110
9710
|
const validate = () => {
|
|
9111
9711
|
const errs = {};
|
|
9112
9712
|
if (!name.trim()) errs.name = "Name is required";
|
|
@@ -9130,7 +9730,7 @@ function MosaicCreateOrgDialog({
|
|
|
9130
9730
|
setErrors({});
|
|
9131
9731
|
onOpenChange(false);
|
|
9132
9732
|
};
|
|
9133
|
-
|
|
9733
|
+
React29.useEffect(() => {
|
|
9134
9734
|
if (!name) {
|
|
9135
9735
|
setSlug("");
|
|
9136
9736
|
return;
|
|
@@ -9164,7 +9764,7 @@ function MosaicCreateOrgDialog({
|
|
|
9164
9764
|
onChange: (e) => setName(e.target.value),
|
|
9165
9765
|
placeholder: orgNamePlaceholder,
|
|
9166
9766
|
required: true,
|
|
9167
|
-
className:
|
|
9767
|
+
className: cn66(
|
|
9168
9768
|
"w-full rounded-md border bg-background px-3 py-2 min-h-[40px] text-sm placeholder:text-muted-foreground",
|
|
9169
9769
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
9170
9770
|
errors.name ? "border-destructive" : "border-input"
|
|
@@ -9184,7 +9784,7 @@ function MosaicCreateOrgDialog({
|
|
|
9184
9784
|
onChange: (e) => setSlug(e.target.value),
|
|
9185
9785
|
placeholder: "acme-inc",
|
|
9186
9786
|
required: true,
|
|
9187
|
-
className:
|
|
9787
|
+
className: cn66(
|
|
9188
9788
|
"w-full rounded-md border bg-background px-3 py-2 min-h-[40px] text-sm placeholder:text-muted-foreground",
|
|
9189
9789
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
9190
9790
|
errors.slug ? "border-destructive" : "border-input"
|
|
@@ -9253,9 +9853,9 @@ function MosaicInviteMemberDialog({
|
|
|
9253
9853
|
sendingLabel,
|
|
9254
9854
|
sendInvitationLabel
|
|
9255
9855
|
}) {
|
|
9256
|
-
const [email, setEmail] =
|
|
9257
|
-
const [role, setRole] =
|
|
9258
|
-
const [errors, setErrors] =
|
|
9856
|
+
const [email, setEmail] = React29.useState("");
|
|
9857
|
+
const [role, setRole] = React29.useState("member");
|
|
9858
|
+
const [errors, setErrors] = React29.useState({});
|
|
9259
9859
|
const validate = () => {
|
|
9260
9860
|
const errs = {};
|
|
9261
9861
|
if (!email.trim()) errs.email = "Email is required";
|
|
@@ -9297,7 +9897,7 @@ function MosaicInviteMemberDialog({
|
|
|
9297
9897
|
onChange: (e) => setEmail(e.target.value),
|
|
9298
9898
|
placeholder: emailPlaceholder,
|
|
9299
9899
|
required: true,
|
|
9300
|
-
className:
|
|
9900
|
+
className: cn66(
|
|
9301
9901
|
"w-full rounded-md border bg-background px-3 py-2 min-h-[40px] text-sm placeholder:text-muted-foreground",
|
|
9302
9902
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
9303
9903
|
errors.email ? "border-destructive" : "border-input"
|
|
@@ -9356,10 +9956,10 @@ function MemberRow({
|
|
|
9356
9956
|
memberActionsAriaLabel,
|
|
9357
9957
|
removeMemberLabel
|
|
9358
9958
|
}) {
|
|
9359
|
-
const [menuOpen, setMenuOpen] =
|
|
9360
|
-
const menuRef =
|
|
9959
|
+
const [menuOpen, setMenuOpen] = React29.useState(false);
|
|
9960
|
+
const menuRef = React29.useRef(null);
|
|
9361
9961
|
const isSelf = member.id === currentUserId;
|
|
9362
|
-
|
|
9962
|
+
React29.useEffect(() => {
|
|
9363
9963
|
if (!menuOpen) return;
|
|
9364
9964
|
const h = (e) => {
|
|
9365
9965
|
if (menuRef.current && !menuRef.current.contains(e.target)) setMenuOpen(false);
|
|
@@ -9480,11 +10080,11 @@ function MosaicMemberList({
|
|
|
9480
10080
|
inviteLabel,
|
|
9481
10081
|
className
|
|
9482
10082
|
}) {
|
|
9483
|
-
const [query, setQuery] =
|
|
10083
|
+
const [query, setQuery] = React29.useState("");
|
|
9484
10084
|
const filtered = members.filter(
|
|
9485
10085
|
(m) => !query || m.name.toLowerCase().includes(query.toLowerCase()) || m.email.toLowerCase().includes(query.toLowerCase())
|
|
9486
10086
|
);
|
|
9487
|
-
return /* @__PURE__ */ jsxs("div", { "data-slot": "member-list", className:
|
|
10087
|
+
return /* @__PURE__ */ jsxs("div", { "data-slot": "member-list", className: cn66("flex flex-col gap-4", className), children: [
|
|
9488
10088
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
9489
10089
|
/* @__PURE__ */ jsxs("div", { className: "relative flex-1", children: [
|
|
9490
10090
|
/* @__PURE__ */ jsx("span", { className: "absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground", children: /* @__PURE__ */ jsxs(
|
|
@@ -9578,9 +10178,9 @@ function MosaicOrgPanel({
|
|
|
9578
10178
|
className
|
|
9579
10179
|
}) {
|
|
9580
10180
|
const { isMobile } = useDevice();
|
|
9581
|
-
const [activeTab, setActiveTab] =
|
|
10181
|
+
const [activeTab, setActiveTab] = React29.useState(defaultTab ?? tabs[0]?.id ?? "");
|
|
9582
10182
|
const activeContent = tabs.find((t) => t.id === activeTab)?.content;
|
|
9583
|
-
return /* @__PURE__ */ jsxs("div", { "data-slot": "org-panel", className:
|
|
10183
|
+
return /* @__PURE__ */ jsxs("div", { "data-slot": "org-panel", className: cn66("flex h-full flex-col", className), children: [
|
|
9584
10184
|
/* @__PURE__ */ jsxs("div", { className: "border-b border-border px-4 py-4 md:px-6", children: [
|
|
9585
10185
|
/* @__PURE__ */ jsxs("div", { className: "flex items-start justify-between gap-4", children: [
|
|
9586
10186
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
@@ -9602,12 +10202,12 @@ function MosaicOrgPanel({
|
|
|
9602
10202
|
] }),
|
|
9603
10203
|
headerActions
|
|
9604
10204
|
] }),
|
|
9605
|
-
tabs.length > 0 && /* @__PURE__ */ jsx("div", { className:
|
|
10205
|
+
tabs.length > 0 && /* @__PURE__ */ jsx("div", { className: cn66("mt-4 flex gap-1", isMobile && "overflow-x-auto"), children: tabs.map((tab) => /* @__PURE__ */ jsx(
|
|
9606
10206
|
"button",
|
|
9607
10207
|
{
|
|
9608
10208
|
type: "button",
|
|
9609
10209
|
onClick: () => setActiveTab(tab.id),
|
|
9610
|
-
className:
|
|
10210
|
+
className: cn66(
|
|
9611
10211
|
"shrink-0 rounded-md px-3 py-1.5 text-sm font-medium transition-colors",
|
|
9612
10212
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
9613
10213
|
activeTab === tab.id ? "bg-primary text-primary-foreground" : "bg-muted text-muted-foreground hover:bg-accent hover:text-accent-foreground"
|
|
@@ -9621,7 +10221,7 @@ function MosaicOrgPanel({
|
|
|
9621
10221
|
] });
|
|
9622
10222
|
}
|
|
9623
10223
|
MosaicOrgPanel.displayName = "MosaicOrgPanel";
|
|
9624
|
-
function
|
|
10224
|
+
function cn67(...classes) {
|
|
9625
10225
|
return classes.filter(Boolean).join(" ");
|
|
9626
10226
|
}
|
|
9627
10227
|
var ANIM_ID8 = "mosaic-dashboard-content-kf";
|
|
@@ -9650,7 +10250,7 @@ function MosaicDashboardContent({
|
|
|
9650
10250
|
className
|
|
9651
10251
|
}) {
|
|
9652
10252
|
const { isMobile } = useDevice();
|
|
9653
|
-
|
|
10253
|
+
React29.useEffect(() => {
|
|
9654
10254
|
injectStyles8();
|
|
9655
10255
|
}, []);
|
|
9656
10256
|
const activeView = views.find((v) => v.id === currentView);
|
|
@@ -9658,7 +10258,7 @@ function MosaicDashboardContent({
|
|
|
9658
10258
|
"div",
|
|
9659
10259
|
{
|
|
9660
10260
|
"data-slot": "dashboard-content",
|
|
9661
|
-
className:
|
|
10261
|
+
className: cn67("h-full overflow-auto", isMobile ? "p-4" : "p-6", className),
|
|
9662
10262
|
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
10263
|
"View not found: ",
|
|
9664
10264
|
currentView
|
|
@@ -9667,7 +10267,7 @@ function MosaicDashboardContent({
|
|
|
9667
10267
|
);
|
|
9668
10268
|
}
|
|
9669
10269
|
MosaicDashboardContent.displayName = "MosaicDashboardContent";
|
|
9670
|
-
function
|
|
10270
|
+
function cn68(...classes) {
|
|
9671
10271
|
return classes.filter(Boolean).join(" ");
|
|
9672
10272
|
}
|
|
9673
10273
|
var ANIM_ID9 = "mosaic-dashboard-header2-kf";
|
|
@@ -9767,8 +10367,8 @@ function MosaicDashboardHeader({
|
|
|
9767
10367
|
className
|
|
9768
10368
|
}) {
|
|
9769
10369
|
const { isMobile } = useDevice();
|
|
9770
|
-
const [searchQuery, setSearchQuery] =
|
|
9771
|
-
|
|
10370
|
+
const [searchQuery, setSearchQuery] = React29.useState("");
|
|
10371
|
+
React29.useEffect(() => {
|
|
9772
10372
|
injectStyles9();
|
|
9773
10373
|
}, []);
|
|
9774
10374
|
const handleSearch = (e) => {
|
|
@@ -9779,16 +10379,16 @@ function MosaicDashboardHeader({
|
|
|
9779
10379
|
"header",
|
|
9780
10380
|
{
|
|
9781
10381
|
"data-slot": "dashboard-header",
|
|
9782
|
-
className:
|
|
10382
|
+
className: cn68(
|
|
9783
10383
|
"mosaic-dashboard-header2",
|
|
9784
10384
|
"sticky top-0 z-40 border-b border-border/50 bg-background/80 backdrop-blur-sm",
|
|
9785
10385
|
className
|
|
9786
10386
|
),
|
|
9787
|
-
children: /* @__PURE__ */ jsx("div", { className:
|
|
10387
|
+
children: /* @__PURE__ */ jsx("div", { className: cn68(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
10388
|
/* @__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
10389
|
logoSlot ?? /* @__PURE__ */ jsx(SparklesIcon4, {}),
|
|
9790
10390
|
/* @__PURE__ */ jsxs("div", { className: "min-w-0", children: [
|
|
9791
|
-
/* @__PURE__ */ jsx("h1", { className:
|
|
10391
|
+
/* @__PURE__ */ jsx("h1", { className: cn68("font-semibold truncate", isMobile ? "text-lg" : "text-xl"), children: title }),
|
|
9792
10392
|
subtitle && !isMobile && /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground truncate", children: subtitle })
|
|
9793
10393
|
] })
|
|
9794
10394
|
] }) }),
|
|
@@ -9801,7 +10401,7 @@ function MosaicDashboardHeader({
|
|
|
9801
10401
|
value: searchQuery,
|
|
9802
10402
|
onChange: handleSearch,
|
|
9803
10403
|
placeholder: searchPlaceholder,
|
|
9804
|
-
className:
|
|
10404
|
+
className: cn68(
|
|
9805
10405
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
9806
10406
|
"text-sm placeholder:text-muted-foreground",
|
|
9807
10407
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -9841,7 +10441,7 @@ function MosaicDashboardHeader({
|
|
|
9841
10441
|
);
|
|
9842
10442
|
}
|
|
9843
10443
|
MosaicDashboardHeader.displayName = "MosaicDashboardHeader";
|
|
9844
|
-
function
|
|
10444
|
+
function cn69(...classes) {
|
|
9845
10445
|
return classes.filter(Boolean).join(" ");
|
|
9846
10446
|
}
|
|
9847
10447
|
function ChevronDownIcon4() {
|
|
@@ -9911,10 +10511,10 @@ function MosaicOrgSwitcher({
|
|
|
9911
10511
|
noOrgSelectedLabel,
|
|
9912
10512
|
className
|
|
9913
10513
|
}) {
|
|
9914
|
-
const [open, setOpen] =
|
|
9915
|
-
const ref =
|
|
10514
|
+
const [open, setOpen] = React29.useState(false);
|
|
10515
|
+
const ref = React29.useRef(null);
|
|
9916
10516
|
const currentOrg = organizations.find((o) => o.id === currentOrgId) ?? organizations[0];
|
|
9917
|
-
|
|
10517
|
+
React29.useEffect(() => {
|
|
9918
10518
|
if (!open) return;
|
|
9919
10519
|
const h = (e) => {
|
|
9920
10520
|
if (ref.current && !ref.current.contains(e.target)) setOpen(false);
|
|
@@ -9924,13 +10524,13 @@ function MosaicOrgSwitcher({
|
|
|
9924
10524
|
}, [open]);
|
|
9925
10525
|
if (!currentOrg && organizations.length === 0 && !onCreateOrg) return null;
|
|
9926
10526
|
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:
|
|
10527
|
+
return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "org-switcher", className: cn69("relative", className), children: [
|
|
9928
10528
|
/* @__PURE__ */ jsxs(
|
|
9929
10529
|
"button",
|
|
9930
10530
|
{
|
|
9931
10531
|
type: "button",
|
|
9932
10532
|
onClick: () => setOpen((v) => !v),
|
|
9933
|
-
className:
|
|
10533
|
+
className: cn69(
|
|
9934
10534
|
"inline-flex items-center gap-2 rounded-md border border-border bg-background px-3 py-1.5",
|
|
9935
10535
|
"text-sm font-medium text-foreground",
|
|
9936
10536
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -9957,7 +10557,7 @@ function MosaicOrgSwitcher({
|
|
|
9957
10557
|
{
|
|
9958
10558
|
role: "menu",
|
|
9959
10559
|
"aria-label": triggerAriaLabel,
|
|
9960
|
-
className:
|
|
10560
|
+
className: cn69(
|
|
9961
10561
|
"absolute left-0 top-full z-50 mt-1 min-w-[200px] rounded-md border border-border",
|
|
9962
10562
|
"bg-popover py-1 shadow-md"
|
|
9963
10563
|
),
|
|
@@ -9972,7 +10572,7 @@ function MosaicOrgSwitcher({
|
|
|
9972
10572
|
onSelectOrg?.(org.id);
|
|
9973
10573
|
setOpen(false);
|
|
9974
10574
|
},
|
|
9975
|
-
className:
|
|
10575
|
+
className: cn69(
|
|
9976
10576
|
"flex w-full items-center gap-2.5 px-3 py-2 text-sm text-foreground",
|
|
9977
10577
|
"hover:bg-accent hover:text-accent-foreground",
|
|
9978
10578
|
org.id === currentOrgId && "bg-primary/10 text-primary"
|
|
@@ -10009,7 +10609,7 @@ function MosaicOrgSwitcher({
|
|
|
10009
10609
|
] });
|
|
10010
10610
|
}
|
|
10011
10611
|
MosaicOrgSwitcher.displayName = "MosaicOrgSwitcher";
|
|
10012
|
-
function
|
|
10612
|
+
function cn70(...classes) {
|
|
10013
10613
|
return classes.filter(Boolean).join(" ");
|
|
10014
10614
|
}
|
|
10015
10615
|
function PlusIcon7() {
|
|
@@ -10044,9 +10644,9 @@ function MosaicQuickActionsMenu({
|
|
|
10044
10644
|
className
|
|
10045
10645
|
}) {
|
|
10046
10646
|
const { isMobile } = useDevice();
|
|
10047
|
-
const [open, setOpen] =
|
|
10048
|
-
const ref =
|
|
10049
|
-
|
|
10647
|
+
const [open, setOpen] = React29.useState(false);
|
|
10648
|
+
const ref = React29.useRef(null);
|
|
10649
|
+
React29.useEffect(() => {
|
|
10050
10650
|
if (!open) return;
|
|
10051
10651
|
const h = (e) => {
|
|
10052
10652
|
if (ref.current && !ref.current.contains(e.target)) setOpen(false);
|
|
@@ -10054,19 +10654,19 @@ function MosaicQuickActionsMenu({
|
|
|
10054
10654
|
document.addEventListener("mousedown", h);
|
|
10055
10655
|
return () => document.removeEventListener("mousedown", h);
|
|
10056
10656
|
}, [open]);
|
|
10057
|
-
const itemClass =
|
|
10657
|
+
const itemClass = cn70(
|
|
10058
10658
|
"flex w-full items-center gap-2 px-3 py-2 text-sm text-foreground",
|
|
10059
10659
|
"hover:bg-accent hover:text-accent-foreground",
|
|
10060
10660
|
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
10061
10661
|
"min-h-[44px]"
|
|
10062
10662
|
);
|
|
10063
|
-
return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "quick-actions-menu", className:
|
|
10663
|
+
return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "quick-actions-menu", className: cn70("relative", className), children: [
|
|
10064
10664
|
/* @__PURE__ */ jsxs(
|
|
10065
10665
|
"button",
|
|
10066
10666
|
{
|
|
10067
10667
|
type: "button",
|
|
10068
10668
|
onClick: () => setOpen((v) => !v),
|
|
10069
|
-
className:
|
|
10669
|
+
className: cn70(
|
|
10070
10670
|
"inline-flex items-center justify-center gap-2 rounded-md border border-border bg-background",
|
|
10071
10671
|
"min-h-[44px] min-w-[44px] px-3 py-2 text-sm font-medium text-foreground",
|
|
10072
10672
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -10077,7 +10677,7 @@ function MosaicQuickActionsMenu({
|
|
|
10077
10677
|
"aria-label": label,
|
|
10078
10678
|
children: [
|
|
10079
10679
|
triggerIcon ?? /* @__PURE__ */ jsx(PlusIcon7, {}),
|
|
10080
|
-
/* @__PURE__ */ jsx("span", { className:
|
|
10680
|
+
/* @__PURE__ */ jsx("span", { className: cn70("hidden md:inline"), children: label })
|
|
10081
10681
|
]
|
|
10082
10682
|
}
|
|
10083
10683
|
),
|
|
@@ -10086,14 +10686,14 @@ function MosaicQuickActionsMenu({
|
|
|
10086
10686
|
{
|
|
10087
10687
|
role: "menu",
|
|
10088
10688
|
"aria-label": menuTitle,
|
|
10089
|
-
className:
|
|
10689
|
+
className: cn70(
|
|
10090
10690
|
"absolute right-0 top-full z-50 mt-1 rounded-md border border-border bg-popover py-1 shadow-md",
|
|
10091
10691
|
isMobile ? "w-[min(90vw,280px)]" : "w-56"
|
|
10092
10692
|
),
|
|
10093
10693
|
children: [
|
|
10094
10694
|
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(
|
|
10695
|
+
/* @__PURE__ */ jsx("div", { className: cn70(menuTitle && "border-t border-border") }),
|
|
10696
|
+
actions.map((action) => /* @__PURE__ */ jsxs(React29.Fragment, { children: [
|
|
10097
10697
|
action.separator && /* @__PURE__ */ jsx("div", { className: "my-1 border-t border-border" }),
|
|
10098
10698
|
action.href && renderLink ? renderLink(
|
|
10099
10699
|
action,
|
|
@@ -10397,7 +10997,7 @@ function MosaicOrgProfilePage({
|
|
|
10397
10997
|
);
|
|
10398
10998
|
}
|
|
10399
10999
|
MosaicOrgProfilePage.displayName = "MosaicOrgProfilePage";
|
|
10400
|
-
function
|
|
11000
|
+
function cn71(...classes) {
|
|
10401
11001
|
return classes.filter(Boolean).join(" ");
|
|
10402
11002
|
}
|
|
10403
11003
|
function defaultCompare(a, b) {
|
|
@@ -10460,7 +11060,7 @@ function MosaicDataTable({
|
|
|
10460
11060
|
{
|
|
10461
11061
|
ref,
|
|
10462
11062
|
"data-slot": "data-table",
|
|
10463
|
-
className:
|
|
11063
|
+
className: cn71("w-full border-collapse text-sm", className),
|
|
10464
11064
|
children: [
|
|
10465
11065
|
/* @__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
11066
|
const isSortable = masterSortable && col.sortable;
|
|
@@ -10478,7 +11078,7 @@ function MosaicDataTable({
|
|
|
10478
11078
|
handleHeaderClick(col);
|
|
10479
11079
|
}
|
|
10480
11080
|
} : void 0,
|
|
10481
|
-
className:
|
|
11081
|
+
className: cn71(
|
|
10482
11082
|
"px-4 py-3 font-medium text-muted-foreground",
|
|
10483
11083
|
alignClass(col.align),
|
|
10484
11084
|
col.className,
|
|
@@ -10514,7 +11114,7 @@ function MosaicDataTable({
|
|
|
10514
11114
|
"td",
|
|
10515
11115
|
{
|
|
10516
11116
|
"data-slot": "data-table-td",
|
|
10517
|
-
className:
|
|
11117
|
+
className: cn71(
|
|
10518
11118
|
"px-4 py-3 text-foreground",
|
|
10519
11119
|
alignClass(col.align),
|
|
10520
11120
|
col.className
|
|
@@ -10653,7 +11253,7 @@ var stepSegmentVariants = cva(["h-1.5 flex-1 min-w-2 rounded-full transition-col
|
|
|
10653
11253
|
filled: false
|
|
10654
11254
|
}
|
|
10655
11255
|
});
|
|
10656
|
-
function
|
|
11256
|
+
function cn72(...classes) {
|
|
10657
11257
|
return classes.filter(Boolean).join(" ");
|
|
10658
11258
|
}
|
|
10659
11259
|
function resolveStatus(step, index, currentIndex) {
|
|
@@ -10694,7 +11294,7 @@ function MosaicStepPipelineSegments({
|
|
|
10694
11294
|
"aria-valuemax": total,
|
|
10695
11295
|
"aria-valuenow": current,
|
|
10696
11296
|
"aria-valuetext": progressLabel ? progressLabel(current, total) : void 0,
|
|
10697
|
-
className:
|
|
11297
|
+
className: cn72(stepSegmentBarVariants(), className),
|
|
10698
11298
|
children: steps.map((step, index) => {
|
|
10699
11299
|
const status = resolveStatus(step, index, currentIndex);
|
|
10700
11300
|
const filled = status !== "upcoming";
|
|
@@ -10706,7 +11306,7 @@ function MosaicStepPipelineSegments({
|
|
|
10706
11306
|
"data-status": status,
|
|
10707
11307
|
"data-filled": filled,
|
|
10708
11308
|
"aria-hidden": "true",
|
|
10709
|
-
className:
|
|
11309
|
+
className: cn72(stepSegmentVariants({ filled }))
|
|
10710
11310
|
},
|
|
10711
11311
|
key
|
|
10712
11312
|
);
|
|
@@ -10727,7 +11327,7 @@ function MosaicStepPipelineDots({
|
|
|
10727
11327
|
{
|
|
10728
11328
|
ref,
|
|
10729
11329
|
"data-slot": "step-pipeline",
|
|
10730
|
-
className:
|
|
11330
|
+
className: cn72(stepPipelineVariants({ orientation }), className),
|
|
10731
11331
|
children: steps.map((step, index) => {
|
|
10732
11332
|
const status = resolveStatus(step, index, currentIndex);
|
|
10733
11333
|
const isCurrent = status === "current";
|
|
@@ -10739,7 +11339,7 @@ function MosaicStepPipelineDots({
|
|
|
10739
11339
|
"data-slot": "step",
|
|
10740
11340
|
"data-status": status,
|
|
10741
11341
|
"aria-current": isCurrent ? "step" : void 0,
|
|
10742
|
-
className:
|
|
11342
|
+
className: cn72(
|
|
10743
11343
|
"flex shrink-0",
|
|
10744
11344
|
orientation === "horizontal" ? "flex-col items-center gap-2" : "flex-row items-start gap-3",
|
|
10745
11345
|
orientation === "horizontal" && !isLast && "flex-1"
|
|
@@ -10750,14 +11350,14 @@ function MosaicStepPipelineDots({
|
|
|
10750
11350
|
"div",
|
|
10751
11351
|
{
|
|
10752
11352
|
"data-slot": "step-connector",
|
|
10753
|
-
className:
|
|
11353
|
+
className: cn72(stepConnectorVariants({ status, orientation }))
|
|
10754
11354
|
}
|
|
10755
11355
|
),
|
|
10756
11356
|
/* @__PURE__ */ jsx(
|
|
10757
11357
|
"div",
|
|
10758
11358
|
{
|
|
10759
11359
|
"data-slot": "step-indicator",
|
|
10760
|
-
className:
|
|
11360
|
+
className: cn72(stepIndicatorVariants({ status, orientation })),
|
|
10761
11361
|
"aria-hidden": "true",
|
|
10762
11362
|
children: status === "done" ? "\u2713" : /* @__PURE__ */ jsx("span", { children: index + 1 })
|
|
10763
11363
|
}
|
|
@@ -10766,7 +11366,7 @@ function MosaicStepPipelineDots({
|
|
|
10766
11366
|
"div",
|
|
10767
11367
|
{
|
|
10768
11368
|
"data-slot": "step-connector",
|
|
10769
|
-
className:
|
|
11369
|
+
className: cn72(
|
|
10770
11370
|
stepConnectorVariants({
|
|
10771
11371
|
// connector after current step is still upcoming
|
|
10772
11372
|
status: status === "done" ? "done" : "upcoming",
|
|
@@ -10777,12 +11377,12 @@ function MosaicStepPipelineDots({
|
|
|
10777
11377
|
)
|
|
10778
11378
|
] }),
|
|
10779
11379
|
/* @__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:
|
|
11380
|
+
/* @__PURE__ */ jsx("span", { "data-slot": "step-label", className: cn72(stepLabelVariants({ status })), children: step.label }),
|
|
10781
11381
|
step.description !== void 0 && /* @__PURE__ */ jsx(
|
|
10782
11382
|
"span",
|
|
10783
11383
|
{
|
|
10784
11384
|
"data-slot": "step-description",
|
|
10785
|
-
className:
|
|
11385
|
+
className: cn72(stepDescriptionVariants({ status })),
|
|
10786
11386
|
children: step.description
|
|
10787
11387
|
}
|
|
10788
11388
|
)
|
|
@@ -10793,7 +11393,7 @@ function MosaicStepPipelineDots({
|
|
|
10793
11393
|
"div",
|
|
10794
11394
|
{
|
|
10795
11395
|
"data-slot": "step-indicator",
|
|
10796
|
-
className:
|
|
11396
|
+
className: cn72(stepIndicatorVariants({ status, orientation })),
|
|
10797
11397
|
"aria-hidden": "true",
|
|
10798
11398
|
children: status === "done" ? "\u2713" : /* @__PURE__ */ jsx("span", { children: index + 1 })
|
|
10799
11399
|
}
|
|
@@ -10802,7 +11402,7 @@ function MosaicStepPipelineDots({
|
|
|
10802
11402
|
"div",
|
|
10803
11403
|
{
|
|
10804
11404
|
"data-slot": "step-connector",
|
|
10805
|
-
className:
|
|
11405
|
+
className: cn72(
|
|
10806
11406
|
stepConnectorVariants({
|
|
10807
11407
|
status: status === "done" ? "done" : "upcoming",
|
|
10808
11408
|
orientation
|
|
@@ -10812,12 +11412,12 @@ function MosaicStepPipelineDots({
|
|
|
10812
11412
|
)
|
|
10813
11413
|
] }),
|
|
10814
11414
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-0.5 pt-1 pb-4", children: [
|
|
10815
|
-
/* @__PURE__ */ jsx("span", { "data-slot": "step-label", className:
|
|
11415
|
+
/* @__PURE__ */ jsx("span", { "data-slot": "step-label", className: cn72(stepLabelVariants({ status })), children: step.label }),
|
|
10816
11416
|
step.description !== void 0 && /* @__PURE__ */ jsx(
|
|
10817
11417
|
"span",
|
|
10818
11418
|
{
|
|
10819
11419
|
"data-slot": "step-description",
|
|
10820
|
-
className:
|
|
11420
|
+
className: cn72(stepDescriptionVariants({ status })),
|
|
10821
11421
|
children: step.description
|
|
10822
11422
|
}
|
|
10823
11423
|
)
|
|
@@ -10831,7 +11431,7 @@ function MosaicStepPipelineDots({
|
|
|
10831
11431
|
);
|
|
10832
11432
|
}
|
|
10833
11433
|
MosaicStepPipelineDots.displayName = "MosaicStepPipelineDots";
|
|
10834
|
-
function
|
|
11434
|
+
function cn73(...classes) {
|
|
10835
11435
|
return classes.filter(Boolean).join(" ");
|
|
10836
11436
|
}
|
|
10837
11437
|
function MosaicKanbanBoard({ children, className, ref, ...props }) {
|
|
@@ -10840,7 +11440,7 @@ function MosaicKanbanBoard({ children, className, ref, ...props }) {
|
|
|
10840
11440
|
{
|
|
10841
11441
|
ref,
|
|
10842
11442
|
"data-slot": "kanban-board",
|
|
10843
|
-
className:
|
|
11443
|
+
className: cn73(
|
|
10844
11444
|
"flex gap-4 overflow-x-auto pb-4",
|
|
10845
11445
|
"min-h-0",
|
|
10846
11446
|
// Smooth momentum scrolling on iOS
|
|
@@ -10853,7 +11453,7 @@ function MosaicKanbanBoard({ children, className, ref, ...props }) {
|
|
|
10853
11453
|
);
|
|
10854
11454
|
}
|
|
10855
11455
|
MosaicKanbanBoard.displayName = "MosaicKanbanBoard";
|
|
10856
|
-
function
|
|
11456
|
+
function cn74(...classes) {
|
|
10857
11457
|
return classes.filter(Boolean).join(" ");
|
|
10858
11458
|
}
|
|
10859
11459
|
function MosaicKanbanColumn({
|
|
@@ -10871,7 +11471,7 @@ function MosaicKanbanColumn({
|
|
|
10871
11471
|
{
|
|
10872
11472
|
ref,
|
|
10873
11473
|
"data-slot": "kanban-column",
|
|
10874
|
-
className:
|
|
11474
|
+
className: cn74(
|
|
10875
11475
|
// Fixed column width, never shrink so board stays scrollable
|
|
10876
11476
|
"flex flex-col w-72 shrink-0",
|
|
10877
11477
|
// Surface
|
|
@@ -10892,7 +11492,7 @@ function MosaicKanbanColumn({
|
|
|
10892
11492
|
{
|
|
10893
11493
|
"data-slot": "kanban-column-count",
|
|
10894
11494
|
"aria-label": countLabel(count),
|
|
10895
|
-
className:
|
|
11495
|
+
className: cn74(
|
|
10896
11496
|
"inline-flex items-center justify-center",
|
|
10897
11497
|
"min-w-[1.25rem] h-5 px-1.5 rounded-full",
|
|
10898
11498
|
"bg-muted text-muted-foreground",
|
|
@@ -10935,12 +11535,12 @@ function MosaicKanbanColumn({
|
|
|
10935
11535
|
);
|
|
10936
11536
|
}
|
|
10937
11537
|
MosaicKanbanColumn.displayName = "MosaicKanbanColumn";
|
|
10938
|
-
var WorkspaceCtx =
|
|
11538
|
+
var WorkspaceCtx = React29.createContext({
|
|
10939
11539
|
workspaceId: null,
|
|
10940
11540
|
isLoading: false
|
|
10941
11541
|
});
|
|
10942
11542
|
function useMosaicWorkspace() {
|
|
10943
|
-
return
|
|
11543
|
+
return React29.useContext(WorkspaceCtx);
|
|
10944
11544
|
}
|
|
10945
11545
|
var defaultClerkAppearance = {
|
|
10946
11546
|
variables: {
|
|
@@ -10953,9 +11553,9 @@ var defaultClerkAppearance = {
|
|
|
10953
11553
|
}
|
|
10954
11554
|
};
|
|
10955
11555
|
function WorkspaceResolver({ resolveWorkspaceId, initialOrgId, children }) {
|
|
10956
|
-
const [workspaceId, setWorkspaceId] =
|
|
10957
|
-
const [isLoading, setIsLoading] =
|
|
10958
|
-
|
|
11556
|
+
const [workspaceId, setWorkspaceId] = React29.useState(null);
|
|
11557
|
+
const [isLoading, setIsLoading] = React29.useState(false);
|
|
11558
|
+
React29.useEffect(() => {
|
|
10959
11559
|
if (!resolveWorkspaceId) {
|
|
10960
11560
|
setWorkspaceId(initialOrgId ?? null);
|
|
10961
11561
|
return;
|
|
@@ -11114,7 +11714,7 @@ var documentUploadProgressFillVariants = cva(
|
|
|
11114
11714
|
defaultVariants: {}
|
|
11115
11715
|
}
|
|
11116
11716
|
);
|
|
11117
|
-
function
|
|
11717
|
+
function cn75(...classes) {
|
|
11118
11718
|
return classes.filter(Boolean).join(" ");
|
|
11119
11719
|
}
|
|
11120
11720
|
function MosaicDocumentUpload({
|
|
@@ -11155,7 +11755,7 @@ function MosaicDocumentUpload({
|
|
|
11155
11755
|
if (selected.length > 0) onFilesSelected(selected);
|
|
11156
11756
|
event.target.value = "";
|
|
11157
11757
|
}
|
|
11158
|
-
return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "document-upload", className:
|
|
11758
|
+
return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "document-upload", className: cn75("flex flex-col gap-4", className), children: [
|
|
11159
11759
|
/* @__PURE__ */ jsxs(
|
|
11160
11760
|
"div",
|
|
11161
11761
|
{
|
|
@@ -11220,7 +11820,7 @@ function MosaicDocumentUpload({
|
|
|
11220
11820
|
"aria-valuemin": 0,
|
|
11221
11821
|
"aria-valuemax": 100,
|
|
11222
11822
|
"aria-valuenow": file.progress ?? 0,
|
|
11223
|
-
className:
|
|
11823
|
+
className: cn75(documentUploadProgressTrackVariants(), "mt-2"),
|
|
11224
11824
|
children: /* @__PURE__ */ jsx(
|
|
11225
11825
|
"div",
|
|
11226
11826
|
{
|
|
@@ -11297,7 +11897,7 @@ var urlScraperCardVariants = cva(["flex flex-col gap-2 rounded-lg border p-4"],
|
|
|
11297
11897
|
tone: "neutral"
|
|
11298
11898
|
}
|
|
11299
11899
|
});
|
|
11300
|
-
function
|
|
11900
|
+
function cn76(...classes) {
|
|
11301
11901
|
return classes.filter(Boolean).join(" ");
|
|
11302
11902
|
}
|
|
11303
11903
|
function isSyntacticallyValidUrl(candidate) {
|
|
@@ -11336,7 +11936,7 @@ function MosaicUrlScraper(props) {
|
|
|
11336
11936
|
setIsLocallyInvalid(false);
|
|
11337
11937
|
onUrlChange(event.target.value);
|
|
11338
11938
|
}
|
|
11339
|
-
return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "url-scraper", className:
|
|
11939
|
+
return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "url-scraper", className: cn76("flex flex-col gap-4", className), children: [
|
|
11340
11940
|
/* @__PURE__ */ jsxs(
|
|
11341
11941
|
"form",
|
|
11342
11942
|
{
|
|
@@ -11472,7 +12072,7 @@ var chatThreadScrollButtonVariants = cva([
|
|
|
11472
12072
|
"items-center justify-center rounded-full border border-border bg-card text-foreground shadow-sm",
|
|
11473
12073
|
"transition-colors hover:bg-accent/50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
11474
12074
|
]);
|
|
11475
|
-
function
|
|
12075
|
+
function cn77(...classes) {
|
|
11476
12076
|
return classes.filter(Boolean).join(" ");
|
|
11477
12077
|
}
|
|
11478
12078
|
var BOTTOM_THRESHOLD_PX = 24;
|
|
@@ -11556,7 +12156,7 @@ function MosaicChatThread({
|
|
|
11556
12156
|
role: "log",
|
|
11557
12157
|
onScroll: handleScroll,
|
|
11558
12158
|
onKeyDown: handleKeyDown,
|
|
11559
|
-
className:
|
|
12159
|
+
className: cn77(chatThreadRootVariants(), className),
|
|
11560
12160
|
children: [
|
|
11561
12161
|
/* @__PURE__ */ jsx("div", { "data-slot": "chat-thread-content", className: chatThreadContentVariants(), children }),
|
|
11562
12162
|
!isAtBottom && /* @__PURE__ */ jsx(
|
|
@@ -11597,7 +12197,7 @@ var chatComposerActionButtonVariants = cva(
|
|
|
11597
12197
|
}
|
|
11598
12198
|
}
|
|
11599
12199
|
);
|
|
11600
|
-
function
|
|
12200
|
+
function cn78(...classes) {
|
|
11601
12201
|
return classes.filter(Boolean).join(" ");
|
|
11602
12202
|
}
|
|
11603
12203
|
function MosaicChatComposer(props) {
|
|
@@ -11652,7 +12252,7 @@ function MosaicChatComposer(props) {
|
|
|
11652
12252
|
{
|
|
11653
12253
|
ref,
|
|
11654
12254
|
"data-slot": "chat-composer",
|
|
11655
|
-
className:
|
|
12255
|
+
className: cn78(chatComposerRootVariants(), className),
|
|
11656
12256
|
onSubmit: handleSubmit,
|
|
11657
12257
|
children: [
|
|
11658
12258
|
/* @__PURE__ */ jsx(
|
|
@@ -11768,7 +12368,7 @@ var markdownTableCellVariants = cva(["border border-border px-3 py-1.5"], {
|
|
|
11768
12368
|
align: "left"
|
|
11769
12369
|
}
|
|
11770
12370
|
});
|
|
11771
|
-
function
|
|
12371
|
+
function cn79(...classes) {
|
|
11772
12372
|
return classes.filter(Boolean).join(" ");
|
|
11773
12373
|
}
|
|
11774
12374
|
function sanitizeHref(rawHref) {
|
|
@@ -11963,7 +12563,7 @@ function parseBlocks(content) {
|
|
|
11963
12563
|
function MosaicMarkdown({ content, renderCodeBlock, className, ref }) {
|
|
11964
12564
|
const blocks = parseBlocks(content);
|
|
11965
12565
|
const ids = makeIdSource();
|
|
11966
|
-
return /* @__PURE__ */ jsx("div", { ref, "data-slot": "markdown", className:
|
|
12566
|
+
return /* @__PURE__ */ jsx("div", { ref, "data-slot": "markdown", className: cn79(markdownRootVariants(), className), children: blocks.map((block) => {
|
|
11967
12567
|
if (block.kind === "heading") {
|
|
11968
12568
|
const HeadingTag = `h${block.level}`;
|
|
11969
12569
|
return /* @__PURE__ */ jsx(HeadingTag, { className: markdownHeadingVariants({ level: block.level }), children: parseInline(block.text, ids) }, block.id);
|
|
@@ -12041,7 +12641,7 @@ var chatMessageToolStatusVariants = cva(["text-xs font-medium"], {
|
|
|
12041
12641
|
status: "running"
|
|
12042
12642
|
}
|
|
12043
12643
|
});
|
|
12044
|
-
function
|
|
12644
|
+
function cn80(...classes) {
|
|
12045
12645
|
return classes.filter(Boolean).join(" ");
|
|
12046
12646
|
}
|
|
12047
12647
|
function partKey(part, index) {
|
|
@@ -12207,7 +12807,7 @@ function MosaicChatMessage({
|
|
|
12207
12807
|
ref,
|
|
12208
12808
|
"data-slot": "chat-message",
|
|
12209
12809
|
"data-role": messageRole,
|
|
12210
|
-
className:
|
|
12810
|
+
className: cn80(chatMessageContainerVariants({ align: isUser ? "end" : "start" }), className),
|
|
12211
12811
|
children: /* @__PURE__ */ jsx("div", { className: chatMessageBubbleVariants({ role: messageRole }), children: parts.map((part, index) => /* @__PURE__ */ jsx(
|
|
12212
12812
|
ChatMessagePartView,
|
|
12213
12813
|
{
|
|
@@ -12262,7 +12862,7 @@ var approvalPromptButtonVariants = cva(
|
|
|
12262
12862
|
}
|
|
12263
12863
|
}
|
|
12264
12864
|
);
|
|
12265
|
-
function
|
|
12865
|
+
function cn81(...classes) {
|
|
12266
12866
|
return classes.filter(Boolean).join(" ");
|
|
12267
12867
|
}
|
|
12268
12868
|
function MosaicApprovalPrompt(props) {
|
|
@@ -12274,7 +12874,7 @@ function MosaicApprovalPrompt(props) {
|
|
|
12274
12874
|
ref,
|
|
12275
12875
|
"data-slot": "approval-prompt",
|
|
12276
12876
|
"aria-label": promptTitle,
|
|
12277
|
-
className:
|
|
12877
|
+
className: cn81("border-0 p-0 m-0", approvalPromptCardVariants({ tone }), className),
|
|
12278
12878
|
children: [
|
|
12279
12879
|
/* @__PURE__ */ jsx("legend", { "data-slot": "approval-prompt-title", className: "text-base font-semibold md:text-lg", children: promptTitle }),
|
|
12280
12880
|
/* @__PURE__ */ jsxs("div", { "data-slot": "approval-prompt-tool", className: "flex flex-col gap-1", children: [
|
|
@@ -12351,7 +12951,7 @@ var toolToggleListRowVariants = cva(
|
|
|
12351
12951
|
}
|
|
12352
12952
|
}
|
|
12353
12953
|
);
|
|
12354
|
-
function
|
|
12954
|
+
function cn82(...classes) {
|
|
12355
12955
|
return classes.filter(Boolean).join(" ");
|
|
12356
12956
|
}
|
|
12357
12957
|
function MosaicToolToggleList({
|
|
@@ -12367,7 +12967,7 @@ function MosaicToolToggleList({
|
|
|
12367
12967
|
}) {
|
|
12368
12968
|
const toolsById = new Map(tools.map((tool) => [tool.id, tool]));
|
|
12369
12969
|
const approvalLabelById = new Map(approvalLevels.map((level) => [level.id, level.label]));
|
|
12370
|
-
return /* @__PURE__ */ jsx("div", { ref, "data-slot": "tool-toggle-list", className:
|
|
12970
|
+
return /* @__PURE__ */ jsx("div", { ref, "data-slot": "tool-toggle-list", className: cn82("flex flex-col gap-6", className), children: sections.map((section) => /* @__PURE__ */ jsxs(
|
|
12371
12971
|
"div",
|
|
12372
12972
|
{
|
|
12373
12973
|
"data-slot": "tool-toggle-list-section",
|
|
@@ -12398,7 +12998,7 @@ function MosaicToolToggleList({
|
|
|
12398
12998
|
onCheckedChange: (checked) => onToggleTool(tool.id, checked),
|
|
12399
12999
|
"aria-label": toggleAriaLabel(tool.name),
|
|
12400
13000
|
"data-slot": "tool-toggle-list-switch",
|
|
12401
|
-
className:
|
|
13001
|
+
className: cn82(
|
|
12402
13002
|
"relative inline-flex h-6 w-10 shrink-0 cursor-pointer items-center",
|
|
12403
13003
|
"rounded-full border-2 border-transparent outline-none",
|
|
12404
13004
|
"bg-muted transition-colors",
|
|
@@ -12409,7 +13009,7 @@ function MosaicToolToggleList({
|
|
|
12409
13009
|
Switch.Thumb,
|
|
12410
13010
|
{
|
|
12411
13011
|
"data-slot": "tool-toggle-list-switch-thumb",
|
|
12412
|
-
className:
|
|
13012
|
+
className: cn82(
|
|
12413
13013
|
"pointer-events-none block h-4 w-4 rounded-full",
|
|
12414
13014
|
"bg-background shadow-sm",
|
|
12415
13015
|
"translate-x-0 transition-transform",
|
|
@@ -12451,7 +13051,7 @@ function MosaicToolToggleList({
|
|
|
12451
13051
|
{
|
|
12452
13052
|
"aria-label": approvalSelectAriaLabel(tool.name),
|
|
12453
13053
|
"data-slot": "tool-toggle-list-approval-trigger",
|
|
12454
|
-
className:
|
|
13054
|
+
className: cn82(
|
|
12455
13055
|
"inline-flex h-9 min-w-[10rem] items-center justify-between gap-2",
|
|
12456
13056
|
"rounded-md border border-border bg-background px-3 py-2",
|
|
12457
13057
|
"text-sm text-foreground shadow-xs outline-none",
|
|
@@ -12469,7 +13069,7 @@ function MosaicToolToggleList({
|
|
|
12469
13069
|
Select.Popup,
|
|
12470
13070
|
{
|
|
12471
13071
|
"data-slot": "tool-toggle-list-approval-popup",
|
|
12472
|
-
className:
|
|
13072
|
+
className: cn82(
|
|
12473
13073
|
"z-50 min-w-[10rem] overflow-hidden rounded-md border border-border",
|
|
12474
13074
|
"bg-popover p-1 text-popover-foreground shadow-md",
|
|
12475
13075
|
"origin-[var(--transform-origin)]",
|
|
@@ -12482,7 +13082,7 @@ function MosaicToolToggleList({
|
|
|
12482
13082
|
Select.Item,
|
|
12483
13083
|
{
|
|
12484
13084
|
value: level.id,
|
|
12485
|
-
className:
|
|
13085
|
+
className: cn82(
|
|
12486
13086
|
"relative flex cursor-pointer select-none items-center rounded-sm px-2 py-1.5",
|
|
12487
13087
|
"text-sm text-popover-foreground outline-none",
|
|
12488
13088
|
"data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground",
|
|
@@ -12590,7 +13190,7 @@ var apiKeyPanelMessageVariants = cva(["text-sm"], {
|
|
|
12590
13190
|
tone: "muted"
|
|
12591
13191
|
}
|
|
12592
13192
|
});
|
|
12593
|
-
function
|
|
13193
|
+
function cn83(...classes) {
|
|
12594
13194
|
return classes.filter(Boolean).join(" ");
|
|
12595
13195
|
}
|
|
12596
13196
|
function MosaicApiKeyPanel(props) {
|
|
@@ -12618,7 +13218,7 @@ function MosaicApiKeyPanel(props) {
|
|
|
12618
13218
|
function handleKeyChange(event) {
|
|
12619
13219
|
onKeyChange(event.target.value);
|
|
12620
13220
|
}
|
|
12621
|
-
return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "api-key-panel", className:
|
|
13221
|
+
return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "api-key-panel", className: cn83("flex flex-col gap-3", className), children: [
|
|
12622
13222
|
/* @__PURE__ */ jsx(
|
|
12623
13223
|
"div",
|
|
12624
13224
|
{
|
|
@@ -12713,7 +13313,7 @@ MosaicApiKeyPanel.displayName = "MosaicApiKeyPanel";
|
|
|
12713
13313
|
var agentChatRootVariants = cva([
|
|
12714
13314
|
"flex min-h-0 w-full flex-1 flex-col gap-2 overflow-hidden rounded-lg border border-border bg-card"
|
|
12715
13315
|
]);
|
|
12716
|
-
function
|
|
13316
|
+
function cn84(...classes) {
|
|
12717
13317
|
return classes.filter(Boolean).join(" ");
|
|
12718
13318
|
}
|
|
12719
13319
|
function formatPayload2(value) {
|
|
@@ -12849,7 +13449,7 @@ function MosaicAgentChat(props) {
|
|
|
12849
13449
|
setDecisions((previous) => ({ ...previous, [payload.requestId]: decision }));
|
|
12850
13450
|
onApprovalResponse(payload);
|
|
12851
13451
|
}
|
|
12852
|
-
return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "agent-chat", className:
|
|
13452
|
+
return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "agent-chat", className: cn84(agentChatRootVariants(), className), children: [
|
|
12853
13453
|
/* @__PURE__ */ jsx(MosaicChatThread, { scrollToBottomLabel, children: messages.map((message) => /* @__PURE__ */ jsx(
|
|
12854
13454
|
MosaicChatMessage,
|
|
12855
13455
|
{
|
|
@@ -12938,7 +13538,7 @@ var toastProviderPositionVariants = cva(
|
|
|
12938
13538
|
}
|
|
12939
13539
|
}
|
|
12940
13540
|
);
|
|
12941
|
-
function
|
|
13541
|
+
function cn85(...classes) {
|
|
12942
13542
|
return classes.filter(Boolean).join(" ");
|
|
12943
13543
|
}
|
|
12944
13544
|
function MosaicToast({
|
|
@@ -12964,7 +13564,7 @@ function MosaicToast({
|
|
|
12964
13564
|
ref,
|
|
12965
13565
|
"data-slot": "toast",
|
|
12966
13566
|
role,
|
|
12967
|
-
className:
|
|
13567
|
+
className: cn85(toastCardVariants({ variant }), className),
|
|
12968
13568
|
children: [
|
|
12969
13569
|
/* @__PURE__ */ jsxs("div", { "data-slot": "toast-body", className: "flex min-w-0 flex-1 flex-col gap-1", children: [
|
|
12970
13570
|
/* @__PURE__ */ jsx("p", { "data-slot": "toast-title", className: toastTitleVariants({ variant }), children: title }),
|
|
@@ -13004,7 +13604,7 @@ function MosaicToast({
|
|
|
13004
13604
|
);
|
|
13005
13605
|
}
|
|
13006
13606
|
MosaicToast.displayName = "MosaicToast";
|
|
13007
|
-
function
|
|
13607
|
+
function cn86(...classes) {
|
|
13008
13608
|
return classes.filter(Boolean).join(" ");
|
|
13009
13609
|
}
|
|
13010
13610
|
function MosaicToastProvider({
|
|
@@ -13018,7 +13618,7 @@ function MosaicToastProvider({
|
|
|
13018
13618
|
{
|
|
13019
13619
|
ref,
|
|
13020
13620
|
"data-slot": "toast-provider",
|
|
13021
|
-
className:
|
|
13621
|
+
className: cn86(toastProviderPositionVariants({ position }), className),
|
|
13022
13622
|
children
|
|
13023
13623
|
}
|
|
13024
13624
|
);
|
|
@@ -13045,7 +13645,7 @@ var pdfViewerToolbarButtonVariants = cva([
|
|
|
13045
13645
|
"inline-flex min-h-8 min-w-8 items-center justify-center rounded-md border border-border text-sm",
|
|
13046
13646
|
"transition-colors hover:bg-accent/50 disabled:opacity-50 disabled:hover:bg-transparent"
|
|
13047
13647
|
]);
|
|
13048
|
-
function
|
|
13648
|
+
function cn87(...classes) {
|
|
13049
13649
|
return classes.filter(Boolean).join(" ");
|
|
13050
13650
|
}
|
|
13051
13651
|
function buildFrameSrc(fileUrl, currentPage, zoom) {
|
|
@@ -13110,7 +13710,7 @@ function MosaicPdfViewer({
|
|
|
13110
13710
|
if (zoom === void 0 || onZoomChange === void 0) return;
|
|
13111
13711
|
onZoomChange(Math.round((zoom + 0.1) * 100) / 100);
|
|
13112
13712
|
}
|
|
13113
|
-
return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "pdf-viewer", className:
|
|
13713
|
+
return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "pdf-viewer", className: cn87("flex flex-col gap-2", className), children: [
|
|
13114
13714
|
(showPageControls || showZoomControls) && /* @__PURE__ */ jsxs(
|
|
13115
13715
|
"div",
|
|
13116
13716
|
{
|
|
@@ -13199,7 +13799,7 @@ function MosaicPdfViewer({
|
|
|
13199
13799
|
"data-slot": "pdf-viewer-frame",
|
|
13200
13800
|
src: buildFrameSrc(fileUrl, currentPage, zoom),
|
|
13201
13801
|
title: fileUrl,
|
|
13202
|
-
className:
|
|
13802
|
+
className: cn87(
|
|
13203
13803
|
"h-full min-h-64 w-full border-0",
|
|
13204
13804
|
status !== "loaded" && "pointer-events-none absolute inset-0 opacity-0"
|
|
13205
13805
|
)
|
|
@@ -13218,7 +13818,7 @@ var splitPaneCollapseButtonVariants = cva([
|
|
|
13218
13818
|
"inline-flex h-11 w-6 shrink-0 items-center justify-center self-center rounded-md border border-border text-sm",
|
|
13219
13819
|
"transition-colors hover:bg-accent/50"
|
|
13220
13820
|
]);
|
|
13221
|
-
function
|
|
13821
|
+
function cn88(...classes) {
|
|
13222
13822
|
return classes.filter(Boolean).join(" ");
|
|
13223
13823
|
}
|
|
13224
13824
|
function mergeRefs(externalRef, node) {
|
|
@@ -13291,7 +13891,7 @@ function MosaicResizableSplitPane({
|
|
|
13291
13891
|
mergeRefs(ref, node);
|
|
13292
13892
|
},
|
|
13293
13893
|
"data-slot": "resizable-split-pane",
|
|
13294
|
-
className:
|
|
13894
|
+
className: cn88(splitPaneRootVariants(), className),
|
|
13295
13895
|
children: [
|
|
13296
13896
|
/* @__PURE__ */ jsx("div", { "data-slot": "resizable-split-pane-main", className: "min-h-0 min-w-0 flex-1 overflow-auto", children: main }),
|
|
13297
13897
|
!isSideCollapsed && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
@@ -13358,7 +13958,7 @@ var tagInputFieldVariants = cva([
|
|
|
13358
13958
|
"min-w-[6ch] flex-1 border-none bg-transparent px-1 py-0.5 text-sm text-foreground outline-none",
|
|
13359
13959
|
"placeholder:text-muted-foreground"
|
|
13360
13960
|
]);
|
|
13361
|
-
function
|
|
13961
|
+
function cn89(...classes) {
|
|
13362
13962
|
return classes.filter(Boolean).join(" ");
|
|
13363
13963
|
}
|
|
13364
13964
|
function mergeRefs2(externalRef, node) {
|
|
@@ -13409,7 +14009,7 @@ function MosaicTagInput({
|
|
|
13409
14009
|
if (lastTag !== void 0) onRemoveTag(lastTag);
|
|
13410
14010
|
}
|
|
13411
14011
|
}
|
|
13412
|
-
return /* @__PURE__ */ jsxs("div", { "data-slot": "tag-input", className:
|
|
14012
|
+
return /* @__PURE__ */ jsxs("div", { "data-slot": "tag-input", className: cn89(tagInputRootVariants(), className), children: [
|
|
13413
14013
|
tags.map((tag) => /* @__PURE__ */ jsxs("span", { "data-slot": "tag-input-tag", className: tagInputTagVariants(), children: [
|
|
13414
14014
|
tag,
|
|
13415
14015
|
/* @__PURE__ */ jsx(
|
|
@@ -13446,7 +14046,7 @@ function MosaicTagInput({
|
|
|
13446
14046
|
"ul",
|
|
13447
14047
|
{
|
|
13448
14048
|
"data-slot": "tag-input-suggestions",
|
|
13449
|
-
className:
|
|
14049
|
+
className: cn89(
|
|
13450
14050
|
"z-50 mt-1 w-full min-w-[8rem] overflow-hidden rounded-md border border-border",
|
|
13451
14051
|
"bg-popover p-1 text-sm text-popover-foreground shadow-md"
|
|
13452
14052
|
),
|
|
@@ -13465,7 +14065,151 @@ function MosaicTagInput({
|
|
|
13465
14065
|
] });
|
|
13466
14066
|
}
|
|
13467
14067
|
MosaicTagInput.displayName = "MosaicTagInput";
|
|
14068
|
+
var drawerPopupVariants = cva(
|
|
14069
|
+
[
|
|
14070
|
+
"fixed z-50 flex flex-col bg-background shadow-xl outline-none",
|
|
14071
|
+
"transition-transform duration-200 ease-out",
|
|
14072
|
+
"data-[ending-style]:transition-none"
|
|
14073
|
+
],
|
|
14074
|
+
{
|
|
14075
|
+
variants: {
|
|
14076
|
+
side: {
|
|
14077
|
+
right: "inset-y-0 right-0 h-full w-3/4 border-l border-border sm:max-w-sm",
|
|
14078
|
+
left: "inset-y-0 left-0 h-full w-3/4 border-r border-border sm:max-w-sm",
|
|
14079
|
+
top: "inset-x-0 top-0 max-h-[80vh] w-full border-b border-border",
|
|
14080
|
+
bottom: "inset-x-0 bottom-0 max-h-[80vh] w-full border-t border-border"
|
|
14081
|
+
}
|
|
14082
|
+
},
|
|
14083
|
+
defaultVariants: {
|
|
14084
|
+
side: "right"
|
|
14085
|
+
}
|
|
14086
|
+
}
|
|
14087
|
+
);
|
|
14088
|
+
var drawerBackdropVariants = cva(["fixed inset-0 z-50 bg-black/50"]);
|
|
14089
|
+
function cn90(...classes) {
|
|
14090
|
+
return classes.filter(Boolean).join(" ");
|
|
14091
|
+
}
|
|
14092
|
+
function MosaicDrawer({
|
|
14093
|
+
open,
|
|
14094
|
+
onOpenChange,
|
|
14095
|
+
title,
|
|
14096
|
+
closeAriaLabel,
|
|
14097
|
+
children,
|
|
14098
|
+
side = "right",
|
|
14099
|
+
className
|
|
14100
|
+
}) {
|
|
14101
|
+
const titleId = React29.useId();
|
|
14102
|
+
return /* @__PURE__ */ jsx(Dialog.Root, { open, onOpenChange: (nextOpen) => onOpenChange(nextOpen), modal: true, children: /* @__PURE__ */ jsxs(Dialog.Portal, { children: [
|
|
14103
|
+
/* @__PURE__ */ jsx(Dialog.Backdrop, { "data-slot": "drawer-backdrop", className: drawerBackdropVariants() }),
|
|
14104
|
+
/* @__PURE__ */ jsxs(
|
|
14105
|
+
Dialog.Popup,
|
|
14106
|
+
{
|
|
14107
|
+
"data-slot": "drawer",
|
|
14108
|
+
"aria-labelledby": titleId,
|
|
14109
|
+
"aria-modal": "true",
|
|
14110
|
+
className: cn90(drawerPopupVariants({ side }), className),
|
|
14111
|
+
children: [
|
|
14112
|
+
/* @__PURE__ */ jsxs(
|
|
14113
|
+
"div",
|
|
14114
|
+
{
|
|
14115
|
+
"data-slot": "drawer-header",
|
|
14116
|
+
className: "flex items-center justify-between gap-4 border-b border-border p-4",
|
|
14117
|
+
children: [
|
|
14118
|
+
/* @__PURE__ */ jsx(Dialog.Title, { id: titleId, className: "text-base font-semibold text-foreground", children: title }),
|
|
14119
|
+
/* @__PURE__ */ jsx(
|
|
14120
|
+
Dialog.Close,
|
|
14121
|
+
{
|
|
14122
|
+
"aria-label": closeAriaLabel,
|
|
14123
|
+
className: cn90(
|
|
14124
|
+
"flex h-8 w-8 shrink-0 items-center justify-center rounded-md text-muted-foreground transition-colors",
|
|
14125
|
+
"hover:bg-muted hover:text-foreground",
|
|
14126
|
+
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
14127
|
+
),
|
|
14128
|
+
children: /* @__PURE__ */ jsxs(
|
|
14129
|
+
"svg",
|
|
14130
|
+
{
|
|
14131
|
+
width: "16",
|
|
14132
|
+
height: "16",
|
|
14133
|
+
viewBox: "0 0 24 24",
|
|
14134
|
+
fill: "none",
|
|
14135
|
+
stroke: "currentColor",
|
|
14136
|
+
strokeWidth: "2",
|
|
14137
|
+
strokeLinecap: "round",
|
|
14138
|
+
strokeLinejoin: "round",
|
|
14139
|
+
"aria-hidden": "true",
|
|
14140
|
+
children: [
|
|
14141
|
+
/* @__PURE__ */ jsx("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
|
|
14142
|
+
/* @__PURE__ */ jsx("line", { x1: "6", y1: "6", x2: "18", y2: "18" })
|
|
14143
|
+
]
|
|
14144
|
+
}
|
|
14145
|
+
)
|
|
14146
|
+
}
|
|
14147
|
+
)
|
|
14148
|
+
]
|
|
14149
|
+
}
|
|
14150
|
+
),
|
|
14151
|
+
/* @__PURE__ */ jsx("div", { className: "min-h-0 flex-1 overflow-y-auto p-4", children })
|
|
14152
|
+
]
|
|
14153
|
+
}
|
|
14154
|
+
)
|
|
14155
|
+
] }) });
|
|
14156
|
+
}
|
|
14157
|
+
MosaicDrawer.displayName = "MosaicDrawer";
|
|
14158
|
+
var templateCategoryChipVariants = cva(
|
|
14159
|
+
[
|
|
14160
|
+
"inline-flex items-center justify-center whitespace-nowrap",
|
|
14161
|
+
"rounded-full border px-3 py-1.5",
|
|
14162
|
+
"text-xs font-medium transition-colors",
|
|
14163
|
+
"focus-visible:outline-none focus-visible:ring-ring focus-visible:ring-[3px]"
|
|
14164
|
+
],
|
|
14165
|
+
{
|
|
14166
|
+
variants: {
|
|
14167
|
+
selected: {
|
|
14168
|
+
true: "border-transparent bg-primary text-primary-foreground",
|
|
14169
|
+
false: "border-border bg-background text-foreground hover:bg-muted"
|
|
14170
|
+
}
|
|
14171
|
+
},
|
|
14172
|
+
defaultVariants: {
|
|
14173
|
+
selected: false
|
|
14174
|
+
}
|
|
14175
|
+
}
|
|
14176
|
+
);
|
|
14177
|
+
function cn91(...classes) {
|
|
14178
|
+
return classes.filter(Boolean).join(" ");
|
|
14179
|
+
}
|
|
14180
|
+
function MosaicTemplateCategoryChips({
|
|
14181
|
+
categories,
|
|
14182
|
+
selected,
|
|
14183
|
+
onSelect,
|
|
14184
|
+
className,
|
|
14185
|
+
ref
|
|
14186
|
+
}) {
|
|
14187
|
+
return /* @__PURE__ */ jsx(
|
|
14188
|
+
"div",
|
|
14189
|
+
{
|
|
14190
|
+
ref,
|
|
14191
|
+
"data-slot": "template-category-chips",
|
|
14192
|
+
className: cn91("flex flex-wrap items-center gap-2", className),
|
|
14193
|
+
children: categories.map((category) => {
|
|
14194
|
+
const isSelected = category.id === selected;
|
|
14195
|
+
return /* @__PURE__ */ jsx(
|
|
14196
|
+
"button",
|
|
14197
|
+
{
|
|
14198
|
+
type: "button",
|
|
14199
|
+
"data-slot": "template-category-chip",
|
|
14200
|
+
"aria-pressed": isSelected,
|
|
14201
|
+
onClick: () => onSelect(category.id),
|
|
14202
|
+
className: templateCategoryChipVariants({ selected: isSelected }),
|
|
14203
|
+
children: category.label
|
|
14204
|
+
},
|
|
14205
|
+
category.id
|
|
14206
|
+
);
|
|
14207
|
+
})
|
|
14208
|
+
}
|
|
14209
|
+
);
|
|
14210
|
+
}
|
|
14211
|
+
MosaicTemplateCategoryChips.displayName = "MosaicTemplateCategoryChips";
|
|
13468
14212
|
|
|
13469
|
-
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 };
|
|
14213
|
+
export { MosaicAccordion, MosaicAccordionItem, MosaicAccordionPanel, MosaicAccordionTrigger, MosaicActivityFeed, MosaicActivityItem, MosaicAdaptiveGrid, MosaicAdaptiveModal, MosaicAdaptiveNavigation, MosaicAgentCard, MosaicAgentChat, MosaicAgentComposer, MosaicAgentComposerDesktop, MosaicAgentComposerMobile, MosaicAgentEditor, MosaicAgentList, AgentListDesktop as MosaicAgentListDesktop, AgentListMobile as MosaicAgentListMobile, MosaicAgentPreview, MosaicAgentTeamPreview, MosaicAlertDialog, MosaicAlertDialogAction, MosaicAlertDialogCancel, MosaicAlertDialogContent, MosaicAlertDialogDescription, MosaicAlertDialogFooter, MosaicAlertDialogHeader, MosaicAlertDialogOverlay, MosaicAlertDialogPortal, MosaicAlertDialogTitle, MosaicAlertDialogTrigger, 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, MosaicTemplateCategoryChips, MosaicTemplateGallery, MosaicTemplatePreview, MosaicTestimonialsGrid, MosaicTextarea, MosaicThemeProvider, MosaicThemeToggle, MosaicToast, MosaicToastProvider, MosaicToolToggleList, MosaicTooltip, MosaicTooltipContent, MosaicTooltipProvider, MosaicTooltipRoot, MosaicTooltipTrigger, MosaicUrlScraper, MosaicUserButton, Placeholder, agentChatRootVariants, agentEditorVariants, agentPreviewVariants, alertDialogContentVariants, alertDialogOverlayVariants, badgeVariants, buttonVariants, chatMessageBubbleVariants, chatMessageContainerVariants, chatMessageToolStatusVariants, drawerBackdropVariants, drawerPopupVariants, pdfViewerFrameVariants, pdfViewerStatusVariants, pdfViewerToolbarButtonVariants, skeletonVariants, splitPaneCollapseButtonVariants, splitPaneHandleVariants, splitPaneRootVariants, tagInputFieldVariants, tagInputRemoveButtonVariants, tagInputRootVariants, tagInputTagVariants, templateAgentCardBadgeVariants, templateAgentCardTagVariants, templateAgentCardVariants, templateCategoryChipVariants, toastCardVariants, toastDismissButtonVariants, toastProviderPositionVariants, toastTitleVariants, toolToggleListRowVariants, toolToggleListSectionVariants, useBreakpoint, useDevice, useMosaicWorkspace as useEffectiveWorkspaceId, useIsDesktop, useIsMobile, useIsTablet, useMediaQuery, useMosaicWorkspace, useOrientation, useViewport, version };
|
|
13470
14214
|
//# sourceMappingURL=index.js.map
|
|
13471
14215
|
//# sourceMappingURL=index.js.map
|