@vantageos/mosaic-blocks 0.5.22-alpha → 0.5.24-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 +956 -402
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +461 -2
- package/dist/index.d.ts +461 -2
- package/dist/index.js +912 -371
- 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 React30 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';
|
|
@@ -24,11 +24,11 @@ import { Switch } from '@base-ui/react/switch';
|
|
|
24
24
|
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
|
-
import { AlertDialog } from '@base-ui/react/alert-dialog';
|
|
28
27
|
import { Dialog } from '@base-ui/react/dialog';
|
|
28
|
+
import { AlertDialog } from '@base-ui/react/alert-dialog';
|
|
29
29
|
|
|
30
30
|
// src/version.ts
|
|
31
|
-
var version = "0.5.
|
|
31
|
+
var version = "0.5.24-alpha";
|
|
32
32
|
function Placeholder({ label = "mosaic-blocks placeholder" }) {
|
|
33
33
|
return /* @__PURE__ */ jsx("div", { "data-mosaic-block": "placeholder", children: label });
|
|
34
34
|
}
|
|
@@ -159,11 +159,11 @@ function MosaicNavbar({
|
|
|
159
159
|
className,
|
|
160
160
|
ref
|
|
161
161
|
}) {
|
|
162
|
-
const [isScrolled, setIsScrolled] =
|
|
163
|
-
const [isHidden, setIsHidden] =
|
|
164
|
-
const [isOpen, setIsOpen] =
|
|
165
|
-
const lastScrollY =
|
|
166
|
-
|
|
162
|
+
const [isScrolled, setIsScrolled] = React30.useState(false);
|
|
163
|
+
const [isHidden, setIsHidden] = React30.useState(false);
|
|
164
|
+
const [isOpen, setIsOpen] = React30.useState(false);
|
|
165
|
+
const lastScrollY = React30.useRef(0);
|
|
166
|
+
React30.useEffect(() => {
|
|
167
167
|
const handleScroll = () => {
|
|
168
168
|
const current = window.scrollY;
|
|
169
169
|
setIsScrolled(current > 50);
|
|
@@ -178,7 +178,7 @@ function MosaicNavbar({
|
|
|
178
178
|
window.addEventListener("scroll", handleScroll, { passive: true });
|
|
179
179
|
return () => window.removeEventListener("scroll", handleScroll);
|
|
180
180
|
}, []);
|
|
181
|
-
|
|
181
|
+
React30.useEffect(() => {
|
|
182
182
|
document.body.style.overflow = isOpen ? "hidden" : "";
|
|
183
183
|
return () => {
|
|
184
184
|
document.body.style.overflow = "";
|
|
@@ -706,10 +706,10 @@ function MosaicCounter({
|
|
|
706
706
|
className,
|
|
707
707
|
ref
|
|
708
708
|
}) {
|
|
709
|
-
const [current, setCurrent] =
|
|
710
|
-
const rafRef =
|
|
711
|
-
const startTimeRef =
|
|
712
|
-
|
|
709
|
+
const [current, setCurrent] = React30.useState(0);
|
|
710
|
+
const rafRef = React30.useRef(0);
|
|
711
|
+
const startTimeRef = React30.useRef(null);
|
|
712
|
+
React30.useEffect(() => {
|
|
713
713
|
const prefersReduced = typeof window !== "undefined" && typeof window.matchMedia === "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
714
714
|
if (prefersReduced) {
|
|
715
715
|
setCurrent(value);
|
|
@@ -765,12 +765,12 @@ function MosaicThemeToggle({
|
|
|
765
765
|
switchToDarkLabel,
|
|
766
766
|
ref
|
|
767
767
|
}) {
|
|
768
|
-
const [theme, setTheme] =
|
|
768
|
+
const [theme, setTheme] = React30.useState(() => {
|
|
769
769
|
if (typeof document === "undefined") return themes[0];
|
|
770
770
|
const current = document.documentElement.getAttribute("data-theme");
|
|
771
771
|
return current && themes.includes(current) ? current : themes[0];
|
|
772
772
|
});
|
|
773
|
-
const applyTheme =
|
|
773
|
+
const applyTheme = React30.useCallback(
|
|
774
774
|
(next) => {
|
|
775
775
|
const resolved = next === "system" ? getSystemTheme() : next;
|
|
776
776
|
document.documentElement.setAttribute("data-theme", resolved);
|
|
@@ -898,10 +898,10 @@ function MosaicAnimatedList({
|
|
|
898
898
|
as: Tag = "ul",
|
|
899
899
|
ref
|
|
900
900
|
}) {
|
|
901
|
-
|
|
901
|
+
React30.useEffect(() => {
|
|
902
902
|
injectKeyframes();
|
|
903
903
|
}, []);
|
|
904
|
-
const items =
|
|
904
|
+
const items = React30.Children.toArray(children);
|
|
905
905
|
return /* @__PURE__ */ jsx(
|
|
906
906
|
Tag,
|
|
907
907
|
{
|
|
@@ -909,7 +909,7 @@ function MosaicAnimatedList({
|
|
|
909
909
|
className,
|
|
910
910
|
children: items.map((child, i) => {
|
|
911
911
|
const stableKey = child.key ?? `item-${i}`;
|
|
912
|
-
return /* @__PURE__ */ jsx(
|
|
912
|
+
return /* @__PURE__ */ jsx(React30.Fragment, { children: /* @__PURE__ */ jsx(
|
|
913
913
|
"div",
|
|
914
914
|
{
|
|
915
915
|
className: "mosaic-list-item",
|
|
@@ -982,8 +982,8 @@ function MosaicFallingPattern({
|
|
|
982
982
|
className,
|
|
983
983
|
ref
|
|
984
984
|
}) {
|
|
985
|
-
const uniqueId =
|
|
986
|
-
|
|
985
|
+
const uniqueId = React30.useId();
|
|
986
|
+
React30.useEffect(() => {
|
|
987
987
|
injectPatternKeyframes();
|
|
988
988
|
}, []);
|
|
989
989
|
const cols = density;
|
|
@@ -2079,7 +2079,7 @@ function MosaicSelect({
|
|
|
2079
2079
|
name,
|
|
2080
2080
|
className
|
|
2081
2081
|
}) {
|
|
2082
|
-
const labelMap =
|
|
2082
|
+
const labelMap = React30.useMemo(
|
|
2083
2083
|
() => Object.fromEntries(items.map((item) => [item.value, item.label])),
|
|
2084
2084
|
[items]
|
|
2085
2085
|
);
|
|
@@ -2199,9 +2199,9 @@ function MosaicCombobox({
|
|
|
2199
2199
|
emptyMessage,
|
|
2200
2200
|
className
|
|
2201
2201
|
}) {
|
|
2202
|
-
const [inputValue, setInputValue] =
|
|
2202
|
+
const [inputValue, setInputValue] = React30.useState("");
|
|
2203
2203
|
const filter = Combobox.useFilter({ sensitivity: "base" });
|
|
2204
|
-
const filteredItems =
|
|
2204
|
+
const filteredItems = React30.useMemo(() => {
|
|
2205
2205
|
if (!inputValue) return items;
|
|
2206
2206
|
return items.filter((item) => filter.contains(item.label, inputValue));
|
|
2207
2207
|
}, [items, inputValue, filter]);
|
|
@@ -2304,17 +2304,17 @@ function MosaicModelSelector({
|
|
|
2304
2304
|
name,
|
|
2305
2305
|
className
|
|
2306
2306
|
}) {
|
|
2307
|
-
const [inputValue, setInputValue] =
|
|
2307
|
+
const [inputValue, setInputValue] = React30.useState("");
|
|
2308
2308
|
const filter = Combobox.useFilter({ sensitivity: "base" });
|
|
2309
|
-
const filteredModels =
|
|
2309
|
+
const filteredModels = React30.useMemo(() => {
|
|
2310
2310
|
if (!inputValue) return models;
|
|
2311
2311
|
return models.filter((model) => filter.contains(model.label, inputValue));
|
|
2312
2312
|
}, [models, inputValue, filter]);
|
|
2313
|
-
const labelMap =
|
|
2313
|
+
const labelMap = React30.useMemo(
|
|
2314
2314
|
() => Object.fromEntries(models.map((model) => [model.value, model.label])),
|
|
2315
2315
|
[models]
|
|
2316
2316
|
);
|
|
2317
|
-
const handleValueChange =
|
|
2317
|
+
const handleValueChange = React30.useCallback(
|
|
2318
2318
|
(nextValue, eventDetails) => {
|
|
2319
2319
|
if (typeof nextValue !== "string") return;
|
|
2320
2320
|
const selected = models.find((model) => model.value === nextValue);
|
|
@@ -2407,7 +2407,7 @@ function MosaicDropdownMenu({
|
|
|
2407
2407
|
"data-[starting-style]:scale-95 data-[starting-style]:opacity-0",
|
|
2408
2408
|
className
|
|
2409
2409
|
),
|
|
2410
|
-
children: items.map((item) => /* @__PURE__ */ jsxs(
|
|
2410
|
+
children: items.map((item) => /* @__PURE__ */ jsxs(React30.Fragment, { children: [
|
|
2411
2411
|
item.separator && /* @__PURE__ */ jsx(Menu.Separator, { className: "my-1 h-px bg-border" }),
|
|
2412
2412
|
/* @__PURE__ */ jsx(
|
|
2413
2413
|
Menu.Item,
|
|
@@ -2435,8 +2435,8 @@ var BREAKPOINTS = {
|
|
|
2435
2435
|
xl: 1280
|
|
2436
2436
|
};
|
|
2437
2437
|
function useBreakpoint(breakpoint) {
|
|
2438
|
-
const [matches, setMatches] =
|
|
2439
|
-
|
|
2438
|
+
const [matches, setMatches] = React30.useState(false);
|
|
2439
|
+
React30.useEffect(() => {
|
|
2440
2440
|
if (typeof window === "undefined") return;
|
|
2441
2441
|
const mq = window.matchMedia(`(min-width: ${BREAKPOINTS[breakpoint]}px)`);
|
|
2442
2442
|
setMatches(mq.matches);
|
|
@@ -2459,8 +2459,8 @@ function useIsDesktop() {
|
|
|
2459
2459
|
return useBreakpoint("lg");
|
|
2460
2460
|
}
|
|
2461
2461
|
function useViewport() {
|
|
2462
|
-
const [size, setSize] =
|
|
2463
|
-
|
|
2462
|
+
const [size, setSize] = React30.useState({ width: 0, height: 0 });
|
|
2463
|
+
React30.useEffect(() => {
|
|
2464
2464
|
if (typeof window === "undefined") return;
|
|
2465
2465
|
const update = () => setSize({ width: window.innerWidth, height: window.innerHeight });
|
|
2466
2466
|
update();
|
|
@@ -2478,8 +2478,8 @@ function useViewport() {
|
|
|
2478
2478
|
return size;
|
|
2479
2479
|
}
|
|
2480
2480
|
function useOrientation() {
|
|
2481
|
-
const [orientation, setOrientation] =
|
|
2482
|
-
|
|
2481
|
+
const [orientation, setOrientation] = React30.useState("portrait");
|
|
2482
|
+
React30.useEffect(() => {
|
|
2483
2483
|
if (typeof window === "undefined") return;
|
|
2484
2484
|
const update = () => {
|
|
2485
2485
|
setOrientation(window.innerHeight > window.innerWidth ? "portrait" : "landscape");
|
|
@@ -2494,7 +2494,7 @@ function useOrientation() {
|
|
|
2494
2494
|
}, []);
|
|
2495
2495
|
return orientation;
|
|
2496
2496
|
}
|
|
2497
|
-
var DeviceContext =
|
|
2497
|
+
var DeviceContext = React30.createContext(void 0);
|
|
2498
2498
|
function MosaicDeviceProvider({ children }) {
|
|
2499
2499
|
const isMobile = useIsMobile();
|
|
2500
2500
|
const isTablet = useIsTablet();
|
|
@@ -2505,7 +2505,7 @@ function MosaicDeviceProvider({ children }) {
|
|
|
2505
2505
|
const isXlUp = useBreakpoint("xl");
|
|
2506
2506
|
const orientation = useOrientation();
|
|
2507
2507
|
const viewport = useViewport();
|
|
2508
|
-
const isBreakpoint =
|
|
2508
|
+
const isBreakpoint = React30.useCallback(
|
|
2509
2509
|
(bp) => {
|
|
2510
2510
|
switch (bp) {
|
|
2511
2511
|
case "sm":
|
|
@@ -2520,7 +2520,7 @@ function MosaicDeviceProvider({ children }) {
|
|
|
2520
2520
|
},
|
|
2521
2521
|
[isSmUp, isMdUp, isLgUp, isXlUp]
|
|
2522
2522
|
);
|
|
2523
|
-
const value =
|
|
2523
|
+
const value = React30.useMemo(
|
|
2524
2524
|
() => ({
|
|
2525
2525
|
isMobile,
|
|
2526
2526
|
isTablet,
|
|
@@ -2550,7 +2550,7 @@ function MosaicDeviceProvider({ children }) {
|
|
|
2550
2550
|
}
|
|
2551
2551
|
MosaicDeviceProvider.displayName = "MosaicDeviceProvider";
|
|
2552
2552
|
function useDevice() {
|
|
2553
|
-
const ctx =
|
|
2553
|
+
const ctx = React30.useContext(DeviceContext);
|
|
2554
2554
|
if (!ctx) {
|
|
2555
2555
|
throw new Error("useDevice must be used within a MosaicDeviceProvider");
|
|
2556
2556
|
}
|
|
@@ -2636,13 +2636,13 @@ function MosaicAdaptiveModal({
|
|
|
2636
2636
|
closeAriaLabel
|
|
2637
2637
|
}) {
|
|
2638
2638
|
const { isMobile } = useDevice();
|
|
2639
|
-
const dialogRef =
|
|
2640
|
-
const titleId =
|
|
2641
|
-
const descId =
|
|
2642
|
-
|
|
2639
|
+
const dialogRef = React30.useRef(null);
|
|
2640
|
+
const titleId = React30.useId();
|
|
2641
|
+
const descId = React30.useId();
|
|
2642
|
+
React30.useEffect(() => {
|
|
2643
2643
|
injectStyles();
|
|
2644
2644
|
}, []);
|
|
2645
|
-
|
|
2645
|
+
React30.useEffect(() => {
|
|
2646
2646
|
const el = dialogRef.current;
|
|
2647
2647
|
if (!el) return;
|
|
2648
2648
|
if (isOpen) {
|
|
@@ -2651,7 +2651,7 @@ function MosaicAdaptiveModal({
|
|
|
2651
2651
|
if (el.open) el.close();
|
|
2652
2652
|
}
|
|
2653
2653
|
}, [isOpen]);
|
|
2654
|
-
|
|
2654
|
+
React30.useEffect(() => {
|
|
2655
2655
|
const el = dialogRef.current;
|
|
2656
2656
|
if (!el) return;
|
|
2657
2657
|
const handler = (e) => {
|
|
@@ -2661,7 +2661,7 @@ function MosaicAdaptiveModal({
|
|
|
2661
2661
|
el.addEventListener("cancel", handler);
|
|
2662
2662
|
return () => el.removeEventListener("cancel", handler);
|
|
2663
2663
|
}, [onClose]);
|
|
2664
|
-
|
|
2664
|
+
React30.useEffect(() => {
|
|
2665
2665
|
if (!isOpen) return;
|
|
2666
2666
|
const prev = document.body.style.overflow;
|
|
2667
2667
|
document.body.style.overflow = "hidden";
|
|
@@ -3093,8 +3093,8 @@ function MosaicAppSidebar({
|
|
|
3093
3093
|
ref
|
|
3094
3094
|
}) {
|
|
3095
3095
|
const { isMobile } = useDevice();
|
|
3096
|
-
const [expandedItems, setExpandedItems] =
|
|
3097
|
-
|
|
3096
|
+
const [expandedItems, setExpandedItems] = React30.useState(/* @__PURE__ */ new Set());
|
|
3097
|
+
React30.useEffect(() => {
|
|
3098
3098
|
injectStyles2();
|
|
3099
3099
|
}, []);
|
|
3100
3100
|
const sidebarWidth = isMobile ? "100%" : isCollapsed ? "64px" : "280px";
|
|
@@ -3346,9 +3346,9 @@ function MosaicDashboardLayout({
|
|
|
3346
3346
|
ref
|
|
3347
3347
|
}) {
|
|
3348
3348
|
const { isMobile } = useDevice();
|
|
3349
|
-
const [isSidebarCollapsed, setIsSidebarCollapsed] =
|
|
3350
|
-
const [isMobileSidebarOpen, setIsMobileSidebarOpen] =
|
|
3351
|
-
|
|
3349
|
+
const [isSidebarCollapsed, setIsSidebarCollapsed] = React30.useState(defaultSidebarCollapsed);
|
|
3350
|
+
const [isMobileSidebarOpen, setIsMobileSidebarOpen] = React30.useState(false);
|
|
3351
|
+
React30.useEffect(() => {
|
|
3352
3352
|
injectStyles3();
|
|
3353
3353
|
}, []);
|
|
3354
3354
|
const defaultRenderLink2 = (href, children2) => /* @__PURE__ */ jsx("a", { href, className: "transition-colors hover:text-foreground", children: children2 });
|
|
@@ -3480,7 +3480,7 @@ function MosaicQuickActionCard({
|
|
|
3480
3480
|
ref
|
|
3481
3481
|
}) {
|
|
3482
3482
|
const { mobile = 2, desktop = 3 } = columns;
|
|
3483
|
-
|
|
3483
|
+
React30.useEffect(() => {
|
|
3484
3484
|
injectStyles4();
|
|
3485
3485
|
}, []);
|
|
3486
3486
|
const defaultRenderLink2 = (href, children) => /* @__PURE__ */ jsx("a", { href, className: "block h-full", children });
|
|
@@ -3697,7 +3697,7 @@ function MosaicActivityFeed({
|
|
|
3697
3697
|
className,
|
|
3698
3698
|
ref
|
|
3699
3699
|
}) {
|
|
3700
|
-
|
|
3700
|
+
React30.useEffect(() => {
|
|
3701
3701
|
injectStyles5();
|
|
3702
3702
|
}, []);
|
|
3703
3703
|
const defaultRenderLink2 = (href, children) => /* @__PURE__ */ jsx(
|
|
@@ -4367,7 +4367,7 @@ function MosaicAgentComposerMobile({
|
|
|
4367
4367
|
optionalInstructionsHelp
|
|
4368
4368
|
}) {
|
|
4369
4369
|
const L = labels;
|
|
4370
|
-
const instructionsId =
|
|
4370
|
+
const instructionsId = React30.useId();
|
|
4371
4371
|
return /* @__PURE__ */ jsxs("div", { "data-slot": "agent-composer-mobile", className: "flex h-full flex-col", children: [
|
|
4372
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: [
|
|
4373
4373
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
@@ -4672,9 +4672,147 @@ function MosaicAgentEditor({
|
|
|
4672
4672
|
);
|
|
4673
4673
|
}
|
|
4674
4674
|
MosaicAgentEditor.displayName = "MosaicAgentEditor";
|
|
4675
|
+
var agentBuilderModalPopupVariants = cva([
|
|
4676
|
+
"fixed top-1/2 left-1/2 z-50 flex max-h-[85vh] w-full max-w-[calc(100%-2rem)] flex-col",
|
|
4677
|
+
"-translate-x-1/2 -translate-y-1/2",
|
|
4678
|
+
"rounded-lg border border-border bg-background shadow-lg outline-none",
|
|
4679
|
+
"sm:max-w-lg"
|
|
4680
|
+
]);
|
|
4681
|
+
var agentBuilderModalBackdropVariants = cva(["fixed inset-0 z-50 bg-black/50"]);
|
|
4675
4682
|
function cn47(...classes) {
|
|
4676
4683
|
return classes.filter(Boolean).join(" ");
|
|
4677
4684
|
}
|
|
4685
|
+
function MosaicAgentBuilderModal({
|
|
4686
|
+
open,
|
|
4687
|
+
onOpenChange,
|
|
4688
|
+
title,
|
|
4689
|
+
description,
|
|
4690
|
+
closeAriaLabel,
|
|
4691
|
+
confirmLabel,
|
|
4692
|
+
confirmingLabel,
|
|
4693
|
+
cancelLabel,
|
|
4694
|
+
onConfirm,
|
|
4695
|
+
onCancel,
|
|
4696
|
+
canConfirm,
|
|
4697
|
+
isConfirming,
|
|
4698
|
+
children,
|
|
4699
|
+
className
|
|
4700
|
+
}) {
|
|
4701
|
+
const titleId = React30.useId();
|
|
4702
|
+
const descriptionId = React30.useId();
|
|
4703
|
+
const confirmDisabled = !canConfirm || isConfirming;
|
|
4704
|
+
const handleConfirm = () => {
|
|
4705
|
+
if (confirmDisabled) return;
|
|
4706
|
+
onConfirm();
|
|
4707
|
+
};
|
|
4708
|
+
return /* @__PURE__ */ jsx(Dialog.Root, { open, onOpenChange: (nextOpen) => onOpenChange(nextOpen), modal: true, children: /* @__PURE__ */ jsxs(Dialog.Portal, { children: [
|
|
4709
|
+
/* @__PURE__ */ jsx(
|
|
4710
|
+
Dialog.Backdrop,
|
|
4711
|
+
{
|
|
4712
|
+
"data-slot": "agent-builder-modal-backdrop",
|
|
4713
|
+
className: agentBuilderModalBackdropVariants()
|
|
4714
|
+
}
|
|
4715
|
+
),
|
|
4716
|
+
/* @__PURE__ */ jsxs(
|
|
4717
|
+
Dialog.Popup,
|
|
4718
|
+
{
|
|
4719
|
+
"data-slot": "agent-builder-modal",
|
|
4720
|
+
"aria-labelledby": titleId,
|
|
4721
|
+
"aria-describedby": descriptionId,
|
|
4722
|
+
"aria-modal": "true",
|
|
4723
|
+
className: cn47(agentBuilderModalPopupVariants(), className),
|
|
4724
|
+
children: [
|
|
4725
|
+
/* @__PURE__ */ jsxs(
|
|
4726
|
+
"div",
|
|
4727
|
+
{
|
|
4728
|
+
"data-slot": "agent-builder-modal-header",
|
|
4729
|
+
className: "flex items-start justify-between gap-4 border-b border-border p-4",
|
|
4730
|
+
children: [
|
|
4731
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1", children: [
|
|
4732
|
+
/* @__PURE__ */ jsx(Dialog.Title, { id: titleId, className: "text-base font-semibold text-foreground", children: title }),
|
|
4733
|
+
/* @__PURE__ */ jsx(Dialog.Description, { id: descriptionId, className: "text-sm text-muted-foreground", children: description })
|
|
4734
|
+
] }),
|
|
4735
|
+
/* @__PURE__ */ jsx(
|
|
4736
|
+
Dialog.Close,
|
|
4737
|
+
{
|
|
4738
|
+
"aria-label": closeAriaLabel,
|
|
4739
|
+
className: cn47(
|
|
4740
|
+
"flex h-8 w-8 shrink-0 items-center justify-center rounded-md text-muted-foreground transition-colors",
|
|
4741
|
+
"hover:bg-muted hover:text-foreground",
|
|
4742
|
+
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
4743
|
+
),
|
|
4744
|
+
children: /* @__PURE__ */ jsxs(
|
|
4745
|
+
"svg",
|
|
4746
|
+
{
|
|
4747
|
+
width: "16",
|
|
4748
|
+
height: "16",
|
|
4749
|
+
viewBox: "0 0 24 24",
|
|
4750
|
+
fill: "none",
|
|
4751
|
+
stroke: "currentColor",
|
|
4752
|
+
strokeWidth: "2",
|
|
4753
|
+
strokeLinecap: "round",
|
|
4754
|
+
strokeLinejoin: "round",
|
|
4755
|
+
"aria-hidden": "true",
|
|
4756
|
+
children: [
|
|
4757
|
+
/* @__PURE__ */ jsx("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
|
|
4758
|
+
/* @__PURE__ */ jsx("line", { x1: "6", y1: "6", x2: "18", y2: "18" })
|
|
4759
|
+
]
|
|
4760
|
+
}
|
|
4761
|
+
)
|
|
4762
|
+
}
|
|
4763
|
+
)
|
|
4764
|
+
]
|
|
4765
|
+
}
|
|
4766
|
+
),
|
|
4767
|
+
/* @__PURE__ */ jsx("div", { "data-slot": "agent-builder-modal-body", className: "min-h-0 flex-1 overflow-y-auto p-4", children }),
|
|
4768
|
+
/* @__PURE__ */ jsxs(
|
|
4769
|
+
"div",
|
|
4770
|
+
{
|
|
4771
|
+
"data-slot": "agent-builder-modal-footer",
|
|
4772
|
+
className: "flex flex-col-reverse gap-2 border-t border-border p-4 sm:flex-row sm:justify-end",
|
|
4773
|
+
children: [
|
|
4774
|
+
/* @__PURE__ */ jsx(
|
|
4775
|
+
Dialog.Close,
|
|
4776
|
+
{
|
|
4777
|
+
onClick: onCancel,
|
|
4778
|
+
className: cn47(
|
|
4779
|
+
"inline-flex h-9 items-center justify-center gap-1.5 rounded-md border border-border px-4",
|
|
4780
|
+
"bg-background text-sm font-medium text-foreground shadow-xs",
|
|
4781
|
+
"hover:bg-muted hover:text-foreground",
|
|
4782
|
+
"focus-visible:outline-none focus-visible:ring-[3px] focus-visible:ring-ring",
|
|
4783
|
+
"disabled:pointer-events-none disabled:opacity-50"
|
|
4784
|
+
),
|
|
4785
|
+
children: cancelLabel
|
|
4786
|
+
}
|
|
4787
|
+
),
|
|
4788
|
+
/* @__PURE__ */ jsx(
|
|
4789
|
+
"button",
|
|
4790
|
+
{
|
|
4791
|
+
type: "button",
|
|
4792
|
+
onClick: handleConfirm,
|
|
4793
|
+
disabled: confirmDisabled,
|
|
4794
|
+
className: cn47(
|
|
4795
|
+
"inline-flex h-9 items-center justify-center gap-1.5 rounded-md px-4",
|
|
4796
|
+
"bg-primary text-sm font-medium text-primary-foreground",
|
|
4797
|
+
"hover:bg-primary/90",
|
|
4798
|
+
"focus-visible:outline-none focus-visible:ring-[3px] focus-visible:ring-ring",
|
|
4799
|
+
"disabled:pointer-events-none disabled:opacity-50"
|
|
4800
|
+
),
|
|
4801
|
+
children: isConfirming ? confirmingLabel : confirmLabel
|
|
4802
|
+
}
|
|
4803
|
+
)
|
|
4804
|
+
]
|
|
4805
|
+
}
|
|
4806
|
+
)
|
|
4807
|
+
]
|
|
4808
|
+
}
|
|
4809
|
+
)
|
|
4810
|
+
] }) });
|
|
4811
|
+
}
|
|
4812
|
+
MosaicAgentBuilderModal.displayName = "MosaicAgentBuilderModal";
|
|
4813
|
+
function cn48(...classes) {
|
|
4814
|
+
return classes.filter(Boolean).join(" ");
|
|
4815
|
+
}
|
|
4678
4816
|
function EditIcon() {
|
|
4679
4817
|
return /* @__PURE__ */ jsxs(
|
|
4680
4818
|
"svg",
|
|
@@ -4733,7 +4871,7 @@ function MosaicModuleCard({
|
|
|
4733
4871
|
{
|
|
4734
4872
|
ref,
|
|
4735
4873
|
"data-slot": "module-card",
|
|
4736
|
-
className:
|
|
4874
|
+
className: cn48(
|
|
4737
4875
|
"min-h-[80px] rounded-xl border border-border bg-card p-4 transition-all",
|
|
4738
4876
|
"flex items-start gap-3",
|
|
4739
4877
|
isSelected && "ring-2 ring-primary bg-primary/5",
|
|
@@ -4795,7 +4933,7 @@ function MosaicThemeProvider({
|
|
|
4795
4933
|
return /* @__PURE__ */ jsx("div", { "data-slot": "theme-provider", children });
|
|
4796
4934
|
}
|
|
4797
4935
|
MosaicThemeProvider.displayName = "MosaicThemeProvider";
|
|
4798
|
-
function
|
|
4936
|
+
function cn49(...classes) {
|
|
4799
4937
|
return classes.filter(Boolean).join(" ");
|
|
4800
4938
|
}
|
|
4801
4939
|
var ANIM_ID6 = "mosaic-delete-dialog-kf";
|
|
@@ -4837,21 +4975,21 @@ function MosaicDeleteConfirmationDialog({
|
|
|
4837
4975
|
cancelLabel,
|
|
4838
4976
|
confirmLabel
|
|
4839
4977
|
}) {
|
|
4840
|
-
|
|
4978
|
+
React30.useEffect(() => {
|
|
4841
4979
|
injectStyles6();
|
|
4842
4980
|
}, []);
|
|
4843
4981
|
return /* @__PURE__ */ jsx(AlertDialog.Root, { open, onOpenChange, children: /* @__PURE__ */ jsxs(AlertDialog.Portal, { children: [
|
|
4844
4982
|
/* @__PURE__ */ jsx(
|
|
4845
4983
|
AlertDialog.Backdrop,
|
|
4846
4984
|
{
|
|
4847
|
-
className:
|
|
4985
|
+
className: cn49("mosaic-delete-overlay", "fixed inset-0 z-50 bg-black/50")
|
|
4848
4986
|
}
|
|
4849
4987
|
),
|
|
4850
4988
|
/* @__PURE__ */ jsxs(
|
|
4851
4989
|
AlertDialog.Popup,
|
|
4852
4990
|
{
|
|
4853
4991
|
"data-slot": "delete-confirmation-dialog",
|
|
4854
|
-
className:
|
|
4992
|
+
className: cn49(
|
|
4855
4993
|
"mosaic-delete-content",
|
|
4856
4994
|
"fixed left-1/2 top-1/2 z-50",
|
|
4857
4995
|
"w-full max-w-[92vw] sm:max-w-md",
|
|
@@ -4864,7 +5002,7 @@ function MosaicDeleteConfirmationDialog({
|
|
|
4864
5002
|
/* @__PURE__ */ jsx(
|
|
4865
5003
|
AlertDialog.Close,
|
|
4866
5004
|
{
|
|
4867
|
-
className:
|
|
5005
|
+
className: cn49(
|
|
4868
5006
|
"inline-flex min-h-[44px] w-full items-center justify-center rounded-md border border-border",
|
|
4869
5007
|
"bg-background px-4 py-2 text-sm font-medium text-foreground",
|
|
4870
5008
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -4878,7 +5016,7 @@ function MosaicDeleteConfirmationDialog({
|
|
|
4878
5016
|
AlertDialog.Close,
|
|
4879
5017
|
{
|
|
4880
5018
|
onClick: onConfirm,
|
|
4881
|
-
className:
|
|
5019
|
+
className: cn49(
|
|
4882
5020
|
"inline-flex min-h-[44px] w-full items-center justify-center rounded-md",
|
|
4883
5021
|
"bg-destructive px-4 py-2 text-sm font-medium text-destructive-foreground",
|
|
4884
5022
|
"hover:bg-destructive/90",
|
|
@@ -4902,7 +5040,7 @@ var alertDialogContentVariants = cva([
|
|
|
4902
5040
|
"sm:max-w-lg"
|
|
4903
5041
|
]);
|
|
4904
5042
|
var alertDialogOverlayVariants = cva(["fixed inset-0 z-50 bg-black/50"]);
|
|
4905
|
-
function
|
|
5043
|
+
function cn50(...classes) {
|
|
4906
5044
|
return classes.filter(Boolean).join(" ");
|
|
4907
5045
|
}
|
|
4908
5046
|
function MosaicAlertDialog(props) {
|
|
@@ -4922,7 +5060,7 @@ function MosaicAlertDialogOverlay({ className, ...props }) {
|
|
|
4922
5060
|
AlertDialog.Backdrop,
|
|
4923
5061
|
{
|
|
4924
5062
|
"data-slot": "alert-dialog-overlay",
|
|
4925
|
-
className:
|
|
5063
|
+
className: cn50(alertDialogOverlayVariants(), className),
|
|
4926
5064
|
...props
|
|
4927
5065
|
}
|
|
4928
5066
|
);
|
|
@@ -4935,7 +5073,7 @@ function MosaicAlertDialogContent({ className, ...props }) {
|
|
|
4935
5073
|
AlertDialog.Popup,
|
|
4936
5074
|
{
|
|
4937
5075
|
"data-slot": "alert-dialog-content",
|
|
4938
|
-
className:
|
|
5076
|
+
className: cn50(alertDialogContentVariants(), className),
|
|
4939
5077
|
...props
|
|
4940
5078
|
}
|
|
4941
5079
|
)
|
|
@@ -4947,7 +5085,7 @@ function MosaicAlertDialogHeader({ className, ...props }) {
|
|
|
4947
5085
|
"div",
|
|
4948
5086
|
{
|
|
4949
5087
|
"data-slot": "alert-dialog-header",
|
|
4950
|
-
className:
|
|
5088
|
+
className: cn50("flex flex-col gap-2 text-center sm:text-left", className),
|
|
4951
5089
|
...props
|
|
4952
5090
|
}
|
|
4953
5091
|
);
|
|
@@ -4958,7 +5096,7 @@ function MosaicAlertDialogFooter({ className, ...props }) {
|
|
|
4958
5096
|
"div",
|
|
4959
5097
|
{
|
|
4960
5098
|
"data-slot": "alert-dialog-footer",
|
|
4961
|
-
className:
|
|
5099
|
+
className: cn50("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", className),
|
|
4962
5100
|
...props
|
|
4963
5101
|
}
|
|
4964
5102
|
);
|
|
@@ -4973,7 +5111,7 @@ function MosaicAlertDialogTitle({
|
|
|
4973
5111
|
AlertDialog.Title,
|
|
4974
5112
|
{
|
|
4975
5113
|
"data-slot": "alert-dialog-title",
|
|
4976
|
-
className:
|
|
5114
|
+
className: cn50("text-lg font-semibold text-foreground", className),
|
|
4977
5115
|
...props,
|
|
4978
5116
|
children
|
|
4979
5117
|
}
|
|
@@ -4989,7 +5127,7 @@ function MosaicAlertDialogDescription({
|
|
|
4989
5127
|
AlertDialog.Description,
|
|
4990
5128
|
{
|
|
4991
5129
|
"data-slot": "alert-dialog-description",
|
|
4992
|
-
className:
|
|
5130
|
+
className: cn50("text-sm text-muted-foreground", className),
|
|
4993
5131
|
...props,
|
|
4994
5132
|
children
|
|
4995
5133
|
}
|
|
@@ -5005,7 +5143,7 @@ function MosaicAlertDialogAction({
|
|
|
5005
5143
|
AlertDialog.Close,
|
|
5006
5144
|
{
|
|
5007
5145
|
"data-slot": "alert-dialog-action",
|
|
5008
|
-
className:
|
|
5146
|
+
className: cn50(
|
|
5009
5147
|
"inline-flex h-9 items-center justify-center gap-1.5 rounded-md px-4",
|
|
5010
5148
|
"bg-destructive text-sm font-medium text-destructive-foreground",
|
|
5011
5149
|
"hover:bg-destructive/90",
|
|
@@ -5028,7 +5166,7 @@ function MosaicAlertDialogCancel({
|
|
|
5028
5166
|
AlertDialog.Close,
|
|
5029
5167
|
{
|
|
5030
5168
|
"data-slot": "alert-dialog-cancel",
|
|
5031
|
-
className:
|
|
5169
|
+
className: cn50(
|
|
5032
5170
|
"inline-flex h-9 items-center justify-center gap-1.5 rounded-md border border-border px-4",
|
|
5033
5171
|
"bg-background text-sm font-medium text-foreground shadow-xs",
|
|
5034
5172
|
"hover:bg-muted hover:text-foreground",
|
|
@@ -5042,7 +5180,7 @@ function MosaicAlertDialogCancel({
|
|
|
5042
5180
|
);
|
|
5043
5181
|
}
|
|
5044
5182
|
MosaicAlertDialogCancel.displayName = "MosaicAlertDialogCancel";
|
|
5045
|
-
function
|
|
5183
|
+
function cn51(...classes) {
|
|
5046
5184
|
return classes.filter(Boolean).join(" ");
|
|
5047
5185
|
}
|
|
5048
5186
|
function Toggle({
|
|
@@ -5058,7 +5196,7 @@ function Toggle({
|
|
|
5058
5196
|
id,
|
|
5059
5197
|
"aria-checked": checked,
|
|
5060
5198
|
onClick: () => onChange(!checked),
|
|
5061
|
-
className:
|
|
5199
|
+
className: cn51(
|
|
5062
5200
|
"relative inline-flex h-6 w-11 shrink-0 cursor-pointer rounded-full border-2 border-transparent",
|
|
5063
5201
|
"transition-colors duration-200 ease-in-out",
|
|
5064
5202
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
@@ -5067,7 +5205,7 @@ function Toggle({
|
|
|
5067
5205
|
children: /* @__PURE__ */ jsx(
|
|
5068
5206
|
"span",
|
|
5069
5207
|
{
|
|
5070
|
-
className:
|
|
5208
|
+
className: cn51(
|
|
5071
5209
|
"pointer-events-none inline-block h-5 w-5 rounded-full bg-background shadow-lg",
|
|
5072
5210
|
"transform transition duration-200 ease-in-out",
|
|
5073
5211
|
checked ? "translate-x-5" : "translate-x-0"
|
|
@@ -5089,7 +5227,7 @@ function NativeSelect({
|
|
|
5089
5227
|
id,
|
|
5090
5228
|
value,
|
|
5091
5229
|
onChange: (e) => onChange(e.target.value),
|
|
5092
|
-
className:
|
|
5230
|
+
className: cn51(
|
|
5093
5231
|
"flex min-h-[48px] w-full rounded-md border border-input bg-background px-3 py-2",
|
|
5094
5232
|
"text-sm text-foreground",
|
|
5095
5233
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -5109,7 +5247,7 @@ function MosaicPreferencesPanel({
|
|
|
5109
5247
|
className
|
|
5110
5248
|
}) {
|
|
5111
5249
|
const { isMobile } = useDevice();
|
|
5112
|
-
return /* @__PURE__ */ jsxs("div", { "data-slot": "preferences-panel", className:
|
|
5250
|
+
return /* @__PURE__ */ jsxs("div", { "data-slot": "preferences-panel", className: cn51("space-y-4 md:space-y-6", className), children: [
|
|
5113
5251
|
groups.map((group) => /* @__PURE__ */ jsxs(
|
|
5114
5252
|
"div",
|
|
5115
5253
|
{
|
|
@@ -5152,13 +5290,13 @@ function MosaicPreferencesPanel({
|
|
|
5152
5290
|
},
|
|
5153
5291
|
group.id
|
|
5154
5292
|
)),
|
|
5155
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
5293
|
+
/* @__PURE__ */ jsx("div", { className: cn51("flex", isMobile ? "flex-col" : "justify-end"), children: /* @__PURE__ */ jsxs(
|
|
5156
5294
|
"button",
|
|
5157
5295
|
{
|
|
5158
5296
|
type: "button",
|
|
5159
5297
|
onClick: onSave,
|
|
5160
5298
|
disabled: isSaving,
|
|
5161
|
-
className:
|
|
5299
|
+
className: cn51(
|
|
5162
5300
|
"inline-flex min-h-[44px] items-center justify-center gap-2 rounded-md",
|
|
5163
5301
|
"bg-primary px-4 py-2 text-sm font-medium text-primary-foreground",
|
|
5164
5302
|
"hover:bg-primary/90",
|
|
@@ -5194,7 +5332,7 @@ function MosaicPreferencesPanel({
|
|
|
5194
5332
|
] });
|
|
5195
5333
|
}
|
|
5196
5334
|
MosaicPreferencesPanel.displayName = "MosaicPreferencesPanel";
|
|
5197
|
-
function
|
|
5335
|
+
function cn52(...classes) {
|
|
5198
5336
|
return classes.filter(Boolean).join(" ");
|
|
5199
5337
|
}
|
|
5200
5338
|
function AvatarDisplay({
|
|
@@ -5207,7 +5345,7 @@ function AvatarDisplay({
|
|
|
5207
5345
|
return /* @__PURE__ */ jsx(
|
|
5208
5346
|
"span",
|
|
5209
5347
|
{
|
|
5210
|
-
className:
|
|
5348
|
+
className: cn52(
|
|
5211
5349
|
"inline-flex shrink-0 items-center justify-center rounded-full bg-muted text-muted-foreground font-semibold overflow-hidden",
|
|
5212
5350
|
sizeClass
|
|
5213
5351
|
),
|
|
@@ -5239,7 +5377,7 @@ function MosaicProfilePanel({
|
|
|
5239
5377
|
className
|
|
5240
5378
|
}) {
|
|
5241
5379
|
const { isMobile } = useDevice();
|
|
5242
|
-
return /* @__PURE__ */ jsxs("div", { "data-slot": "profile-panel", className:
|
|
5380
|
+
return /* @__PURE__ */ jsxs("div", { "data-slot": "profile-panel", className: cn52("space-y-4 md:space-y-6", className), children: [
|
|
5243
5381
|
/* @__PURE__ */ jsxs("div", { className: "rounded-lg border border-border bg-card text-card-foreground shadow-sm", children: [
|
|
5244
5382
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-col space-y-1.5 p-6", children: [
|
|
5245
5383
|
/* @__PURE__ */ jsx("h3", { className: "text-lg font-semibold leading-none tracking-tight md:text-xl", children: avatarHeading }),
|
|
@@ -5259,7 +5397,7 @@ function MosaicProfilePanel({
|
|
|
5259
5397
|
{
|
|
5260
5398
|
type: "button",
|
|
5261
5399
|
onClick: onAvatarUpload,
|
|
5262
|
-
className:
|
|
5400
|
+
className: cn52(
|
|
5263
5401
|
"inline-flex min-h-[44px] items-center justify-center gap-2 rounded-md border border-border",
|
|
5264
5402
|
"bg-background px-4 py-2 text-sm font-medium text-foreground",
|
|
5265
5403
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -5309,7 +5447,7 @@ function MosaicProfilePanel({
|
|
|
5309
5447
|
placeholder: field.placeholder,
|
|
5310
5448
|
onChange: (e) => onFieldChange?.(field.id, e.target.value),
|
|
5311
5449
|
rows: 4,
|
|
5312
|
-
className:
|
|
5450
|
+
className: cn52(
|
|
5313
5451
|
"flex min-h-[120px] w-full rounded-md border border-input bg-background px-3 py-2",
|
|
5314
5452
|
"text-sm text-foreground placeholder:text-muted-foreground",
|
|
5315
5453
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -5325,7 +5463,7 @@ function MosaicProfilePanel({
|
|
|
5325
5463
|
readOnly: field.readOnly,
|
|
5326
5464
|
placeholder: field.placeholder,
|
|
5327
5465
|
onChange: (e) => onFieldChange?.(field.id, e.target.value),
|
|
5328
|
-
className:
|
|
5466
|
+
className: cn52(
|
|
5329
5467
|
"flex min-h-[48px] w-full rounded-md border border-input bg-background px-3 py-2",
|
|
5330
5468
|
"text-sm text-foreground placeholder:text-muted-foreground",
|
|
5331
5469
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -5345,7 +5483,7 @@ function MosaicProfilePanel({
|
|
|
5345
5483
|
{
|
|
5346
5484
|
type: "button",
|
|
5347
5485
|
onClick: onChangePassword,
|
|
5348
|
-
className:
|
|
5486
|
+
className: cn52(
|
|
5349
5487
|
"inline-flex min-h-[44px] items-center justify-center rounded-md border border-border",
|
|
5350
5488
|
"bg-background px-4 py-2 text-sm font-medium text-foreground",
|
|
5351
5489
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -5357,13 +5495,13 @@ function MosaicProfilePanel({
|
|
|
5357
5495
|
) })
|
|
5358
5496
|
] }),
|
|
5359
5497
|
extraSections,
|
|
5360
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
5498
|
+
/* @__PURE__ */ jsx("div", { className: cn52("flex", isMobile ? "flex-col" : "justify-end"), children: /* @__PURE__ */ jsxs(
|
|
5361
5499
|
"button",
|
|
5362
5500
|
{
|
|
5363
5501
|
type: "button",
|
|
5364
5502
|
onClick: onSave,
|
|
5365
5503
|
disabled: isSaving,
|
|
5366
|
-
className:
|
|
5504
|
+
className: cn52(
|
|
5367
5505
|
"inline-flex min-h-[44px] items-center justify-center gap-2 rounded-md",
|
|
5368
5506
|
"bg-primary px-4 py-2 text-sm font-medium text-primary-foreground",
|
|
5369
5507
|
"hover:bg-primary/90",
|
|
@@ -5399,7 +5537,7 @@ function MosaicProfilePanel({
|
|
|
5399
5537
|
] });
|
|
5400
5538
|
}
|
|
5401
5539
|
MosaicProfilePanel.displayName = "MosaicProfilePanel";
|
|
5402
|
-
function
|
|
5540
|
+
function cn53(...classes) {
|
|
5403
5541
|
return classes.filter(Boolean).join(" ");
|
|
5404
5542
|
}
|
|
5405
5543
|
var ANIM_ID7 = "mosaic-main-nav-kf";
|
|
@@ -5490,12 +5628,12 @@ function MosaicMainNav({
|
|
|
5490
5628
|
className
|
|
5491
5629
|
}) {
|
|
5492
5630
|
const { isMobile } = useDevice();
|
|
5493
|
-
const [isOpen, setIsOpen] =
|
|
5631
|
+
const [isOpen, setIsOpen] = React30.useState(false);
|
|
5494
5632
|
const linkRenderer = renderLink ?? defaultRenderLink;
|
|
5495
|
-
|
|
5633
|
+
React30.useEffect(() => {
|
|
5496
5634
|
injectStyles7();
|
|
5497
5635
|
}, []);
|
|
5498
|
-
|
|
5636
|
+
React30.useEffect(() => {
|
|
5499
5637
|
if (!isOpen) return;
|
|
5500
5638
|
const handler = (e) => {
|
|
5501
5639
|
if (e.key === "Escape") setIsOpen(false);
|
|
@@ -5512,7 +5650,7 @@ function MosaicMainNav({
|
|
|
5512
5650
|
{
|
|
5513
5651
|
type: "button",
|
|
5514
5652
|
onClick: () => setIsOpen(!isOpen),
|
|
5515
|
-
className:
|
|
5653
|
+
className: cn53(
|
|
5516
5654
|
"inline-flex min-h-[44px] min-w-[44px] items-center justify-center rounded-md p-0",
|
|
5517
5655
|
"text-foreground hover:bg-accent hover:text-accent-foreground",
|
|
5518
5656
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -5538,7 +5676,7 @@ function MosaicMainNav({
|
|
|
5538
5676
|
"aria-label": drawerNavAriaLabel,
|
|
5539
5677
|
open: isOpen,
|
|
5540
5678
|
"data-open": isOpen ? "true" : "false",
|
|
5541
|
-
className:
|
|
5679
|
+
className: cn53(
|
|
5542
5680
|
"mosaic-nav-drawer",
|
|
5543
5681
|
"fixed inset-y-0 left-0 z-50 m-0 w-[280px] max-h-none h-full p-0",
|
|
5544
5682
|
"border-r border-border bg-background shadow-xl",
|
|
@@ -5555,7 +5693,7 @@ function MosaicMainNav({
|
|
|
5555
5693
|
{
|
|
5556
5694
|
type: "button",
|
|
5557
5695
|
onClick: () => setIsOpen(false),
|
|
5558
|
-
className:
|
|
5696
|
+
className: cn53(
|
|
5559
5697
|
"inline-flex h-8 w-8 items-center justify-center rounded-md",
|
|
5560
5698
|
"text-muted-foreground hover:bg-accent hover:text-accent-foreground",
|
|
5561
5699
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -5568,13 +5706,13 @@ function MosaicMainNav({
|
|
|
5568
5706
|
/* @__PURE__ */ jsx("nav", { className: "flex flex-col gap-1 p-4", "aria-label": mainNavAriaLabel, children: filteredItems.map((item) => {
|
|
5569
5707
|
const Icon = item.icon;
|
|
5570
5708
|
const active = isItemActive(item);
|
|
5571
|
-
const itemClass =
|
|
5709
|
+
const itemClass = cn53(
|
|
5572
5710
|
"flex items-center gap-3 rounded-lg px-3 py-3 text-sm font-medium transition-colors",
|
|
5573
5711
|
"hover:bg-accent hover:text-accent-foreground",
|
|
5574
5712
|
"min-h-[44px]",
|
|
5575
5713
|
active && "bg-accent text-accent-foreground"
|
|
5576
5714
|
);
|
|
5577
|
-
return /* @__PURE__ */ jsx(
|
|
5715
|
+
return /* @__PURE__ */ jsx(React30.Fragment, { children: linkRenderer(
|
|
5578
5716
|
item,
|
|
5579
5717
|
/* @__PURE__ */ jsxs(Fragment, { children: [
|
|
5580
5718
|
Icon && /* @__PURE__ */ jsx(Icon, { className: "h-5 w-5 shrink-0", "aria-hidden": "true" }),
|
|
@@ -5594,18 +5732,18 @@ function MosaicMainNav({
|
|
|
5594
5732
|
"nav",
|
|
5595
5733
|
{
|
|
5596
5734
|
"data-slot": "main-nav",
|
|
5597
|
-
className:
|
|
5735
|
+
className: cn53("flex items-center gap-1", className),
|
|
5598
5736
|
"aria-label": mainNavAriaLabel,
|
|
5599
5737
|
children: filteredItems.map((item) => {
|
|
5600
5738
|
const Icon = item.icon;
|
|
5601
5739
|
const active = isItemActive(item);
|
|
5602
|
-
const itemClass =
|
|
5740
|
+
const itemClass = cn53(
|
|
5603
5741
|
"flex items-center gap-2 rounded-lg px-3 py-2 text-sm font-medium transition-colors",
|
|
5604
5742
|
"hover:bg-accent hover:text-accent-foreground",
|
|
5605
5743
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
5606
5744
|
active && "bg-accent text-accent-foreground"
|
|
5607
5745
|
);
|
|
5608
|
-
return /* @__PURE__ */ jsx(
|
|
5746
|
+
return /* @__PURE__ */ jsx(React30.Fragment, { children: linkRenderer(
|
|
5609
5747
|
item,
|
|
5610
5748
|
/* @__PURE__ */ jsxs(Fragment, { children: [
|
|
5611
5749
|
Icon && /* @__PURE__ */ jsx(Icon, { className: "h-4 w-4", "aria-hidden": "true" }),
|
|
@@ -5619,7 +5757,7 @@ function MosaicMainNav({
|
|
|
5619
5757
|
);
|
|
5620
5758
|
}
|
|
5621
5759
|
MosaicMainNav.displayName = "MosaicMainNav";
|
|
5622
|
-
function
|
|
5760
|
+
function cn54(...classes) {
|
|
5623
5761
|
return classes.filter(Boolean).join(" ");
|
|
5624
5762
|
}
|
|
5625
5763
|
function MoreVertIcon() {
|
|
@@ -5742,10 +5880,10 @@ function MosaicAgentCard({
|
|
|
5742
5880
|
createdLabel,
|
|
5743
5881
|
className
|
|
5744
5882
|
}) {
|
|
5745
|
-
const [menuOpen, setMenuOpen] =
|
|
5746
|
-
const menuRef =
|
|
5883
|
+
const [menuOpen, setMenuOpen] = React30.useState(false);
|
|
5884
|
+
const menuRef = React30.useRef(null);
|
|
5747
5885
|
const formattedDate = agent.createdAt ? new Date(agent.createdAt).toLocaleDateString() : void 0;
|
|
5748
|
-
|
|
5886
|
+
React30.useEffect(() => {
|
|
5749
5887
|
if (!menuOpen) return;
|
|
5750
5888
|
const handler = (e) => {
|
|
5751
5889
|
if (menuRef.current && !menuRef.current.contains(e.target)) {
|
|
@@ -5759,7 +5897,7 @@ function MosaicAgentCard({
|
|
|
5759
5897
|
"div",
|
|
5760
5898
|
{
|
|
5761
5899
|
"data-slot": "agent-card",
|
|
5762
|
-
className:
|
|
5900
|
+
className: cn54(
|
|
5763
5901
|
"relative overflow-hidden rounded-lg border border-border bg-card text-card-foreground shadow-sm",
|
|
5764
5902
|
"transition-shadow hover:shadow-md",
|
|
5765
5903
|
agent.isActive && "ring-2 ring-primary",
|
|
@@ -5769,7 +5907,7 @@ function MosaicAgentCard({
|
|
|
5769
5907
|
/* @__PURE__ */ jsx(
|
|
5770
5908
|
"div",
|
|
5771
5909
|
{
|
|
5772
|
-
className:
|
|
5910
|
+
className: cn54(
|
|
5773
5911
|
"absolute left-0 top-0 h-1 w-full",
|
|
5774
5912
|
agent.isActive ? "bg-primary" : "bg-muted"
|
|
5775
5913
|
)
|
|
@@ -5781,7 +5919,7 @@ function MosaicAgentCard({
|
|
|
5781
5919
|
agent.accentColor && /* @__PURE__ */ jsx(
|
|
5782
5920
|
"span",
|
|
5783
5921
|
{
|
|
5784
|
-
className:
|
|
5922
|
+
className: cn54("h-3 w-3 shrink-0 rounded-full", agent.accentColor),
|
|
5785
5923
|
"aria-hidden": "true"
|
|
5786
5924
|
}
|
|
5787
5925
|
),
|
|
@@ -5799,7 +5937,7 @@ function MosaicAgentCard({
|
|
|
5799
5937
|
{
|
|
5800
5938
|
type: "button",
|
|
5801
5939
|
onClick: () => setMenuOpen((v) => !v),
|
|
5802
|
-
className:
|
|
5940
|
+
className: cn54(
|
|
5803
5941
|
"inline-flex h-8 w-8 items-center justify-center rounded-md",
|
|
5804
5942
|
"text-muted-foreground hover:bg-accent hover:text-accent-foreground",
|
|
5805
5943
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -5814,7 +5952,7 @@ function MosaicAgentCard({
|
|
|
5814
5952
|
"div",
|
|
5815
5953
|
{
|
|
5816
5954
|
role: "menu",
|
|
5817
|
-
className:
|
|
5955
|
+
className: cn54(
|
|
5818
5956
|
"absolute right-0 top-full z-50 mt-1 min-w-[140px] rounded-md border border-border",
|
|
5819
5957
|
"bg-popover py-1 shadow-md"
|
|
5820
5958
|
),
|
|
@@ -5829,7 +5967,7 @@ function MosaicAgentCard({
|
|
|
5829
5967
|
onToggleStatus(agent.id);
|
|
5830
5968
|
setMenuOpen(false);
|
|
5831
5969
|
},
|
|
5832
|
-
className:
|
|
5970
|
+
className: cn54(
|
|
5833
5971
|
"flex w-full items-center gap-2 px-3 py-2 text-sm text-foreground",
|
|
5834
5972
|
"hover:bg-accent hover:text-accent-foreground",
|
|
5835
5973
|
"disabled:pointer-events-none disabled:opacity-50"
|
|
@@ -5888,7 +6026,7 @@ function MosaicAgentCard({
|
|
|
5888
6026
|
type: "button",
|
|
5889
6027
|
disabled: isLoading,
|
|
5890
6028
|
onClick: () => onToggleStatus(agent.id),
|
|
5891
|
-
className:
|
|
6029
|
+
className: cn54(
|
|
5892
6030
|
"inline-flex h-7 items-center justify-center rounded-md px-3 text-xs font-medium",
|
|
5893
6031
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
5894
6032
|
"disabled:pointer-events-none disabled:opacity-50",
|
|
@@ -5904,7 +6042,7 @@ function MosaicAgentCard({
|
|
|
5904
6042
|
);
|
|
5905
6043
|
}
|
|
5906
6044
|
MosaicAgentCard.displayName = "MosaicAgentCard";
|
|
5907
|
-
function
|
|
6045
|
+
function cn55(...classes) {
|
|
5908
6046
|
return classes.filter(Boolean).join(" ");
|
|
5909
6047
|
}
|
|
5910
6048
|
function PlusIcon3() {
|
|
@@ -5987,7 +6125,7 @@ function PickerContent({
|
|
|
5987
6125
|
{
|
|
5988
6126
|
type: "button",
|
|
5989
6127
|
onClick: () => onAdd(agent.id),
|
|
5990
|
-
className:
|
|
6128
|
+
className: cn55(
|
|
5991
6129
|
"flex w-full items-center gap-3 rounded-lg px-3 py-2.5 text-sm",
|
|
5992
6130
|
"hover:bg-accent hover:text-accent-foreground",
|
|
5993
6131
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -5996,7 +6134,7 @@ function PickerContent({
|
|
|
5996
6134
|
agent.accentColor && /* @__PURE__ */ jsx(
|
|
5997
6135
|
"span",
|
|
5998
6136
|
{
|
|
5999
|
-
className:
|
|
6137
|
+
className: cn55("h-3 w-3 shrink-0 rounded-full", agent.accentColor),
|
|
6000
6138
|
"aria-hidden": "true"
|
|
6001
6139
|
}
|
|
6002
6140
|
),
|
|
@@ -6013,7 +6151,7 @@ function PickerContent({
|
|
|
6013
6151
|
{
|
|
6014
6152
|
type: "button",
|
|
6015
6153
|
onClick: onOpenBuilder,
|
|
6016
|
-
className:
|
|
6154
|
+
className: cn55(
|
|
6017
6155
|
"flex w-full items-center gap-3 rounded-lg px-3 py-2.5 text-sm",
|
|
6018
6156
|
"hover:bg-accent hover:text-accent-foreground",
|
|
6019
6157
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -6048,9 +6186,9 @@ function MosaicQuickAgentSelector({
|
|
|
6048
6186
|
className
|
|
6049
6187
|
}) {
|
|
6050
6188
|
const { isMobile } = useDevice();
|
|
6051
|
-
const [pickerOpen, setPickerOpen] =
|
|
6052
|
-
const dropdownRef =
|
|
6053
|
-
|
|
6189
|
+
const [pickerOpen, setPickerOpen] = React30.useState(false);
|
|
6190
|
+
const dropdownRef = React30.useRef(null);
|
|
6191
|
+
React30.useEffect(() => {
|
|
6054
6192
|
if (!pickerOpen || isMobile) return;
|
|
6055
6193
|
const handler = (e) => {
|
|
6056
6194
|
if (dropdownRef.current && !dropdownRef.current.contains(e.target)) {
|
|
@@ -6068,11 +6206,11 @@ function MosaicQuickAgentSelector({
|
|
|
6068
6206
|
setPickerOpen(false);
|
|
6069
6207
|
};
|
|
6070
6208
|
const canAdd = selectedAgents.length < maxAgents;
|
|
6071
|
-
return /* @__PURE__ */ jsxs("div", { "data-slot": "quick-agent-selector", className:
|
|
6209
|
+
return /* @__PURE__ */ jsxs("div", { "data-slot": "quick-agent-selector", className: cn55("flex items-center gap-2", className), children: [
|
|
6072
6210
|
/* @__PURE__ */ jsx("div", { className: "flex items-center gap-2 overflow-x-auto", children: selectedAgents.map((agent) => /* @__PURE__ */ jsxs(
|
|
6073
6211
|
"div",
|
|
6074
6212
|
{
|
|
6075
|
-
className:
|
|
6213
|
+
className: cn55(
|
|
6076
6214
|
"group flex shrink-0 items-center gap-2 rounded-md border border-border bg-card",
|
|
6077
6215
|
isMobile ? "px-2 py-1" : "px-3 py-1.5"
|
|
6078
6216
|
),
|
|
@@ -6080,17 +6218,17 @@ function MosaicQuickAgentSelector({
|
|
|
6080
6218
|
agent.accentColor && /* @__PURE__ */ jsx(
|
|
6081
6219
|
"span",
|
|
6082
6220
|
{
|
|
6083
|
-
className:
|
|
6221
|
+
className: cn55("h-2 w-2 shrink-0 rounded-full", agent.accentColor),
|
|
6084
6222
|
"aria-hidden": "true"
|
|
6085
6223
|
}
|
|
6086
6224
|
),
|
|
6087
|
-
/* @__PURE__ */ jsx("span", { className:
|
|
6225
|
+
/* @__PURE__ */ jsx("span", { className: cn55("whitespace-nowrap font-medium", isMobile ? "text-xs" : "text-sm"), children: isMobile ? agent.type.split("-")[0] : agent.name }),
|
|
6088
6226
|
/* @__PURE__ */ jsx(
|
|
6089
6227
|
"button",
|
|
6090
6228
|
{
|
|
6091
6229
|
type: "button",
|
|
6092
6230
|
onClick: () => onRemoveAgent(agent.id),
|
|
6093
|
-
className:
|
|
6231
|
+
className: cn55(
|
|
6094
6232
|
"inline-flex h-4 w-4 items-center justify-center rounded",
|
|
6095
6233
|
"text-muted-foreground hover:text-foreground",
|
|
6096
6234
|
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
@@ -6110,7 +6248,7 @@ function MosaicQuickAgentSelector({
|
|
|
6110
6248
|
{
|
|
6111
6249
|
type: "button",
|
|
6112
6250
|
onClick: () => setPickerOpen((v) => !v),
|
|
6113
|
-
className:
|
|
6251
|
+
className: cn55(
|
|
6114
6252
|
"inline-flex items-center justify-center gap-2 rounded-md border border-border bg-background",
|
|
6115
6253
|
"px-3 py-1.5 text-sm font-medium text-foreground",
|
|
6116
6254
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -6125,7 +6263,7 @@ function MosaicQuickAgentSelector({
|
|
|
6125
6263
|
!isMobile && pickerOpen && /* @__PURE__ */ jsx(
|
|
6126
6264
|
"div",
|
|
6127
6265
|
{
|
|
6128
|
-
className:
|
|
6266
|
+
className: cn55(
|
|
6129
6267
|
"absolute left-0 top-full z-50 mt-2 w-72 rounded-lg border border-border",
|
|
6130
6268
|
"bg-popover shadow-lg"
|
|
6131
6269
|
),
|
|
@@ -6174,7 +6312,7 @@ function MosaicQuickAgentSelector({
|
|
|
6174
6312
|
/* @__PURE__ */ jsxs(
|
|
6175
6313
|
"span",
|
|
6176
6314
|
{
|
|
6177
|
-
className:
|
|
6315
|
+
className: cn55(
|
|
6178
6316
|
"shrink-0 rounded-md bg-secondary px-2 py-0.5 text-xs font-medium text-secondary-foreground"
|
|
6179
6317
|
),
|
|
6180
6318
|
children: [
|
|
@@ -6198,7 +6336,7 @@ var agentPreviewVariants = cva(["rounded-lg border border-border"], {
|
|
|
6198
6336
|
variant: "summary"
|
|
6199
6337
|
}
|
|
6200
6338
|
});
|
|
6201
|
-
function
|
|
6339
|
+
function cn56(...classes) {
|
|
6202
6340
|
return classes.filter(Boolean).join(" ");
|
|
6203
6341
|
}
|
|
6204
6342
|
function MosaicAgentPreview(props) {
|
|
@@ -6208,7 +6346,7 @@ function MosaicAgentPreview(props) {
|
|
|
6208
6346
|
"div",
|
|
6209
6347
|
{
|
|
6210
6348
|
"data-slot": "agent-preview",
|
|
6211
|
-
className:
|
|
6349
|
+
className: cn56(agentPreviewVariants({ variant: "detailed" }), className2),
|
|
6212
6350
|
children: [
|
|
6213
6351
|
/* @__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
6352
|
/* @__PURE__ */ jsxs("div", { className: "p-4", children: [
|
|
@@ -6235,7 +6373,7 @@ function MosaicAgentPreview(props) {
|
|
|
6235
6373
|
"div",
|
|
6236
6374
|
{
|
|
6237
6375
|
"data-slot": "agent-preview",
|
|
6238
|
-
className:
|
|
6376
|
+
className: cn56(agentPreviewVariants({ variant: "summary" }), className),
|
|
6239
6377
|
children: [
|
|
6240
6378
|
/* @__PURE__ */ jsx(
|
|
6241
6379
|
"span",
|
|
@@ -6327,7 +6465,7 @@ var memoryActionsMenuTriggerVariants = cva(
|
|
|
6327
6465
|
}
|
|
6328
6466
|
}
|
|
6329
6467
|
);
|
|
6330
|
-
function
|
|
6468
|
+
function cn57(...classes) {
|
|
6331
6469
|
return classes.filter(Boolean).join(" ");
|
|
6332
6470
|
}
|
|
6333
6471
|
var MAX_VISIBLE_TAGS = 3;
|
|
@@ -6481,10 +6619,10 @@ function MosaicMemoryCard(props) {
|
|
|
6481
6619
|
ref
|
|
6482
6620
|
} = props;
|
|
6483
6621
|
const variant = props.variant ?? "detailed";
|
|
6484
|
-
const [menuOpen, setMenuOpen] =
|
|
6485
|
-
const menuRef =
|
|
6622
|
+
const [menuOpen, setMenuOpen] = React30.useState(false);
|
|
6623
|
+
const menuRef = React30.useRef(null);
|
|
6486
6624
|
const SourceIcon = SOURCE_ICONS[memory.source];
|
|
6487
|
-
|
|
6625
|
+
React30.useEffect(() => {
|
|
6488
6626
|
if (!menuOpen) return;
|
|
6489
6627
|
const handler = (event) => {
|
|
6490
6628
|
if (menuRef.current && !menuRef.current.contains(event.target)) {
|
|
@@ -6505,7 +6643,7 @@ function MosaicMemoryCard(props) {
|
|
|
6505
6643
|
"aria-label": moreActionsLabel,
|
|
6506
6644
|
"aria-haspopup": "menu",
|
|
6507
6645
|
"aria-expanded": menuOpen,
|
|
6508
|
-
className:
|
|
6646
|
+
className: cn57(memoryActionsMenuTriggerVariants({ variant })),
|
|
6509
6647
|
children: /* @__PURE__ */ jsx(MoreVertIcon2, {})
|
|
6510
6648
|
}
|
|
6511
6649
|
),
|
|
@@ -6513,7 +6651,7 @@ function MosaicMemoryCard(props) {
|
|
|
6513
6651
|
"div",
|
|
6514
6652
|
{
|
|
6515
6653
|
role: "menu",
|
|
6516
|
-
className:
|
|
6654
|
+
className: cn57(
|
|
6517
6655
|
"absolute right-0 top-full z-50 mt-1 min-w-[140px] rounded-md border border-border",
|
|
6518
6656
|
"bg-popover py-1 shadow-md"
|
|
6519
6657
|
),
|
|
@@ -6554,7 +6692,7 @@ function MosaicMemoryCard(props) {
|
|
|
6554
6692
|
ref,
|
|
6555
6693
|
"data-slot": "memory-card",
|
|
6556
6694
|
"data-variant": variant,
|
|
6557
|
-
className:
|
|
6695
|
+
className: cn57(memoryCardVariants({ variant }), className),
|
|
6558
6696
|
children: props.variant !== "compact" ? /* @__PURE__ */ jsxs("div", { className: "space-y-3", children: [
|
|
6559
6697
|
/* @__PURE__ */ jsxs("div", { className: "flex items-start justify-between gap-3", children: [
|
|
6560
6698
|
/* @__PURE__ */ jsxs("div", { className: "flex min-w-0 flex-1 items-start gap-3", children: [
|
|
@@ -6564,7 +6702,7 @@ function MosaicMemoryCard(props) {
|
|
|
6564
6702
|
/* @__PURE__ */ jsx(
|
|
6565
6703
|
"span",
|
|
6566
6704
|
{
|
|
6567
|
-
className:
|
|
6705
|
+
className: cn57(
|
|
6568
6706
|
memoryScopeBadgeVariants({ scope: memory.scope, bordered: true }),
|
|
6569
6707
|
"mt-1"
|
|
6570
6708
|
),
|
|
@@ -6577,8 +6715,8 @@ function MosaicMemoryCard(props) {
|
|
|
6577
6715
|
] }),
|
|
6578
6716
|
/* @__PURE__ */ jsx("p", { className: "line-clamp-3 text-sm text-muted-foreground", children: memory.content }),
|
|
6579
6717
|
/* @__PURE__ */ jsxs("div", { "data-slot": "memory-tags", className: "flex flex-wrap gap-1", children: [
|
|
6580
|
-
visibleTags.map((tag) => /* @__PURE__ */ jsx("span", { className:
|
|
6581
|
-
hiddenTagCount > 0 && /* @__PURE__ */ jsx("span", { className:
|
|
6718
|
+
visibleTags.map((tag) => /* @__PURE__ */ jsx("span", { className: cn57(memoryTagBadgeVariants()), children: tag }, tag)),
|
|
6719
|
+
hiddenTagCount > 0 && /* @__PURE__ */ jsx("span", { className: cn57(memoryTagBadgeVariants()), children: props.formatMoreTags(hiddenTagCount) })
|
|
6582
6720
|
] }),
|
|
6583
6721
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between border-t pt-2 text-xs text-muted-foreground", children: [
|
|
6584
6722
|
/* @__PURE__ */ jsxs("span", { className: "flex items-center gap-1", children: [
|
|
@@ -6606,7 +6744,7 @@ function MosaicMemoryCard(props) {
|
|
|
6606
6744
|
/* @__PURE__ */ jsx(
|
|
6607
6745
|
"span",
|
|
6608
6746
|
{
|
|
6609
|
-
className:
|
|
6747
|
+
className: cn57(memoryScopeBadgeVariants({ scope: memory.scope, bordered: false })),
|
|
6610
6748
|
children: formatScope(memory.scope)
|
|
6611
6749
|
}
|
|
6612
6750
|
),
|
|
@@ -6648,7 +6786,7 @@ var templateAgentCardBadgeVariants = cva([
|
|
|
6648
6786
|
var templateAgentCardTagVariants = cva([
|
|
6649
6787
|
"inline-flex items-center rounded-full border border-border bg-muted px-2 py-0.5 text-xs text-muted-foreground"
|
|
6650
6788
|
]);
|
|
6651
|
-
function
|
|
6789
|
+
function cn58(...classes) {
|
|
6652
6790
|
return classes.filter(Boolean).join(" ");
|
|
6653
6791
|
}
|
|
6654
6792
|
var MAX_VISIBLE_TAGS2 = 3;
|
|
@@ -6717,7 +6855,7 @@ function MosaicTemplateAgentCard({
|
|
|
6717
6855
|
{
|
|
6718
6856
|
ref,
|
|
6719
6857
|
"data-slot": "template-agent-card",
|
|
6720
|
-
className:
|
|
6858
|
+
className: cn58(templateAgentCardVariants({ selected: isSelected }), "p-4", className),
|
|
6721
6859
|
children: [
|
|
6722
6860
|
/* @__PURE__ */ jsx("div", { className: "flex items-start justify-between gap-2", children: /* @__PURE__ */ jsxs(
|
|
6723
6861
|
"button",
|
|
@@ -6726,7 +6864,7 @@ function MosaicTemplateAgentCard({
|
|
|
6726
6864
|
onClick: () => onSelect(template),
|
|
6727
6865
|
"aria-label": selectAriaLabel,
|
|
6728
6866
|
"aria-pressed": isSelected,
|
|
6729
|
-
className:
|
|
6867
|
+
className: cn58(
|
|
6730
6868
|
"flex min-w-0 flex-1 items-start gap-2 rounded-md text-left",
|
|
6731
6869
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
6732
6870
|
),
|
|
@@ -6740,11 +6878,11 @@ function MosaicTemplateAgentCard({
|
|
|
6740
6878
|
}
|
|
6741
6879
|
) }),
|
|
6742
6880
|
/* @__PURE__ */ jsxs("div", { className: "mt-3 flex flex-wrap items-center gap-2", children: [
|
|
6743
|
-
template.category && /* @__PURE__ */ jsx("span", { className:
|
|
6744
|
-
/* @__PURE__ */ jsx("span", { className:
|
|
6745
|
-
formatUsageCount(template.usageCount) != null && /* @__PURE__ */ jsx("span", { className:
|
|
6746
|
-
visibleTags.map((tag) => /* @__PURE__ */ jsx("span", { className:
|
|
6747
|
-
hiddenTagCount > 0 && /* @__PURE__ */ jsx("span", { className:
|
|
6881
|
+
template.category && /* @__PURE__ */ jsx("span", { className: cn58(templateAgentCardBadgeVariants()), children: template.category }),
|
|
6882
|
+
/* @__PURE__ */ jsx("span", { className: cn58(templateAgentCardBadgeVariants()), children: agentCountLabel }),
|
|
6883
|
+
formatUsageCount(template.usageCount) != null && /* @__PURE__ */ jsx("span", { className: cn58(templateAgentCardBadgeVariants()), children: formatUsageCount(template.usageCount) }),
|
|
6884
|
+
visibleTags.map((tag) => /* @__PURE__ */ jsx("span", { className: cn58(templateAgentCardTagVariants()), children: tag }, tag)),
|
|
6885
|
+
hiddenTagCount > 0 && /* @__PURE__ */ jsx("span", { className: cn58(templateAgentCardTagVariants()), children: formatMoreTags(hiddenTagCount) })
|
|
6748
6886
|
] }),
|
|
6749
6887
|
(onPreview || onDuplicate) && /* @__PURE__ */ jsxs("div", { className: "mt-3 flex items-center gap-2 border-t border-border pt-2", children: [
|
|
6750
6888
|
onPreview && /* @__PURE__ */ jsxs(
|
|
@@ -6753,7 +6891,7 @@ function MosaicTemplateAgentCard({
|
|
|
6753
6891
|
type: "button",
|
|
6754
6892
|
onClick: () => onPreview(template),
|
|
6755
6893
|
"aria-label": previewAriaLabel,
|
|
6756
|
-
className:
|
|
6894
|
+
className: cn58(
|
|
6757
6895
|
"inline-flex h-8 flex-1 items-center justify-center gap-1.5 rounded-md text-xs font-medium",
|
|
6758
6896
|
"text-muted-foreground hover:bg-accent hover:text-accent-foreground",
|
|
6759
6897
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -6770,7 +6908,7 @@ function MosaicTemplateAgentCard({
|
|
|
6770
6908
|
type: "button",
|
|
6771
6909
|
onClick: () => onDuplicate(template),
|
|
6772
6910
|
"aria-label": duplicateAriaLabel,
|
|
6773
|
-
className:
|
|
6911
|
+
className: cn58(
|
|
6774
6912
|
"inline-flex h-8 flex-1 items-center justify-center gap-1.5 rounded-md text-xs font-medium",
|
|
6775
6913
|
"text-muted-foreground hover:bg-accent hover:text-accent-foreground",
|
|
6776
6914
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -6787,7 +6925,7 @@ function MosaicTemplateAgentCard({
|
|
|
6787
6925
|
);
|
|
6788
6926
|
}
|
|
6789
6927
|
MosaicTemplateAgentCard.displayName = "MosaicTemplateAgentCard";
|
|
6790
|
-
function
|
|
6928
|
+
function cn59(...classes) {
|
|
6791
6929
|
return classes.filter(Boolean).join(" ");
|
|
6792
6930
|
}
|
|
6793
6931
|
function SearchIcon() {
|
|
@@ -6847,10 +6985,10 @@ function MosaicSelectorModal({
|
|
|
6847
6985
|
emptyMessage,
|
|
6848
6986
|
closeAriaLabel
|
|
6849
6987
|
}) {
|
|
6850
|
-
const [query, setQuery] =
|
|
6851
|
-
const [activeCategory, setActiveCategory] =
|
|
6852
|
-
const [pendingId, setPendingId] =
|
|
6853
|
-
|
|
6988
|
+
const [query, setQuery] = React30.useState("");
|
|
6989
|
+
const [activeCategory, setActiveCategory] = React30.useState("all");
|
|
6990
|
+
const [pendingId, setPendingId] = React30.useState(selectedId);
|
|
6991
|
+
React30.useEffect(() => {
|
|
6854
6992
|
if (isOpen) {
|
|
6855
6993
|
setPendingId(selectedId);
|
|
6856
6994
|
setQuery("");
|
|
@@ -6888,7 +7026,7 @@ function MosaicSelectorModal({
|
|
|
6888
7026
|
value: query,
|
|
6889
7027
|
onChange: (e) => setQuery(e.target.value),
|
|
6890
7028
|
placeholder: searchPlaceholder,
|
|
6891
|
-
className:
|
|
7029
|
+
className: cn59(
|
|
6892
7030
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
6893
7031
|
"text-sm text-foreground placeholder:text-muted-foreground",
|
|
6894
7032
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -6902,7 +7040,7 @@ function MosaicSelectorModal({
|
|
|
6902
7040
|
{
|
|
6903
7041
|
type: "button",
|
|
6904
7042
|
onClick: () => setActiveCategory("all"),
|
|
6905
|
-
className:
|
|
7043
|
+
className: cn59(
|
|
6906
7044
|
"shrink-0 rounded-md px-3 py-1.5 text-sm font-medium transition-colors",
|
|
6907
7045
|
activeCategory === "all" ? "bg-primary text-primary-foreground" : "bg-muted text-muted-foreground hover:bg-accent hover:text-accent-foreground"
|
|
6908
7046
|
),
|
|
@@ -6914,7 +7052,7 @@ function MosaicSelectorModal({
|
|
|
6914
7052
|
{
|
|
6915
7053
|
type: "button",
|
|
6916
7054
|
onClick: () => setActiveCategory(cat.id),
|
|
6917
|
-
className:
|
|
7055
|
+
className: cn59(
|
|
6918
7056
|
"shrink-0 rounded-md px-3 py-1.5 text-sm font-medium transition-colors",
|
|
6919
7057
|
activeCategory === cat.id ? "bg-primary text-primary-foreground" : "bg-muted text-muted-foreground hover:bg-accent hover:text-accent-foreground"
|
|
6920
7058
|
),
|
|
@@ -6926,7 +7064,7 @@ function MosaicSelectorModal({
|
|
|
6926
7064
|
/* @__PURE__ */ jsxs(
|
|
6927
7065
|
"div",
|
|
6928
7066
|
{
|
|
6929
|
-
className:
|
|
7067
|
+
className: cn59(
|
|
6930
7068
|
"max-h-[50vh] overflow-y-auto",
|
|
6931
7069
|
columns === 2 ? "grid grid-cols-1 gap-3 sm:grid-cols-2" : "flex flex-col gap-3"
|
|
6932
7070
|
),
|
|
@@ -6938,7 +7076,7 @@ function MosaicSelectorModal({
|
|
|
6938
7076
|
{
|
|
6939
7077
|
type: "button",
|
|
6940
7078
|
onClick: () => setPendingId(item.id),
|
|
6941
|
-
className:
|
|
7079
|
+
className: cn59(
|
|
6942
7080
|
"group relative rounded-lg border p-4 text-left transition-all duration-150",
|
|
6943
7081
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
6944
7082
|
isSelected ? "border-primary bg-primary/5 ring-2 ring-primary" : "border-border bg-card hover:border-primary/50"
|
|
@@ -6976,7 +7114,7 @@ function MosaicSelectorModal({
|
|
|
6976
7114
|
{
|
|
6977
7115
|
type: "button",
|
|
6978
7116
|
onClick: onClose,
|
|
6979
|
-
className:
|
|
7117
|
+
className: cn59(
|
|
6980
7118
|
"inline-flex min-h-[44px] items-center justify-center rounded-md border border-border",
|
|
6981
7119
|
"bg-background px-4 py-2 text-sm font-medium text-foreground",
|
|
6982
7120
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -6991,7 +7129,7 @@ function MosaicSelectorModal({
|
|
|
6991
7129
|
type: "button",
|
|
6992
7130
|
onClick: handleConfirm,
|
|
6993
7131
|
disabled: !pendingItem,
|
|
6994
|
-
className:
|
|
7132
|
+
className: cn59(
|
|
6995
7133
|
"inline-flex min-h-[44px] items-center justify-center rounded-md",
|
|
6996
7134
|
"bg-primary px-4 py-2 text-sm font-medium text-primary-foreground",
|
|
6997
7135
|
"hover:bg-primary/90",
|
|
@@ -7007,7 +7145,7 @@ function MosaicSelectorModal({
|
|
|
7007
7145
|
);
|
|
7008
7146
|
}
|
|
7009
7147
|
MosaicSelectorModal.displayName = "MosaicSelectorModal";
|
|
7010
|
-
function
|
|
7148
|
+
function cn60(...classes) {
|
|
7011
7149
|
return classes.filter(Boolean).join(" ");
|
|
7012
7150
|
}
|
|
7013
7151
|
function relativeTime(ts) {
|
|
@@ -7207,13 +7345,13 @@ function MosaicMessageCard({
|
|
|
7207
7345
|
copyMessageLabel,
|
|
7208
7346
|
className
|
|
7209
7347
|
}) {
|
|
7210
|
-
const [bookmarked, setBookmarked] =
|
|
7211
|
-
const [likes, setLikes] =
|
|
7212
|
-
const [dislikes, setDislikes] =
|
|
7213
|
-
const [hasLiked, setHasLiked] =
|
|
7214
|
-
const [hasDisliked, setHasDisliked] =
|
|
7215
|
-
const [menuOpen, setMenuOpen] =
|
|
7216
|
-
const menuRef =
|
|
7348
|
+
const [bookmarked, setBookmarked] = React30.useState(message.bookmarked ?? false);
|
|
7349
|
+
const [likes, setLikes] = React30.useState(message.reactions?.likes ?? 0);
|
|
7350
|
+
const [dislikes, setDislikes] = React30.useState(message.reactions?.dislikes ?? 0);
|
|
7351
|
+
const [hasLiked, setHasLiked] = React30.useState(false);
|
|
7352
|
+
const [hasDisliked, setHasDisliked] = React30.useState(false);
|
|
7353
|
+
const [menuOpen, setMenuOpen] = React30.useState(false);
|
|
7354
|
+
const menuRef = React30.useRef(null);
|
|
7217
7355
|
const initials = message.sender.name.split(" ").map((n) => n[0]).filter(Boolean).slice(0, 2).join("").toUpperCase();
|
|
7218
7356
|
const handleLike = () => {
|
|
7219
7357
|
if (hasLiked) {
|
|
@@ -7251,7 +7389,7 @@ function MosaicMessageCard({
|
|
|
7251
7389
|
navigator.clipboard.writeText(message.content).catch(() => null);
|
|
7252
7390
|
onCopy?.(message.id, message.content);
|
|
7253
7391
|
};
|
|
7254
|
-
|
|
7392
|
+
React30.useEffect(() => {
|
|
7255
7393
|
if (!menuOpen) return;
|
|
7256
7394
|
const h = (e) => {
|
|
7257
7395
|
if (menuRef.current && !menuRef.current.contains(e.target)) setMenuOpen(false);
|
|
@@ -7263,7 +7401,7 @@ function MosaicMessageCard({
|
|
|
7263
7401
|
"div",
|
|
7264
7402
|
{
|
|
7265
7403
|
"data-slot": "message-card",
|
|
7266
|
-
className:
|
|
7404
|
+
className: cn60(
|
|
7267
7405
|
"rounded-lg border border-border bg-card p-4 shadow-sm transition-shadow hover:shadow-md",
|
|
7268
7406
|
compact && "p-3",
|
|
7269
7407
|
message.sender.type === "user" && "bg-primary/5",
|
|
@@ -7273,7 +7411,7 @@ function MosaicMessageCard({
|
|
|
7273
7411
|
/* @__PURE__ */ jsx(
|
|
7274
7412
|
"span",
|
|
7275
7413
|
{
|
|
7276
|
-
className:
|
|
7414
|
+
className: cn60(
|
|
7277
7415
|
"inline-flex shrink-0 items-center justify-center rounded-full text-white font-semibold",
|
|
7278
7416
|
compact ? "h-8 w-8 text-xs" : "h-10 w-10 text-sm",
|
|
7279
7417
|
message.sender.accentColor ?? "bg-muted text-muted-foreground"
|
|
@@ -7291,7 +7429,7 @@ function MosaicMessageCard({
|
|
|
7291
7429
|
/* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1", children: [
|
|
7292
7430
|
/* @__PURE__ */ jsxs("div", { className: "mb-2 flex items-center justify-between gap-2", children: [
|
|
7293
7431
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
7294
|
-
/* @__PURE__ */ jsx("span", { className:
|
|
7432
|
+
/* @__PURE__ */ jsx("span", { className: cn60("font-medium", compact ? "text-sm" : "text-base"), children: message.sender.name }),
|
|
7295
7433
|
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" })
|
|
7296
7434
|
] }),
|
|
7297
7435
|
/* @__PURE__ */ jsx("span", { className: "shrink-0 text-xs text-muted-foreground", children: relativeTime(message.timestamp) })
|
|
@@ -7299,7 +7437,7 @@ function MosaicMessageCard({
|
|
|
7299
7437
|
/* @__PURE__ */ jsx(
|
|
7300
7438
|
"p",
|
|
7301
7439
|
{
|
|
7302
|
-
className:
|
|
7440
|
+
className: cn60(
|
|
7303
7441
|
"leading-relaxed text-foreground mb-3",
|
|
7304
7442
|
compact ? "text-sm" : "text-base"
|
|
7305
7443
|
),
|
|
@@ -7314,7 +7452,7 @@ function MosaicMessageCard({
|
|
|
7314
7452
|
{
|
|
7315
7453
|
type: "button",
|
|
7316
7454
|
onClick: handleLike,
|
|
7317
|
-
className:
|
|
7455
|
+
className: cn60(
|
|
7318
7456
|
"inline-flex h-8 items-center gap-1 rounded-md px-2 text-xs",
|
|
7319
7457
|
"hover:bg-accent hover:text-accent-foreground",
|
|
7320
7458
|
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
@@ -7332,7 +7470,7 @@ function MosaicMessageCard({
|
|
|
7332
7470
|
{
|
|
7333
7471
|
type: "button",
|
|
7334
7472
|
onClick: handleDislike,
|
|
7335
|
-
className:
|
|
7473
|
+
className: cn60(
|
|
7336
7474
|
"inline-flex h-8 items-center gap-1 rounded-md px-2 text-xs",
|
|
7337
7475
|
"hover:bg-accent hover:text-accent-foreground",
|
|
7338
7476
|
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
@@ -7377,7 +7515,7 @@ function MosaicMessageCard({
|
|
|
7377
7515
|
{
|
|
7378
7516
|
type: "button",
|
|
7379
7517
|
onClick: handleBookmark,
|
|
7380
|
-
className:
|
|
7518
|
+
className: cn60(
|
|
7381
7519
|
"inline-flex h-8 w-8 items-center justify-center rounded-md",
|
|
7382
7520
|
"hover:bg-accent hover:text-accent-foreground",
|
|
7383
7521
|
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
@@ -7478,7 +7616,7 @@ function MosaicMessageCard({
|
|
|
7478
7616
|
);
|
|
7479
7617
|
}
|
|
7480
7618
|
MosaicMessageCard.displayName = "MosaicMessageCard";
|
|
7481
|
-
function
|
|
7619
|
+
function cn61(...classes) {
|
|
7482
7620
|
return classes.filter(Boolean).join(" ");
|
|
7483
7621
|
}
|
|
7484
7622
|
function SearchIcon2() {
|
|
@@ -7524,11 +7662,11 @@ function MessageListDesktop({
|
|
|
7524
7662
|
copyMessageLabel,
|
|
7525
7663
|
className
|
|
7526
7664
|
}) {
|
|
7527
|
-
const [query, setQuery] =
|
|
7665
|
+
const [query, setQuery] = React30.useState("");
|
|
7528
7666
|
const filtered = query ? messages.filter(
|
|
7529
7667
|
(m) => m.content.toLowerCase().includes(query.toLowerCase()) || m.sender.name.toLowerCase().includes(query.toLowerCase())
|
|
7530
7668
|
) : messages;
|
|
7531
|
-
return /* @__PURE__ */ jsxs("div", { "data-slot": "message-list-desktop", className:
|
|
7669
|
+
return /* @__PURE__ */ jsxs("div", { "data-slot": "message-list-desktop", className: cn61("flex h-full flex-col", className), children: [
|
|
7532
7670
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between border-b border-border px-6 py-4", children: [
|
|
7533
7671
|
title && /* @__PURE__ */ jsx("h2", { className: "text-lg font-semibold", children: title }),
|
|
7534
7672
|
/* @__PURE__ */ jsxs("div", { className: "relative ml-auto max-w-xs flex-1", children: [
|
|
@@ -7540,7 +7678,7 @@ function MessageListDesktop({
|
|
|
7540
7678
|
value: query,
|
|
7541
7679
|
onChange: (e) => setQuery(e.target.value),
|
|
7542
7680
|
placeholder: searchPlaceholder,
|
|
7543
|
-
className:
|
|
7681
|
+
className: cn61(
|
|
7544
7682
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
7545
7683
|
"text-sm placeholder:text-muted-foreground",
|
|
7546
7684
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -7576,7 +7714,7 @@ function MessageListDesktop({
|
|
|
7576
7714
|
{
|
|
7577
7715
|
type: "button",
|
|
7578
7716
|
onClick: onLoadMore,
|
|
7579
|
-
className:
|
|
7717
|
+
className: cn61(
|
|
7580
7718
|
"w-full rounded-md border border-border bg-background px-4 py-2 text-sm font-medium",
|
|
7581
7719
|
"hover:bg-accent hover:text-accent-foreground",
|
|
7582
7720
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -7607,7 +7745,7 @@ function MessageListMobile({
|
|
|
7607
7745
|
copyMessageLabel,
|
|
7608
7746
|
className
|
|
7609
7747
|
}) {
|
|
7610
|
-
return /* @__PURE__ */ jsxs("div", { "data-slot": "message-list-mobile", className:
|
|
7748
|
+
return /* @__PURE__ */ jsxs("div", { "data-slot": "message-list-mobile", className: cn61("flex flex-col", className), children: [
|
|
7611
7749
|
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 }) }),
|
|
7612
7750
|
/* @__PURE__ */ jsxs("div", { className: "space-y-3 p-4", children: [
|
|
7613
7751
|
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)) }),
|
|
@@ -7637,7 +7775,7 @@ function MessageListMobile({
|
|
|
7637
7775
|
{
|
|
7638
7776
|
type: "button",
|
|
7639
7777
|
onClick: onLoadMore,
|
|
7640
|
-
className:
|
|
7778
|
+
className: cn61(
|
|
7641
7779
|
"w-full min-h-[44px] rounded-md border border-border bg-background px-4 py-2 text-sm font-medium",
|
|
7642
7780
|
"hover:bg-accent hover:text-accent-foreground",
|
|
7643
7781
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -7652,7 +7790,7 @@ function MosaicMessageList(props) {
|
|
|
7652
7790
|
return isMobile ? /* @__PURE__ */ jsx(MessageListMobile, { ...props }) : /* @__PURE__ */ jsx(MessageListDesktop, { ...props });
|
|
7653
7791
|
}
|
|
7654
7792
|
MosaicMessageList.displayName = "MosaicMessageList";
|
|
7655
|
-
function
|
|
7793
|
+
function cn62(...classes) {
|
|
7656
7794
|
return classes.filter(Boolean).join(" ");
|
|
7657
7795
|
}
|
|
7658
7796
|
function ChevronLeftIcon2() {
|
|
@@ -7732,7 +7870,7 @@ function MosaicFilterSidebar({
|
|
|
7732
7870
|
{
|
|
7733
7871
|
"data-slot": "filter-sidebar",
|
|
7734
7872
|
style: { width, minWidth: isCollapsed && !isMobile ? "64px" : void 0 },
|
|
7735
|
-
className:
|
|
7873
|
+
className: cn62(
|
|
7736
7874
|
"relative flex flex-col border-r border-border bg-card",
|
|
7737
7875
|
"transition-[width] duration-200 ease-in-out",
|
|
7738
7876
|
"overflow-hidden",
|
|
@@ -7744,7 +7882,7 @@ function MosaicFilterSidebar({
|
|
|
7744
7882
|
{
|
|
7745
7883
|
type: "button",
|
|
7746
7884
|
onClick: onToggleCollapse,
|
|
7747
|
-
className:
|
|
7885
|
+
className: cn62(
|
|
7748
7886
|
"absolute -right-3 top-6 z-10 flex h-6 w-6 items-center justify-center rounded-full",
|
|
7749
7887
|
"border border-border bg-background shadow-sm",
|
|
7750
7888
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -7774,7 +7912,7 @@ function MosaicFilterSidebar({
|
|
|
7774
7912
|
{
|
|
7775
7913
|
type: "button",
|
|
7776
7914
|
onClick: () => onFilterChange(f.id),
|
|
7777
|
-
className:
|
|
7915
|
+
className: cn62(
|
|
7778
7916
|
"flex min-h-[40px] items-center justify-between rounded-md px-3 py-2 text-sm font-medium",
|
|
7779
7917
|
"transition-colors hover:bg-accent hover:text-accent-foreground",
|
|
7780
7918
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -7794,7 +7932,7 @@ function MosaicFilterSidebar({
|
|
|
7794
7932
|
{
|
|
7795
7933
|
type: "button",
|
|
7796
7934
|
onClick: () => onCategoryChange(cat.id),
|
|
7797
|
-
className:
|
|
7935
|
+
className: cn62(
|
|
7798
7936
|
"flex min-h-[36px] items-center justify-between rounded-md px-3 py-1.5 text-sm",
|
|
7799
7937
|
"transition-colors hover:bg-accent hover:text-accent-foreground",
|
|
7800
7938
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -7814,7 +7952,7 @@ function MosaicFilterSidebar({
|
|
|
7814
7952
|
);
|
|
7815
7953
|
}
|
|
7816
7954
|
MosaicFilterSidebar.displayName = "MosaicFilterSidebar";
|
|
7817
|
-
function
|
|
7955
|
+
function cn63(...classes) {
|
|
7818
7956
|
return classes.filter(Boolean).join(" ");
|
|
7819
7957
|
}
|
|
7820
7958
|
function SearchIcon3() {
|
|
@@ -7900,8 +8038,8 @@ function AgentListDesktop({
|
|
|
7900
8038
|
collapseSidebarAriaLabel,
|
|
7901
8039
|
expandSidebarAriaLabel
|
|
7902
8040
|
}) {
|
|
7903
|
-
const [query, setQuery] =
|
|
7904
|
-
const [sidebarCollapsed, setSidebarCollapsed] =
|
|
8041
|
+
const [query, setQuery] = React30.useState("");
|
|
8042
|
+
const [sidebarCollapsed, setSidebarCollapsed] = React30.useState(false);
|
|
7905
8043
|
const filtered = agents.filter(
|
|
7906
8044
|
(a) => !query || a.name.toLowerCase().includes(query.toLowerCase()) || a.description?.toLowerCase().includes(query.toLowerCase())
|
|
7907
8045
|
);
|
|
@@ -7939,7 +8077,7 @@ function AgentListDesktop({
|
|
|
7939
8077
|
value: query,
|
|
7940
8078
|
onChange: (e) => setQuery(e.target.value),
|
|
7941
8079
|
placeholder: searchPlaceholder,
|
|
7942
|
-
className:
|
|
8080
|
+
className: cn63(
|
|
7943
8081
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
7944
8082
|
"text-sm placeholder:text-muted-foreground",
|
|
7945
8083
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -7952,7 +8090,7 @@ function AgentListDesktop({
|
|
|
7952
8090
|
{
|
|
7953
8091
|
type: "button",
|
|
7954
8092
|
onClick: onCreateAgent,
|
|
7955
|
-
className:
|
|
8093
|
+
className: cn63(
|
|
7956
8094
|
"inline-flex items-center gap-2 rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground",
|
|
7957
8095
|
"hover:bg-primary/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
7958
8096
|
),
|
|
@@ -8006,8 +8144,8 @@ function AgentListMobile({
|
|
|
8006
8144
|
collapseSidebarAriaLabel,
|
|
8007
8145
|
expandSidebarAriaLabel
|
|
8008
8146
|
}) {
|
|
8009
|
-
const [filterOpen, setFilterOpen] =
|
|
8010
|
-
const [query, setQuery] =
|
|
8147
|
+
const [filterOpen, setFilterOpen] = React30.useState(false);
|
|
8148
|
+
const [query, setQuery] = React30.useState("");
|
|
8011
8149
|
const filtered = agents.filter(
|
|
8012
8150
|
(a) => !query || a.name.toLowerCase().includes(query.toLowerCase()) || a.description?.toLowerCase().includes(query.toLowerCase())
|
|
8013
8151
|
);
|
|
@@ -8021,7 +8159,7 @@ function AgentListMobile({
|
|
|
8021
8159
|
{
|
|
8022
8160
|
type: "button",
|
|
8023
8161
|
onClick: () => setFilterOpen(true),
|
|
8024
|
-
className:
|
|
8162
|
+
className: cn63(
|
|
8025
8163
|
"inline-flex h-9 w-9 items-center justify-center rounded-md",
|
|
8026
8164
|
"border border-border bg-background text-foreground",
|
|
8027
8165
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -8036,7 +8174,7 @@ function AgentListMobile({
|
|
|
8036
8174
|
{
|
|
8037
8175
|
type: "button",
|
|
8038
8176
|
onClick: onCreateAgent,
|
|
8039
|
-
className:
|
|
8177
|
+
className: cn63(
|
|
8040
8178
|
"inline-flex h-9 items-center gap-1.5 rounded-md bg-primary px-3 text-sm font-medium text-primary-foreground",
|
|
8041
8179
|
"hover:bg-primary/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
8042
8180
|
),
|
|
@@ -8057,7 +8195,7 @@ function AgentListMobile({
|
|
|
8057
8195
|
value: query,
|
|
8058
8196
|
onChange: (e) => setQuery(e.target.value),
|
|
8059
8197
|
placeholder: searchPlaceholder,
|
|
8060
|
-
className:
|
|
8198
|
+
className: cn63(
|
|
8061
8199
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
8062
8200
|
"text-sm placeholder:text-muted-foreground",
|
|
8063
8201
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -8119,7 +8257,7 @@ function MosaicAgentList(props) {
|
|
|
8119
8257
|
return isMobile ? /* @__PURE__ */ jsx(AgentListMobile, { ...props }) : /* @__PURE__ */ jsx(AgentListDesktop, { ...props });
|
|
8120
8258
|
}
|
|
8121
8259
|
MosaicAgentList.displayName = "MosaicAgentList";
|
|
8122
|
-
function
|
|
8260
|
+
function cn64(...classes) {
|
|
8123
8261
|
return classes.filter(Boolean).join(" ");
|
|
8124
8262
|
}
|
|
8125
8263
|
function StarIcon({ filled }) {
|
|
@@ -8216,7 +8354,7 @@ function MarketplaceCard({
|
|
|
8216
8354
|
"div",
|
|
8217
8355
|
{
|
|
8218
8356
|
"data-slot": "marketplace-card",
|
|
8219
|
-
className:
|
|
8357
|
+
className: cn64(
|
|
8220
8358
|
"rounded-lg border border-border bg-card p-4 transition-shadow hover:shadow-md",
|
|
8221
8359
|
compact ? "flex items-center gap-3" : "flex flex-col gap-3"
|
|
8222
8360
|
),
|
|
@@ -8224,7 +8362,7 @@ function MarketplaceCard({
|
|
|
8224
8362
|
item.icon && /* @__PURE__ */ jsx(
|
|
8225
8363
|
"div",
|
|
8226
8364
|
{
|
|
8227
|
-
className:
|
|
8365
|
+
className: cn64(
|
|
8228
8366
|
"flex shrink-0 items-center justify-center rounded-lg",
|
|
8229
8367
|
compact ? "h-10 w-10" : "h-12 w-12",
|
|
8230
8368
|
item.accentClass ?? "bg-muted text-muted-foreground"
|
|
@@ -8235,7 +8373,7 @@ function MarketplaceCard({
|
|
|
8235
8373
|
/* @__PURE__ */ jsxs("div", { className: "flex-1 min-w-0", children: [
|
|
8236
8374
|
/* @__PURE__ */ jsxs("div", { className: "flex items-start justify-between gap-2", children: [
|
|
8237
8375
|
/* @__PURE__ */ jsxs("div", { className: "min-w-0", children: [
|
|
8238
|
-
/* @__PURE__ */ jsx("p", { className:
|
|
8376
|
+
/* @__PURE__ */ jsx("p", { className: cn64("font-semibold leading-tight", compact ? "text-sm" : "text-base"), children: item.title }),
|
|
8239
8377
|
item.description && !compact && /* @__PURE__ */ jsx("p", { className: "mt-1 text-sm text-muted-foreground line-clamp-2", children: item.description })
|
|
8240
8378
|
] }),
|
|
8241
8379
|
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 })
|
|
@@ -8252,13 +8390,13 @@ function MarketplaceCard({
|
|
|
8252
8390
|
] })
|
|
8253
8391
|
] })
|
|
8254
8392
|
] }),
|
|
8255
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
8393
|
+
/* @__PURE__ */ jsxs("div", { className: cn64("flex gap-2", compact ? "shrink-0" : "mt-1"), children: [
|
|
8256
8394
|
onPreview && /* @__PURE__ */ jsx(
|
|
8257
8395
|
"button",
|
|
8258
8396
|
{
|
|
8259
8397
|
type: "button",
|
|
8260
8398
|
onClick: () => onPreview(item.id),
|
|
8261
|
-
className:
|
|
8399
|
+
className: cn64(
|
|
8262
8400
|
"inline-flex min-h-[36px] items-center justify-center rounded-md border border-border",
|
|
8263
8401
|
"bg-background px-3 text-xs font-medium text-foreground",
|
|
8264
8402
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -8272,7 +8410,7 @@ function MarketplaceCard({
|
|
|
8272
8410
|
{
|
|
8273
8411
|
type: "button",
|
|
8274
8412
|
onClick: () => onUninstall(item.id),
|
|
8275
|
-
className:
|
|
8413
|
+
className: cn64(
|
|
8276
8414
|
"inline-flex min-h-[36px] items-center justify-center rounded-md",
|
|
8277
8415
|
"bg-secondary px-3 text-xs font-medium text-secondary-foreground",
|
|
8278
8416
|
"hover:bg-secondary/80",
|
|
@@ -8285,7 +8423,7 @@ function MarketplaceCard({
|
|
|
8285
8423
|
{
|
|
8286
8424
|
type: "button",
|
|
8287
8425
|
onClick: () => onInstall(item.id),
|
|
8288
|
-
className:
|
|
8426
|
+
className: cn64(
|
|
8289
8427
|
"inline-flex min-h-[36px] items-center justify-center rounded-md",
|
|
8290
8428
|
"bg-primary px-3 text-xs font-medium text-primary-foreground",
|
|
8291
8429
|
"hover:bg-primary/90",
|
|
@@ -8322,8 +8460,8 @@ function MarketplaceListDesktop(props) {
|
|
|
8322
8460
|
collapseSidebarAriaLabel,
|
|
8323
8461
|
expandSidebarAriaLabel
|
|
8324
8462
|
} = props;
|
|
8325
|
-
const [query, setQuery] =
|
|
8326
|
-
const [sidebarCollapsed, setSidebarCollapsed] =
|
|
8463
|
+
const [query, setQuery] = React30.useState("");
|
|
8464
|
+
const [sidebarCollapsed, setSidebarCollapsed] = React30.useState(false);
|
|
8327
8465
|
const filtered = items.filter(
|
|
8328
8466
|
(i) => !query || i.title.toLowerCase().includes(query.toLowerCase()) || (i.description ?? "").toLowerCase().includes(query.toLowerCase())
|
|
8329
8467
|
);
|
|
@@ -8357,7 +8495,7 @@ function MarketplaceListDesktop(props) {
|
|
|
8357
8495
|
value: query,
|
|
8358
8496
|
onChange: (e) => setQuery(e.target.value),
|
|
8359
8497
|
placeholder: searchPlaceholder,
|
|
8360
|
-
className:
|
|
8498
|
+
className: cn64(
|
|
8361
8499
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
8362
8500
|
"text-sm placeholder:text-muted-foreground",
|
|
8363
8501
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -8411,8 +8549,8 @@ function MarketplaceListMobile(props) {
|
|
|
8411
8549
|
collapseSidebarAriaLabel,
|
|
8412
8550
|
expandSidebarAriaLabel
|
|
8413
8551
|
} = props;
|
|
8414
|
-
const [filterOpen, setFilterOpen] =
|
|
8415
|
-
const [query, setQuery] =
|
|
8552
|
+
const [filterOpen, setFilterOpen] = React30.useState(false);
|
|
8553
|
+
const [query, setQuery] = React30.useState("");
|
|
8416
8554
|
const filtered = items.filter(
|
|
8417
8555
|
(i) => !query || i.title.toLowerCase().includes(query.toLowerCase()) || (i.description ?? "").toLowerCase().includes(query.toLowerCase())
|
|
8418
8556
|
);
|
|
@@ -8440,7 +8578,7 @@ function MarketplaceListMobile(props) {
|
|
|
8440
8578
|
value: query,
|
|
8441
8579
|
onChange: (e) => setQuery(e.target.value),
|
|
8442
8580
|
placeholder: searchPlaceholder,
|
|
8443
|
-
className:
|
|
8581
|
+
className: cn64(
|
|
8444
8582
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
8445
8583
|
"text-sm placeholder:text-muted-foreground",
|
|
8446
8584
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -8505,7 +8643,130 @@ function MosaicMarketplaceList(props) {
|
|
|
8505
8643
|
return isMobile ? /* @__PURE__ */ jsx(MarketplaceListMobile, { ...props }) : /* @__PURE__ */ jsx(MarketplaceListDesktop, { ...props });
|
|
8506
8644
|
}
|
|
8507
8645
|
MosaicMarketplaceList.displayName = "MosaicMarketplaceList";
|
|
8508
|
-
|
|
8646
|
+
var marketplaceCardVariants = cva(
|
|
8647
|
+
["rounded-xl border border-border bg-card p-4 transition-shadow", "hover:shadow-md"],
|
|
8648
|
+
{
|
|
8649
|
+
variants: {
|
|
8650
|
+
variant: {
|
|
8651
|
+
default: "flex flex-col gap-3",
|
|
8652
|
+
compact: "flex flex-row items-center gap-3"
|
|
8653
|
+
}
|
|
8654
|
+
},
|
|
8655
|
+
defaultVariants: {
|
|
8656
|
+
variant: "default"
|
|
8657
|
+
}
|
|
8658
|
+
}
|
|
8659
|
+
);
|
|
8660
|
+
function cn65(...classes) {
|
|
8661
|
+
return classes.filter(Boolean).join(" ");
|
|
8662
|
+
}
|
|
8663
|
+
function MosaicMarketplaceCard({
|
|
8664
|
+
id,
|
|
8665
|
+
name,
|
|
8666
|
+
description,
|
|
8667
|
+
icon,
|
|
8668
|
+
rating,
|
|
8669
|
+
mentions,
|
|
8670
|
+
isAdopted = false,
|
|
8671
|
+
onAdopt,
|
|
8672
|
+
onUnadopt,
|
|
8673
|
+
onPreview,
|
|
8674
|
+
adoptLabel,
|
|
8675
|
+
unadoptLabel,
|
|
8676
|
+
previewLabel,
|
|
8677
|
+
ratingLabel,
|
|
8678
|
+
variant = "default",
|
|
8679
|
+
className
|
|
8680
|
+
}) {
|
|
8681
|
+
const compact = variant === "compact";
|
|
8682
|
+
return /* @__PURE__ */ jsxs(
|
|
8683
|
+
MosaicCard,
|
|
8684
|
+
{
|
|
8685
|
+
"data-slot": "marketplace-card",
|
|
8686
|
+
className: cn65(marketplaceCardVariants({ variant }), className),
|
|
8687
|
+
children: [
|
|
8688
|
+
icon && /* @__PURE__ */ jsx(
|
|
8689
|
+
"div",
|
|
8690
|
+
{
|
|
8691
|
+
className: cn65(
|
|
8692
|
+
"flex shrink-0 items-center justify-center rounded-lg bg-muted text-muted-foreground",
|
|
8693
|
+
compact ? "h-10 w-10" : "h-12 w-12"
|
|
8694
|
+
),
|
|
8695
|
+
children: icon
|
|
8696
|
+
}
|
|
8697
|
+
),
|
|
8698
|
+
/* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1", children: [
|
|
8699
|
+
/* @__PURE__ */ jsx(MosaicCardTitle, { className: cn65("truncate", compact ? "text-sm" : "text-base"), children: name }),
|
|
8700
|
+
description && /* @__PURE__ */ jsx(
|
|
8701
|
+
MosaicCardDescription,
|
|
8702
|
+
{
|
|
8703
|
+
"data-slot": "marketplace-card-description",
|
|
8704
|
+
className: "mt-1 line-clamp-2",
|
|
8705
|
+
children: description
|
|
8706
|
+
}
|
|
8707
|
+
),
|
|
8708
|
+
mentions && mentions.length > 0 && /* @__PURE__ */ jsx("div", { className: "mt-2 flex flex-wrap gap-1", children: mentions.map((mention) => /* @__PURE__ */ jsx(MosaicBadge, { variant: "secondary", children: mention }, mention)) }),
|
|
8709
|
+
rating != null && /* @__PURE__ */ jsxs(
|
|
8710
|
+
"div",
|
|
8711
|
+
{
|
|
8712
|
+
"data-slot": "marketplace-card-rating",
|
|
8713
|
+
className: "mt-2 flex items-center gap-1 text-xs text-muted-foreground",
|
|
8714
|
+
children: [
|
|
8715
|
+
/* @__PURE__ */ jsx("span", { className: "font-medium text-foreground", children: rating }),
|
|
8716
|
+
/* @__PURE__ */ jsx("span", { children: ratingLabel })
|
|
8717
|
+
]
|
|
8718
|
+
}
|
|
8719
|
+
)
|
|
8720
|
+
] }),
|
|
8721
|
+
/* @__PURE__ */ jsxs("div", { className: cn65("flex gap-2", compact ? "shrink-0" : "mt-1"), children: [
|
|
8722
|
+
onPreview && /* @__PURE__ */ jsx(
|
|
8723
|
+
"button",
|
|
8724
|
+
{
|
|
8725
|
+
type: "button",
|
|
8726
|
+
onClick: () => onPreview(id),
|
|
8727
|
+
className: cn65(
|
|
8728
|
+
"inline-flex min-h-[36px] items-center justify-center rounded-md border border-border",
|
|
8729
|
+
"bg-background px-3 text-xs font-medium text-foreground",
|
|
8730
|
+
"hover:bg-accent hover:text-accent-foreground",
|
|
8731
|
+
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
8732
|
+
),
|
|
8733
|
+
children: previewLabel
|
|
8734
|
+
}
|
|
8735
|
+
),
|
|
8736
|
+
isAdopted ? onUnadopt && /* @__PURE__ */ jsx(
|
|
8737
|
+
"button",
|
|
8738
|
+
{
|
|
8739
|
+
type: "button",
|
|
8740
|
+
onClick: () => onUnadopt(id),
|
|
8741
|
+
className: cn65(
|
|
8742
|
+
"inline-flex min-h-[36px] items-center justify-center rounded-md",
|
|
8743
|
+
"bg-secondary px-3 text-xs font-medium text-secondary-foreground",
|
|
8744
|
+
"hover:bg-secondary/80",
|
|
8745
|
+
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
8746
|
+
),
|
|
8747
|
+
children: unadoptLabel
|
|
8748
|
+
}
|
|
8749
|
+
) : onAdopt && /* @__PURE__ */ jsx(
|
|
8750
|
+
"button",
|
|
8751
|
+
{
|
|
8752
|
+
type: "button",
|
|
8753
|
+
onClick: () => onAdopt(id),
|
|
8754
|
+
className: cn65(
|
|
8755
|
+
"inline-flex min-h-[36px] items-center justify-center rounded-md",
|
|
8756
|
+
"bg-primary px-3 text-xs font-medium text-primary-foreground",
|
|
8757
|
+
"hover:bg-primary/90",
|
|
8758
|
+
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
8759
|
+
),
|
|
8760
|
+
children: adoptLabel
|
|
8761
|
+
}
|
|
8762
|
+
)
|
|
8763
|
+
] })
|
|
8764
|
+
]
|
|
8765
|
+
}
|
|
8766
|
+
);
|
|
8767
|
+
}
|
|
8768
|
+
MosaicMarketplaceCard.displayName = "MosaicMarketplaceCard";
|
|
8769
|
+
function cn66(...classes) {
|
|
8509
8770
|
return classes.filter(Boolean).join(" ");
|
|
8510
8771
|
}
|
|
8511
8772
|
function StarIcon2() {
|
|
@@ -8626,7 +8887,7 @@ function MosaicTemplateCard({
|
|
|
8626
8887
|
type: "button",
|
|
8627
8888
|
onClick: () => onSelect(template),
|
|
8628
8889
|
"data-slot": "template-card",
|
|
8629
|
-
className:
|
|
8890
|
+
className: cn66(
|
|
8630
8891
|
"w-full text-left rounded-lg border transition-all duration-200",
|
|
8631
8892
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
8632
8893
|
isSelected ? "border-primary bg-primary/5 ring-2 ring-primary" : "border-border bg-card hover:border-primary/50",
|
|
@@ -8727,7 +8988,7 @@ function MosaicTemplatePreview({
|
|
|
8727
8988
|
agent.accentColor && /* @__PURE__ */ jsx(
|
|
8728
8989
|
"span",
|
|
8729
8990
|
{
|
|
8730
|
-
className:
|
|
8991
|
+
className: cn66("h-2 w-2 rounded-full", agent.accentColor),
|
|
8731
8992
|
"aria-hidden": "true"
|
|
8732
8993
|
}
|
|
8733
8994
|
),
|
|
@@ -8787,7 +9048,7 @@ function MosaicAgentTeamPreview({ agents, label }) {
|
|
|
8787
9048
|
agent.accentColor && /* @__PURE__ */ jsx(
|
|
8788
9049
|
"span",
|
|
8789
9050
|
{
|
|
8790
|
-
className:
|
|
9051
|
+
className: cn66("h-2.5 w-2.5 rounded-full", agent.accentColor),
|
|
8791
9052
|
"aria-hidden": "true"
|
|
8792
9053
|
}
|
|
8793
9054
|
),
|
|
@@ -8811,7 +9072,7 @@ function MosaicQuickStartPanel({
|
|
|
8811
9072
|
scratchLabel,
|
|
8812
9073
|
className
|
|
8813
9074
|
}) {
|
|
8814
|
-
return /* @__PURE__ */ jsxs("div", { "data-slot": "quick-start-panel", className:
|
|
9075
|
+
return /* @__PURE__ */ jsxs("div", { "data-slot": "quick-start-panel", className: cn66("flex flex-col gap-6", className), children: [
|
|
8815
9076
|
scenarios.length > 0 && /* @__PURE__ */ jsxs("div", { children: [
|
|
8816
9077
|
/* @__PURE__ */ jsx("h3", { className: "mb-3 text-sm font-semibold text-foreground", children: scenariosTitle }),
|
|
8817
9078
|
/* @__PURE__ */ jsx("div", { className: "grid gap-3 sm:grid-cols-2", children: scenarios.map((scenario) => /* @__PURE__ */ jsxs(
|
|
@@ -8819,7 +9080,7 @@ function MosaicQuickStartPanel({
|
|
|
8819
9080
|
{
|
|
8820
9081
|
type: "button",
|
|
8821
9082
|
onClick: () => onSelectScenario(scenario),
|
|
8822
|
-
className:
|
|
9083
|
+
className: cn66(
|
|
8823
9084
|
"flex items-start gap-3 rounded-lg border border-border bg-card p-4 text-left",
|
|
8824
9085
|
"hover:border-primary/50 hover:bg-primary/5",
|
|
8825
9086
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -8851,7 +9112,7 @@ function MosaicQuickStartPanel({
|
|
|
8851
9112
|
{
|
|
8852
9113
|
type: "button",
|
|
8853
9114
|
onClick: () => onSelectPreset(preset),
|
|
8854
|
-
className:
|
|
9115
|
+
className: cn66(
|
|
8855
9116
|
"flex items-center justify-between gap-3 rounded-lg border border-border bg-card px-4 py-3 text-left",
|
|
8856
9117
|
"hover:border-primary/50",
|
|
8857
9118
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -8865,7 +9126,7 @@ function MosaicQuickStartPanel({
|
|
|
8865
9126
|
a.accentColor && /* @__PURE__ */ jsx(
|
|
8866
9127
|
"span",
|
|
8867
9128
|
{
|
|
8868
|
-
className:
|
|
9129
|
+
className: cn66("h-2 w-2 rounded-full", a.accentColor),
|
|
8869
9130
|
"aria-hidden": "true"
|
|
8870
9131
|
}
|
|
8871
9132
|
),
|
|
@@ -8883,7 +9144,7 @@ function MosaicQuickStartPanel({
|
|
|
8883
9144
|
{
|
|
8884
9145
|
type: "button",
|
|
8885
9146
|
onClick: onStartFromScratch,
|
|
8886
|
-
className:
|
|
9147
|
+
className: cn66(
|
|
8887
9148
|
"inline-flex min-h-[44px] w-full items-center justify-center rounded-md border border-border",
|
|
8888
9149
|
"bg-background px-4 text-sm font-medium text-foreground",
|
|
8889
9150
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -8922,9 +9183,9 @@ function TemplateGalleryContent({
|
|
|
8922
9183
|
duplicateLabel,
|
|
8923
9184
|
isMobile
|
|
8924
9185
|
}) {
|
|
8925
|
-
const [query, setQuery] =
|
|
8926
|
-
const [filterOpen, setFilterOpen] =
|
|
8927
|
-
const [sidebarCollapsed, setSidebarCollapsed] =
|
|
9186
|
+
const [query, setQuery] = React30.useState("");
|
|
9187
|
+
const [filterOpen, setFilterOpen] = React30.useState(false);
|
|
9188
|
+
const [sidebarCollapsed, setSidebarCollapsed] = React30.useState(false);
|
|
8928
9189
|
const filtered = templates.filter(
|
|
8929
9190
|
(t) => !query || t.name.toLowerCase().includes(query.toLowerCase()) || (t.description ?? "").toLowerCase().includes(query.toLowerCase())
|
|
8930
9191
|
);
|
|
@@ -8977,7 +9238,7 @@ function TemplateGalleryContent({
|
|
|
8977
9238
|
value: query,
|
|
8978
9239
|
onChange: (e) => setQuery(e.target.value),
|
|
8979
9240
|
placeholder: searchPlaceholder,
|
|
8980
|
-
className:
|
|
9241
|
+
className: cn66(
|
|
8981
9242
|
"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"
|
|
8982
9243
|
)
|
|
8983
9244
|
}
|
|
@@ -9028,7 +9289,7 @@ function TemplateGalleryContent({
|
|
|
9028
9289
|
value: query,
|
|
9029
9290
|
onChange: (e) => setQuery(e.target.value),
|
|
9030
9291
|
placeholder: searchPlaceholder,
|
|
9031
|
-
className:
|
|
9292
|
+
className: cn66(
|
|
9032
9293
|
"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"
|
|
9033
9294
|
)
|
|
9034
9295
|
}
|
|
@@ -9060,7 +9321,7 @@ function MosaicTemplateGallery(props) {
|
|
|
9060
9321
|
return /* @__PURE__ */ jsx(TemplateGalleryContent, { ...props, isMobile });
|
|
9061
9322
|
}
|
|
9062
9323
|
MosaicTemplateGallery.displayName = "MosaicTemplateGallery";
|
|
9063
|
-
function
|
|
9324
|
+
function cn67(...classes) {
|
|
9064
9325
|
return classes.filter(Boolean).join(" ");
|
|
9065
9326
|
}
|
|
9066
9327
|
function PlusIcon5() {
|
|
@@ -9162,7 +9423,7 @@ function MosaicModuleForm(props) {
|
|
|
9162
9423
|
cancelLabel,
|
|
9163
9424
|
tagListAddPlaceholder
|
|
9164
9425
|
} = props;
|
|
9165
|
-
const [formData, setFormData] =
|
|
9426
|
+
const [formData, setFormData] = React30.useState({
|
|
9166
9427
|
name: item?.name ?? "",
|
|
9167
9428
|
description: item?.description ?? "",
|
|
9168
9429
|
icon: item?.icon ?? "",
|
|
@@ -9173,7 +9434,7 @@ function MosaicModuleForm(props) {
|
|
|
9173
9434
|
formFields.map((f) => [f.id, item?.[f.id] ?? (f.type === "tag-list" ? [] : "")])
|
|
9174
9435
|
)
|
|
9175
9436
|
});
|
|
9176
|
-
const [tagInputs, setTagInputs] =
|
|
9437
|
+
const [tagInputs, setTagInputs] = React30.useState({});
|
|
9177
9438
|
const update = (key, value) => {
|
|
9178
9439
|
setFormData((prev) => ({ ...prev, [key]: value }));
|
|
9179
9440
|
};
|
|
@@ -9211,7 +9472,7 @@ function MosaicModuleForm(props) {
|
|
|
9211
9472
|
onChange: (e) => update("name", e.target.value),
|
|
9212
9473
|
placeholder: namePlaceholder,
|
|
9213
9474
|
required: true,
|
|
9214
|
-
className:
|
|
9475
|
+
className: cn67(
|
|
9215
9476
|
"w-full rounded-md border border-input bg-background px-3 py-2 min-h-[40px]",
|
|
9216
9477
|
"text-sm placeholder:text-muted-foreground",
|
|
9217
9478
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -9229,7 +9490,7 @@ function MosaicModuleForm(props) {
|
|
|
9229
9490
|
onChange: (e) => update("description", e.target.value),
|
|
9230
9491
|
placeholder: descriptionPlaceholder,
|
|
9231
9492
|
rows: 3,
|
|
9232
|
-
className:
|
|
9493
|
+
className: cn67(
|
|
9233
9494
|
"w-full rounded-md border border-input bg-background px-3 py-2",
|
|
9234
9495
|
"text-sm placeholder:text-muted-foreground resize-none",
|
|
9235
9496
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -9251,7 +9512,7 @@ function MosaicModuleForm(props) {
|
|
|
9251
9512
|
value: formData[field.id] ?? "",
|
|
9252
9513
|
onChange: (e) => update(field.id, e.target.value),
|
|
9253
9514
|
placeholder: field.placeholder,
|
|
9254
|
-
className:
|
|
9515
|
+
className: cn67(
|
|
9255
9516
|
"w-full rounded-md border border-input bg-background px-3 py-2 min-h-[40px]",
|
|
9256
9517
|
"text-sm placeholder:text-muted-foreground",
|
|
9257
9518
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -9266,7 +9527,7 @@ function MosaicModuleForm(props) {
|
|
|
9266
9527
|
onChange: (e) => update(field.id, e.target.value),
|
|
9267
9528
|
placeholder: field.placeholder,
|
|
9268
9529
|
rows: 3,
|
|
9269
|
-
className:
|
|
9530
|
+
className: cn67(
|
|
9270
9531
|
"w-full rounded-md border border-input bg-background px-3 py-2",
|
|
9271
9532
|
"text-sm placeholder:text-muted-foreground resize-none",
|
|
9272
9533
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -9282,7 +9543,7 @@ function MosaicModuleForm(props) {
|
|
|
9282
9543
|
onChange: (e) => update(field.id, e.target.value),
|
|
9283
9544
|
placeholder: field.placeholder ?? "\u{1F9E0}",
|
|
9284
9545
|
maxLength: 4,
|
|
9285
|
-
className:
|
|
9546
|
+
className: cn67(
|
|
9286
9547
|
"w-20 rounded-md border border-input bg-background px-3 py-2 text-2xl",
|
|
9287
9548
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
9288
9549
|
)
|
|
@@ -9303,7 +9564,7 @@ function MosaicModuleForm(props) {
|
|
|
9303
9564
|
}
|
|
9304
9565
|
},
|
|
9305
9566
|
placeholder: field.placeholder ?? tagListAddPlaceholder,
|
|
9306
|
-
className:
|
|
9567
|
+
className: cn67(
|
|
9307
9568
|
"flex-1 rounded-md border border-input bg-background px-3 py-2 min-h-[36px]",
|
|
9308
9569
|
"text-sm placeholder:text-muted-foreground",
|
|
9309
9570
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -9374,9 +9635,9 @@ function ModuleItemCard({
|
|
|
9374
9635
|
editItemLabel,
|
|
9375
9636
|
deleteItemLabel
|
|
9376
9637
|
}) {
|
|
9377
|
-
const [menuOpen, setMenuOpen] =
|
|
9378
|
-
const menuRef =
|
|
9379
|
-
|
|
9638
|
+
const [menuOpen, setMenuOpen] = React30.useState(false);
|
|
9639
|
+
const menuRef = React30.useRef(null);
|
|
9640
|
+
React30.useEffect(() => {
|
|
9380
9641
|
if (!menuOpen) return;
|
|
9381
9642
|
const h = (e) => {
|
|
9382
9643
|
if (menuRef.current && !menuRef.current.contains(e.target)) setMenuOpen(false);
|
|
@@ -9477,11 +9738,11 @@ function LibraryContent({
|
|
|
9477
9738
|
editModalTitle,
|
|
9478
9739
|
tagListAddPlaceholder
|
|
9479
9740
|
}) {
|
|
9480
|
-
const [query, setQuery] =
|
|
9481
|
-
const [activeTab, setActiveTab] =
|
|
9482
|
-
const [editorOpen, setEditorOpen] =
|
|
9483
|
-
const [editingItem, setEditingItem] =
|
|
9484
|
-
const [editorMode, setEditorMode] =
|
|
9741
|
+
const [query, setQuery] = React30.useState("");
|
|
9742
|
+
const [activeTab, setActiveTab] = React30.useState(tabs?.[0]?.id ?? "all");
|
|
9743
|
+
const [editorOpen, setEditorOpen] = React30.useState(false);
|
|
9744
|
+
const [editingItem, setEditingItem] = React30.useState();
|
|
9745
|
+
const [editorMode, setEditorMode] = React30.useState("create");
|
|
9485
9746
|
const openCreate = () => {
|
|
9486
9747
|
setEditingItem(void 0);
|
|
9487
9748
|
setEditorMode("create");
|
|
@@ -9515,7 +9776,7 @@ function LibraryContent({
|
|
|
9515
9776
|
{
|
|
9516
9777
|
type: "button",
|
|
9517
9778
|
onClick: openCreate,
|
|
9518
|
-
className:
|
|
9779
|
+
className: cn67(
|
|
9519
9780
|
"inline-flex items-center gap-2 rounded-md bg-primary px-3 py-2 text-sm font-medium text-primary-foreground",
|
|
9520
9781
|
"hover:bg-primary/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
9521
9782
|
),
|
|
@@ -9535,7 +9796,7 @@ function LibraryContent({
|
|
|
9535
9796
|
value: query,
|
|
9536
9797
|
onChange: (e) => setQuery(e.target.value),
|
|
9537
9798
|
placeholder: searchPlaceholder,
|
|
9538
|
-
className:
|
|
9799
|
+
className: cn67(
|
|
9539
9800
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
9540
9801
|
"text-sm placeholder:text-muted-foreground",
|
|
9541
9802
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -9548,7 +9809,7 @@ function LibraryContent({
|
|
|
9548
9809
|
{
|
|
9549
9810
|
type: "button",
|
|
9550
9811
|
onClick: () => setActiveTab(tab.id),
|
|
9551
|
-
className:
|
|
9812
|
+
className: cn67(
|
|
9552
9813
|
"rounded-md px-3 py-1.5 text-sm font-medium transition-colors",
|
|
9553
9814
|
activeTab === tab.id ? "bg-primary text-primary-foreground" : "bg-muted text-muted-foreground hover:bg-accent hover:text-accent-foreground"
|
|
9554
9815
|
),
|
|
@@ -9600,7 +9861,7 @@ function MosaicModuleLibrary(props) {
|
|
|
9600
9861
|
return /* @__PURE__ */ jsx(LibraryContent, { ...props });
|
|
9601
9862
|
}
|
|
9602
9863
|
MosaicModuleLibrary.displayName = "MosaicModuleLibrary";
|
|
9603
|
-
function
|
|
9864
|
+
function cn68(...classes) {
|
|
9604
9865
|
return classes.filter(Boolean).join(" ");
|
|
9605
9866
|
}
|
|
9606
9867
|
var roleConfig = {
|
|
@@ -9627,7 +9888,7 @@ function MosaicOrgRoleBadge({ role, className }) {
|
|
|
9627
9888
|
{
|
|
9628
9889
|
"data-slot": "org-role-badge",
|
|
9629
9890
|
title: config.description,
|
|
9630
|
-
className:
|
|
9891
|
+
className: cn68(
|
|
9631
9892
|
"inline-flex items-center rounded-full px-2 py-0.5 text-xs font-medium",
|
|
9632
9893
|
config.className,
|
|
9633
9894
|
className
|
|
@@ -9644,13 +9905,13 @@ function MosaicMultiOrgIndicator({
|
|
|
9644
9905
|
className
|
|
9645
9906
|
}) {
|
|
9646
9907
|
if (orgCount <= 1) return null;
|
|
9647
|
-
return /* @__PURE__ */ jsxs("div", { "data-slot": "multi-org-indicator", className:
|
|
9908
|
+
return /* @__PURE__ */ jsxs("div", { "data-slot": "multi-org-indicator", className: cn68("flex items-center gap-2", className), children: [
|
|
9648
9909
|
onSwitchOrg ? /* @__PURE__ */ jsxs(
|
|
9649
9910
|
"button",
|
|
9650
9911
|
{
|
|
9651
9912
|
type: "button",
|
|
9652
9913
|
onClick: onSwitchOrg,
|
|
9653
|
-
className:
|
|
9914
|
+
className: cn68(
|
|
9654
9915
|
"inline-flex items-center gap-1.5 rounded-full bg-secondary px-2.5 py-1 text-xs font-medium text-secondary-foreground",
|
|
9655
9916
|
"hover:bg-secondary/80",
|
|
9656
9917
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -9703,10 +9964,10 @@ function MosaicCreateOrgDialog({
|
|
|
9703
9964
|
creatingLabel,
|
|
9704
9965
|
createLabel
|
|
9705
9966
|
}) {
|
|
9706
|
-
const [name, setName] =
|
|
9707
|
-
const [slug, setSlug] =
|
|
9708
|
-
const [description, setDescription] =
|
|
9709
|
-
const [errors, setErrors] =
|
|
9967
|
+
const [name, setName] = React30.useState("");
|
|
9968
|
+
const [slug, setSlug] = React30.useState("");
|
|
9969
|
+
const [description, setDescription] = React30.useState("");
|
|
9970
|
+
const [errors, setErrors] = React30.useState({});
|
|
9710
9971
|
const validate = () => {
|
|
9711
9972
|
const errs = {};
|
|
9712
9973
|
if (!name.trim()) errs.name = "Name is required";
|
|
@@ -9730,7 +9991,7 @@ function MosaicCreateOrgDialog({
|
|
|
9730
9991
|
setErrors({});
|
|
9731
9992
|
onOpenChange(false);
|
|
9732
9993
|
};
|
|
9733
|
-
|
|
9994
|
+
React30.useEffect(() => {
|
|
9734
9995
|
if (!name) {
|
|
9735
9996
|
setSlug("");
|
|
9736
9997
|
return;
|
|
@@ -9764,7 +10025,7 @@ function MosaicCreateOrgDialog({
|
|
|
9764
10025
|
onChange: (e) => setName(e.target.value),
|
|
9765
10026
|
placeholder: orgNamePlaceholder,
|
|
9766
10027
|
required: true,
|
|
9767
|
-
className:
|
|
10028
|
+
className: cn68(
|
|
9768
10029
|
"w-full rounded-md border bg-background px-3 py-2 min-h-[40px] text-sm placeholder:text-muted-foreground",
|
|
9769
10030
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
9770
10031
|
errors.name ? "border-destructive" : "border-input"
|
|
@@ -9784,7 +10045,7 @@ function MosaicCreateOrgDialog({
|
|
|
9784
10045
|
onChange: (e) => setSlug(e.target.value),
|
|
9785
10046
|
placeholder: "acme-inc",
|
|
9786
10047
|
required: true,
|
|
9787
|
-
className:
|
|
10048
|
+
className: cn68(
|
|
9788
10049
|
"w-full rounded-md border bg-background px-3 py-2 min-h-[40px] text-sm placeholder:text-muted-foreground",
|
|
9789
10050
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
9790
10051
|
errors.slug ? "border-destructive" : "border-input"
|
|
@@ -9853,9 +10114,9 @@ function MosaicInviteMemberDialog({
|
|
|
9853
10114
|
sendingLabel,
|
|
9854
10115
|
sendInvitationLabel
|
|
9855
10116
|
}) {
|
|
9856
|
-
const [email, setEmail] =
|
|
9857
|
-
const [role, setRole] =
|
|
9858
|
-
const [errors, setErrors] =
|
|
10117
|
+
const [email, setEmail] = React30.useState("");
|
|
10118
|
+
const [role, setRole] = React30.useState("member");
|
|
10119
|
+
const [errors, setErrors] = React30.useState({});
|
|
9859
10120
|
const validate = () => {
|
|
9860
10121
|
const errs = {};
|
|
9861
10122
|
if (!email.trim()) errs.email = "Email is required";
|
|
@@ -9897,7 +10158,7 @@ function MosaicInviteMemberDialog({
|
|
|
9897
10158
|
onChange: (e) => setEmail(e.target.value),
|
|
9898
10159
|
placeholder: emailPlaceholder,
|
|
9899
10160
|
required: true,
|
|
9900
|
-
className:
|
|
10161
|
+
className: cn68(
|
|
9901
10162
|
"w-full rounded-md border bg-background px-3 py-2 min-h-[40px] text-sm placeholder:text-muted-foreground",
|
|
9902
10163
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
9903
10164
|
errors.email ? "border-destructive" : "border-input"
|
|
@@ -9956,10 +10217,10 @@ function MemberRow({
|
|
|
9956
10217
|
memberActionsAriaLabel,
|
|
9957
10218
|
removeMemberLabel
|
|
9958
10219
|
}) {
|
|
9959
|
-
const [menuOpen, setMenuOpen] =
|
|
9960
|
-
const menuRef =
|
|
10220
|
+
const [menuOpen, setMenuOpen] = React30.useState(false);
|
|
10221
|
+
const menuRef = React30.useRef(null);
|
|
9961
10222
|
const isSelf = member.id === currentUserId;
|
|
9962
|
-
|
|
10223
|
+
React30.useEffect(() => {
|
|
9963
10224
|
if (!menuOpen) return;
|
|
9964
10225
|
const h = (e) => {
|
|
9965
10226
|
if (menuRef.current && !menuRef.current.contains(e.target)) setMenuOpen(false);
|
|
@@ -10080,11 +10341,11 @@ function MosaicMemberList({
|
|
|
10080
10341
|
inviteLabel,
|
|
10081
10342
|
className
|
|
10082
10343
|
}) {
|
|
10083
|
-
const [query, setQuery] =
|
|
10344
|
+
const [query, setQuery] = React30.useState("");
|
|
10084
10345
|
const filtered = members.filter(
|
|
10085
10346
|
(m) => !query || m.name.toLowerCase().includes(query.toLowerCase()) || m.email.toLowerCase().includes(query.toLowerCase())
|
|
10086
10347
|
);
|
|
10087
|
-
return /* @__PURE__ */ jsxs("div", { "data-slot": "member-list", className:
|
|
10348
|
+
return /* @__PURE__ */ jsxs("div", { "data-slot": "member-list", className: cn68("flex flex-col gap-4", className), children: [
|
|
10088
10349
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
10089
10350
|
/* @__PURE__ */ jsxs("div", { className: "relative flex-1", children: [
|
|
10090
10351
|
/* @__PURE__ */ jsx("span", { className: "absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground", children: /* @__PURE__ */ jsxs(
|
|
@@ -10178,9 +10439,9 @@ function MosaicOrgPanel({
|
|
|
10178
10439
|
className
|
|
10179
10440
|
}) {
|
|
10180
10441
|
const { isMobile } = useDevice();
|
|
10181
|
-
const [activeTab, setActiveTab] =
|
|
10442
|
+
const [activeTab, setActiveTab] = React30.useState(defaultTab ?? tabs[0]?.id ?? "");
|
|
10182
10443
|
const activeContent = tabs.find((t) => t.id === activeTab)?.content;
|
|
10183
|
-
return /* @__PURE__ */ jsxs("div", { "data-slot": "org-panel", className:
|
|
10444
|
+
return /* @__PURE__ */ jsxs("div", { "data-slot": "org-panel", className: cn68("flex h-full flex-col", className), children: [
|
|
10184
10445
|
/* @__PURE__ */ jsxs("div", { className: "border-b border-border px-4 py-4 md:px-6", children: [
|
|
10185
10446
|
/* @__PURE__ */ jsxs("div", { className: "flex items-start justify-between gap-4", children: [
|
|
10186
10447
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
@@ -10202,12 +10463,12 @@ function MosaicOrgPanel({
|
|
|
10202
10463
|
] }),
|
|
10203
10464
|
headerActions
|
|
10204
10465
|
] }),
|
|
10205
|
-
tabs.length > 0 && /* @__PURE__ */ jsx("div", { className:
|
|
10466
|
+
tabs.length > 0 && /* @__PURE__ */ jsx("div", { className: cn68("mt-4 flex gap-1", isMobile && "overflow-x-auto"), children: tabs.map((tab) => /* @__PURE__ */ jsx(
|
|
10206
10467
|
"button",
|
|
10207
10468
|
{
|
|
10208
10469
|
type: "button",
|
|
10209
10470
|
onClick: () => setActiveTab(tab.id),
|
|
10210
|
-
className:
|
|
10471
|
+
className: cn68(
|
|
10211
10472
|
"shrink-0 rounded-md px-3 py-1.5 text-sm font-medium transition-colors",
|
|
10212
10473
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
10213
10474
|
activeTab === tab.id ? "bg-primary text-primary-foreground" : "bg-muted text-muted-foreground hover:bg-accent hover:text-accent-foreground"
|
|
@@ -10221,7 +10482,7 @@ function MosaicOrgPanel({
|
|
|
10221
10482
|
] });
|
|
10222
10483
|
}
|
|
10223
10484
|
MosaicOrgPanel.displayName = "MosaicOrgPanel";
|
|
10224
|
-
function
|
|
10485
|
+
function cn69(...classes) {
|
|
10225
10486
|
return classes.filter(Boolean).join(" ");
|
|
10226
10487
|
}
|
|
10227
10488
|
var ANIM_ID8 = "mosaic-dashboard-content-kf";
|
|
@@ -10250,7 +10511,7 @@ function MosaicDashboardContent({
|
|
|
10250
10511
|
className
|
|
10251
10512
|
}) {
|
|
10252
10513
|
const { isMobile } = useDevice();
|
|
10253
|
-
|
|
10514
|
+
React30.useEffect(() => {
|
|
10254
10515
|
injectStyles8();
|
|
10255
10516
|
}, []);
|
|
10256
10517
|
const activeView = views.find((v) => v.id === currentView);
|
|
@@ -10258,7 +10519,7 @@ function MosaicDashboardContent({
|
|
|
10258
10519
|
"div",
|
|
10259
10520
|
{
|
|
10260
10521
|
"data-slot": "dashboard-content",
|
|
10261
|
-
className:
|
|
10522
|
+
className: cn69("h-full overflow-auto", isMobile ? "p-4" : "p-6", className),
|
|
10262
10523
|
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: [
|
|
10263
10524
|
"View not found: ",
|
|
10264
10525
|
currentView
|
|
@@ -10267,7 +10528,7 @@ function MosaicDashboardContent({
|
|
|
10267
10528
|
);
|
|
10268
10529
|
}
|
|
10269
10530
|
MosaicDashboardContent.displayName = "MosaicDashboardContent";
|
|
10270
|
-
function
|
|
10531
|
+
function cn70(...classes) {
|
|
10271
10532
|
return classes.filter(Boolean).join(" ");
|
|
10272
10533
|
}
|
|
10273
10534
|
var ANIM_ID9 = "mosaic-dashboard-header2-kf";
|
|
@@ -10367,8 +10628,8 @@ function MosaicDashboardHeader({
|
|
|
10367
10628
|
className
|
|
10368
10629
|
}) {
|
|
10369
10630
|
const { isMobile } = useDevice();
|
|
10370
|
-
const [searchQuery, setSearchQuery] =
|
|
10371
|
-
|
|
10631
|
+
const [searchQuery, setSearchQuery] = React30.useState("");
|
|
10632
|
+
React30.useEffect(() => {
|
|
10372
10633
|
injectStyles9();
|
|
10373
10634
|
}, []);
|
|
10374
10635
|
const handleSearch = (e) => {
|
|
@@ -10379,16 +10640,16 @@ function MosaicDashboardHeader({
|
|
|
10379
10640
|
"header",
|
|
10380
10641
|
{
|
|
10381
10642
|
"data-slot": "dashboard-header",
|
|
10382
|
-
className:
|
|
10643
|
+
className: cn70(
|
|
10383
10644
|
"mosaic-dashboard-header2",
|
|
10384
10645
|
"sticky top-0 z-40 border-b border-border/50 bg-background/80 backdrop-blur-sm",
|
|
10385
10646
|
className
|
|
10386
10647
|
),
|
|
10387
|
-
children: /* @__PURE__ */ jsx("div", { className:
|
|
10648
|
+
children: /* @__PURE__ */ jsx("div", { className: cn70(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: [
|
|
10388
10649
|
/* @__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: [
|
|
10389
10650
|
logoSlot ?? /* @__PURE__ */ jsx(SparklesIcon4, {}),
|
|
10390
10651
|
/* @__PURE__ */ jsxs("div", { className: "min-w-0", children: [
|
|
10391
|
-
/* @__PURE__ */ jsx("h1", { className:
|
|
10652
|
+
/* @__PURE__ */ jsx("h1", { className: cn70("font-semibold truncate", isMobile ? "text-lg" : "text-xl"), children: title }),
|
|
10392
10653
|
subtitle && !isMobile && /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground truncate", children: subtitle })
|
|
10393
10654
|
] })
|
|
10394
10655
|
] }) }),
|
|
@@ -10401,7 +10662,7 @@ function MosaicDashboardHeader({
|
|
|
10401
10662
|
value: searchQuery,
|
|
10402
10663
|
onChange: handleSearch,
|
|
10403
10664
|
placeholder: searchPlaceholder,
|
|
10404
|
-
className:
|
|
10665
|
+
className: cn70(
|
|
10405
10666
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
10406
10667
|
"text-sm placeholder:text-muted-foreground",
|
|
10407
10668
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -10441,7 +10702,7 @@ function MosaicDashboardHeader({
|
|
|
10441
10702
|
);
|
|
10442
10703
|
}
|
|
10443
10704
|
MosaicDashboardHeader.displayName = "MosaicDashboardHeader";
|
|
10444
|
-
function
|
|
10705
|
+
function cn71(...classes) {
|
|
10445
10706
|
return classes.filter(Boolean).join(" ");
|
|
10446
10707
|
}
|
|
10447
10708
|
function ChevronDownIcon4() {
|
|
@@ -10511,10 +10772,10 @@ function MosaicOrgSwitcher({
|
|
|
10511
10772
|
noOrgSelectedLabel,
|
|
10512
10773
|
className
|
|
10513
10774
|
}) {
|
|
10514
|
-
const [open, setOpen] =
|
|
10515
|
-
const ref =
|
|
10775
|
+
const [open, setOpen] = React30.useState(false);
|
|
10776
|
+
const ref = React30.useRef(null);
|
|
10516
10777
|
const currentOrg = organizations.find((o) => o.id === currentOrgId) ?? organizations[0];
|
|
10517
|
-
|
|
10778
|
+
React30.useEffect(() => {
|
|
10518
10779
|
if (!open) return;
|
|
10519
10780
|
const h = (e) => {
|
|
10520
10781
|
if (ref.current && !ref.current.contains(e.target)) setOpen(false);
|
|
@@ -10524,13 +10785,13 @@ function MosaicOrgSwitcher({
|
|
|
10524
10785
|
}, [open]);
|
|
10525
10786
|
if (!currentOrg && organizations.length === 0 && !onCreateOrg) return null;
|
|
10526
10787
|
const initials = currentOrg?.name.split(" ").map((n) => n[0]).filter(Boolean).slice(0, 2).join("").toUpperCase() ?? "?";
|
|
10527
|
-
return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "org-switcher", className:
|
|
10788
|
+
return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "org-switcher", className: cn71("relative", className), children: [
|
|
10528
10789
|
/* @__PURE__ */ jsxs(
|
|
10529
10790
|
"button",
|
|
10530
10791
|
{
|
|
10531
10792
|
type: "button",
|
|
10532
10793
|
onClick: () => setOpen((v) => !v),
|
|
10533
|
-
className:
|
|
10794
|
+
className: cn71(
|
|
10534
10795
|
"inline-flex items-center gap-2 rounded-md border border-border bg-background px-3 py-1.5",
|
|
10535
10796
|
"text-sm font-medium text-foreground",
|
|
10536
10797
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -10557,7 +10818,7 @@ function MosaicOrgSwitcher({
|
|
|
10557
10818
|
{
|
|
10558
10819
|
role: "menu",
|
|
10559
10820
|
"aria-label": triggerAriaLabel,
|
|
10560
|
-
className:
|
|
10821
|
+
className: cn71(
|
|
10561
10822
|
"absolute left-0 top-full z-50 mt-1 min-w-[200px] rounded-md border border-border",
|
|
10562
10823
|
"bg-popover py-1 shadow-md"
|
|
10563
10824
|
),
|
|
@@ -10572,7 +10833,7 @@ function MosaicOrgSwitcher({
|
|
|
10572
10833
|
onSelectOrg?.(org.id);
|
|
10573
10834
|
setOpen(false);
|
|
10574
10835
|
},
|
|
10575
|
-
className:
|
|
10836
|
+
className: cn71(
|
|
10576
10837
|
"flex w-full items-center gap-2.5 px-3 py-2 text-sm text-foreground",
|
|
10577
10838
|
"hover:bg-accent hover:text-accent-foreground",
|
|
10578
10839
|
org.id === currentOrgId && "bg-primary/10 text-primary"
|
|
@@ -10609,7 +10870,7 @@ function MosaicOrgSwitcher({
|
|
|
10609
10870
|
] });
|
|
10610
10871
|
}
|
|
10611
10872
|
MosaicOrgSwitcher.displayName = "MosaicOrgSwitcher";
|
|
10612
|
-
function
|
|
10873
|
+
function cn72(...classes) {
|
|
10613
10874
|
return classes.filter(Boolean).join(" ");
|
|
10614
10875
|
}
|
|
10615
10876
|
function PlusIcon7() {
|
|
@@ -10644,9 +10905,9 @@ function MosaicQuickActionsMenu({
|
|
|
10644
10905
|
className
|
|
10645
10906
|
}) {
|
|
10646
10907
|
const { isMobile } = useDevice();
|
|
10647
|
-
const [open, setOpen] =
|
|
10648
|
-
const ref =
|
|
10649
|
-
|
|
10908
|
+
const [open, setOpen] = React30.useState(false);
|
|
10909
|
+
const ref = React30.useRef(null);
|
|
10910
|
+
React30.useEffect(() => {
|
|
10650
10911
|
if (!open) return;
|
|
10651
10912
|
const h = (e) => {
|
|
10652
10913
|
if (ref.current && !ref.current.contains(e.target)) setOpen(false);
|
|
@@ -10654,19 +10915,19 @@ function MosaicQuickActionsMenu({
|
|
|
10654
10915
|
document.addEventListener("mousedown", h);
|
|
10655
10916
|
return () => document.removeEventListener("mousedown", h);
|
|
10656
10917
|
}, [open]);
|
|
10657
|
-
const itemClass =
|
|
10918
|
+
const itemClass = cn72(
|
|
10658
10919
|
"flex w-full items-center gap-2 px-3 py-2 text-sm text-foreground",
|
|
10659
10920
|
"hover:bg-accent hover:text-accent-foreground",
|
|
10660
10921
|
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
10661
10922
|
"min-h-[44px]"
|
|
10662
10923
|
);
|
|
10663
|
-
return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "quick-actions-menu", className:
|
|
10924
|
+
return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "quick-actions-menu", className: cn72("relative", className), children: [
|
|
10664
10925
|
/* @__PURE__ */ jsxs(
|
|
10665
10926
|
"button",
|
|
10666
10927
|
{
|
|
10667
10928
|
type: "button",
|
|
10668
10929
|
onClick: () => setOpen((v) => !v),
|
|
10669
|
-
className:
|
|
10930
|
+
className: cn72(
|
|
10670
10931
|
"inline-flex items-center justify-center gap-2 rounded-md border border-border bg-background",
|
|
10671
10932
|
"min-h-[44px] min-w-[44px] px-3 py-2 text-sm font-medium text-foreground",
|
|
10672
10933
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -10677,7 +10938,7 @@ function MosaicQuickActionsMenu({
|
|
|
10677
10938
|
"aria-label": label,
|
|
10678
10939
|
children: [
|
|
10679
10940
|
triggerIcon ?? /* @__PURE__ */ jsx(PlusIcon7, {}),
|
|
10680
|
-
/* @__PURE__ */ jsx("span", { className:
|
|
10941
|
+
/* @__PURE__ */ jsx("span", { className: cn72("hidden md:inline"), children: label })
|
|
10681
10942
|
]
|
|
10682
10943
|
}
|
|
10683
10944
|
),
|
|
@@ -10686,14 +10947,14 @@ function MosaicQuickActionsMenu({
|
|
|
10686
10947
|
{
|
|
10687
10948
|
role: "menu",
|
|
10688
10949
|
"aria-label": menuTitle,
|
|
10689
|
-
className:
|
|
10950
|
+
className: cn72(
|
|
10690
10951
|
"absolute right-0 top-full z-50 mt-1 rounded-md border border-border bg-popover py-1 shadow-md",
|
|
10691
10952
|
isMobile ? "w-[min(90vw,280px)]" : "w-56"
|
|
10692
10953
|
),
|
|
10693
10954
|
children: [
|
|
10694
10955
|
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 }) }),
|
|
10695
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
10696
|
-
actions.map((action) => /* @__PURE__ */ jsxs(
|
|
10956
|
+
/* @__PURE__ */ jsx("div", { className: cn72(menuTitle && "border-t border-border") }),
|
|
10957
|
+
actions.map((action) => /* @__PURE__ */ jsxs(React30.Fragment, { children: [
|
|
10697
10958
|
action.separator && /* @__PURE__ */ jsx("div", { className: "my-1 border-t border-border" }),
|
|
10698
10959
|
action.href && renderLink ? renderLink(
|
|
10699
10960
|
action,
|
|
@@ -10997,7 +11258,7 @@ function MosaicOrgProfilePage({
|
|
|
10997
11258
|
);
|
|
10998
11259
|
}
|
|
10999
11260
|
MosaicOrgProfilePage.displayName = "MosaicOrgProfilePage";
|
|
11000
|
-
function
|
|
11261
|
+
function cn73(...classes) {
|
|
11001
11262
|
return classes.filter(Boolean).join(" ");
|
|
11002
11263
|
}
|
|
11003
11264
|
function defaultCompare(a, b) {
|
|
@@ -11060,7 +11321,7 @@ function MosaicDataTable({
|
|
|
11060
11321
|
{
|
|
11061
11322
|
ref,
|
|
11062
11323
|
"data-slot": "data-table",
|
|
11063
|
-
className:
|
|
11324
|
+
className: cn73("w-full border-collapse text-sm", className),
|
|
11064
11325
|
children: [
|
|
11065
11326
|
/* @__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) => {
|
|
11066
11327
|
const isSortable = masterSortable && col.sortable;
|
|
@@ -11078,7 +11339,7 @@ function MosaicDataTable({
|
|
|
11078
11339
|
handleHeaderClick(col);
|
|
11079
11340
|
}
|
|
11080
11341
|
} : void 0,
|
|
11081
|
-
className:
|
|
11342
|
+
className: cn73(
|
|
11082
11343
|
"px-4 py-3 font-medium text-muted-foreground",
|
|
11083
11344
|
alignClass(col.align),
|
|
11084
11345
|
col.className,
|
|
@@ -11114,7 +11375,7 @@ function MosaicDataTable({
|
|
|
11114
11375
|
"td",
|
|
11115
11376
|
{
|
|
11116
11377
|
"data-slot": "data-table-td",
|
|
11117
|
-
className:
|
|
11378
|
+
className: cn73(
|
|
11118
11379
|
"px-4 py-3 text-foreground",
|
|
11119
11380
|
alignClass(col.align),
|
|
11120
11381
|
col.className
|
|
@@ -11253,7 +11514,7 @@ var stepSegmentVariants = cva(["h-1.5 flex-1 min-w-2 rounded-full transition-col
|
|
|
11253
11514
|
filled: false
|
|
11254
11515
|
}
|
|
11255
11516
|
});
|
|
11256
|
-
function
|
|
11517
|
+
function cn74(...classes) {
|
|
11257
11518
|
return classes.filter(Boolean).join(" ");
|
|
11258
11519
|
}
|
|
11259
11520
|
function resolveStatus(step, index, currentIndex) {
|
|
@@ -11294,7 +11555,7 @@ function MosaicStepPipelineSegments({
|
|
|
11294
11555
|
"aria-valuemax": total,
|
|
11295
11556
|
"aria-valuenow": current,
|
|
11296
11557
|
"aria-valuetext": progressLabel ? progressLabel(current, total) : void 0,
|
|
11297
|
-
className:
|
|
11558
|
+
className: cn74(stepSegmentBarVariants(), className),
|
|
11298
11559
|
children: steps.map((step, index) => {
|
|
11299
11560
|
const status = resolveStatus(step, index, currentIndex);
|
|
11300
11561
|
const filled = status !== "upcoming";
|
|
@@ -11306,7 +11567,7 @@ function MosaicStepPipelineSegments({
|
|
|
11306
11567
|
"data-status": status,
|
|
11307
11568
|
"data-filled": filled,
|
|
11308
11569
|
"aria-hidden": "true",
|
|
11309
|
-
className:
|
|
11570
|
+
className: cn74(stepSegmentVariants({ filled }))
|
|
11310
11571
|
},
|
|
11311
11572
|
key
|
|
11312
11573
|
);
|
|
@@ -11327,7 +11588,7 @@ function MosaicStepPipelineDots({
|
|
|
11327
11588
|
{
|
|
11328
11589
|
ref,
|
|
11329
11590
|
"data-slot": "step-pipeline",
|
|
11330
|
-
className:
|
|
11591
|
+
className: cn74(stepPipelineVariants({ orientation }), className),
|
|
11331
11592
|
children: steps.map((step, index) => {
|
|
11332
11593
|
const status = resolveStatus(step, index, currentIndex);
|
|
11333
11594
|
const isCurrent = status === "current";
|
|
@@ -11339,7 +11600,7 @@ function MosaicStepPipelineDots({
|
|
|
11339
11600
|
"data-slot": "step",
|
|
11340
11601
|
"data-status": status,
|
|
11341
11602
|
"aria-current": isCurrent ? "step" : void 0,
|
|
11342
|
-
className:
|
|
11603
|
+
className: cn74(
|
|
11343
11604
|
"flex shrink-0",
|
|
11344
11605
|
orientation === "horizontal" ? "flex-col items-center gap-2" : "flex-row items-start gap-3",
|
|
11345
11606
|
orientation === "horizontal" && !isLast && "flex-1"
|
|
@@ -11350,14 +11611,14 @@ function MosaicStepPipelineDots({
|
|
|
11350
11611
|
"div",
|
|
11351
11612
|
{
|
|
11352
11613
|
"data-slot": "step-connector",
|
|
11353
|
-
className:
|
|
11614
|
+
className: cn74(stepConnectorVariants({ status, orientation }))
|
|
11354
11615
|
}
|
|
11355
11616
|
),
|
|
11356
11617
|
/* @__PURE__ */ jsx(
|
|
11357
11618
|
"div",
|
|
11358
11619
|
{
|
|
11359
11620
|
"data-slot": "step-indicator",
|
|
11360
|
-
className:
|
|
11621
|
+
className: cn74(stepIndicatorVariants({ status, orientation })),
|
|
11361
11622
|
"aria-hidden": "true",
|
|
11362
11623
|
children: status === "done" ? "\u2713" : /* @__PURE__ */ jsx("span", { children: index + 1 })
|
|
11363
11624
|
}
|
|
@@ -11366,7 +11627,7 @@ function MosaicStepPipelineDots({
|
|
|
11366
11627
|
"div",
|
|
11367
11628
|
{
|
|
11368
11629
|
"data-slot": "step-connector",
|
|
11369
|
-
className:
|
|
11630
|
+
className: cn74(
|
|
11370
11631
|
stepConnectorVariants({
|
|
11371
11632
|
// connector after current step is still upcoming
|
|
11372
11633
|
status: status === "done" ? "done" : "upcoming",
|
|
@@ -11377,12 +11638,12 @@ function MosaicStepPipelineDots({
|
|
|
11377
11638
|
)
|
|
11378
11639
|
] }),
|
|
11379
11640
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center gap-0.5 text-center px-1", children: [
|
|
11380
|
-
/* @__PURE__ */ jsx("span", { "data-slot": "step-label", className:
|
|
11641
|
+
/* @__PURE__ */ jsx("span", { "data-slot": "step-label", className: cn74(stepLabelVariants({ status })), children: step.label }),
|
|
11381
11642
|
step.description !== void 0 && /* @__PURE__ */ jsx(
|
|
11382
11643
|
"span",
|
|
11383
11644
|
{
|
|
11384
11645
|
"data-slot": "step-description",
|
|
11385
|
-
className:
|
|
11646
|
+
className: cn74(stepDescriptionVariants({ status })),
|
|
11386
11647
|
children: step.description
|
|
11387
11648
|
}
|
|
11388
11649
|
)
|
|
@@ -11393,7 +11654,7 @@ function MosaicStepPipelineDots({
|
|
|
11393
11654
|
"div",
|
|
11394
11655
|
{
|
|
11395
11656
|
"data-slot": "step-indicator",
|
|
11396
|
-
className:
|
|
11657
|
+
className: cn74(stepIndicatorVariants({ status, orientation })),
|
|
11397
11658
|
"aria-hidden": "true",
|
|
11398
11659
|
children: status === "done" ? "\u2713" : /* @__PURE__ */ jsx("span", { children: index + 1 })
|
|
11399
11660
|
}
|
|
@@ -11402,7 +11663,7 @@ function MosaicStepPipelineDots({
|
|
|
11402
11663
|
"div",
|
|
11403
11664
|
{
|
|
11404
11665
|
"data-slot": "step-connector",
|
|
11405
|
-
className:
|
|
11666
|
+
className: cn74(
|
|
11406
11667
|
stepConnectorVariants({
|
|
11407
11668
|
status: status === "done" ? "done" : "upcoming",
|
|
11408
11669
|
orientation
|
|
@@ -11412,12 +11673,12 @@ function MosaicStepPipelineDots({
|
|
|
11412
11673
|
)
|
|
11413
11674
|
] }),
|
|
11414
11675
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-0.5 pt-1 pb-4", children: [
|
|
11415
|
-
/* @__PURE__ */ jsx("span", { "data-slot": "step-label", className:
|
|
11676
|
+
/* @__PURE__ */ jsx("span", { "data-slot": "step-label", className: cn74(stepLabelVariants({ status })), children: step.label }),
|
|
11416
11677
|
step.description !== void 0 && /* @__PURE__ */ jsx(
|
|
11417
11678
|
"span",
|
|
11418
11679
|
{
|
|
11419
11680
|
"data-slot": "step-description",
|
|
11420
|
-
className:
|
|
11681
|
+
className: cn74(stepDescriptionVariants({ status })),
|
|
11421
11682
|
children: step.description
|
|
11422
11683
|
}
|
|
11423
11684
|
)
|
|
@@ -11431,7 +11692,7 @@ function MosaicStepPipelineDots({
|
|
|
11431
11692
|
);
|
|
11432
11693
|
}
|
|
11433
11694
|
MosaicStepPipelineDots.displayName = "MosaicStepPipelineDots";
|
|
11434
|
-
function
|
|
11695
|
+
function cn75(...classes) {
|
|
11435
11696
|
return classes.filter(Boolean).join(" ");
|
|
11436
11697
|
}
|
|
11437
11698
|
function MosaicKanbanBoard({ children, className, ref, ...props }) {
|
|
@@ -11440,7 +11701,7 @@ function MosaicKanbanBoard({ children, className, ref, ...props }) {
|
|
|
11440
11701
|
{
|
|
11441
11702
|
ref,
|
|
11442
11703
|
"data-slot": "kanban-board",
|
|
11443
|
-
className:
|
|
11704
|
+
className: cn75(
|
|
11444
11705
|
"flex gap-4 overflow-x-auto pb-4",
|
|
11445
11706
|
"min-h-0",
|
|
11446
11707
|
// Smooth momentum scrolling on iOS
|
|
@@ -11453,7 +11714,7 @@ function MosaicKanbanBoard({ children, className, ref, ...props }) {
|
|
|
11453
11714
|
);
|
|
11454
11715
|
}
|
|
11455
11716
|
MosaicKanbanBoard.displayName = "MosaicKanbanBoard";
|
|
11456
|
-
function
|
|
11717
|
+
function cn76(...classes) {
|
|
11457
11718
|
return classes.filter(Boolean).join(" ");
|
|
11458
11719
|
}
|
|
11459
11720
|
function MosaicKanbanColumn({
|
|
@@ -11471,7 +11732,7 @@ function MosaicKanbanColumn({
|
|
|
11471
11732
|
{
|
|
11472
11733
|
ref,
|
|
11473
11734
|
"data-slot": "kanban-column",
|
|
11474
|
-
className:
|
|
11735
|
+
className: cn76(
|
|
11475
11736
|
// Fixed column width, never shrink so board stays scrollable
|
|
11476
11737
|
"flex flex-col w-72 shrink-0",
|
|
11477
11738
|
// Surface
|
|
@@ -11492,7 +11753,7 @@ function MosaicKanbanColumn({
|
|
|
11492
11753
|
{
|
|
11493
11754
|
"data-slot": "kanban-column-count",
|
|
11494
11755
|
"aria-label": countLabel(count),
|
|
11495
|
-
className:
|
|
11756
|
+
className: cn76(
|
|
11496
11757
|
"inline-flex items-center justify-center",
|
|
11497
11758
|
"min-w-[1.25rem] h-5 px-1.5 rounded-full",
|
|
11498
11759
|
"bg-muted text-muted-foreground",
|
|
@@ -11535,12 +11796,12 @@ function MosaicKanbanColumn({
|
|
|
11535
11796
|
);
|
|
11536
11797
|
}
|
|
11537
11798
|
MosaicKanbanColumn.displayName = "MosaicKanbanColumn";
|
|
11538
|
-
var WorkspaceCtx =
|
|
11799
|
+
var WorkspaceCtx = React30.createContext({
|
|
11539
11800
|
workspaceId: null,
|
|
11540
11801
|
isLoading: false
|
|
11541
11802
|
});
|
|
11542
11803
|
function useMosaicWorkspace() {
|
|
11543
|
-
return
|
|
11804
|
+
return React30.useContext(WorkspaceCtx);
|
|
11544
11805
|
}
|
|
11545
11806
|
var defaultClerkAppearance = {
|
|
11546
11807
|
variables: {
|
|
@@ -11553,9 +11814,9 @@ var defaultClerkAppearance = {
|
|
|
11553
11814
|
}
|
|
11554
11815
|
};
|
|
11555
11816
|
function WorkspaceResolver({ resolveWorkspaceId, initialOrgId, children }) {
|
|
11556
|
-
const [workspaceId, setWorkspaceId] =
|
|
11557
|
-
const [isLoading, setIsLoading] =
|
|
11558
|
-
|
|
11817
|
+
const [workspaceId, setWorkspaceId] = React30.useState(null);
|
|
11818
|
+
const [isLoading, setIsLoading] = React30.useState(false);
|
|
11819
|
+
React30.useEffect(() => {
|
|
11559
11820
|
if (!resolveWorkspaceId) {
|
|
11560
11821
|
setWorkspaceId(initialOrgId ?? null);
|
|
11561
11822
|
return;
|
|
@@ -11714,7 +11975,7 @@ var documentUploadProgressFillVariants = cva(
|
|
|
11714
11975
|
defaultVariants: {}
|
|
11715
11976
|
}
|
|
11716
11977
|
);
|
|
11717
|
-
function
|
|
11978
|
+
function cn77(...classes) {
|
|
11718
11979
|
return classes.filter(Boolean).join(" ");
|
|
11719
11980
|
}
|
|
11720
11981
|
function MosaicDocumentUpload({
|
|
@@ -11755,7 +12016,7 @@ function MosaicDocumentUpload({
|
|
|
11755
12016
|
if (selected.length > 0) onFilesSelected(selected);
|
|
11756
12017
|
event.target.value = "";
|
|
11757
12018
|
}
|
|
11758
|
-
return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "document-upload", className:
|
|
12019
|
+
return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "document-upload", className: cn77("flex flex-col gap-4", className), children: [
|
|
11759
12020
|
/* @__PURE__ */ jsxs(
|
|
11760
12021
|
"div",
|
|
11761
12022
|
{
|
|
@@ -11820,7 +12081,7 @@ function MosaicDocumentUpload({
|
|
|
11820
12081
|
"aria-valuemin": 0,
|
|
11821
12082
|
"aria-valuemax": 100,
|
|
11822
12083
|
"aria-valuenow": file.progress ?? 0,
|
|
11823
|
-
className:
|
|
12084
|
+
className: cn77(documentUploadProgressTrackVariants(), "mt-2"),
|
|
11824
12085
|
children: /* @__PURE__ */ jsx(
|
|
11825
12086
|
"div",
|
|
11826
12087
|
{
|
|
@@ -11897,7 +12158,7 @@ var urlScraperCardVariants = cva(["flex flex-col gap-2 rounded-lg border p-4"],
|
|
|
11897
12158
|
tone: "neutral"
|
|
11898
12159
|
}
|
|
11899
12160
|
});
|
|
11900
|
-
function
|
|
12161
|
+
function cn78(...classes) {
|
|
11901
12162
|
return classes.filter(Boolean).join(" ");
|
|
11902
12163
|
}
|
|
11903
12164
|
function isSyntacticallyValidUrl(candidate) {
|
|
@@ -11936,7 +12197,7 @@ function MosaicUrlScraper(props) {
|
|
|
11936
12197
|
setIsLocallyInvalid(false);
|
|
11937
12198
|
onUrlChange(event.target.value);
|
|
11938
12199
|
}
|
|
11939
|
-
return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "url-scraper", className:
|
|
12200
|
+
return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "url-scraper", className: cn78("flex flex-col gap-4", className), children: [
|
|
11940
12201
|
/* @__PURE__ */ jsxs(
|
|
11941
12202
|
"form",
|
|
11942
12203
|
{
|
|
@@ -12072,7 +12333,7 @@ var chatThreadScrollButtonVariants = cva([
|
|
|
12072
12333
|
"items-center justify-center rounded-full border border-border bg-card text-foreground shadow-sm",
|
|
12073
12334
|
"transition-colors hover:bg-accent/50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
12074
12335
|
]);
|
|
12075
|
-
function
|
|
12336
|
+
function cn79(...classes) {
|
|
12076
12337
|
return classes.filter(Boolean).join(" ");
|
|
12077
12338
|
}
|
|
12078
12339
|
var BOTTOM_THRESHOLD_PX = 24;
|
|
@@ -12156,7 +12417,7 @@ function MosaicChatThread({
|
|
|
12156
12417
|
role: "log",
|
|
12157
12418
|
onScroll: handleScroll,
|
|
12158
12419
|
onKeyDown: handleKeyDown,
|
|
12159
|
-
className:
|
|
12420
|
+
className: cn79(chatThreadRootVariants(), className),
|
|
12160
12421
|
children: [
|
|
12161
12422
|
/* @__PURE__ */ jsx("div", { "data-slot": "chat-thread-content", className: chatThreadContentVariants(), children }),
|
|
12162
12423
|
!isAtBottom && /* @__PURE__ */ jsx(
|
|
@@ -12197,7 +12458,7 @@ var chatComposerActionButtonVariants = cva(
|
|
|
12197
12458
|
}
|
|
12198
12459
|
}
|
|
12199
12460
|
);
|
|
12200
|
-
function
|
|
12461
|
+
function cn80(...classes) {
|
|
12201
12462
|
return classes.filter(Boolean).join(" ");
|
|
12202
12463
|
}
|
|
12203
12464
|
function MosaicChatComposer(props) {
|
|
@@ -12252,7 +12513,7 @@ function MosaicChatComposer(props) {
|
|
|
12252
12513
|
{
|
|
12253
12514
|
ref,
|
|
12254
12515
|
"data-slot": "chat-composer",
|
|
12255
|
-
className:
|
|
12516
|
+
className: cn80(chatComposerRootVariants(), className),
|
|
12256
12517
|
onSubmit: handleSubmit,
|
|
12257
12518
|
children: [
|
|
12258
12519
|
/* @__PURE__ */ jsx(
|
|
@@ -12368,7 +12629,7 @@ var markdownTableCellVariants = cva(["border border-border px-3 py-1.5"], {
|
|
|
12368
12629
|
align: "left"
|
|
12369
12630
|
}
|
|
12370
12631
|
});
|
|
12371
|
-
function
|
|
12632
|
+
function cn81(...classes) {
|
|
12372
12633
|
return classes.filter(Boolean).join(" ");
|
|
12373
12634
|
}
|
|
12374
12635
|
function sanitizeHref(rawHref) {
|
|
@@ -12563,7 +12824,7 @@ function parseBlocks(content) {
|
|
|
12563
12824
|
function MosaicMarkdown({ content, renderCodeBlock, className, ref }) {
|
|
12564
12825
|
const blocks = parseBlocks(content);
|
|
12565
12826
|
const ids = makeIdSource();
|
|
12566
|
-
return /* @__PURE__ */ jsx("div", { ref, "data-slot": "markdown", className:
|
|
12827
|
+
return /* @__PURE__ */ jsx("div", { ref, "data-slot": "markdown", className: cn81(markdownRootVariants(), className), children: blocks.map((block) => {
|
|
12567
12828
|
if (block.kind === "heading") {
|
|
12568
12829
|
const HeadingTag = `h${block.level}`;
|
|
12569
12830
|
return /* @__PURE__ */ jsx(HeadingTag, { className: markdownHeadingVariants({ level: block.level }), children: parseInline(block.text, ids) }, block.id);
|
|
@@ -12641,7 +12902,7 @@ var chatMessageToolStatusVariants = cva(["text-xs font-medium"], {
|
|
|
12641
12902
|
status: "running"
|
|
12642
12903
|
}
|
|
12643
12904
|
});
|
|
12644
|
-
function
|
|
12905
|
+
function cn82(...classes) {
|
|
12645
12906
|
return classes.filter(Boolean).join(" ");
|
|
12646
12907
|
}
|
|
12647
12908
|
function partKey(part, index) {
|
|
@@ -12807,7 +13068,7 @@ function MosaicChatMessage({
|
|
|
12807
13068
|
ref,
|
|
12808
13069
|
"data-slot": "chat-message",
|
|
12809
13070
|
"data-role": messageRole,
|
|
12810
|
-
className:
|
|
13071
|
+
className: cn82(chatMessageContainerVariants({ align: isUser ? "end" : "start" }), className),
|
|
12811
13072
|
children: /* @__PURE__ */ jsx("div", { className: chatMessageBubbleVariants({ role: messageRole }), children: parts.map((part, index) => /* @__PURE__ */ jsx(
|
|
12812
13073
|
ChatMessagePartView,
|
|
12813
13074
|
{
|
|
@@ -12862,7 +13123,7 @@ var approvalPromptButtonVariants = cva(
|
|
|
12862
13123
|
}
|
|
12863
13124
|
}
|
|
12864
13125
|
);
|
|
12865
|
-
function
|
|
13126
|
+
function cn83(...classes) {
|
|
12866
13127
|
return classes.filter(Boolean).join(" ");
|
|
12867
13128
|
}
|
|
12868
13129
|
function MosaicApprovalPrompt(props) {
|
|
@@ -12874,7 +13135,7 @@ function MosaicApprovalPrompt(props) {
|
|
|
12874
13135
|
ref,
|
|
12875
13136
|
"data-slot": "approval-prompt",
|
|
12876
13137
|
"aria-label": promptTitle,
|
|
12877
|
-
className:
|
|
13138
|
+
className: cn83("border-0 p-0 m-0", approvalPromptCardVariants({ tone }), className),
|
|
12878
13139
|
children: [
|
|
12879
13140
|
/* @__PURE__ */ jsx("legend", { "data-slot": "approval-prompt-title", className: "text-base font-semibold md:text-lg", children: promptTitle }),
|
|
12880
13141
|
/* @__PURE__ */ jsxs("div", { "data-slot": "approval-prompt-tool", className: "flex flex-col gap-1", children: [
|
|
@@ -12951,7 +13212,7 @@ var toolToggleListRowVariants = cva(
|
|
|
12951
13212
|
}
|
|
12952
13213
|
}
|
|
12953
13214
|
);
|
|
12954
|
-
function
|
|
13215
|
+
function cn84(...classes) {
|
|
12955
13216
|
return classes.filter(Boolean).join(" ");
|
|
12956
13217
|
}
|
|
12957
13218
|
function MosaicToolToggleList({
|
|
@@ -12967,7 +13228,7 @@ function MosaicToolToggleList({
|
|
|
12967
13228
|
}) {
|
|
12968
13229
|
const toolsById = new Map(tools.map((tool) => [tool.id, tool]));
|
|
12969
13230
|
const approvalLabelById = new Map(approvalLevels.map((level) => [level.id, level.label]));
|
|
12970
|
-
return /* @__PURE__ */ jsx("div", { ref, "data-slot": "tool-toggle-list", className:
|
|
13231
|
+
return /* @__PURE__ */ jsx("div", { ref, "data-slot": "tool-toggle-list", className: cn84("flex flex-col gap-6", className), children: sections.map((section) => /* @__PURE__ */ jsxs(
|
|
12971
13232
|
"div",
|
|
12972
13233
|
{
|
|
12973
13234
|
"data-slot": "tool-toggle-list-section",
|
|
@@ -12998,7 +13259,7 @@ function MosaicToolToggleList({
|
|
|
12998
13259
|
onCheckedChange: (checked) => onToggleTool(tool.id, checked),
|
|
12999
13260
|
"aria-label": toggleAriaLabel(tool.name),
|
|
13000
13261
|
"data-slot": "tool-toggle-list-switch",
|
|
13001
|
-
className:
|
|
13262
|
+
className: cn84(
|
|
13002
13263
|
"relative inline-flex h-6 w-10 shrink-0 cursor-pointer items-center",
|
|
13003
13264
|
"rounded-full border-2 border-transparent outline-none",
|
|
13004
13265
|
"bg-muted transition-colors",
|
|
@@ -13009,7 +13270,7 @@ function MosaicToolToggleList({
|
|
|
13009
13270
|
Switch.Thumb,
|
|
13010
13271
|
{
|
|
13011
13272
|
"data-slot": "tool-toggle-list-switch-thumb",
|
|
13012
|
-
className:
|
|
13273
|
+
className: cn84(
|
|
13013
13274
|
"pointer-events-none block h-4 w-4 rounded-full",
|
|
13014
13275
|
"bg-background shadow-sm",
|
|
13015
13276
|
"translate-x-0 transition-transform",
|
|
@@ -13051,7 +13312,7 @@ function MosaicToolToggleList({
|
|
|
13051
13312
|
{
|
|
13052
13313
|
"aria-label": approvalSelectAriaLabel(tool.name),
|
|
13053
13314
|
"data-slot": "tool-toggle-list-approval-trigger",
|
|
13054
|
-
className:
|
|
13315
|
+
className: cn84(
|
|
13055
13316
|
"inline-flex h-9 min-w-[10rem] items-center justify-between gap-2",
|
|
13056
13317
|
"rounded-md border border-border bg-background px-3 py-2",
|
|
13057
13318
|
"text-sm text-foreground shadow-xs outline-none",
|
|
@@ -13069,7 +13330,7 @@ function MosaicToolToggleList({
|
|
|
13069
13330
|
Select.Popup,
|
|
13070
13331
|
{
|
|
13071
13332
|
"data-slot": "tool-toggle-list-approval-popup",
|
|
13072
|
-
className:
|
|
13333
|
+
className: cn84(
|
|
13073
13334
|
"z-50 min-w-[10rem] overflow-hidden rounded-md border border-border",
|
|
13074
13335
|
"bg-popover p-1 text-popover-foreground shadow-md",
|
|
13075
13336
|
"origin-[var(--transform-origin)]",
|
|
@@ -13082,7 +13343,7 @@ function MosaicToolToggleList({
|
|
|
13082
13343
|
Select.Item,
|
|
13083
13344
|
{
|
|
13084
13345
|
value: level.id,
|
|
13085
|
-
className:
|
|
13346
|
+
className: cn84(
|
|
13086
13347
|
"relative flex cursor-pointer select-none items-center rounded-sm px-2 py-1.5",
|
|
13087
13348
|
"text-sm text-popover-foreground outline-none",
|
|
13088
13349
|
"data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground",
|
|
@@ -13190,7 +13451,7 @@ var apiKeyPanelMessageVariants = cva(["text-sm"], {
|
|
|
13190
13451
|
tone: "muted"
|
|
13191
13452
|
}
|
|
13192
13453
|
});
|
|
13193
|
-
function
|
|
13454
|
+
function cn85(...classes) {
|
|
13194
13455
|
return classes.filter(Boolean).join(" ");
|
|
13195
13456
|
}
|
|
13196
13457
|
function MosaicApiKeyPanel(props) {
|
|
@@ -13218,7 +13479,7 @@ function MosaicApiKeyPanel(props) {
|
|
|
13218
13479
|
function handleKeyChange(event) {
|
|
13219
13480
|
onKeyChange(event.target.value);
|
|
13220
13481
|
}
|
|
13221
|
-
return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "api-key-panel", className:
|
|
13482
|
+
return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "api-key-panel", className: cn85("flex flex-col gap-3", className), children: [
|
|
13222
13483
|
/* @__PURE__ */ jsx(
|
|
13223
13484
|
"div",
|
|
13224
13485
|
{
|
|
@@ -13313,7 +13574,7 @@ MosaicApiKeyPanel.displayName = "MosaicApiKeyPanel";
|
|
|
13313
13574
|
var agentChatRootVariants = cva([
|
|
13314
13575
|
"flex min-h-0 w-full flex-1 flex-col gap-2 overflow-hidden rounded-lg border border-border bg-card"
|
|
13315
13576
|
]);
|
|
13316
|
-
function
|
|
13577
|
+
function cn86(...classes) {
|
|
13317
13578
|
return classes.filter(Boolean).join(" ");
|
|
13318
13579
|
}
|
|
13319
13580
|
function formatPayload2(value) {
|
|
@@ -13449,7 +13710,7 @@ function MosaicAgentChat(props) {
|
|
|
13449
13710
|
setDecisions((previous) => ({ ...previous, [payload.requestId]: decision }));
|
|
13450
13711
|
onApprovalResponse(payload);
|
|
13451
13712
|
}
|
|
13452
|
-
return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "agent-chat", className:
|
|
13713
|
+
return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "agent-chat", className: cn86(agentChatRootVariants(), className), children: [
|
|
13453
13714
|
/* @__PURE__ */ jsx(MosaicChatThread, { scrollToBottomLabel, children: messages.map((message) => /* @__PURE__ */ jsx(
|
|
13454
13715
|
MosaicChatMessage,
|
|
13455
13716
|
{
|
|
@@ -13538,7 +13799,7 @@ var toastProviderPositionVariants = cva(
|
|
|
13538
13799
|
}
|
|
13539
13800
|
}
|
|
13540
13801
|
);
|
|
13541
|
-
function
|
|
13802
|
+
function cn87(...classes) {
|
|
13542
13803
|
return classes.filter(Boolean).join(" ");
|
|
13543
13804
|
}
|
|
13544
13805
|
function MosaicToast({
|
|
@@ -13564,7 +13825,7 @@ function MosaicToast({
|
|
|
13564
13825
|
ref,
|
|
13565
13826
|
"data-slot": "toast",
|
|
13566
13827
|
role,
|
|
13567
|
-
className:
|
|
13828
|
+
className: cn87(toastCardVariants({ variant }), className),
|
|
13568
13829
|
children: [
|
|
13569
13830
|
/* @__PURE__ */ jsxs("div", { "data-slot": "toast-body", className: "flex min-w-0 flex-1 flex-col gap-1", children: [
|
|
13570
13831
|
/* @__PURE__ */ jsx("p", { "data-slot": "toast-title", className: toastTitleVariants({ variant }), children: title }),
|
|
@@ -13604,7 +13865,7 @@ function MosaicToast({
|
|
|
13604
13865
|
);
|
|
13605
13866
|
}
|
|
13606
13867
|
MosaicToast.displayName = "MosaicToast";
|
|
13607
|
-
function
|
|
13868
|
+
function cn88(...classes) {
|
|
13608
13869
|
return classes.filter(Boolean).join(" ");
|
|
13609
13870
|
}
|
|
13610
13871
|
function MosaicToastProvider({
|
|
@@ -13618,7 +13879,7 @@ function MosaicToastProvider({
|
|
|
13618
13879
|
{
|
|
13619
13880
|
ref,
|
|
13620
13881
|
"data-slot": "toast-provider",
|
|
13621
|
-
className:
|
|
13882
|
+
className: cn88(toastProviderPositionVariants({ position }), className),
|
|
13622
13883
|
children
|
|
13623
13884
|
}
|
|
13624
13885
|
);
|
|
@@ -13645,7 +13906,7 @@ var pdfViewerToolbarButtonVariants = cva([
|
|
|
13645
13906
|
"inline-flex min-h-8 min-w-8 items-center justify-center rounded-md border border-border text-sm",
|
|
13646
13907
|
"transition-colors hover:bg-accent/50 disabled:opacity-50 disabled:hover:bg-transparent"
|
|
13647
13908
|
]);
|
|
13648
|
-
function
|
|
13909
|
+
function cn89(...classes) {
|
|
13649
13910
|
return classes.filter(Boolean).join(" ");
|
|
13650
13911
|
}
|
|
13651
13912
|
function buildFrameSrc(fileUrl, currentPage, zoom) {
|
|
@@ -13710,7 +13971,7 @@ function MosaicPdfViewer({
|
|
|
13710
13971
|
if (zoom === void 0 || onZoomChange === void 0) return;
|
|
13711
13972
|
onZoomChange(Math.round((zoom + 0.1) * 100) / 100);
|
|
13712
13973
|
}
|
|
13713
|
-
return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "pdf-viewer", className:
|
|
13974
|
+
return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "pdf-viewer", className: cn89("flex flex-col gap-2", className), children: [
|
|
13714
13975
|
(showPageControls || showZoomControls) && /* @__PURE__ */ jsxs(
|
|
13715
13976
|
"div",
|
|
13716
13977
|
{
|
|
@@ -13799,7 +14060,7 @@ function MosaicPdfViewer({
|
|
|
13799
14060
|
"data-slot": "pdf-viewer-frame",
|
|
13800
14061
|
src: buildFrameSrc(fileUrl, currentPage, zoom),
|
|
13801
14062
|
title: fileUrl,
|
|
13802
|
-
className:
|
|
14063
|
+
className: cn89(
|
|
13803
14064
|
"h-full min-h-64 w-full border-0",
|
|
13804
14065
|
status !== "loaded" && "pointer-events-none absolute inset-0 opacity-0"
|
|
13805
14066
|
)
|
|
@@ -13818,7 +14079,7 @@ var splitPaneCollapseButtonVariants = cva([
|
|
|
13818
14079
|
"inline-flex h-11 w-6 shrink-0 items-center justify-center self-center rounded-md border border-border text-sm",
|
|
13819
14080
|
"transition-colors hover:bg-accent/50"
|
|
13820
14081
|
]);
|
|
13821
|
-
function
|
|
14082
|
+
function cn90(...classes) {
|
|
13822
14083
|
return classes.filter(Boolean).join(" ");
|
|
13823
14084
|
}
|
|
13824
14085
|
function mergeRefs(externalRef, node) {
|
|
@@ -13891,7 +14152,7 @@ function MosaicResizableSplitPane({
|
|
|
13891
14152
|
mergeRefs(ref, node);
|
|
13892
14153
|
},
|
|
13893
14154
|
"data-slot": "resizable-split-pane",
|
|
13894
|
-
className:
|
|
14155
|
+
className: cn90(splitPaneRootVariants(), className),
|
|
13895
14156
|
children: [
|
|
13896
14157
|
/* @__PURE__ */ jsx("div", { "data-slot": "resizable-split-pane-main", className: "min-h-0 min-w-0 flex-1 overflow-auto", children: main }),
|
|
13897
14158
|
!isSideCollapsed && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
@@ -13958,7 +14219,7 @@ var tagInputFieldVariants = cva([
|
|
|
13958
14219
|
"min-w-[6ch] flex-1 border-none bg-transparent px-1 py-0.5 text-sm text-foreground outline-none",
|
|
13959
14220
|
"placeholder:text-muted-foreground"
|
|
13960
14221
|
]);
|
|
13961
|
-
function
|
|
14222
|
+
function cn91(...classes) {
|
|
13962
14223
|
return classes.filter(Boolean).join(" ");
|
|
13963
14224
|
}
|
|
13964
14225
|
function mergeRefs2(externalRef, node) {
|
|
@@ -14009,7 +14270,7 @@ function MosaicTagInput({
|
|
|
14009
14270
|
if (lastTag !== void 0) onRemoveTag(lastTag);
|
|
14010
14271
|
}
|
|
14011
14272
|
}
|
|
14012
|
-
return /* @__PURE__ */ jsxs("div", { "data-slot": "tag-input", className:
|
|
14273
|
+
return /* @__PURE__ */ jsxs("div", { "data-slot": "tag-input", className: cn91(tagInputRootVariants(), className), children: [
|
|
14013
14274
|
tags.map((tag) => /* @__PURE__ */ jsxs("span", { "data-slot": "tag-input-tag", className: tagInputTagVariants(), children: [
|
|
14014
14275
|
tag,
|
|
14015
14276
|
/* @__PURE__ */ jsx(
|
|
@@ -14046,7 +14307,7 @@ function MosaicTagInput({
|
|
|
14046
14307
|
"ul",
|
|
14047
14308
|
{
|
|
14048
14309
|
"data-slot": "tag-input-suggestions",
|
|
14049
|
-
className:
|
|
14310
|
+
className: cn91(
|
|
14050
14311
|
"z-50 mt-1 w-full min-w-[8rem] overflow-hidden rounded-md border border-border",
|
|
14051
14312
|
"bg-popover p-1 text-sm text-popover-foreground shadow-md"
|
|
14052
14313
|
),
|
|
@@ -14086,7 +14347,7 @@ var drawerPopupVariants = cva(
|
|
|
14086
14347
|
}
|
|
14087
14348
|
);
|
|
14088
14349
|
var drawerBackdropVariants = cva(["fixed inset-0 z-50 bg-black/50"]);
|
|
14089
|
-
function
|
|
14350
|
+
function cn92(...classes) {
|
|
14090
14351
|
return classes.filter(Boolean).join(" ");
|
|
14091
14352
|
}
|
|
14092
14353
|
function MosaicDrawer({
|
|
@@ -14098,7 +14359,7 @@ function MosaicDrawer({
|
|
|
14098
14359
|
side = "right",
|
|
14099
14360
|
className
|
|
14100
14361
|
}) {
|
|
14101
|
-
const titleId =
|
|
14362
|
+
const titleId = React30.useId();
|
|
14102
14363
|
return /* @__PURE__ */ jsx(Dialog.Root, { open, onOpenChange: (nextOpen) => onOpenChange(nextOpen), modal: true, children: /* @__PURE__ */ jsxs(Dialog.Portal, { children: [
|
|
14103
14364
|
/* @__PURE__ */ jsx(Dialog.Backdrop, { "data-slot": "drawer-backdrop", className: drawerBackdropVariants() }),
|
|
14104
14365
|
/* @__PURE__ */ jsxs(
|
|
@@ -14107,7 +14368,7 @@ function MosaicDrawer({
|
|
|
14107
14368
|
"data-slot": "drawer",
|
|
14108
14369
|
"aria-labelledby": titleId,
|
|
14109
14370
|
"aria-modal": "true",
|
|
14110
|
-
className:
|
|
14371
|
+
className: cn92(drawerPopupVariants({ side }), className),
|
|
14111
14372
|
children: [
|
|
14112
14373
|
/* @__PURE__ */ jsxs(
|
|
14113
14374
|
"div",
|
|
@@ -14120,7 +14381,7 @@ function MosaicDrawer({
|
|
|
14120
14381
|
Dialog.Close,
|
|
14121
14382
|
{
|
|
14122
14383
|
"aria-label": closeAriaLabel,
|
|
14123
|
-
className:
|
|
14384
|
+
className: cn92(
|
|
14124
14385
|
"flex h-8 w-8 shrink-0 items-center justify-center rounded-md text-muted-foreground transition-colors",
|
|
14125
14386
|
"hover:bg-muted hover:text-foreground",
|
|
14126
14387
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -14174,7 +14435,7 @@ var templateCategoryChipVariants = cva(
|
|
|
14174
14435
|
}
|
|
14175
14436
|
}
|
|
14176
14437
|
);
|
|
14177
|
-
function
|
|
14438
|
+
function cn93(...classes) {
|
|
14178
14439
|
return classes.filter(Boolean).join(" ");
|
|
14179
14440
|
}
|
|
14180
14441
|
function MosaicTemplateCategoryChips({
|
|
@@ -14189,7 +14450,7 @@ function MosaicTemplateCategoryChips({
|
|
|
14189
14450
|
{
|
|
14190
14451
|
ref,
|
|
14191
14452
|
"data-slot": "template-category-chips",
|
|
14192
|
-
className:
|
|
14453
|
+
className: cn93("flex flex-wrap items-center gap-2", className),
|
|
14193
14454
|
children: categories.map((category) => {
|
|
14194
14455
|
const isSelected = category.id === selected;
|
|
14195
14456
|
return /* @__PURE__ */ jsx(
|
|
@@ -14209,7 +14470,287 @@ function MosaicTemplateCategoryChips({
|
|
|
14209
14470
|
);
|
|
14210
14471
|
}
|
|
14211
14472
|
MosaicTemplateCategoryChips.displayName = "MosaicTemplateCategoryChips";
|
|
14473
|
+
var saveTemplateModalBodyVariants = cva(["flex flex-col gap-4"]);
|
|
14474
|
+
var saveTemplateModalFieldVariants = cva(["flex flex-col gap-1.5"]);
|
|
14475
|
+
var saveTemplateModalErrorVariants = cva(["text-xs font-medium text-destructive"]);
|
|
14476
|
+
var saveTemplateModalFooterVariants = cva([
|
|
14477
|
+
"flex items-center justify-end gap-3 border-t border-border pt-4"
|
|
14478
|
+
]);
|
|
14479
|
+
var saveTemplateModalButtonVariants = cva(
|
|
14480
|
+
[
|
|
14481
|
+
"inline-flex min-h-9 items-center justify-center gap-2 rounded-md px-4 text-sm font-medium",
|
|
14482
|
+
"transition-colors disabled:cursor-not-allowed disabled:opacity-50"
|
|
14483
|
+
],
|
|
14484
|
+
{
|
|
14485
|
+
variants: {
|
|
14486
|
+
intent: {
|
|
14487
|
+
cancel: "border border-border bg-background hover:bg-muted",
|
|
14488
|
+
save: "border border-transparent bg-primary text-primary-foreground hover:bg-primary/90"
|
|
14489
|
+
}
|
|
14490
|
+
},
|
|
14491
|
+
defaultVariants: {
|
|
14492
|
+
intent: "cancel"
|
|
14493
|
+
}
|
|
14494
|
+
}
|
|
14495
|
+
);
|
|
14496
|
+
function cn94(...classes) {
|
|
14497
|
+
return classes.filter(Boolean).join(" ");
|
|
14498
|
+
}
|
|
14499
|
+
function MosaicSaveTemplateModal({
|
|
14500
|
+
open,
|
|
14501
|
+
onOpenChange,
|
|
14502
|
+
title,
|
|
14503
|
+
description,
|
|
14504
|
+
closeAriaLabel,
|
|
14505
|
+
name,
|
|
14506
|
+
onNameChange,
|
|
14507
|
+
nameLabel,
|
|
14508
|
+
namePlaceholder,
|
|
14509
|
+
nameError,
|
|
14510
|
+
templateDescription,
|
|
14511
|
+
onTemplateDescriptionChange,
|
|
14512
|
+
descriptionLabel,
|
|
14513
|
+
descriptionPlaceholder,
|
|
14514
|
+
descriptionError,
|
|
14515
|
+
categories,
|
|
14516
|
+
category,
|
|
14517
|
+
onCategoryChange,
|
|
14518
|
+
categoryLabel,
|
|
14519
|
+
tags,
|
|
14520
|
+
onAddTag,
|
|
14521
|
+
onRemoveTag,
|
|
14522
|
+
tagsLabel,
|
|
14523
|
+
tagInputPlaceholder,
|
|
14524
|
+
removeTagAriaLabel,
|
|
14525
|
+
suggestedTags,
|
|
14526
|
+
maxTags,
|
|
14527
|
+
isSaving,
|
|
14528
|
+
canSave,
|
|
14529
|
+
onSave,
|
|
14530
|
+
onCancel,
|
|
14531
|
+
saveButtonLabel,
|
|
14532
|
+
savingLabel,
|
|
14533
|
+
cancelButtonLabel,
|
|
14534
|
+
children,
|
|
14535
|
+
className
|
|
14536
|
+
}) {
|
|
14537
|
+
const nameErrorId = useId();
|
|
14538
|
+
const descriptionErrorId = useId();
|
|
14539
|
+
if (!open) return null;
|
|
14540
|
+
return /* @__PURE__ */ jsx(
|
|
14541
|
+
MosaicAdaptiveModal,
|
|
14542
|
+
{
|
|
14543
|
+
isOpen: open,
|
|
14544
|
+
onClose: () => onOpenChange(false),
|
|
14545
|
+
title,
|
|
14546
|
+
description,
|
|
14547
|
+
closeAriaLabel,
|
|
14548
|
+
children: /* @__PURE__ */ jsxs(
|
|
14549
|
+
"div",
|
|
14550
|
+
{
|
|
14551
|
+
"data-slot": "save-template-modal",
|
|
14552
|
+
className: cn94(saveTemplateModalBodyVariants(), className),
|
|
14553
|
+
children: [
|
|
14554
|
+
/* @__PURE__ */ jsxs("div", { className: saveTemplateModalFieldVariants(), children: [
|
|
14555
|
+
/* @__PURE__ */ jsx(
|
|
14556
|
+
"label",
|
|
14557
|
+
{
|
|
14558
|
+
htmlFor: "mosaic-save-template-name",
|
|
14559
|
+
className: "text-sm font-medium text-foreground",
|
|
14560
|
+
children: nameLabel
|
|
14561
|
+
}
|
|
14562
|
+
),
|
|
14563
|
+
/* @__PURE__ */ jsx(
|
|
14564
|
+
MosaicInput,
|
|
14565
|
+
{
|
|
14566
|
+
id: "mosaic-save-template-name",
|
|
14567
|
+
value: name,
|
|
14568
|
+
placeholder: namePlaceholder,
|
|
14569
|
+
onChange: (e) => onNameChange(e.target.value),
|
|
14570
|
+
"aria-invalid": nameError ? "true" : "false",
|
|
14571
|
+
"aria-describedby": nameError ? nameErrorId : void 0
|
|
14572
|
+
}
|
|
14573
|
+
),
|
|
14574
|
+
nameError && /* @__PURE__ */ jsx("p", { id: nameErrorId, className: saveTemplateModalErrorVariants(), children: nameError })
|
|
14575
|
+
] }),
|
|
14576
|
+
/* @__PURE__ */ jsxs("div", { className: saveTemplateModalFieldVariants(), children: [
|
|
14577
|
+
/* @__PURE__ */ jsx(
|
|
14578
|
+
"label",
|
|
14579
|
+
{
|
|
14580
|
+
htmlFor: "mosaic-save-template-description",
|
|
14581
|
+
className: "text-sm font-medium text-foreground",
|
|
14582
|
+
children: descriptionLabel
|
|
14583
|
+
}
|
|
14584
|
+
),
|
|
14585
|
+
/* @__PURE__ */ jsx(
|
|
14586
|
+
MosaicTextarea,
|
|
14587
|
+
{
|
|
14588
|
+
id: "mosaic-save-template-description",
|
|
14589
|
+
value: templateDescription,
|
|
14590
|
+
placeholder: descriptionPlaceholder,
|
|
14591
|
+
onChange: (e) => onTemplateDescriptionChange(e.target.value),
|
|
14592
|
+
rows: 3,
|
|
14593
|
+
"aria-invalid": descriptionError ? "true" : "false",
|
|
14594
|
+
"aria-describedby": descriptionError ? descriptionErrorId : void 0
|
|
14595
|
+
}
|
|
14596
|
+
),
|
|
14597
|
+
descriptionError && /* @__PURE__ */ jsx("p", { id: descriptionErrorId, className: saveTemplateModalErrorVariants(), children: descriptionError })
|
|
14598
|
+
] }),
|
|
14599
|
+
/* @__PURE__ */ jsxs("div", { className: saveTemplateModalFieldVariants(), children: [
|
|
14600
|
+
/* @__PURE__ */ jsx("span", { className: "text-sm font-medium text-foreground", children: categoryLabel }),
|
|
14601
|
+
/* @__PURE__ */ jsx(
|
|
14602
|
+
MosaicSelect,
|
|
14603
|
+
{
|
|
14604
|
+
items: categories,
|
|
14605
|
+
value: category,
|
|
14606
|
+
onValueChange: (value) => {
|
|
14607
|
+
if (value) onCategoryChange(value);
|
|
14608
|
+
}
|
|
14609
|
+
}
|
|
14610
|
+
)
|
|
14611
|
+
] }),
|
|
14612
|
+
/* @__PURE__ */ jsxs("div", { className: saveTemplateModalFieldVariants(), children: [
|
|
14613
|
+
/* @__PURE__ */ jsx("span", { className: "text-sm font-medium text-foreground", children: tagsLabel }),
|
|
14614
|
+
/* @__PURE__ */ jsx(
|
|
14615
|
+
MosaicTagInput,
|
|
14616
|
+
{
|
|
14617
|
+
tags,
|
|
14618
|
+
onAddTag,
|
|
14619
|
+
onRemoveTag,
|
|
14620
|
+
placeholder: tagInputPlaceholder,
|
|
14621
|
+
removeTagAriaLabel,
|
|
14622
|
+
suggestions: suggestedTags,
|
|
14623
|
+
maxTags
|
|
14624
|
+
}
|
|
14625
|
+
)
|
|
14626
|
+
] }),
|
|
14627
|
+
children,
|
|
14628
|
+
/* @__PURE__ */ jsxs("div", { className: saveTemplateModalFooterVariants(), children: [
|
|
14629
|
+
/* @__PURE__ */ jsx(
|
|
14630
|
+
"button",
|
|
14631
|
+
{
|
|
14632
|
+
type: "button",
|
|
14633
|
+
"data-slot": "save-template-modal-cancel-button",
|
|
14634
|
+
onClick: onCancel,
|
|
14635
|
+
disabled: isSaving,
|
|
14636
|
+
className: saveTemplateModalButtonVariants({ intent: "cancel" }),
|
|
14637
|
+
children: cancelButtonLabel
|
|
14638
|
+
}
|
|
14639
|
+
),
|
|
14640
|
+
/* @__PURE__ */ jsx(
|
|
14641
|
+
"button",
|
|
14642
|
+
{
|
|
14643
|
+
type: "button",
|
|
14644
|
+
"data-slot": "save-template-modal-save-button",
|
|
14645
|
+
onClick: onSave,
|
|
14646
|
+
disabled: !canSave || isSaving,
|
|
14647
|
+
"aria-busy": isSaving ? "true" : "false",
|
|
14648
|
+
className: saveTemplateModalButtonVariants({ intent: "save" }),
|
|
14649
|
+
children: isSaving ? savingLabel : saveButtonLabel
|
|
14650
|
+
}
|
|
14651
|
+
)
|
|
14652
|
+
] })
|
|
14653
|
+
]
|
|
14654
|
+
}
|
|
14655
|
+
)
|
|
14656
|
+
}
|
|
14657
|
+
);
|
|
14658
|
+
}
|
|
14659
|
+
MosaicSaveTemplateModal.displayName = "MosaicSaveTemplateModal";
|
|
14660
|
+
var templateListVariants = cva(["grid gap-4"], {
|
|
14661
|
+
variants: {
|
|
14662
|
+
layout: {
|
|
14663
|
+
grid: "grid-cols-1 sm:grid-cols-2 lg:grid-cols-3",
|
|
14664
|
+
list: "grid-cols-1"
|
|
14665
|
+
}
|
|
14666
|
+
},
|
|
14667
|
+
defaultVariants: {
|
|
14668
|
+
layout: "grid"
|
|
14669
|
+
}
|
|
14670
|
+
});
|
|
14671
|
+
function cn95(...classes) {
|
|
14672
|
+
return classes.filter(Boolean).join(" ");
|
|
14673
|
+
}
|
|
14674
|
+
var NEXT_KEYS = /* @__PURE__ */ new Set(["ArrowRight", "ArrowDown"]);
|
|
14675
|
+
var PREV_KEYS = /* @__PURE__ */ new Set(["ArrowLeft", "ArrowUp"]);
|
|
14676
|
+
function MosaicTemplateList({
|
|
14677
|
+
items,
|
|
14678
|
+
renderItem,
|
|
14679
|
+
layout = "grid",
|
|
14680
|
+
emptyMessage,
|
|
14681
|
+
className,
|
|
14682
|
+
itemClassName,
|
|
14683
|
+
ref
|
|
14684
|
+
}) {
|
|
14685
|
+
const itemRefs = useRef([]);
|
|
14686
|
+
const [focusedIndex, setFocusedIndex] = useState(0);
|
|
14687
|
+
function focusItem(index) {
|
|
14688
|
+
if (items.length === 0) {
|
|
14689
|
+
return;
|
|
14690
|
+
}
|
|
14691
|
+
const clamped = Math.max(0, Math.min(items.length - 1, index));
|
|
14692
|
+
setFocusedIndex(clamped);
|
|
14693
|
+
itemRefs.current[clamped]?.focus();
|
|
14694
|
+
}
|
|
14695
|
+
function handleKeyDown(event, index) {
|
|
14696
|
+
if (NEXT_KEYS.has(event.key)) {
|
|
14697
|
+
event.preventDefault();
|
|
14698
|
+
focusItem(index + 1);
|
|
14699
|
+
} else if (PREV_KEYS.has(event.key)) {
|
|
14700
|
+
event.preventDefault();
|
|
14701
|
+
focusItem(index - 1);
|
|
14702
|
+
} else if (event.key === "Home") {
|
|
14703
|
+
event.preventDefault();
|
|
14704
|
+
focusItem(0);
|
|
14705
|
+
} else if (event.key === "End") {
|
|
14706
|
+
event.preventDefault();
|
|
14707
|
+
focusItem(items.length - 1);
|
|
14708
|
+
}
|
|
14709
|
+
}
|
|
14710
|
+
if (items.length === 0) {
|
|
14711
|
+
return /* @__PURE__ */ jsx(
|
|
14712
|
+
"div",
|
|
14713
|
+
{
|
|
14714
|
+
ref,
|
|
14715
|
+
"data-slot": "template-list",
|
|
14716
|
+
className: cn95(templateListVariants({ layout }), className),
|
|
14717
|
+
children: /* @__PURE__ */ jsx(
|
|
14718
|
+
"p",
|
|
14719
|
+
{
|
|
14720
|
+
"data-slot": "template-list-empty",
|
|
14721
|
+
className: "col-span-full py-12 text-center text-sm text-muted-foreground",
|
|
14722
|
+
children: emptyMessage
|
|
14723
|
+
}
|
|
14724
|
+
)
|
|
14725
|
+
}
|
|
14726
|
+
);
|
|
14727
|
+
}
|
|
14728
|
+
return /* @__PURE__ */ jsx(
|
|
14729
|
+
"ul",
|
|
14730
|
+
{
|
|
14731
|
+
ref,
|
|
14732
|
+
"data-slot": "template-list",
|
|
14733
|
+
className: cn95("list-none", templateListVariants({ layout }), className),
|
|
14734
|
+
children: items.map((item, index) => /* @__PURE__ */ jsx(
|
|
14735
|
+
"li",
|
|
14736
|
+
{
|
|
14737
|
+
ref: (node) => {
|
|
14738
|
+
itemRefs.current[index] = node;
|
|
14739
|
+
},
|
|
14740
|
+
"data-slot": "template-list-item",
|
|
14741
|
+
tabIndex: index === focusedIndex ? 0 : -1,
|
|
14742
|
+
onKeyDown: (event) => handleKeyDown(event, index),
|
|
14743
|
+
onFocus: () => setFocusedIndex(index),
|
|
14744
|
+
className: itemClassName,
|
|
14745
|
+
children: renderItem(item, index)
|
|
14746
|
+
},
|
|
14747
|
+
item.id
|
|
14748
|
+
))
|
|
14749
|
+
}
|
|
14750
|
+
);
|
|
14751
|
+
}
|
|
14752
|
+
MosaicTemplateList.displayName = "MosaicTemplateList";
|
|
14212
14753
|
|
|
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 };
|
|
14754
|
+
export { MosaicAccordion, MosaicAccordionItem, MosaicAccordionPanel, MosaicAccordionTrigger, MosaicActivityFeed, MosaicActivityItem, MosaicAdaptiveGrid, MosaicAdaptiveModal, MosaicAdaptiveNavigation, MosaicAgentBuilderModal, 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, MosaicMarketplaceCard, 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, MosaicSaveTemplateModal, MosaicScrollArea, MosaicSelect, MosaicSelectorModal, MosaicSeparator, MosaicSignInLayout, MosaicSignUpLayout, MosaicSkeleton, MosaicSlider, MosaicStatsGrid, MosaicStepPipeline, MosaicSwitch, MosaicTabs, MosaicTabsList, MosaicTabsPanel, MosaicTabsTrigger, MosaicTagInput, MosaicTemplateAgentCard, MosaicTemplateCard, MosaicTemplateCategoryChips, MosaicTemplateGallery, MosaicTemplateList, MosaicTemplatePreview, MosaicTestimonialsGrid, MosaicTextarea, MosaicThemeProvider, MosaicThemeToggle, MosaicToast, MosaicToastProvider, MosaicToolToggleList, MosaicTooltip, MosaicTooltipContent, MosaicTooltipProvider, MosaicTooltipRoot, MosaicTooltipTrigger, MosaicUrlScraper, MosaicUserButton, Placeholder, agentBuilderModalBackdropVariants, agentBuilderModalPopupVariants, agentChatRootVariants, agentEditorVariants, agentPreviewVariants, alertDialogContentVariants, alertDialogOverlayVariants, badgeVariants, buttonVariants, chatMessageBubbleVariants, chatMessageContainerVariants, chatMessageToolStatusVariants, drawerBackdropVariants, drawerPopupVariants, marketplaceCardVariants, pdfViewerFrameVariants, pdfViewerStatusVariants, pdfViewerToolbarButtonVariants, saveTemplateModalBodyVariants, saveTemplateModalButtonVariants, saveTemplateModalErrorVariants, saveTemplateModalFieldVariants, saveTemplateModalFooterVariants, skeletonVariants, splitPaneCollapseButtonVariants, splitPaneHandleVariants, splitPaneRootVariants, tagInputFieldVariants, tagInputRemoveButtonVariants, tagInputRootVariants, tagInputTagVariants, templateAgentCardBadgeVariants, templateAgentCardTagVariants, templateAgentCardVariants, templateCategoryChipVariants, templateListVariants, toastCardVariants, toastDismissButtonVariants, toastProviderPositionVariants, toastTitleVariants, toolToggleListRowVariants, toolToggleListSectionVariants, useBreakpoint, useDevice, useMosaicWorkspace as useEffectiveWorkspaceId, useIsDesktop, useIsMobile, useIsTablet, useMediaQuery, useMosaicWorkspace, useOrientation, useViewport, version };
|
|
14214
14755
|
//# sourceMappingURL=index.js.map
|
|
14215
14756
|
//# sourceMappingURL=index.js.map
|