@vantageos/mosaic-blocks 0.3.5-alpha → 0.4.0-alpha
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/badge-variants-SYXNq4VQ.d.cts +43 -0
- package/dist/badge-variants-SYXNq4VQ.d.ts +43 -0
- package/dist/index.cjs +1146 -530
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +749 -113
- package/dist/index.d.ts +749 -113
- package/dist/index.js +1144 -531
- package/dist/index.js.map +1 -1
- package/dist/server.cjs +81 -0
- package/dist/server.cjs.map +1 -1
- package/dist/server.d.cts +24 -32
- package/dist/server.d.ts +24 -32
- package/dist/server.js +77 -1
- package/dist/server.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -27,7 +27,7 @@ import { Menu } from '@base-ui/react/menu';
|
|
|
27
27
|
import { AlertDialog } from '@base-ui/react/alert-dialog';
|
|
28
28
|
|
|
29
29
|
// src/version.ts
|
|
30
|
-
var version = "0.
|
|
30
|
+
var version = "0.4.0-alpha";
|
|
31
31
|
function Placeholder({ label = "mosaic-blocks placeholder" }) {
|
|
32
32
|
return /* @__PURE__ */ jsx("div", { "data-mosaic-block": "placeholder", children: label });
|
|
33
33
|
}
|
|
@@ -148,7 +148,16 @@ MosaicSkeleton.displayName = "MosaicSkeleton";
|
|
|
148
148
|
function cn3(...classes) {
|
|
149
149
|
return classes.filter(Boolean).join(" ");
|
|
150
150
|
}
|
|
151
|
-
function MosaicNavbar({
|
|
151
|
+
function MosaicNavbar({
|
|
152
|
+
logo,
|
|
153
|
+
links,
|
|
154
|
+
cta,
|
|
155
|
+
navAriaLabel,
|
|
156
|
+
openMenuAriaLabel,
|
|
157
|
+
closeMenuAriaLabel,
|
|
158
|
+
className,
|
|
159
|
+
ref
|
|
160
|
+
}) {
|
|
152
161
|
const [isScrolled, setIsScrolled] = React27.useState(false);
|
|
153
162
|
const [isHidden, setIsHidden] = React27.useState(false);
|
|
154
163
|
const [isOpen, setIsOpen] = React27.useState(false);
|
|
@@ -178,7 +187,7 @@ function MosaicNavbar({ logo, links, cta, className, ref }) {
|
|
|
178
187
|
"nav",
|
|
179
188
|
{
|
|
180
189
|
ref,
|
|
181
|
-
"aria-label":
|
|
190
|
+
"aria-label": navAriaLabel,
|
|
182
191
|
className: cn3(
|
|
183
192
|
"fixed left-0 right-0 top-0 z-50 px-4 pt-4 mx-auto w-full max-w-6xl transition-all duration-300 ease-out",
|
|
184
193
|
isHidden ? "opacity-0 -translate-y-5 pointer-events-none" : "opacity-100 translate-y-0",
|
|
@@ -233,7 +242,7 @@ function MosaicNavbar({ logo, links, cta, className, ref }) {
|
|
|
233
242
|
"button",
|
|
234
243
|
{
|
|
235
244
|
type: "button",
|
|
236
|
-
"aria-label": isOpen ?
|
|
245
|
+
"aria-label": isOpen ? closeMenuAriaLabel : openMenuAriaLabel,
|
|
237
246
|
"aria-expanded": isOpen,
|
|
238
247
|
"aria-controls": "mosaic-mobile-menu",
|
|
239
248
|
onClick: () => setIsOpen((v) => !v),
|
|
@@ -751,6 +760,8 @@ function MosaicThemeToggle({
|
|
|
751
760
|
onChange,
|
|
752
761
|
className,
|
|
753
762
|
label,
|
|
763
|
+
switchToLightLabel,
|
|
764
|
+
switchToDarkLabel,
|
|
754
765
|
ref
|
|
755
766
|
}) {
|
|
756
767
|
const [theme, setTheme] = React27.useState(() => {
|
|
@@ -773,7 +784,7 @@ function MosaicThemeToggle({
|
|
|
773
784
|
applyTheme(next);
|
|
774
785
|
};
|
|
775
786
|
const isDark = theme === "dark" || theme === "system" && typeof window !== "undefined" && getSystemTheme() === "dark";
|
|
776
|
-
const ariaLabel = label ?? (isDark ?
|
|
787
|
+
const ariaLabel = label ?? (isDark ? switchToLightLabel : switchToDarkLabel);
|
|
777
788
|
return /* @__PURE__ */ jsx(
|
|
778
789
|
"button",
|
|
779
790
|
{
|
|
@@ -1066,7 +1077,7 @@ function MosaicFilterBar({
|
|
|
1066
1077
|
label,
|
|
1067
1078
|
children,
|
|
1068
1079
|
onClearAll,
|
|
1069
|
-
clearLabel
|
|
1080
|
+
clearLabel,
|
|
1070
1081
|
align = "start",
|
|
1071
1082
|
className,
|
|
1072
1083
|
ref
|
|
@@ -2013,7 +2024,7 @@ function MosaicSelect({
|
|
|
2013
2024
|
items,
|
|
2014
2025
|
value,
|
|
2015
2026
|
onValueChange,
|
|
2016
|
-
placeholder
|
|
2027
|
+
placeholder,
|
|
2017
2028
|
defaultValue,
|
|
2018
2029
|
disabled,
|
|
2019
2030
|
required,
|
|
@@ -2134,9 +2145,10 @@ function MosaicCombobox({
|
|
|
2134
2145
|
value,
|
|
2135
2146
|
onValueChange,
|
|
2136
2147
|
defaultValue,
|
|
2137
|
-
placeholder
|
|
2148
|
+
placeholder,
|
|
2138
2149
|
disabled,
|
|
2139
2150
|
name,
|
|
2151
|
+
emptyMessage,
|
|
2140
2152
|
className
|
|
2141
2153
|
}) {
|
|
2142
2154
|
const [inputValue, setInputValue] = React27.useState("");
|
|
@@ -2198,7 +2210,7 @@ function MosaicCombobox({
|
|
|
2198
2210
|
},
|
|
2199
2211
|
item.value
|
|
2200
2212
|
)),
|
|
2201
|
-
/* @__PURE__ */ jsx(Combobox.Empty, { className: "py-2 text-center text-sm text-muted-foreground", children:
|
|
2213
|
+
/* @__PURE__ */ jsx(Combobox.Empty, { className: "py-2 text-center text-sm text-muted-foreground", children: emptyMessage })
|
|
2202
2214
|
] })
|
|
2203
2215
|
}
|
|
2204
2216
|
) }) })
|
|
@@ -2458,7 +2470,8 @@ function MosaicAdaptiveModal({
|
|
|
2458
2470
|
title,
|
|
2459
2471
|
children,
|
|
2460
2472
|
className,
|
|
2461
|
-
description
|
|
2473
|
+
description,
|
|
2474
|
+
closeAriaLabel
|
|
2462
2475
|
}) {
|
|
2463
2476
|
const { isMobile } = useDevice();
|
|
2464
2477
|
const dialogRef = React27.useRef(null);
|
|
@@ -2563,7 +2576,7 @@ function MosaicAdaptiveModal({
|
|
|
2563
2576
|
{
|
|
2564
2577
|
type: "button",
|
|
2565
2578
|
onClick: onClose,
|
|
2566
|
-
"aria-label":
|
|
2579
|
+
"aria-label": closeAriaLabel,
|
|
2567
2580
|
className: "flex h-8 w-8 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-muted hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
2568
2581
|
children: /* @__PURE__ */ jsxs(
|
|
2569
2582
|
"svg",
|
|
@@ -2641,6 +2654,10 @@ function MosaicAdaptiveNavigation({
|
|
|
2641
2654
|
onItemChange,
|
|
2642
2655
|
expandedItems,
|
|
2643
2656
|
onToggleExpanded,
|
|
2657
|
+
stepNavAriaLabel,
|
|
2658
|
+
tabNavAriaLabel,
|
|
2659
|
+
completeStatusLabel,
|
|
2660
|
+
inProgressStatusLabel,
|
|
2644
2661
|
className,
|
|
2645
2662
|
ref
|
|
2646
2663
|
}) {
|
|
@@ -2652,7 +2669,7 @@ function MosaicAdaptiveNavigation({
|
|
|
2652
2669
|
ref,
|
|
2653
2670
|
"data-slot": "adaptive-navigation",
|
|
2654
2671
|
className: cn39("space-y-3", className),
|
|
2655
|
-
"aria-label":
|
|
2672
|
+
"aria-label": stepNavAriaLabel,
|
|
2656
2673
|
children: items.map((item, idx) => {
|
|
2657
2674
|
const isExpanded = expandedItems?.has(item.id) ?? false;
|
|
2658
2675
|
return /* @__PURE__ */ jsxs("div", { className: "overflow-hidden rounded-lg border border-border", children: [
|
|
@@ -2679,7 +2696,7 @@ function MosaicAdaptiveNavigation({
|
|
|
2679
2696
|
),
|
|
2680
2697
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
2681
2698
|
/* @__PURE__ */ jsx("p", { className: "text-base font-medium text-foreground", children: item.title }),
|
|
2682
|
-
/* @__PURE__ */ jsx("p", { className: "mt-0.5 text-xs text-muted-foreground", children: item.isComplete ?
|
|
2699
|
+
/* @__PURE__ */ jsx("p", { className: "mt-0.5 text-xs text-muted-foreground", children: item.isComplete ? completeStatusLabel : inProgressStatusLabel })
|
|
2683
2700
|
] })
|
|
2684
2701
|
] }),
|
|
2685
2702
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 shrink-0", children: [
|
|
@@ -2704,7 +2721,7 @@ function MosaicAdaptiveNavigation({
|
|
|
2704
2721
|
ref,
|
|
2705
2722
|
"data-slot": "adaptive-navigation",
|
|
2706
2723
|
className: cn39("w-full", className),
|
|
2707
|
-
"aria-label":
|
|
2724
|
+
"aria-label": tabNavAriaLabel,
|
|
2708
2725
|
children: /* @__PURE__ */ jsx(
|
|
2709
2726
|
"div",
|
|
2710
2727
|
{
|
|
@@ -2904,6 +2921,12 @@ function MosaicAppSidebar({
|
|
|
2904
2921
|
recentItems = [],
|
|
2905
2922
|
logoSlot,
|
|
2906
2923
|
footerStatus,
|
|
2924
|
+
sidebarAriaLabel,
|
|
2925
|
+
mainNavAriaLabel,
|
|
2926
|
+
quickActionsHeading,
|
|
2927
|
+
recentHeading,
|
|
2928
|
+
collapseSidebarAriaLabel,
|
|
2929
|
+
expandSidebarAriaLabel,
|
|
2907
2930
|
className,
|
|
2908
2931
|
ref
|
|
2909
2932
|
}) {
|
|
@@ -2942,7 +2965,7 @@ function MosaicAppSidebar({
|
|
|
2942
2965
|
transition: "width 280ms ease-in-out",
|
|
2943
2966
|
overflow: "hidden"
|
|
2944
2967
|
},
|
|
2945
|
-
"aria-label":
|
|
2968
|
+
"aria-label": sidebarAriaLabel,
|
|
2946
2969
|
children: [
|
|
2947
2970
|
/* @__PURE__ */ jsx("div", { className: "shrink-0 border-b border-sidebar-border p-4", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
2948
2971
|
!isCollapsed && logoSlot && /* @__PURE__ */ jsx("div", { className: "mosaic-sidebar-label-in flex items-center gap-2 min-w-0", children: logoSlot }),
|
|
@@ -2951,7 +2974,7 @@ function MosaicAppSidebar({
|
|
|
2951
2974
|
{
|
|
2952
2975
|
type: "button",
|
|
2953
2976
|
onClick: onToggleCollapse,
|
|
2954
|
-
"aria-label": isCollapsed ?
|
|
2977
|
+
"aria-label": isCollapsed ? expandSidebarAriaLabel : collapseSidebarAriaLabel,
|
|
2955
2978
|
className: cn40(
|
|
2956
2979
|
"flex h-9 w-9 items-center justify-center rounded-lg transition-colors",
|
|
2957
2980
|
"hover:bg-sidebar-accent text-sidebar-foreground",
|
|
@@ -2963,7 +2986,7 @@ function MosaicAppSidebar({
|
|
|
2963
2986
|
)
|
|
2964
2987
|
] }) }),
|
|
2965
2988
|
/* @__PURE__ */ jsxs("div", { className: "flex-1 overflow-y-auto p-2", style: { scrollbarWidth: "thin" }, children: [
|
|
2966
|
-
navItems.length > 0 && /* @__PURE__ */ jsx("nav", { "aria-label":
|
|
2989
|
+
navItems.length > 0 && /* @__PURE__ */ jsx("nav", { "aria-label": mainNavAriaLabel, children: /* @__PURE__ */ jsx("div", { className: "space-y-0.5", children: navItems.map((item) => {
|
|
2967
2990
|
const isActive = activePath === item.href;
|
|
2968
2991
|
const isSubmenuActive = item.submenu?.some((s) => activePath === s.href) ?? false;
|
|
2969
2992
|
const isExpanded = expandedItems.has(item.id);
|
|
@@ -3026,7 +3049,7 @@ function MosaicAppSidebar({
|
|
|
3026
3049
|
] }, item.id);
|
|
3027
3050
|
}) }) }),
|
|
3028
3051
|
!isCollapsed && quickActions.length > 0 && /* @__PURE__ */ jsxs("div", { className: "mt-6", children: [
|
|
3029
|
-
/* @__PURE__ */ jsx("p", { className: "mb-2 px-3 text-xs font-medium uppercase tracking-wider text-sidebar-foreground/60", children:
|
|
3052
|
+
/* @__PURE__ */ jsx("p", { className: "mb-2 px-3 text-xs font-medium uppercase tracking-wider text-sidebar-foreground/60", children: quickActionsHeading }),
|
|
3030
3053
|
/* @__PURE__ */ jsx("div", { className: "space-y-0.5", children: quickActions.map((action) => /* @__PURE__ */ jsxs(
|
|
3031
3054
|
"button",
|
|
3032
3055
|
{
|
|
@@ -3046,7 +3069,7 @@ function MosaicAppSidebar({
|
|
|
3046
3069
|
)) })
|
|
3047
3070
|
] }),
|
|
3048
3071
|
!isCollapsed && recentItems.length > 0 && /* @__PURE__ */ jsxs("div", { className: "mt-6", children: [
|
|
3049
|
-
/* @__PURE__ */ jsx("p", { className: "mb-2 px-3 text-xs font-medium uppercase tracking-wider text-sidebar-foreground/60", children:
|
|
3072
|
+
/* @__PURE__ */ jsx("p", { className: "mb-2 px-3 text-xs font-medium uppercase tracking-wider text-sidebar-foreground/60", children: recentHeading }),
|
|
3050
3073
|
/* @__PURE__ */ jsx("div", { className: "space-y-1.5", children: recentItems.map((item) => /* @__PURE__ */ jsx(
|
|
3051
3074
|
"div",
|
|
3052
3075
|
{
|
|
@@ -3145,14 +3168,18 @@ function ChevronRightIcon2() {
|
|
|
3145
3168
|
}
|
|
3146
3169
|
function MosaicDashboardLayout({
|
|
3147
3170
|
children,
|
|
3148
|
-
title
|
|
3171
|
+
title,
|
|
3149
3172
|
subtitle,
|
|
3150
3173
|
breadcrumbs,
|
|
3151
3174
|
actions,
|
|
3152
|
-
sidebarProps
|
|
3175
|
+
sidebarProps,
|
|
3153
3176
|
defaultSidebarCollapsed = false,
|
|
3154
|
-
mobileSidebarTitle
|
|
3177
|
+
mobileSidebarTitle,
|
|
3155
3178
|
renderLink,
|
|
3179
|
+
headerAriaLabel,
|
|
3180
|
+
openNavigationAriaLabel,
|
|
3181
|
+
breadcrumbAriaLabel,
|
|
3182
|
+
mobileSidebarCloseAriaLabel,
|
|
3156
3183
|
className,
|
|
3157
3184
|
ref
|
|
3158
3185
|
}) {
|
|
@@ -3184,14 +3211,14 @@ function MosaicDashboardLayout({
|
|
|
3184
3211
|
"header",
|
|
3185
3212
|
{
|
|
3186
3213
|
className: "mosaic-dashboard-header sticky top-0 z-40 shrink-0 border-b border-border/50 bg-background/80 backdrop-blur-sm",
|
|
3187
|
-
"aria-label":
|
|
3214
|
+
"aria-label": headerAriaLabel,
|
|
3188
3215
|
children: /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-4 p-3 md:p-4", children: [
|
|
3189
3216
|
/* @__PURE__ */ jsxs("div", { className: "flex min-w-0 flex-1 items-center gap-2 md:gap-4", children: [
|
|
3190
3217
|
isMobile && /* @__PURE__ */ jsx(
|
|
3191
3218
|
"button",
|
|
3192
3219
|
{
|
|
3193
3220
|
type: "button",
|
|
3194
|
-
"aria-label":
|
|
3221
|
+
"aria-label": openNavigationAriaLabel,
|
|
3195
3222
|
onClick: () => setIsMobileSidebarOpen(true),
|
|
3196
3223
|
className: cn41(
|
|
3197
3224
|
"flex h-11 w-11 shrink-0 items-center justify-center rounded-lg",
|
|
@@ -3204,7 +3231,7 @@ function MosaicDashboardLayout({
|
|
|
3204
3231
|
/* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1", children: [
|
|
3205
3232
|
/* @__PURE__ */ jsx("h1", { className: "truncate text-base font-semibold md:text-lg", children: title }),
|
|
3206
3233
|
subtitle && /* @__PURE__ */ jsx("p", { className: "hidden truncate text-xs text-muted-foreground md:block md:text-sm", children: subtitle }),
|
|
3207
|
-
breadcrumbs && breadcrumbs.length > 0 && /* @__PURE__ */ jsx("nav", { "aria-label":
|
|
3234
|
+
breadcrumbs && breadcrumbs.length > 0 && /* @__PURE__ */ jsx("nav", { "aria-label": breadcrumbAriaLabel, className: "mt-0.5 hidden md:block", children: /* @__PURE__ */ jsx("ol", { className: "flex items-center gap-1.5 text-xs text-muted-foreground", children: breadcrumbs.map((crumb, idx) => {
|
|
3208
3235
|
const isLast = idx === breadcrumbs.length - 1;
|
|
3209
3236
|
return /* @__PURE__ */ jsx("li", { className: "flex items-center gap-1.5", children: isLast ? /* @__PURE__ */ jsx("span", { "aria-current": "page", className: "font-medium text-foreground", children: crumb.label }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
3210
3237
|
crumb.href ? link(crumb.href, crumb.label) : /* @__PURE__ */ jsx("span", { children: crumb.label }),
|
|
@@ -3225,6 +3252,7 @@ function MosaicDashboardLayout({
|
|
|
3225
3252
|
isOpen: isMobileSidebarOpen,
|
|
3226
3253
|
onClose: () => setIsMobileSidebarOpen(false),
|
|
3227
3254
|
title: mobileSidebarTitle,
|
|
3255
|
+
closeAriaLabel: mobileSidebarCloseAriaLabel,
|
|
3228
3256
|
children: /* @__PURE__ */ jsx(
|
|
3229
3257
|
MosaicAppSidebar,
|
|
3230
3258
|
{
|
|
@@ -3498,8 +3526,10 @@ function MosaicActivityItem({ activity, icon, className }) {
|
|
|
3498
3526
|
MosaicActivityItem.displayName = "MosaicActivityItem";
|
|
3499
3527
|
function MosaicActivityFeed({
|
|
3500
3528
|
activities,
|
|
3501
|
-
heading
|
|
3529
|
+
heading,
|
|
3502
3530
|
viewAllHref,
|
|
3531
|
+
viewAllLabel,
|
|
3532
|
+
emptyMessage,
|
|
3503
3533
|
iconMap,
|
|
3504
3534
|
renderLink,
|
|
3505
3535
|
className,
|
|
@@ -3529,12 +3559,12 @@ function MosaicActivityFeed({
|
|
|
3529
3559
|
viewAllHref && link(
|
|
3530
3560
|
viewAllHref,
|
|
3531
3561
|
/* @__PURE__ */ jsxs(Fragment, { children: [
|
|
3532
|
-
|
|
3562
|
+
viewAllLabel,
|
|
3533
3563
|
/* @__PURE__ */ jsx(ArrowRightIcon, {})
|
|
3534
3564
|
] })
|
|
3535
3565
|
)
|
|
3536
3566
|
] }),
|
|
3537
|
-
/* @__PURE__ */ jsx("div", { className: "divide-y divide-border p-2", children: activities.length === 0 ? /* @__PURE__ */ jsx("p", { className: "px-4 py-8 text-center text-sm text-muted-foreground", children:
|
|
3567
|
+
/* @__PURE__ */ jsx("div", { className: "divide-y divide-border p-2", children: activities.length === 0 ? /* @__PURE__ */ jsx("p", { className: "px-4 py-8 text-center text-sm text-muted-foreground", children: emptyMessage }) : activities.map((activity, idx) => /* @__PURE__ */ jsx(
|
|
3538
3568
|
"div",
|
|
3539
3569
|
{
|
|
3540
3570
|
className: "mosaic-activity-row",
|
|
@@ -3714,21 +3744,20 @@ function MosaicAgentComposerDesktop({
|
|
|
3714
3744
|
onCancel,
|
|
3715
3745
|
canSave,
|
|
3716
3746
|
isEditMode = false,
|
|
3717
|
-
labels
|
|
3747
|
+
labels,
|
|
3748
|
+
agentNameLabel,
|
|
3749
|
+
agentNamePlaceholder,
|
|
3750
|
+
instructionsPlaceholder,
|
|
3751
|
+
modelDescriptionLabel,
|
|
3752
|
+
recommendedBadgeLabel,
|
|
3753
|
+
livePreviewHeading,
|
|
3754
|
+
livePreviewSubheading,
|
|
3755
|
+
previewConfigLabel,
|
|
3756
|
+
customInstructionsPreviewLabel,
|
|
3757
|
+
selectAllModulesLabel,
|
|
3758
|
+
unnamedAgentLabel
|
|
3718
3759
|
}) {
|
|
3719
|
-
const L =
|
|
3720
|
-
role: labels.role ?? "Role",
|
|
3721
|
-
persona: labels.persona ?? "Persona",
|
|
3722
|
-
framework: labels.framework ?? "Framework",
|
|
3723
|
-
model: labels.model ?? "Model",
|
|
3724
|
-
customInstructions: labels.customInstructions ?? "Custom Instructions (Optional)",
|
|
3725
|
-
saveLabel: labels.saveLabel ?? (isEditMode ? "Save Changes" : "Create Agent"),
|
|
3726
|
-
cancelLabel: labels.cancelLabel ?? "Cancel",
|
|
3727
|
-
heading: labels.heading ?? "Compose Agent",
|
|
3728
|
-
subheading: labels.subheading ?? "Select modules to build your custom agent",
|
|
3729
|
-
headingEdit: labels.headingEdit ?? "Edit Agent",
|
|
3730
|
-
subheadingEdit: labels.subheadingEdit ?? "Update your agent configuration"
|
|
3731
|
-
};
|
|
3760
|
+
const L = labels;
|
|
3732
3761
|
const allModulesSelected = !!selectedRole && !!selectedPersona && !!selectedFramework && !!selectedModel;
|
|
3733
3762
|
return /* @__PURE__ */ jsxs("div", { "data-slot": "agent-composer-desktop", className: "grid h-full grid-cols-2 gap-6", children: [
|
|
3734
3763
|
/* @__PURE__ */ jsxs("div", { className: "space-y-5 overflow-y-auto pr-3", children: [
|
|
@@ -3746,7 +3775,7 @@ function MosaicAgentComposerDesktop({
|
|
|
3746
3775
|
{
|
|
3747
3776
|
htmlFor: "mosaic-composer-name",
|
|
3748
3777
|
className: "block text-sm font-medium text-foreground",
|
|
3749
|
-
children:
|
|
3778
|
+
children: agentNameLabel
|
|
3750
3779
|
}
|
|
3751
3780
|
),
|
|
3752
3781
|
/* @__PURE__ */ jsx(
|
|
@@ -3756,7 +3785,7 @@ function MosaicAgentComposerDesktop({
|
|
|
3756
3785
|
type: "text",
|
|
3757
3786
|
value: agentName,
|
|
3758
3787
|
onChange: (e) => onAgentNameChange(e.target.value),
|
|
3759
|
-
placeholder:
|
|
3788
|
+
placeholder: agentNamePlaceholder,
|
|
3760
3789
|
className: cn44(
|
|
3761
3790
|
"flex min-h-[48px] w-full rounded-lg border border-input bg-transparent px-3 py-2 text-sm",
|
|
3762
3791
|
"placeholder:text-muted-foreground",
|
|
@@ -3799,13 +3828,13 @@ function MosaicAgentComposerDesktop({
|
|
|
3799
3828
|
/* @__PURE__ */ jsxs("div", { className: "rounded-xl border border-border bg-card", children: [
|
|
3800
3829
|
/* @__PURE__ */ jsxs("div", { className: "border-b border-border px-4 pt-4 pb-3", children: [
|
|
3801
3830
|
/* @__PURE__ */ jsx("h3", { className: "text-sm font-semibold text-foreground", children: L.model }),
|
|
3802
|
-
/* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground mt-0.5", children:
|
|
3831
|
+
/* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground mt-0.5", children: modelDescriptionLabel })
|
|
3803
3832
|
] }),
|
|
3804
3833
|
/* @__PURE__ */ jsx("div", { className: "p-4", children: selectedModel ? /* @__PURE__ */ jsxs("div", { className: "space-y-3", children: [
|
|
3805
3834
|
/* @__PURE__ */ jsx("div", { className: "flex min-h-[72px] items-start gap-3 rounded-lg border border-border bg-muted/30 p-3", children: /* @__PURE__ */ jsxs("div", { className: "flex-1 space-y-1", children: [
|
|
3806
3835
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
3807
3836
|
/* @__PURE__ */ jsx("p", { className: "text-sm font-medium text-foreground", children: selectedModel.name }),
|
|
3808
|
-
selectedModel.recommended && /* @__PURE__ */ jsx("span", { className: "rounded-full bg-primary/10 px-2 py-0.5 text-xs font-medium text-primary", children:
|
|
3837
|
+
selectedModel.recommended && /* @__PURE__ */ jsx("span", { className: "rounded-full bg-primary/10 px-2 py-0.5 text-xs font-medium text-primary", children: recommendedBadgeLabel })
|
|
3809
3838
|
] }),
|
|
3810
3839
|
selectedModel.provider && /* @__PURE__ */ jsx("p", { className: "text-xs capitalize text-muted-foreground", children: selectedModel.provider }),
|
|
3811
3840
|
(selectedModel.contextWindow || selectedModel.pricingLabel) && /* @__PURE__ */ jsxs("p", { className: "text-xs text-muted-foreground", children: [
|
|
@@ -3856,7 +3885,7 @@ function MosaicAgentComposerDesktop({
|
|
|
3856
3885
|
id: "mosaic-composer-instructions",
|
|
3857
3886
|
value: customInstructions,
|
|
3858
3887
|
onChange: (e) => onCustomInstructionsChange(e.target.value),
|
|
3859
|
-
placeholder:
|
|
3888
|
+
placeholder: instructionsPlaceholder,
|
|
3860
3889
|
rows: 5,
|
|
3861
3890
|
className: cn44(
|
|
3862
3891
|
"flex w-full resize-y rounded-lg border border-input bg-transparent px-3 py-2 text-sm",
|
|
@@ -3870,13 +3899,13 @@ function MosaicAgentComposerDesktop({
|
|
|
3870
3899
|
] }),
|
|
3871
3900
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-5 border-l border-border pl-6", children: [
|
|
3872
3901
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
3873
|
-
/* @__PURE__ */ jsx("h2", { className: "text-lg font-semibold text-foreground", children:
|
|
3874
|
-
/* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children:
|
|
3902
|
+
/* @__PURE__ */ jsx("h2", { className: "text-lg font-semibold text-foreground", children: livePreviewHeading }),
|
|
3903
|
+
/* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: livePreviewSubheading })
|
|
3875
3904
|
] }),
|
|
3876
3905
|
/* @__PURE__ */ jsx("hr", { className: "border-border" }),
|
|
3877
3906
|
allModulesSelected ? /* @__PURE__ */ jsxs("div", { className: "flex-1 overflow-y-auto rounded-xl border border-border bg-muted/30 p-4 space-y-4", children: [
|
|
3878
|
-
/* @__PURE__ */ jsx("h3", { className: "font-semibold text-foreground", children: agentName ||
|
|
3879
|
-
/* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground", children:
|
|
3907
|
+
/* @__PURE__ */ jsx("h3", { className: "font-semibold text-foreground", children: agentName || unnamedAgentLabel }),
|
|
3908
|
+
/* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground", children: previewConfigLabel }),
|
|
3880
3909
|
/* @__PURE__ */ jsx("hr", { className: "border-border" }),
|
|
3881
3910
|
/* @__PURE__ */ jsxs("div", { className: "space-y-3 text-sm", children: [
|
|
3882
3911
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
@@ -3917,14 +3946,14 @@ function MosaicAgentComposerDesktop({
|
|
|
3917
3946
|
customInstructions && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
3918
3947
|
/* @__PURE__ */ jsx("hr", { className: "border-border" }),
|
|
3919
3948
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
3920
|
-
/* @__PURE__ */ jsx("p", { className: "font-medium text-foreground", children:
|
|
3949
|
+
/* @__PURE__ */ jsx("p", { className: "font-medium text-foreground", children: customInstructionsPreviewLabel }),
|
|
3921
3950
|
/* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground mt-0.5", children: customInstructions })
|
|
3922
3951
|
] })
|
|
3923
3952
|
] })
|
|
3924
3953
|
] })
|
|
3925
3954
|
] }) : /* @__PURE__ */ jsx("div", { className: "flex flex-1 items-center justify-center text-center", children: /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
3926
3955
|
/* @__PURE__ */ jsx(SparklesIcon, {}),
|
|
3927
|
-
/* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children:
|
|
3956
|
+
/* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: selectAllModulesLabel })
|
|
3928
3957
|
] }) }),
|
|
3929
3958
|
/* @__PURE__ */ jsxs("div", { className: cn44("flex gap-2", isEditMode && onCancel ? "flex-row" : "flex-col"), children: [
|
|
3930
3959
|
isEditMode && onCancel && /* @__PURE__ */ jsx(
|
|
@@ -4050,7 +4079,8 @@ function MobileModuleSlot({
|
|
|
4050
4079
|
module,
|
|
4051
4080
|
onSelect,
|
|
4052
4081
|
onRemove,
|
|
4053
|
-
isLoading
|
|
4082
|
+
isLoading,
|
|
4083
|
+
requiredLabel
|
|
4054
4084
|
}) {
|
|
4055
4085
|
return /* @__PURE__ */ jsxs("div", { className: "rounded-xl border border-border bg-card", children: [
|
|
4056
4086
|
/* @__PURE__ */ jsx("div", { className: "border-b border-border px-4 pt-3 pb-2", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
@@ -4059,7 +4089,7 @@ function MobileModuleSlot({
|
|
|
4059
4089
|
". ",
|
|
4060
4090
|
label
|
|
4061
4091
|
] }),
|
|
4062
|
-
/* @__PURE__ */ jsx("span", { className: "text-xs text-muted-foreground", children:
|
|
4092
|
+
/* @__PURE__ */ jsx("span", { className: "text-xs text-muted-foreground", children: requiredLabel })
|
|
4063
4093
|
] }) }),
|
|
4064
4094
|
/* @__PURE__ */ jsx("div", { className: "p-3", children: module ? /* @__PURE__ */ jsxs("div", { className: "flex min-h-[64px] items-start gap-2 rounded-lg border border-border bg-muted/30 p-3", children: [
|
|
4065
4095
|
module.icon && /* @__PURE__ */ jsx("span", { className: "shrink-0 text-lg", "aria-hidden": "true", children: module.icon }),
|
|
@@ -4163,21 +4193,18 @@ function MosaicAgentComposerMobile({
|
|
|
4163
4193
|
canSave,
|
|
4164
4194
|
isEditMode = false,
|
|
4165
4195
|
isLoading = false,
|
|
4166
|
-
labels
|
|
4196
|
+
labels,
|
|
4197
|
+
agentNameLabel,
|
|
4198
|
+
agentNamePlaceholder,
|
|
4199
|
+
instructionsPlaceholder,
|
|
4200
|
+
recommendedBadgeLabel,
|
|
4201
|
+
requiredLabel,
|
|
4202
|
+
goBackAriaLabel,
|
|
4203
|
+
savingLabel,
|
|
4204
|
+
creatingLabel,
|
|
4205
|
+
optionalInstructionsHelp
|
|
4167
4206
|
}) {
|
|
4168
|
-
const L =
|
|
4169
|
-
role: labels.role ?? "Role",
|
|
4170
|
-
persona: labels.persona ?? "Persona",
|
|
4171
|
-
framework: labels.framework ?? "Framework",
|
|
4172
|
-
model: labels.model ?? "Model",
|
|
4173
|
-
customInstructions: labels.customInstructions ?? "Custom Instructions (Optional)",
|
|
4174
|
-
saveLabel: labels.saveLabel ?? (isEditMode ? "Save Changes" : "Create Agent"),
|
|
4175
|
-
cancelLabel: labels.cancelLabel ?? "Cancel",
|
|
4176
|
-
heading: labels.heading ?? "Compose Agent",
|
|
4177
|
-
subheading: labels.subheading ?? "Select modules to build your custom agent",
|
|
4178
|
-
headingEdit: labels.headingEdit ?? "Edit Agent",
|
|
4179
|
-
subheadingEdit: labels.subheadingEdit ?? "Update your agent configuration"
|
|
4180
|
-
};
|
|
4207
|
+
const L = labels;
|
|
4181
4208
|
const instructionsId = React27.useId();
|
|
4182
4209
|
return /* @__PURE__ */ jsxs("div", { "data-slot": "agent-composer-mobile", className: "flex h-full flex-col", children: [
|
|
4183
4210
|
/* @__PURE__ */ jsxs("div", { className: "shrink-0 sticky top-0 z-10 border-b border-border bg-background px-4 pt-4 pb-3", children: [
|
|
@@ -4188,7 +4215,7 @@ function MosaicAgentComposerMobile({
|
|
|
4188
4215
|
type: "button",
|
|
4189
4216
|
onClick: onCancel,
|
|
4190
4217
|
disabled: isLoading,
|
|
4191
|
-
"aria-label":
|
|
4218
|
+
"aria-label": goBackAriaLabel,
|
|
4192
4219
|
className: "flex h-11 w-11 shrink-0 items-center justify-center rounded-lg text-foreground transition-colors hover:bg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-50",
|
|
4193
4220
|
children: /* @__PURE__ */ jsx(ArrowLeftIcon, {})
|
|
4194
4221
|
}
|
|
@@ -4205,7 +4232,7 @@ function MosaicAgentComposerMobile({
|
|
|
4205
4232
|
{
|
|
4206
4233
|
htmlFor: "mosaic-composer-mobile-name",
|
|
4207
4234
|
className: "block text-sm font-medium text-foreground",
|
|
4208
|
-
children:
|
|
4235
|
+
children: agentNameLabel
|
|
4209
4236
|
}
|
|
4210
4237
|
),
|
|
4211
4238
|
/* @__PURE__ */ jsx(
|
|
@@ -4215,7 +4242,7 @@ function MosaicAgentComposerMobile({
|
|
|
4215
4242
|
type: "text",
|
|
4216
4243
|
value: agentName,
|
|
4217
4244
|
onChange: (e) => onAgentNameChange(e.target.value),
|
|
4218
|
-
placeholder:
|
|
4245
|
+
placeholder: agentNamePlaceholder,
|
|
4219
4246
|
disabled: isLoading,
|
|
4220
4247
|
"aria-required": "true",
|
|
4221
4248
|
"aria-invalid": canSave && !agentName ? "true" : "false",
|
|
@@ -4236,7 +4263,8 @@ function MosaicAgentComposerMobile({
|
|
|
4236
4263
|
module: selectedRole,
|
|
4237
4264
|
onSelect: onSelectRole,
|
|
4238
4265
|
onRemove: onRemoveRole,
|
|
4239
|
-
isLoading
|
|
4266
|
+
isLoading,
|
|
4267
|
+
requiredLabel
|
|
4240
4268
|
}
|
|
4241
4269
|
),
|
|
4242
4270
|
/* @__PURE__ */ jsx(
|
|
@@ -4247,7 +4275,8 @@ function MosaicAgentComposerMobile({
|
|
|
4247
4275
|
module: selectedPersona,
|
|
4248
4276
|
onSelect: onSelectPersona,
|
|
4249
4277
|
onRemove: onRemovePersona,
|
|
4250
|
-
isLoading
|
|
4278
|
+
isLoading,
|
|
4279
|
+
requiredLabel
|
|
4251
4280
|
}
|
|
4252
4281
|
),
|
|
4253
4282
|
/* @__PURE__ */ jsx(
|
|
@@ -4258,7 +4287,8 @@ function MosaicAgentComposerMobile({
|
|
|
4258
4287
|
module: selectedFramework,
|
|
4259
4288
|
onSelect: onSelectFramework,
|
|
4260
4289
|
onRemove: onRemoveFramework,
|
|
4261
|
-
isLoading
|
|
4290
|
+
isLoading,
|
|
4291
|
+
requiredLabel
|
|
4262
4292
|
}
|
|
4263
4293
|
),
|
|
4264
4294
|
/* @__PURE__ */ jsxs("div", { className: "rounded-xl border border-border bg-card", children: [
|
|
@@ -4267,13 +4297,13 @@ function MosaicAgentComposerMobile({
|
|
|
4267
4297
|
"4. ",
|
|
4268
4298
|
L.model
|
|
4269
4299
|
] }),
|
|
4270
|
-
/* @__PURE__ */ jsx("span", { className: "text-xs text-muted-foreground", children:
|
|
4300
|
+
/* @__PURE__ */ jsx("span", { className: "text-xs text-muted-foreground", children: requiredLabel })
|
|
4271
4301
|
] }) }),
|
|
4272
4302
|
/* @__PURE__ */ jsx("div", { className: "p-3", children: selectedModel ? /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
4273
4303
|
/* @__PURE__ */ jsx("div", { className: "flex min-h-[64px] items-start gap-2 rounded-lg border border-border bg-muted/30 p-3", children: /* @__PURE__ */ jsxs("div", { className: "flex-1 space-y-0.5", children: [
|
|
4274
4304
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
4275
4305
|
/* @__PURE__ */ jsx("p", { className: "text-sm font-medium text-foreground", children: selectedModel.name }),
|
|
4276
|
-
selectedModel.recommended && /* @__PURE__ */ jsx("span", { className: "rounded-full bg-primary/10 px-1.5 py-0.5 text-xs font-medium text-primary", children:
|
|
4306
|
+
selectedModel.recommended && /* @__PURE__ */ jsx("span", { className: "rounded-full bg-primary/10 px-1.5 py-0.5 text-xs font-medium text-primary", children: recommendedBadgeLabel })
|
|
4277
4307
|
] }),
|
|
4278
4308
|
selectedModel.provider && /* @__PURE__ */ jsx("p", { className: "text-xs capitalize text-muted-foreground", children: selectedModel.provider }),
|
|
4279
4309
|
(selectedModel.contextWindow || selectedModel.pricingLabel) && /* @__PURE__ */ jsxs("p", { className: "text-xs text-muted-foreground", children: [
|
|
@@ -4319,7 +4349,7 @@ function MosaicAgentComposerMobile({
|
|
|
4319
4349
|
id: instructionsId,
|
|
4320
4350
|
value: customInstructions,
|
|
4321
4351
|
onChange: (e) => onCustomInstructionsChange(e.target.value),
|
|
4322
|
-
placeholder:
|
|
4352
|
+
placeholder: instructionsPlaceholder,
|
|
4323
4353
|
disabled: isLoading,
|
|
4324
4354
|
"aria-describedby": `${instructionsId}-help`,
|
|
4325
4355
|
rows: 4,
|
|
@@ -4331,7 +4361,7 @@ function MosaicAgentComposerMobile({
|
|
|
4331
4361
|
)
|
|
4332
4362
|
}
|
|
4333
4363
|
),
|
|
4334
|
-
/* @__PURE__ */ jsx("p", { id: `${instructionsId}-help`, className: "text-xs text-muted-foreground", children:
|
|
4364
|
+
/* @__PURE__ */ jsx("p", { id: `${instructionsId}-help`, className: "text-xs text-muted-foreground", children: optionalInstructionsHelp })
|
|
4335
4365
|
] })
|
|
4336
4366
|
] }),
|
|
4337
4367
|
/* @__PURE__ */ jsx("div", { className: "shrink-0 sticky bottom-0 z-10 border-t border-border bg-background p-4", children: isEditMode && onCancel ? /* @__PURE__ */ jsxs("div", { className: "flex gap-2", children: [
|
|
@@ -4354,7 +4384,7 @@ function MosaicAgentComposerMobile({
|
|
|
4354
4384
|
className: "flex flex-1 min-h-[48px] items-center justify-center gap-2 rounded-lg bg-primary text-sm font-medium text-primary-foreground transition-colors hover:bg-primary/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-50 disabled:cursor-not-allowed",
|
|
4355
4385
|
children: [
|
|
4356
4386
|
/* @__PURE__ */ jsx(SaveIcon2, {}),
|
|
4357
|
-
isLoading ?
|
|
4387
|
+
isLoading ? savingLabel : L.saveLabel
|
|
4358
4388
|
]
|
|
4359
4389
|
}
|
|
4360
4390
|
)
|
|
@@ -4367,7 +4397,7 @@ function MosaicAgentComposerMobile({
|
|
|
4367
4397
|
className: "flex w-full min-h-[48px] items-center justify-center gap-2 rounded-lg bg-primary text-sm font-medium text-primary-foreground transition-colors hover:bg-primary/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-50 disabled:cursor-not-allowed",
|
|
4368
4398
|
children: [
|
|
4369
4399
|
/* @__PURE__ */ jsx(SparklesIcon2, {}),
|
|
4370
|
-
isLoading ?
|
|
4400
|
+
isLoading ? creatingLabel : L.saveLabel
|
|
4371
4401
|
]
|
|
4372
4402
|
}
|
|
4373
4403
|
) })
|
|
@@ -4429,6 +4459,9 @@ function MosaicModuleCard({
|
|
|
4429
4459
|
onEdit,
|
|
4430
4460
|
isSelected = false,
|
|
4431
4461
|
isCustom = false,
|
|
4462
|
+
customBadgeLabel,
|
|
4463
|
+
editAriaLabel,
|
|
4464
|
+
removeAriaLabel,
|
|
4432
4465
|
className,
|
|
4433
4466
|
ref
|
|
4434
4467
|
}) {
|
|
@@ -4448,7 +4481,7 @@ function MosaicModuleCard({
|
|
|
4448
4481
|
/* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1", children: [
|
|
4449
4482
|
/* @__PURE__ */ jsxs("div", { className: "mb-1 flex items-center gap-2", children: [
|
|
4450
4483
|
/* @__PURE__ */ jsx("h4", { className: "truncate text-sm font-medium text-foreground", children: module.name }),
|
|
4451
|
-
isCustom && /* @__PURE__ */ jsx("span", { className: "shrink-0 rounded-full bg-secondary px-2 py-0.5 text-xs font-medium text-secondary-foreground", children:
|
|
4484
|
+
isCustom && /* @__PURE__ */ jsx("span", { className: "shrink-0 rounded-full bg-secondary px-2 py-0.5 text-xs font-medium text-secondary-foreground", children: customBadgeLabel })
|
|
4452
4485
|
] }),
|
|
4453
4486
|
module.description && /* @__PURE__ */ jsx("p", { className: "mb-2 line-clamp-2 text-xs text-muted-foreground", children: module.description }),
|
|
4454
4487
|
module.details && /* @__PURE__ */ jsx("p", { className: "truncate text-xs font-medium text-muted-foreground/80", children: module.details }),
|
|
@@ -4467,7 +4500,7 @@ function MosaicModuleCard({
|
|
|
4467
4500
|
{
|
|
4468
4501
|
type: "button",
|
|
4469
4502
|
onClick: onEdit,
|
|
4470
|
-
"aria-label":
|
|
4503
|
+
"aria-label": editAriaLabel,
|
|
4471
4504
|
className: "flex h-8 w-8 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-muted hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
4472
4505
|
children: /* @__PURE__ */ jsx(EditIcon, {})
|
|
4473
4506
|
}
|
|
@@ -4477,7 +4510,7 @@ function MosaicModuleCard({
|
|
|
4477
4510
|
{
|
|
4478
4511
|
type: "button",
|
|
4479
4512
|
onClick: onRemove,
|
|
4480
|
-
"aria-label":
|
|
4513
|
+
"aria-label": removeAriaLabel,
|
|
4481
4514
|
className: "flex h-8 w-8 items-center justify-center rounded-md text-destructive transition-colors hover:bg-destructive/10 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
4482
4515
|
children: /* @__PURE__ */ jsx(RemoveIcon, {})
|
|
4483
4516
|
}
|
|
@@ -4536,19 +4569,14 @@ function MosaicDeleteConfirmationDialog({
|
|
|
4536
4569
|
open,
|
|
4537
4570
|
onOpenChange,
|
|
4538
4571
|
onConfirm,
|
|
4539
|
-
itemName,
|
|
4540
|
-
itemType = "item",
|
|
4541
4572
|
title,
|
|
4542
4573
|
description,
|
|
4543
|
-
cancelLabel
|
|
4574
|
+
cancelLabel,
|
|
4544
4575
|
confirmLabel
|
|
4545
4576
|
}) {
|
|
4546
4577
|
React27.useEffect(() => {
|
|
4547
4578
|
injectStyles6();
|
|
4548
4579
|
}, []);
|
|
4549
|
-
const resolvedTitle = title ?? `Delete ${itemType}?`;
|
|
4550
|
-
const resolvedDescription = description ?? `Are you sure you want to delete "${itemName}"? This action cannot be undone.`;
|
|
4551
|
-
const resolvedConfirmLabel = confirmLabel ?? `Delete ${itemType}`;
|
|
4552
4580
|
return /* @__PURE__ */ jsx(AlertDialog.Root, { open, onOpenChange, children: /* @__PURE__ */ jsxs(AlertDialog.Portal, { children: [
|
|
4553
4581
|
/* @__PURE__ */ jsx(
|
|
4554
4582
|
AlertDialog.Backdrop,
|
|
@@ -4567,8 +4595,8 @@ function MosaicDeleteConfirmationDialog({
|
|
|
4567
4595
|
"rounded-lg border border-border bg-background p-6 shadow-xl"
|
|
4568
4596
|
),
|
|
4569
4597
|
children: [
|
|
4570
|
-
/* @__PURE__ */ jsx(AlertDialog.Title, { className: "text-lg font-semibold text-foreground", children:
|
|
4571
|
-
/* @__PURE__ */ jsx(AlertDialog.Description, { className: "mt-2 text-sm text-muted-foreground", children:
|
|
4598
|
+
/* @__PURE__ */ jsx(AlertDialog.Title, { className: "text-lg font-semibold text-foreground", children: title }),
|
|
4599
|
+
/* @__PURE__ */ jsx(AlertDialog.Description, { className: "mt-2 text-sm text-muted-foreground", children: description }),
|
|
4572
4600
|
/* @__PURE__ */ jsxs("div", { className: "mt-6 flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", children: [
|
|
4573
4601
|
/* @__PURE__ */ jsx(
|
|
4574
4602
|
AlertDialog.Close,
|
|
@@ -4594,7 +4622,7 @@ function MosaicDeleteConfirmationDialog({
|
|
|
4594
4622
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
4595
4623
|
"sm:w-auto"
|
|
4596
4624
|
),
|
|
4597
|
-
children:
|
|
4625
|
+
children: confirmLabel
|
|
4598
4626
|
}
|
|
4599
4627
|
)
|
|
4600
4628
|
] })
|
|
@@ -4666,7 +4694,8 @@ function MosaicPreferencesPanel({
|
|
|
4666
4694
|
onChange,
|
|
4667
4695
|
onSave,
|
|
4668
4696
|
isSaving = false,
|
|
4669
|
-
saveLabel
|
|
4697
|
+
saveLabel,
|
|
4698
|
+
savingLabel,
|
|
4670
4699
|
className
|
|
4671
4700
|
}) {
|
|
4672
4701
|
const { isMobile } = useDevice();
|
|
@@ -4748,7 +4777,7 @@ function MosaicPreferencesPanel({
|
|
|
4748
4777
|
]
|
|
4749
4778
|
}
|
|
4750
4779
|
),
|
|
4751
|
-
isSaving ?
|
|
4780
|
+
isSaving ? savingLabel : saveLabel
|
|
4752
4781
|
]
|
|
4753
4782
|
}
|
|
4754
4783
|
) })
|
|
@@ -4785,23 +4814,33 @@ function MosaicProfilePanel({
|
|
|
4785
4814
|
isSaving = false,
|
|
4786
4815
|
onAvatarUpload,
|
|
4787
4816
|
extraSections,
|
|
4788
|
-
saveLabel
|
|
4817
|
+
saveLabel,
|
|
4789
4818
|
onChangePassword,
|
|
4819
|
+
avatarHeading,
|
|
4820
|
+
avatarSubheading,
|
|
4821
|
+
uploadPhotoLabel,
|
|
4822
|
+
personalInfoHeading,
|
|
4823
|
+
personalInfoSubheading,
|
|
4824
|
+
securityHeading,
|
|
4825
|
+
securitySubheading,
|
|
4826
|
+
changePasswordLabel,
|
|
4827
|
+
savingLabel,
|
|
4828
|
+
unnamedUserLabel,
|
|
4790
4829
|
className
|
|
4791
4830
|
}) {
|
|
4792
4831
|
const { isMobile } = useDevice();
|
|
4793
4832
|
return /* @__PURE__ */ jsxs("div", { "data-slot": "profile-panel", className: cn49("space-y-4 md:space-y-6", className), children: [
|
|
4794
4833
|
/* @__PURE__ */ jsxs("div", { className: "rounded-lg border border-border bg-card text-card-foreground shadow-sm", children: [
|
|
4795
4834
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-col space-y-1.5 p-6", children: [
|
|
4796
|
-
/* @__PURE__ */ jsx("h3", { className: "text-lg font-semibold leading-none tracking-tight md:text-xl", children:
|
|
4797
|
-
/* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children:
|
|
4835
|
+
/* @__PURE__ */ jsx("h3", { className: "text-lg font-semibold leading-none tracking-tight md:text-xl", children: avatarHeading }),
|
|
4836
|
+
/* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: avatarSubheading })
|
|
4798
4837
|
] }),
|
|
4799
4838
|
/* @__PURE__ */ jsx("div", { className: "p-6 pt-0", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-4", children: [
|
|
4800
4839
|
/* @__PURE__ */ jsx(
|
|
4801
4840
|
AvatarDisplay,
|
|
4802
4841
|
{
|
|
4803
4842
|
src: avatarSrc,
|
|
4804
|
-
name: displayName ||
|
|
4843
|
+
name: displayName || unnamedUserLabel,
|
|
4805
4844
|
size: isMobile ? "md" : "lg"
|
|
4806
4845
|
}
|
|
4807
4846
|
),
|
|
@@ -4838,7 +4877,7 @@ function MosaicProfilePanel({
|
|
|
4838
4877
|
]
|
|
4839
4878
|
}
|
|
4840
4879
|
),
|
|
4841
|
-
|
|
4880
|
+
uploadPhotoLabel
|
|
4842
4881
|
]
|
|
4843
4882
|
}
|
|
4844
4883
|
)
|
|
@@ -4846,8 +4885,8 @@ function MosaicProfilePanel({
|
|
|
4846
4885
|
] }),
|
|
4847
4886
|
fields.length > 0 && /* @__PURE__ */ jsxs("div", { className: "rounded-lg border border-border bg-card text-card-foreground shadow-sm", children: [
|
|
4848
4887
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-col space-y-1.5 p-6", children: [
|
|
4849
|
-
/* @__PURE__ */ jsx("h3", { className: "text-lg font-semibold leading-none tracking-tight md:text-xl", children:
|
|
4850
|
-
/* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children:
|
|
4888
|
+
/* @__PURE__ */ jsx("h3", { className: "text-lg font-semibold leading-none tracking-tight md:text-xl", children: personalInfoHeading }),
|
|
4889
|
+
/* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: personalInfoSubheading })
|
|
4851
4890
|
] }),
|
|
4852
4891
|
/* @__PURE__ */ jsx("div", { className: "p-6 pt-0 space-y-4 md:space-y-6", children: fields.map((field) => /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
4853
4892
|
/* @__PURE__ */ jsx("label", { htmlFor: field.id, className: "text-base font-medium leading-none", children: field.label }),
|
|
@@ -4888,8 +4927,8 @@ function MosaicProfilePanel({
|
|
|
4888
4927
|
] }),
|
|
4889
4928
|
onChangePassword && /* @__PURE__ */ jsxs("div", { className: "rounded-lg border border-border bg-card text-card-foreground shadow-sm", children: [
|
|
4890
4929
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-col space-y-1.5 p-6", children: [
|
|
4891
|
-
/* @__PURE__ */ jsx("h3", { className: "text-lg font-semibold leading-none tracking-tight md:text-xl", children:
|
|
4892
|
-
/* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children:
|
|
4930
|
+
/* @__PURE__ */ jsx("h3", { className: "text-lg font-semibold leading-none tracking-tight md:text-xl", children: securityHeading }),
|
|
4931
|
+
/* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: securitySubheading })
|
|
4893
4932
|
] }),
|
|
4894
4933
|
/* @__PURE__ */ jsx("div", { className: "p-6 pt-0", children: /* @__PURE__ */ jsx(
|
|
4895
4934
|
"button",
|
|
@@ -4903,7 +4942,7 @@ function MosaicProfilePanel({
|
|
|
4903
4942
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
4904
4943
|
isMobile ? "w-full" : "w-auto"
|
|
4905
4944
|
),
|
|
4906
|
-
children:
|
|
4945
|
+
children: changePasswordLabel
|
|
4907
4946
|
}
|
|
4908
4947
|
) })
|
|
4909
4948
|
] }),
|
|
@@ -4943,7 +4982,7 @@ function MosaicProfilePanel({
|
|
|
4943
4982
|
]
|
|
4944
4983
|
}
|
|
4945
4984
|
),
|
|
4946
|
-
isSaving ?
|
|
4985
|
+
isSaving ? savingLabel : saveLabel
|
|
4947
4986
|
]
|
|
4948
4987
|
}
|
|
4949
4988
|
) })
|
|
@@ -5031,8 +5070,13 @@ function MosaicMainNav({
|
|
|
5031
5070
|
activePath,
|
|
5032
5071
|
isAdmin = false,
|
|
5033
5072
|
renderLink,
|
|
5034
|
-
drawerTitle
|
|
5035
|
-
drawerSubtitle
|
|
5073
|
+
drawerTitle,
|
|
5074
|
+
drawerSubtitle,
|
|
5075
|
+
openMenuAriaLabel,
|
|
5076
|
+
closeMenuAriaLabel,
|
|
5077
|
+
drawerNavAriaLabel,
|
|
5078
|
+
mainNavAriaLabel,
|
|
5079
|
+
adminBadgeLabel,
|
|
5036
5080
|
className
|
|
5037
5081
|
}) {
|
|
5038
5082
|
const { isMobile } = useDevice();
|
|
@@ -5063,7 +5107,7 @@ function MosaicMainNav({
|
|
|
5063
5107
|
"text-foreground hover:bg-accent hover:text-accent-foreground",
|
|
5064
5108
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
5065
5109
|
),
|
|
5066
|
-
"aria-label":
|
|
5110
|
+
"aria-label": openMenuAriaLabel,
|
|
5067
5111
|
"aria-expanded": isOpen,
|
|
5068
5112
|
children: /* @__PURE__ */ jsx(HamburgerIcon, {})
|
|
5069
5113
|
}
|
|
@@ -5074,14 +5118,14 @@ function MosaicMainNav({
|
|
|
5074
5118
|
type: "button",
|
|
5075
5119
|
className: "fixed inset-0 z-40 bg-black/50 cursor-default",
|
|
5076
5120
|
onClick: () => setIsOpen(false),
|
|
5077
|
-
"aria-label":
|
|
5121
|
+
"aria-label": closeMenuAriaLabel,
|
|
5078
5122
|
tabIndex: -1
|
|
5079
5123
|
}
|
|
5080
5124
|
),
|
|
5081
5125
|
/* @__PURE__ */ jsxs(
|
|
5082
5126
|
"dialog",
|
|
5083
5127
|
{
|
|
5084
|
-
"aria-label":
|
|
5128
|
+
"aria-label": drawerNavAriaLabel,
|
|
5085
5129
|
open: isOpen,
|
|
5086
5130
|
"data-open": isOpen ? "true" : "false",
|
|
5087
5131
|
className: cn50(
|
|
@@ -5106,12 +5150,12 @@ function MosaicMainNav({
|
|
|
5106
5150
|
"text-muted-foreground hover:bg-accent hover:text-accent-foreground",
|
|
5107
5151
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
5108
5152
|
),
|
|
5109
|
-
"aria-label":
|
|
5153
|
+
"aria-label": closeMenuAriaLabel,
|
|
5110
5154
|
children: /* @__PURE__ */ jsx(CloseIcon, {})
|
|
5111
5155
|
}
|
|
5112
5156
|
)
|
|
5113
5157
|
] }),
|
|
5114
|
-
/* @__PURE__ */ jsx("nav", { className: "flex flex-col gap-1 p-4", "aria-label":
|
|
5158
|
+
/* @__PURE__ */ jsx("nav", { className: "flex flex-col gap-1 p-4", "aria-label": mainNavAriaLabel, children: filteredItems.map((item) => {
|
|
5115
5159
|
const Icon = item.icon;
|
|
5116
5160
|
const active = isItemActive(item);
|
|
5117
5161
|
const itemClass = cn50(
|
|
@@ -5125,7 +5169,7 @@ function MosaicMainNav({
|
|
|
5125
5169
|
/* @__PURE__ */ jsxs(Fragment, { children: [
|
|
5126
5170
|
Icon && /* @__PURE__ */ jsx(Icon, { className: "h-5 w-5 shrink-0", "aria-hidden": "true" }),
|
|
5127
5171
|
/* @__PURE__ */ jsx("span", { children: item.label }),
|
|
5128
|
-
item.adminOnly && /* @__PURE__ */ jsx("span", { className: "ml-auto rounded bg-primary/10 px-2 py-0.5 text-xs text-primary", children:
|
|
5172
|
+
item.adminOnly && /* @__PURE__ */ jsx("span", { className: "ml-auto rounded bg-primary/10 px-2 py-0.5 text-xs text-primary", children: adminBadgeLabel })
|
|
5129
5173
|
] }),
|
|
5130
5174
|
itemClass,
|
|
5131
5175
|
() => setIsOpen(false)
|
|
@@ -5141,7 +5185,7 @@ function MosaicMainNav({
|
|
|
5141
5185
|
{
|
|
5142
5186
|
"data-slot": "main-nav",
|
|
5143
5187
|
className: cn50("flex items-center gap-1", className),
|
|
5144
|
-
"aria-label":
|
|
5188
|
+
"aria-label": mainNavAriaLabel,
|
|
5145
5189
|
children: filteredItems.map((item) => {
|
|
5146
5190
|
const Icon = item.icon;
|
|
5147
5191
|
const active = isItemActive(item);
|
|
@@ -5156,7 +5200,7 @@ function MosaicMainNav({
|
|
|
5156
5200
|
/* @__PURE__ */ jsxs(Fragment, { children: [
|
|
5157
5201
|
Icon && /* @__PURE__ */ jsx(Icon, { className: "h-4 w-4", "aria-hidden": "true" }),
|
|
5158
5202
|
/* @__PURE__ */ jsx("span", { children: item.label }),
|
|
5159
|
-
item.adminOnly && /* @__PURE__ */ jsx("span", { className: "rounded bg-primary/10 px-1.5 py-0.5 text-xs text-primary", children:
|
|
5203
|
+
item.adminOnly && /* @__PURE__ */ jsx("span", { className: "rounded bg-primary/10 px-1.5 py-0.5 text-xs text-primary", children: adminBadgeLabel })
|
|
5160
5204
|
] }),
|
|
5161
5205
|
itemClass
|
|
5162
5206
|
) }, item.href);
|
|
@@ -5277,6 +5321,15 @@ function MosaicAgentCard({
|
|
|
5277
5321
|
onDelete,
|
|
5278
5322
|
onEdit,
|
|
5279
5323
|
isLoading = false,
|
|
5324
|
+
activeBadgeLabel,
|
|
5325
|
+
agentActionsAriaLabel,
|
|
5326
|
+
deactivateLabel,
|
|
5327
|
+
activateLabel,
|
|
5328
|
+
editLabel,
|
|
5329
|
+
deleteLabel,
|
|
5330
|
+
pauseLabel,
|
|
5331
|
+
startLabel,
|
|
5332
|
+
createdLabel,
|
|
5280
5333
|
className
|
|
5281
5334
|
}) {
|
|
5282
5335
|
const [menuOpen, setMenuOpen] = React27.useState(false);
|
|
@@ -5325,7 +5378,7 @@ function MosaicAgentCard({
|
|
|
5325
5378
|
/* @__PURE__ */ jsxs("div", { className: "min-w-0", children: [
|
|
5326
5379
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
5327
5380
|
/* @__PURE__ */ jsx("p", { className: "truncate text-base font-semibold", children: agent.name }),
|
|
5328
|
-
agent.isActive && /* @__PURE__ */ jsx("span", { className: "shrink-0 rounded-full bg-primary px-2 py-0.5 text-xs font-medium text-primary-foreground", children:
|
|
5381
|
+
agent.isActive && /* @__PURE__ */ jsx("span", { className: "shrink-0 rounded-full bg-primary px-2 py-0.5 text-xs font-medium text-primary-foreground", children: activeBadgeLabel })
|
|
5329
5382
|
] }),
|
|
5330
5383
|
agent.description && /* @__PURE__ */ jsx("p", { className: "mt-0.5 truncate text-sm text-muted-foreground", children: agent.description })
|
|
5331
5384
|
] })
|
|
@@ -5341,7 +5394,7 @@ function MosaicAgentCard({
|
|
|
5341
5394
|
"text-muted-foreground hover:bg-accent hover:text-accent-foreground",
|
|
5342
5395
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
5343
5396
|
),
|
|
5344
|
-
"aria-label":
|
|
5397
|
+
"aria-label": agentActionsAriaLabel,
|
|
5345
5398
|
"aria-haspopup": "menu",
|
|
5346
5399
|
"aria-expanded": menuOpen,
|
|
5347
5400
|
children: /* @__PURE__ */ jsx(MoreVertIcon, {})
|
|
@@ -5373,7 +5426,7 @@ function MosaicAgentCard({
|
|
|
5373
5426
|
),
|
|
5374
5427
|
children: [
|
|
5375
5428
|
agent.isActive ? /* @__PURE__ */ jsx(PauseIcon, {}) : /* @__PURE__ */ jsx(PlayIcon, {}),
|
|
5376
|
-
agent.isActive ?
|
|
5429
|
+
agent.isActive ? deactivateLabel : activateLabel
|
|
5377
5430
|
]
|
|
5378
5431
|
}
|
|
5379
5432
|
),
|
|
@@ -5389,7 +5442,7 @@ function MosaicAgentCard({
|
|
|
5389
5442
|
className: "flex w-full items-center gap-2 px-3 py-2 text-sm text-foreground hover:bg-accent hover:text-accent-foreground",
|
|
5390
5443
|
children: [
|
|
5391
5444
|
/* @__PURE__ */ jsx(EditIcon2, {}),
|
|
5392
|
-
|
|
5445
|
+
editLabel
|
|
5393
5446
|
]
|
|
5394
5447
|
}
|
|
5395
5448
|
),
|
|
@@ -5405,7 +5458,7 @@ function MosaicAgentCard({
|
|
|
5405
5458
|
className: "flex w-full items-center gap-2 px-3 py-2 text-sm text-destructive hover:bg-destructive/10",
|
|
5406
5459
|
children: [
|
|
5407
5460
|
/* @__PURE__ */ jsx(TrashIcon, {}),
|
|
5408
|
-
|
|
5461
|
+
deleteLabel
|
|
5409
5462
|
]
|
|
5410
5463
|
}
|
|
5411
5464
|
)
|
|
@@ -5417,10 +5470,7 @@ function MosaicAgentCard({
|
|
|
5417
5470
|
/* @__PURE__ */ jsxs("div", { className: "mt-3 flex items-center justify-between", children: [
|
|
5418
5471
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
5419
5472
|
agent.type && /* @__PURE__ */ jsx("span", { className: "rounded-md border border-border px-2 py-0.5 text-xs font-medium", children: agent.type }),
|
|
5420
|
-
formattedDate && /* @__PURE__ */
|
|
5421
|
-
"Created ",
|
|
5422
|
-
formattedDate
|
|
5423
|
-
] })
|
|
5473
|
+
formattedDate && /* @__PURE__ */ jsx("span", { className: "text-xs text-muted-foreground", children: createdLabel(formattedDate) })
|
|
5424
5474
|
] }),
|
|
5425
5475
|
onToggleStatus && /* @__PURE__ */ jsx(
|
|
5426
5476
|
"button",
|
|
@@ -5434,7 +5484,7 @@ function MosaicAgentCard({
|
|
|
5434
5484
|
"disabled:pointer-events-none disabled:opacity-50",
|
|
5435
5485
|
agent.isActive ? "bg-secondary text-secondary-foreground hover:bg-secondary/80" : "bg-primary text-primary-foreground hover:bg-primary/90"
|
|
5436
5486
|
),
|
|
5437
|
-
children: agent.isActive ?
|
|
5487
|
+
children: agent.isActive ? pauseLabel : startLabel
|
|
5438
5488
|
}
|
|
5439
5489
|
)
|
|
5440
5490
|
] })
|
|
@@ -5514,10 +5564,13 @@ function PickerContent({
|
|
|
5514
5564
|
available,
|
|
5515
5565
|
onAdd,
|
|
5516
5566
|
onOpenBuilder,
|
|
5517
|
-
createLabel
|
|
5567
|
+
createLabel,
|
|
5568
|
+
quickAddHeading,
|
|
5569
|
+
configureBehaviorCaption,
|
|
5570
|
+
noAgentsAvailableMessage
|
|
5518
5571
|
}) {
|
|
5519
5572
|
return /* @__PURE__ */ jsxs("div", { className: "p-4", children: [
|
|
5520
|
-
/* @__PURE__ */ jsx("h4", { className: "mb-3 font-medium text-foreground", children:
|
|
5573
|
+
/* @__PURE__ */ jsx("h4", { className: "mb-3 font-medium text-foreground", children: quickAddHeading }),
|
|
5521
5574
|
/* @__PURE__ */ jsxs("div", { className: "space-y-1", children: [
|
|
5522
5575
|
available.map((agent) => /* @__PURE__ */ jsxs(
|
|
5523
5576
|
"button",
|
|
@@ -5559,12 +5612,12 @@ function PickerContent({
|
|
|
5559
5612
|
/* @__PURE__ */ jsx(SparklesIcon3, {}),
|
|
5560
5613
|
/* @__PURE__ */ jsxs("div", { className: "text-left", children: [
|
|
5561
5614
|
/* @__PURE__ */ jsx("p", { className: "font-medium text-primary", children: createLabel }),
|
|
5562
|
-
/* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground", children:
|
|
5615
|
+
/* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground", children: configureBehaviorCaption })
|
|
5563
5616
|
] })
|
|
5564
5617
|
]
|
|
5565
5618
|
}
|
|
5566
5619
|
) }),
|
|
5567
|
-
available.length === 0 && !onOpenBuilder && /* @__PURE__ */ jsx("p", { className: "px-3 py-2 text-sm text-muted-foreground", children:
|
|
5620
|
+
available.length === 0 && !onOpenBuilder && /* @__PURE__ */ jsx("p", { className: "px-3 py-2 text-sm text-muted-foreground", children: noAgentsAvailableMessage })
|
|
5568
5621
|
] })
|
|
5569
5622
|
] });
|
|
5570
5623
|
}
|
|
@@ -5575,8 +5628,13 @@ function MosaicQuickAgentSelector({
|
|
|
5575
5628
|
onRemoveAgent,
|
|
5576
5629
|
onOpenBuilder,
|
|
5577
5630
|
maxAgents = 4,
|
|
5578
|
-
addLabel
|
|
5579
|
-
createLabel
|
|
5631
|
+
addLabel,
|
|
5632
|
+
createLabel,
|
|
5633
|
+
quickAddHeading,
|
|
5634
|
+
configureBehaviorCaption,
|
|
5635
|
+
noAgentsAvailableMessage,
|
|
5636
|
+
addAgentModalTitle,
|
|
5637
|
+
closeAriaLabel,
|
|
5580
5638
|
className
|
|
5581
5639
|
}) {
|
|
5582
5640
|
const { isMobile } = useDevice();
|
|
@@ -5670,7 +5728,10 @@ function MosaicQuickAgentSelector({
|
|
|
5670
5728
|
onOpenBuilder();
|
|
5671
5729
|
setPickerOpen(false);
|
|
5672
5730
|
} : void 0,
|
|
5673
|
-
createLabel
|
|
5731
|
+
createLabel,
|
|
5732
|
+
quickAddHeading,
|
|
5733
|
+
configureBehaviorCaption,
|
|
5734
|
+
noAgentsAvailableMessage
|
|
5674
5735
|
}
|
|
5675
5736
|
)
|
|
5676
5737
|
}
|
|
@@ -5680,7 +5741,8 @@ function MosaicQuickAgentSelector({
|
|
|
5680
5741
|
{
|
|
5681
5742
|
isOpen: pickerOpen,
|
|
5682
5743
|
onClose: () => setPickerOpen(false),
|
|
5683
|
-
title:
|
|
5744
|
+
title: addAgentModalTitle,
|
|
5745
|
+
closeAriaLabel,
|
|
5684
5746
|
children: /* @__PURE__ */ jsx(
|
|
5685
5747
|
PickerContent,
|
|
5686
5748
|
{
|
|
@@ -5690,7 +5752,10 @@ function MosaicQuickAgentSelector({
|
|
|
5690
5752
|
onOpenBuilder();
|
|
5691
5753
|
setPickerOpen(false);
|
|
5692
5754
|
} : void 0,
|
|
5693
|
-
createLabel
|
|
5755
|
+
createLabel,
|
|
5756
|
+
quickAddHeading,
|
|
5757
|
+
configureBehaviorCaption,
|
|
5758
|
+
noAgentsAvailableMessage
|
|
5694
5759
|
}
|
|
5695
5760
|
)
|
|
5696
5761
|
}
|
|
@@ -5763,11 +5828,14 @@ function MosaicSelectorModal({
|
|
|
5763
5828
|
selectedId,
|
|
5764
5829
|
onSelect,
|
|
5765
5830
|
categories,
|
|
5766
|
-
searchPlaceholder
|
|
5831
|
+
searchPlaceholder,
|
|
5767
5832
|
columns = 2,
|
|
5768
5833
|
renderPreview,
|
|
5769
|
-
confirmLabel
|
|
5770
|
-
cancelLabel
|
|
5834
|
+
confirmLabel,
|
|
5835
|
+
cancelLabel,
|
|
5836
|
+
allCategoryLabel,
|
|
5837
|
+
emptyMessage,
|
|
5838
|
+
closeAriaLabel
|
|
5771
5839
|
}) {
|
|
5772
5840
|
const [query, setQuery] = React27.useState("");
|
|
5773
5841
|
const [activeCategory, setActiveCategory] = React27.useState("all");
|
|
@@ -5792,131 +5860,141 @@ function MosaicSelectorModal({
|
|
|
5792
5860
|
}
|
|
5793
5861
|
onClose();
|
|
5794
5862
|
};
|
|
5795
|
-
return /* @__PURE__ */ jsx(
|
|
5796
|
-
|
|
5797
|
-
|
|
5798
|
-
|
|
5799
|
-
|
|
5800
|
-
|
|
5801
|
-
|
|
5802
|
-
|
|
5803
|
-
|
|
5804
|
-
|
|
5805
|
-
className:
|
|
5806
|
-
|
|
5807
|
-
"
|
|
5808
|
-
|
|
5863
|
+
return /* @__PURE__ */ jsx(
|
|
5864
|
+
MosaicAdaptiveModal,
|
|
5865
|
+
{
|
|
5866
|
+
isOpen,
|
|
5867
|
+
onClose,
|
|
5868
|
+
title,
|
|
5869
|
+
description,
|
|
5870
|
+
closeAriaLabel,
|
|
5871
|
+
children: /* @__PURE__ */ jsxs("div", { "data-slot": "selector-modal", className: "flex flex-col gap-4 p-4", children: [
|
|
5872
|
+
/* @__PURE__ */ jsxs("div", { className: "relative", children: [
|
|
5873
|
+
/* @__PURE__ */ jsx("span", { className: "absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground", children: /* @__PURE__ */ jsx(SearchIcon, {}) }),
|
|
5874
|
+
/* @__PURE__ */ jsx(
|
|
5875
|
+
"input",
|
|
5876
|
+
{
|
|
5877
|
+
type: "search",
|
|
5878
|
+
value: query,
|
|
5879
|
+
onChange: (e) => setQuery(e.target.value),
|
|
5880
|
+
placeholder: searchPlaceholder,
|
|
5881
|
+
className: cn53(
|
|
5882
|
+
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
5883
|
+
"text-sm text-foreground placeholder:text-muted-foreground",
|
|
5884
|
+
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
5885
|
+
)
|
|
5886
|
+
}
|
|
5809
5887
|
)
|
|
5810
|
-
}
|
|
5811
|
-
|
|
5812
|
-
|
|
5813
|
-
|
|
5814
|
-
|
|
5815
|
-
|
|
5816
|
-
|
|
5817
|
-
|
|
5818
|
-
|
|
5819
|
-
|
|
5820
|
-
|
|
5821
|
-
|
|
5822
|
-
|
|
5823
|
-
children: "All"
|
|
5824
|
-
}
|
|
5825
|
-
),
|
|
5826
|
-
categories.map((cat) => /* @__PURE__ */ jsx(
|
|
5827
|
-
"button",
|
|
5828
|
-
{
|
|
5829
|
-
type: "button",
|
|
5830
|
-
onClick: () => setActiveCategory(cat.id),
|
|
5831
|
-
className: cn53(
|
|
5832
|
-
"shrink-0 rounded-md px-3 py-1.5 text-sm font-medium transition-colors",
|
|
5833
|
-
activeCategory === cat.id ? "bg-primary text-primary-foreground" : "bg-muted text-muted-foreground hover:bg-accent hover:text-accent-foreground"
|
|
5888
|
+
] }),
|
|
5889
|
+
categories && categories.length > 0 && /* @__PURE__ */ jsxs("div", { className: "flex gap-1 overflow-x-auto pb-1", children: [
|
|
5890
|
+
/* @__PURE__ */ jsx(
|
|
5891
|
+
"button",
|
|
5892
|
+
{
|
|
5893
|
+
type: "button",
|
|
5894
|
+
onClick: () => setActiveCategory("all"),
|
|
5895
|
+
className: cn53(
|
|
5896
|
+
"shrink-0 rounded-md px-3 py-1.5 text-sm font-medium transition-colors",
|
|
5897
|
+
activeCategory === "all" ? "bg-primary text-primary-foreground" : "bg-muted text-muted-foreground hover:bg-accent hover:text-accent-foreground"
|
|
5898
|
+
),
|
|
5899
|
+
children: allCategoryLabel
|
|
5900
|
+
}
|
|
5834
5901
|
),
|
|
5835
|
-
|
|
5836
|
-
|
|
5837
|
-
|
|
5838
|
-
|
|
5839
|
-
|
|
5840
|
-
|
|
5841
|
-
|
|
5842
|
-
|
|
5843
|
-
|
|
5844
|
-
|
|
5845
|
-
|
|
5902
|
+
categories.map((cat) => /* @__PURE__ */ jsx(
|
|
5903
|
+
"button",
|
|
5904
|
+
{
|
|
5905
|
+
type: "button",
|
|
5906
|
+
onClick: () => setActiveCategory(cat.id),
|
|
5907
|
+
className: cn53(
|
|
5908
|
+
"shrink-0 rounded-md px-3 py-1.5 text-sm font-medium transition-colors",
|
|
5909
|
+
activeCategory === cat.id ? "bg-primary text-primary-foreground" : "bg-muted text-muted-foreground hover:bg-accent hover:text-accent-foreground"
|
|
5910
|
+
),
|
|
5911
|
+
children: cat.label
|
|
5912
|
+
},
|
|
5913
|
+
cat.id
|
|
5914
|
+
))
|
|
5915
|
+
] }),
|
|
5916
|
+
/* @__PURE__ */ jsxs(
|
|
5917
|
+
"div",
|
|
5918
|
+
{
|
|
5919
|
+
className: cn53(
|
|
5920
|
+
"max-h-[50vh] overflow-y-auto",
|
|
5921
|
+
columns === 2 ? "grid grid-cols-1 gap-3 sm:grid-cols-2" : "flex flex-col gap-3"
|
|
5922
|
+
),
|
|
5923
|
+
children: [
|
|
5924
|
+
filtered.map((item) => {
|
|
5925
|
+
const isSelected = pendingId === item.id;
|
|
5926
|
+
return /* @__PURE__ */ jsxs(
|
|
5927
|
+
"button",
|
|
5928
|
+
{
|
|
5929
|
+
type: "button",
|
|
5930
|
+
onClick: () => setPendingId(item.id),
|
|
5931
|
+
className: cn53(
|
|
5932
|
+
"group relative rounded-lg border p-4 text-left transition-all duration-150",
|
|
5933
|
+
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
5934
|
+
isSelected ? "border-primary bg-primary/5 ring-2 ring-primary" : "border-border bg-card hover:border-primary/50"
|
|
5935
|
+
),
|
|
5936
|
+
children: [
|
|
5937
|
+
isSelected && /* @__PURE__ */ jsx("span", { className: "absolute right-2 top-2 inline-flex h-5 w-5 items-center justify-center rounded-full bg-primary text-primary-foreground", children: /* @__PURE__ */ jsx(CheckIcon3, {}) }),
|
|
5938
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-start gap-2", children: [
|
|
5939
|
+
item.icon && /* @__PURE__ */ jsx("span", { className: "mt-0.5 shrink-0", children: item.icon }),
|
|
5940
|
+
/* @__PURE__ */ jsxs("div", { className: "min-w-0", children: [
|
|
5941
|
+
/* @__PURE__ */ jsx("p", { className: "font-semibold text-sm text-foreground", children: item.name }),
|
|
5942
|
+
item.description && /* @__PURE__ */ jsx("p", { className: "mt-1 text-xs text-muted-foreground line-clamp-2", children: item.description }),
|
|
5943
|
+
item.tags && item.tags.length > 0 && /* @__PURE__ */ jsx("div", { className: "mt-2 flex flex-wrap gap-1", children: item.tags.slice(0, 3).map((tag) => /* @__PURE__ */ jsx(
|
|
5944
|
+
"span",
|
|
5945
|
+
{
|
|
5946
|
+
className: "rounded bg-muted px-1.5 py-0.5 text-xs text-muted-foreground",
|
|
5947
|
+
children: tag
|
|
5948
|
+
},
|
|
5949
|
+
tag
|
|
5950
|
+
)) })
|
|
5951
|
+
] })
|
|
5952
|
+
] })
|
|
5953
|
+
]
|
|
5954
|
+
},
|
|
5955
|
+
item.id
|
|
5956
|
+
);
|
|
5957
|
+
}),
|
|
5958
|
+
filtered.length === 0 && /* @__PURE__ */ jsx("p", { className: "col-span-2 py-8 text-center text-sm text-muted-foreground", children: emptyMessage })
|
|
5959
|
+
]
|
|
5960
|
+
}
|
|
5846
5961
|
),
|
|
5847
|
-
children:
|
|
5848
|
-
|
|
5849
|
-
|
|
5850
|
-
|
|
5851
|
-
|
|
5852
|
-
|
|
5853
|
-
|
|
5854
|
-
|
|
5855
|
-
|
|
5856
|
-
|
|
5857
|
-
|
|
5858
|
-
|
|
5859
|
-
|
|
5860
|
-
|
|
5861
|
-
|
|
5862
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-start gap-2", children: [
|
|
5863
|
-
item.icon && /* @__PURE__ */ jsx("span", { className: "mt-0.5 shrink-0", children: item.icon }),
|
|
5864
|
-
/* @__PURE__ */ jsxs("div", { className: "min-w-0", children: [
|
|
5865
|
-
/* @__PURE__ */ jsx("p", { className: "font-semibold text-sm text-foreground", children: item.name }),
|
|
5866
|
-
item.description && /* @__PURE__ */ jsx("p", { className: "mt-1 text-xs text-muted-foreground line-clamp-2", children: item.description }),
|
|
5867
|
-
item.tags && item.tags.length > 0 && /* @__PURE__ */ jsx("div", { className: "mt-2 flex flex-wrap gap-1", children: item.tags.slice(0, 3).map((tag) => /* @__PURE__ */ jsx(
|
|
5868
|
-
"span",
|
|
5869
|
-
{
|
|
5870
|
-
className: "rounded bg-muted px-1.5 py-0.5 text-xs text-muted-foreground",
|
|
5871
|
-
children: tag
|
|
5872
|
-
},
|
|
5873
|
-
tag
|
|
5874
|
-
)) })
|
|
5875
|
-
] })
|
|
5876
|
-
] })
|
|
5877
|
-
]
|
|
5878
|
-
},
|
|
5879
|
-
item.id
|
|
5880
|
-
);
|
|
5881
|
-
}),
|
|
5882
|
-
filtered.length === 0 && /* @__PURE__ */ jsx("p", { className: "col-span-2 py-8 text-center text-sm text-muted-foreground", children: "No results found." })
|
|
5883
|
-
]
|
|
5884
|
-
}
|
|
5885
|
-
),
|
|
5886
|
-
renderPreview && pendingItem && /* @__PURE__ */ jsx("div", { className: "rounded-lg border border-border bg-card p-4", children: renderPreview(pendingItem) }),
|
|
5887
|
-
/* @__PURE__ */ jsxs("div", { className: "flex justify-end gap-2 pt-2", children: [
|
|
5888
|
-
/* @__PURE__ */ jsx(
|
|
5889
|
-
"button",
|
|
5890
|
-
{
|
|
5891
|
-
type: "button",
|
|
5892
|
-
onClick: onClose,
|
|
5893
|
-
className: cn53(
|
|
5894
|
-
"inline-flex min-h-[44px] items-center justify-center rounded-md border border-border",
|
|
5895
|
-
"bg-background px-4 py-2 text-sm font-medium text-foreground",
|
|
5896
|
-
"hover:bg-accent hover:text-accent-foreground",
|
|
5897
|
-
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
5898
|
-
),
|
|
5899
|
-
children: cancelLabel
|
|
5900
|
-
}
|
|
5901
|
-
),
|
|
5902
|
-
/* @__PURE__ */ jsx(
|
|
5903
|
-
"button",
|
|
5904
|
-
{
|
|
5905
|
-
type: "button",
|
|
5906
|
-
onClick: handleConfirm,
|
|
5907
|
-
disabled: !pendingItem,
|
|
5908
|
-
className: cn53(
|
|
5909
|
-
"inline-flex min-h-[44px] items-center justify-center rounded-md",
|
|
5910
|
-
"bg-primary px-4 py-2 text-sm font-medium text-primary-foreground",
|
|
5911
|
-
"hover:bg-primary/90",
|
|
5912
|
-
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
5913
|
-
"disabled:pointer-events-none disabled:opacity-50"
|
|
5962
|
+
renderPreview && pendingItem && /* @__PURE__ */ jsx("div", { className: "rounded-lg border border-border bg-card p-4", children: renderPreview(pendingItem) }),
|
|
5963
|
+
/* @__PURE__ */ jsxs("div", { className: "flex justify-end gap-2 pt-2", children: [
|
|
5964
|
+
/* @__PURE__ */ jsx(
|
|
5965
|
+
"button",
|
|
5966
|
+
{
|
|
5967
|
+
type: "button",
|
|
5968
|
+
onClick: onClose,
|
|
5969
|
+
className: cn53(
|
|
5970
|
+
"inline-flex min-h-[44px] items-center justify-center rounded-md border border-border",
|
|
5971
|
+
"bg-background px-4 py-2 text-sm font-medium text-foreground",
|
|
5972
|
+
"hover:bg-accent hover:text-accent-foreground",
|
|
5973
|
+
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
5974
|
+
),
|
|
5975
|
+
children: cancelLabel
|
|
5976
|
+
}
|
|
5914
5977
|
),
|
|
5915
|
-
|
|
5916
|
-
|
|
5917
|
-
|
|
5918
|
-
|
|
5919
|
-
|
|
5978
|
+
/* @__PURE__ */ jsx(
|
|
5979
|
+
"button",
|
|
5980
|
+
{
|
|
5981
|
+
type: "button",
|
|
5982
|
+
onClick: handleConfirm,
|
|
5983
|
+
disabled: !pendingItem,
|
|
5984
|
+
className: cn53(
|
|
5985
|
+
"inline-flex min-h-[44px] items-center justify-center rounded-md",
|
|
5986
|
+
"bg-primary px-4 py-2 text-sm font-medium text-primary-foreground",
|
|
5987
|
+
"hover:bg-primary/90",
|
|
5988
|
+
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
5989
|
+
"disabled:pointer-events-none disabled:opacity-50"
|
|
5990
|
+
),
|
|
5991
|
+
children: confirmLabel
|
|
5992
|
+
}
|
|
5993
|
+
)
|
|
5994
|
+
] })
|
|
5995
|
+
] })
|
|
5996
|
+
}
|
|
5997
|
+
);
|
|
5920
5998
|
}
|
|
5921
5999
|
MosaicSelectorModal.displayName = "MosaicSelectorModal";
|
|
5922
6000
|
function cn54(...classes) {
|
|
@@ -6110,6 +6188,13 @@ function MosaicMessageCard({
|
|
|
6110
6188
|
onCopy,
|
|
6111
6189
|
showThread = true,
|
|
6112
6190
|
compact = false,
|
|
6191
|
+
replyLabel,
|
|
6192
|
+
moreOptionsAriaLabel,
|
|
6193
|
+
removeBookmarkAriaLabel,
|
|
6194
|
+
bookmarkAriaLabel,
|
|
6195
|
+
removeBookmarkLabel,
|
|
6196
|
+
bookmarkLabel,
|
|
6197
|
+
copyMessageLabel,
|
|
6113
6198
|
className
|
|
6114
6199
|
}) {
|
|
6115
6200
|
const [bookmarked, setBookmarked] = React27.useState(message.bookmarked ?? false);
|
|
@@ -6271,7 +6356,7 @@ function MosaicMessageCard({
|
|
|
6271
6356
|
className: "inline-flex h-8 items-center gap-1 rounded-md px-2 text-xs hover:bg-accent hover:text-accent-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
6272
6357
|
children: [
|
|
6273
6358
|
icons.reply,
|
|
6274
|
-
/* @__PURE__ */ jsx("span", { children:
|
|
6359
|
+
/* @__PURE__ */ jsx("span", { children: replyLabel })
|
|
6275
6360
|
]
|
|
6276
6361
|
}
|
|
6277
6362
|
)
|
|
@@ -6288,7 +6373,7 @@ function MosaicMessageCard({
|
|
|
6288
6373
|
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
6289
6374
|
bookmarked && "text-primary"
|
|
6290
6375
|
),
|
|
6291
|
-
"aria-label": bookmarked ?
|
|
6376
|
+
"aria-label": bookmarked ? removeBookmarkAriaLabel : bookmarkAriaLabel,
|
|
6292
6377
|
"aria-pressed": bookmarked,
|
|
6293
6378
|
children: icons.bookmark
|
|
6294
6379
|
}
|
|
@@ -6300,7 +6385,7 @@ function MosaicMessageCard({
|
|
|
6300
6385
|
type: "button",
|
|
6301
6386
|
onClick: () => setMenuOpen((v) => !v),
|
|
6302
6387
|
className: "inline-flex h-8 w-8 items-center justify-center rounded-md hover:bg-accent hover:text-accent-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
6303
|
-
"aria-label":
|
|
6388
|
+
"aria-label": moreOptionsAriaLabel,
|
|
6304
6389
|
"aria-haspopup": "menu",
|
|
6305
6390
|
children: icons.more
|
|
6306
6391
|
}
|
|
@@ -6323,7 +6408,7 @@ function MosaicMessageCard({
|
|
|
6323
6408
|
className: "flex w-full items-center gap-2 px-3 py-2 text-sm text-foreground hover:bg-accent hover:text-accent-foreground",
|
|
6324
6409
|
children: [
|
|
6325
6410
|
icons.copy,
|
|
6326
|
-
|
|
6411
|
+
copyMessageLabel
|
|
6327
6412
|
]
|
|
6328
6413
|
}
|
|
6329
6414
|
),
|
|
@@ -6339,7 +6424,7 @@ function MosaicMessageCard({
|
|
|
6339
6424
|
className: "flex w-full items-center gap-2 px-3 py-2 text-sm text-foreground hover:bg-accent hover:text-accent-foreground",
|
|
6340
6425
|
children: [
|
|
6341
6426
|
icons.reply,
|
|
6342
|
-
|
|
6427
|
+
replyLabel
|
|
6343
6428
|
]
|
|
6344
6429
|
}
|
|
6345
6430
|
),
|
|
@@ -6355,7 +6440,7 @@ function MosaicMessageCard({
|
|
|
6355
6440
|
className: "flex w-full items-center gap-2 px-3 py-2 text-sm text-foreground hover:bg-accent hover:text-accent-foreground",
|
|
6356
6441
|
children: [
|
|
6357
6442
|
icons.bookmark,
|
|
6358
|
-
bookmarked ?
|
|
6443
|
+
bookmarked ? removeBookmarkLabel : bookmarkLabel
|
|
6359
6444
|
]
|
|
6360
6445
|
}
|
|
6361
6446
|
)
|
|
@@ -6417,6 +6502,16 @@ function MessageListDesktop({
|
|
|
6417
6502
|
hasMore,
|
|
6418
6503
|
title,
|
|
6419
6504
|
isLoading,
|
|
6505
|
+
searchPlaceholder,
|
|
6506
|
+
emptyMessage,
|
|
6507
|
+
loadMoreLabel,
|
|
6508
|
+
replyLabel,
|
|
6509
|
+
moreOptionsAriaLabel,
|
|
6510
|
+
removeBookmarkAriaLabel,
|
|
6511
|
+
bookmarkAriaLabel,
|
|
6512
|
+
removeBookmarkLabel,
|
|
6513
|
+
bookmarkLabel,
|
|
6514
|
+
copyMessageLabel,
|
|
6420
6515
|
className
|
|
6421
6516
|
}) {
|
|
6422
6517
|
const [query, setQuery] = React27.useState("");
|
|
@@ -6434,7 +6529,7 @@ function MessageListDesktop({
|
|
|
6434
6529
|
type: "search",
|
|
6435
6530
|
value: query,
|
|
6436
6531
|
onChange: (e) => setQuery(e.target.value),
|
|
6437
|
-
placeholder:
|
|
6532
|
+
placeholder: searchPlaceholder,
|
|
6438
6533
|
className: cn55(
|
|
6439
6534
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
6440
6535
|
"text-sm placeholder:text-muted-foreground",
|
|
@@ -6453,11 +6548,18 @@ function MessageListDesktop({
|
|
|
6453
6548
|
onReply,
|
|
6454
6549
|
onReaction,
|
|
6455
6550
|
onBookmark,
|
|
6456
|
-
onCopy
|
|
6551
|
+
onCopy,
|
|
6552
|
+
replyLabel,
|
|
6553
|
+
moreOptionsAriaLabel,
|
|
6554
|
+
removeBookmarkAriaLabel,
|
|
6555
|
+
bookmarkAriaLabel,
|
|
6556
|
+
removeBookmarkLabel,
|
|
6557
|
+
bookmarkLabel,
|
|
6558
|
+
copyMessageLabel
|
|
6457
6559
|
},
|
|
6458
6560
|
message.id
|
|
6459
6561
|
)),
|
|
6460
|
-
!isLoading && filtered.length === 0 && /* @__PURE__ */ jsx("p", { className: "py-12 text-center text-sm text-muted-foreground", children:
|
|
6562
|
+
!isLoading && filtered.length === 0 && /* @__PURE__ */ jsx("p", { className: "py-12 text-center text-sm text-muted-foreground", children: emptyMessage })
|
|
6461
6563
|
] }),
|
|
6462
6564
|
hasMore && /* @__PURE__ */ jsx("div", { className: "border-t border-border p-4", children: /* @__PURE__ */ jsx(
|
|
6463
6565
|
"button",
|
|
@@ -6469,7 +6571,7 @@ function MessageListDesktop({
|
|
|
6469
6571
|
"hover:bg-accent hover:text-accent-foreground",
|
|
6470
6572
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
6471
6573
|
),
|
|
6472
|
-
children:
|
|
6574
|
+
children: loadMoreLabel
|
|
6473
6575
|
}
|
|
6474
6576
|
) })
|
|
6475
6577
|
] });
|
|
@@ -6484,6 +6586,15 @@ function MessageListMobile({
|
|
|
6484
6586
|
hasMore,
|
|
6485
6587
|
title,
|
|
6486
6588
|
isLoading,
|
|
6589
|
+
emptyMessage,
|
|
6590
|
+
loadMoreLabel,
|
|
6591
|
+
replyLabel,
|
|
6592
|
+
moreOptionsAriaLabel,
|
|
6593
|
+
removeBookmarkAriaLabel,
|
|
6594
|
+
bookmarkAriaLabel,
|
|
6595
|
+
removeBookmarkLabel,
|
|
6596
|
+
bookmarkLabel,
|
|
6597
|
+
copyMessageLabel,
|
|
6487
6598
|
className
|
|
6488
6599
|
}) {
|
|
6489
6600
|
return /* @__PURE__ */ jsxs("div", { "data-slot": "message-list-mobile", className: cn55("flex flex-col", className), children: [
|
|
@@ -6498,11 +6609,18 @@ function MessageListMobile({
|
|
|
6498
6609
|
onReaction,
|
|
6499
6610
|
onBookmark,
|
|
6500
6611
|
onCopy,
|
|
6612
|
+
replyLabel,
|
|
6613
|
+
moreOptionsAriaLabel,
|
|
6614
|
+
removeBookmarkAriaLabel,
|
|
6615
|
+
bookmarkAriaLabel,
|
|
6616
|
+
removeBookmarkLabel,
|
|
6617
|
+
bookmarkLabel,
|
|
6618
|
+
copyMessageLabel,
|
|
6501
6619
|
compact: true
|
|
6502
6620
|
},
|
|
6503
6621
|
message.id
|
|
6504
6622
|
)),
|
|
6505
|
-
!isLoading && messages.length === 0 && /* @__PURE__ */ jsx("p", { className: "py-10 text-center text-sm text-muted-foreground", children:
|
|
6623
|
+
!isLoading && messages.length === 0 && /* @__PURE__ */ jsx("p", { className: "py-10 text-center text-sm text-muted-foreground", children: emptyMessage })
|
|
6506
6624
|
] }),
|
|
6507
6625
|
hasMore && /* @__PURE__ */ jsx("div", { className: "px-4 pb-4", children: /* @__PURE__ */ jsx(
|
|
6508
6626
|
"button",
|
|
@@ -6514,7 +6632,7 @@ function MessageListMobile({
|
|
|
6514
6632
|
"hover:bg-accent hover:text-accent-foreground",
|
|
6515
6633
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
6516
6634
|
),
|
|
6517
|
-
children:
|
|
6635
|
+
children: loadMoreLabel
|
|
6518
6636
|
}
|
|
6519
6637
|
) })
|
|
6520
6638
|
] });
|
|
@@ -6590,7 +6708,11 @@ function MosaicFilterSidebar({
|
|
|
6590
6708
|
categories = [],
|
|
6591
6709
|
selectedCategory,
|
|
6592
6710
|
onCategoryChange,
|
|
6593
|
-
title
|
|
6711
|
+
title,
|
|
6712
|
+
expandFiltersAriaLabel,
|
|
6713
|
+
categoriesHeading,
|
|
6714
|
+
collapseSidebarAriaLabel,
|
|
6715
|
+
expandSidebarAriaLabel,
|
|
6594
6716
|
className
|
|
6595
6717
|
}) {
|
|
6596
6718
|
const { isMobile, isTablet } = useDevice();
|
|
@@ -6618,7 +6740,7 @@ function MosaicFilterSidebar({
|
|
|
6618
6740
|
"hover:bg-accent hover:text-accent-foreground",
|
|
6619
6741
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
6620
6742
|
),
|
|
6621
|
-
"aria-label": isCollapsed ?
|
|
6743
|
+
"aria-label": isCollapsed ? expandSidebarAriaLabel : collapseSidebarAriaLabel,
|
|
6622
6744
|
children: isCollapsed ? /* @__PURE__ */ jsx(ChevronRightIcon3, {}) : /* @__PURE__ */ jsx(ChevronLeftIcon2, {})
|
|
6623
6745
|
}
|
|
6624
6746
|
),
|
|
@@ -6628,7 +6750,7 @@ function MosaicFilterSidebar({
|
|
|
6628
6750
|
type: "button",
|
|
6629
6751
|
onClick: onToggleCollapse,
|
|
6630
6752
|
className: "flex h-10 w-10 items-center justify-center rounded-md text-muted-foreground hover:bg-accent hover:text-accent-foreground",
|
|
6631
|
-
"aria-label":
|
|
6753
|
+
"aria-label": expandFiltersAriaLabel,
|
|
6632
6754
|
children: /* @__PURE__ */ jsx(FilterIcon, {})
|
|
6633
6755
|
}
|
|
6634
6756
|
) }),
|
|
@@ -6656,7 +6778,7 @@ function MosaicFilterSidebar({
|
|
|
6656
6778
|
f.id
|
|
6657
6779
|
)) }),
|
|
6658
6780
|
categories.length > 0 && /* @__PURE__ */ jsxs("div", { children: [
|
|
6659
|
-
/* @__PURE__ */ jsx("p", { className: "mb-2 text-xs font-semibold uppercase tracking-wide text-muted-foreground", children:
|
|
6781
|
+
/* @__PURE__ */ jsx("p", { className: "mb-2 text-xs font-semibold uppercase tracking-wide text-muted-foreground", children: categoriesHeading }),
|
|
6660
6782
|
/* @__PURE__ */ jsx("div", { className: "flex flex-col gap-1", children: categories.map((cat) => /* @__PURE__ */ jsxs(
|
|
6661
6783
|
"button",
|
|
6662
6784
|
{
|
|
@@ -6758,9 +6880,15 @@ function AgentListDesktop({
|
|
|
6758
6880
|
onEditAgent,
|
|
6759
6881
|
onCreateAgent,
|
|
6760
6882
|
headerActions,
|
|
6761
|
-
title
|
|
6762
|
-
searchPlaceholder
|
|
6763
|
-
createLabel
|
|
6883
|
+
title,
|
|
6884
|
+
searchPlaceholder,
|
|
6885
|
+
createLabel,
|
|
6886
|
+
emptyMessage,
|
|
6887
|
+
agentCardLabels,
|
|
6888
|
+
expandFiltersAriaLabel,
|
|
6889
|
+
categoriesHeading,
|
|
6890
|
+
collapseSidebarAriaLabel,
|
|
6891
|
+
expandSidebarAriaLabel
|
|
6764
6892
|
}) {
|
|
6765
6893
|
const [query, setQuery] = React27.useState("");
|
|
6766
6894
|
const [sidebarCollapsed, setSidebarCollapsed] = React27.useState(false);
|
|
@@ -6783,7 +6911,11 @@ function AgentListDesktop({
|
|
|
6783
6911
|
onFilterChange,
|
|
6784
6912
|
categories,
|
|
6785
6913
|
selectedCategory,
|
|
6786
|
-
onCategoryChange
|
|
6914
|
+
onCategoryChange,
|
|
6915
|
+
expandFiltersAriaLabel,
|
|
6916
|
+
categoriesHeading,
|
|
6917
|
+
collapseSidebarAriaLabel,
|
|
6918
|
+
expandSidebarAriaLabel
|
|
6787
6919
|
}
|
|
6788
6920
|
),
|
|
6789
6921
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-1 flex-col min-w-0", children: [
|
|
@@ -6822,14 +6954,15 @@ function AgentListDesktop({
|
|
|
6822
6954
|
)
|
|
6823
6955
|
] }) }),
|
|
6824
6956
|
/* @__PURE__ */ jsxs("div", { className: "flex-1 overflow-y-auto p-6", children: [
|
|
6825
|
-
filtered.length === 0 && /* @__PURE__ */ jsx("p", { className: "py-12 text-center text-sm text-muted-foreground", children:
|
|
6957
|
+
filtered.length === 0 && /* @__PURE__ */ jsx("p", { className: "py-12 text-center text-sm text-muted-foreground", children: emptyMessage }),
|
|
6826
6958
|
/* @__PURE__ */ jsx("div", { className: "grid gap-4 grid-cols-1 md:grid-cols-2 lg:grid-cols-3", children: filtered.map((agent) => /* @__PURE__ */ jsx(
|
|
6827
6959
|
MosaicAgentCard,
|
|
6828
6960
|
{
|
|
6829
6961
|
agent,
|
|
6830
6962
|
onToggleStatus,
|
|
6831
6963
|
onDelete: onDeleteAgent,
|
|
6832
|
-
onEdit: onEditAgent
|
|
6964
|
+
onEdit: onEditAgent,
|
|
6965
|
+
...agentCardLabels
|
|
6833
6966
|
},
|
|
6834
6967
|
agent.id
|
|
6835
6968
|
)) })
|
|
@@ -6850,9 +6983,18 @@ function AgentListMobile({
|
|
|
6850
6983
|
onDeleteAgent,
|
|
6851
6984
|
onEditAgent,
|
|
6852
6985
|
onCreateAgent,
|
|
6853
|
-
title
|
|
6854
|
-
searchPlaceholder
|
|
6855
|
-
createLabel
|
|
6986
|
+
title,
|
|
6987
|
+
searchPlaceholder,
|
|
6988
|
+
createLabel,
|
|
6989
|
+
emptyMessage,
|
|
6990
|
+
openFiltersAriaLabel,
|
|
6991
|
+
filtersModalTitle,
|
|
6992
|
+
closeFiltersAriaLabel,
|
|
6993
|
+
agentCardLabels,
|
|
6994
|
+
expandFiltersAriaLabel,
|
|
6995
|
+
categoriesHeading,
|
|
6996
|
+
collapseSidebarAriaLabel,
|
|
6997
|
+
expandSidebarAriaLabel
|
|
6856
6998
|
}) {
|
|
6857
6999
|
const [filterOpen, setFilterOpen] = React27.useState(false);
|
|
6858
7000
|
const [query, setQuery] = React27.useState("");
|
|
@@ -6875,7 +7017,7 @@ function AgentListMobile({
|
|
|
6875
7017
|
"hover:bg-accent hover:text-accent-foreground",
|
|
6876
7018
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
6877
7019
|
),
|
|
6878
|
-
"aria-label":
|
|
7020
|
+
"aria-label": openFiltersAriaLabel,
|
|
6879
7021
|
children: /* @__PURE__ */ jsx(FilterIcon2, {})
|
|
6880
7022
|
}
|
|
6881
7023
|
),
|
|
@@ -6921,31 +7063,45 @@ function AgentListMobile({
|
|
|
6921
7063
|
agent,
|
|
6922
7064
|
onToggleStatus,
|
|
6923
7065
|
onDelete: onDeleteAgent,
|
|
6924
|
-
onEdit: onEditAgent
|
|
7066
|
+
onEdit: onEditAgent,
|
|
7067
|
+
...agentCardLabels
|
|
6925
7068
|
},
|
|
6926
7069
|
agent.id
|
|
6927
7070
|
)),
|
|
6928
|
-
filtered.length === 0 && /* @__PURE__ */ jsx("p", { className: "py-10 text-center text-sm text-muted-foreground", children:
|
|
7071
|
+
filtered.length === 0 && /* @__PURE__ */ jsx("p", { className: "py-10 text-center text-sm text-muted-foreground", children: emptyMessage })
|
|
6929
7072
|
] }),
|
|
6930
|
-
/* @__PURE__ */ jsx(
|
|
6931
|
-
|
|
7073
|
+
/* @__PURE__ */ jsx(
|
|
7074
|
+
MosaicAdaptiveModal,
|
|
6932
7075
|
{
|
|
6933
|
-
|
|
6934
|
-
|
|
6935
|
-
|
|
6936
|
-
|
|
6937
|
-
|
|
6938
|
-
|
|
6939
|
-
|
|
6940
|
-
|
|
6941
|
-
|
|
6942
|
-
|
|
6943
|
-
|
|
6944
|
-
|
|
6945
|
-
|
|
6946
|
-
|
|
7076
|
+
isOpen: filterOpen,
|
|
7077
|
+
onClose: () => setFilterOpen(false),
|
|
7078
|
+
title: filtersModalTitle,
|
|
7079
|
+
closeAriaLabel: closeFiltersAriaLabel,
|
|
7080
|
+
children: /* @__PURE__ */ jsx("div", { className: "p-4", children: /* @__PURE__ */ jsx(
|
|
7081
|
+
MosaicFilterSidebar,
|
|
7082
|
+
{
|
|
7083
|
+
isCollapsed: false,
|
|
7084
|
+
onToggleCollapse: () => setFilterOpen(false),
|
|
7085
|
+
filters,
|
|
7086
|
+
selectedFilter,
|
|
7087
|
+
onFilterChange: (id) => {
|
|
7088
|
+
onFilterChange(id);
|
|
7089
|
+
setFilterOpen(false);
|
|
7090
|
+
},
|
|
7091
|
+
categories,
|
|
7092
|
+
selectedCategory,
|
|
7093
|
+
expandFiltersAriaLabel,
|
|
7094
|
+
categoriesHeading,
|
|
7095
|
+
collapseSidebarAriaLabel,
|
|
7096
|
+
expandSidebarAriaLabel,
|
|
7097
|
+
onCategoryChange: (id) => {
|
|
7098
|
+
onCategoryChange(id);
|
|
7099
|
+
setFilterOpen(false);
|
|
7100
|
+
}
|
|
7101
|
+
}
|
|
7102
|
+
) })
|
|
6947
7103
|
}
|
|
6948
|
-
)
|
|
7104
|
+
)
|
|
6949
7105
|
] });
|
|
6950
7106
|
}
|
|
6951
7107
|
function MosaicAgentList(props) {
|
|
@@ -7042,6 +7198,7 @@ function MarketplaceCard({
|
|
|
7042
7198
|
onPreview,
|
|
7043
7199
|
installLabel,
|
|
7044
7200
|
uninstallLabel,
|
|
7201
|
+
previewLabel,
|
|
7045
7202
|
compact = false
|
|
7046
7203
|
}) {
|
|
7047
7204
|
const ratingInt = Math.round(item.rating ?? 0);
|
|
@@ -7097,7 +7254,7 @@ function MarketplaceCard({
|
|
|
7097
7254
|
"hover:bg-accent hover:text-accent-foreground",
|
|
7098
7255
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
7099
7256
|
),
|
|
7100
|
-
children:
|
|
7257
|
+
children: previewLabel
|
|
7101
7258
|
}
|
|
7102
7259
|
),
|
|
7103
7260
|
item.isInstalled ? onUninstall && /* @__PURE__ */ jsx(
|
|
@@ -7144,10 +7301,16 @@ function MarketplaceListDesktop(props) {
|
|
|
7144
7301
|
onInstall,
|
|
7145
7302
|
onUninstall,
|
|
7146
7303
|
onPreview,
|
|
7147
|
-
title
|
|
7148
|
-
searchPlaceholder
|
|
7149
|
-
installLabel
|
|
7150
|
-
uninstallLabel
|
|
7304
|
+
title,
|
|
7305
|
+
searchPlaceholder,
|
|
7306
|
+
installLabel,
|
|
7307
|
+
uninstallLabel,
|
|
7308
|
+
previewLabel,
|
|
7309
|
+
emptyMessage,
|
|
7310
|
+
expandFiltersAriaLabel,
|
|
7311
|
+
categoriesHeading,
|
|
7312
|
+
collapseSidebarAriaLabel,
|
|
7313
|
+
expandSidebarAriaLabel
|
|
7151
7314
|
} = props;
|
|
7152
7315
|
const [query, setQuery] = React27.useState("");
|
|
7153
7316
|
const [sidebarCollapsed, setSidebarCollapsed] = React27.useState(false);
|
|
@@ -7167,7 +7330,11 @@ function MarketplaceListDesktop(props) {
|
|
|
7167
7330
|
onFilterChange,
|
|
7168
7331
|
categories,
|
|
7169
7332
|
selectedCategory,
|
|
7170
|
-
onCategoryChange
|
|
7333
|
+
onCategoryChange,
|
|
7334
|
+
expandFiltersAriaLabel,
|
|
7335
|
+
categoriesHeading,
|
|
7336
|
+
collapseSidebarAriaLabel,
|
|
7337
|
+
expandSidebarAriaLabel
|
|
7171
7338
|
}
|
|
7172
7339
|
),
|
|
7173
7340
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-1 flex-col min-w-0", children: [
|
|
@@ -7197,11 +7364,12 @@ function MarketplaceListDesktop(props) {
|
|
|
7197
7364
|
onUninstall,
|
|
7198
7365
|
onPreview,
|
|
7199
7366
|
installLabel,
|
|
7200
|
-
uninstallLabel
|
|
7367
|
+
uninstallLabel,
|
|
7368
|
+
previewLabel
|
|
7201
7369
|
},
|
|
7202
7370
|
item.id
|
|
7203
7371
|
)) }),
|
|
7204
|
-
filtered.length === 0 && /* @__PURE__ */ jsx("p", { className: "py-12 text-center text-sm text-muted-foreground", children:
|
|
7372
|
+
filtered.length === 0 && /* @__PURE__ */ jsx("p", { className: "py-12 text-center text-sm text-muted-foreground", children: emptyMessage })
|
|
7205
7373
|
] })
|
|
7206
7374
|
] })
|
|
7207
7375
|
] })
|
|
@@ -7219,10 +7387,19 @@ function MarketplaceListMobile(props) {
|
|
|
7219
7387
|
onInstall,
|
|
7220
7388
|
onUninstall,
|
|
7221
7389
|
onPreview,
|
|
7222
|
-
title
|
|
7223
|
-
searchPlaceholder
|
|
7224
|
-
installLabel
|
|
7225
|
-
uninstallLabel
|
|
7390
|
+
title,
|
|
7391
|
+
searchPlaceholder,
|
|
7392
|
+
installLabel,
|
|
7393
|
+
uninstallLabel,
|
|
7394
|
+
previewLabel,
|
|
7395
|
+
emptyMessage,
|
|
7396
|
+
openFiltersAriaLabel,
|
|
7397
|
+
filtersModalTitle,
|
|
7398
|
+
closeFiltersAriaLabel,
|
|
7399
|
+
expandFiltersAriaLabel,
|
|
7400
|
+
categoriesHeading,
|
|
7401
|
+
collapseSidebarAriaLabel,
|
|
7402
|
+
expandSidebarAriaLabel
|
|
7226
7403
|
} = props;
|
|
7227
7404
|
const [filterOpen, setFilterOpen] = React27.useState(false);
|
|
7228
7405
|
const [query, setQuery] = React27.useState("");
|
|
@@ -7239,7 +7416,7 @@ function MarketplaceListMobile(props) {
|
|
|
7239
7416
|
type: "button",
|
|
7240
7417
|
onClick: () => setFilterOpen(true),
|
|
7241
7418
|
className: "inline-flex h-9 w-9 items-center justify-center rounded-md border border-border bg-background text-foreground hover:bg-accent hover:text-accent-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
7242
|
-
"aria-label":
|
|
7419
|
+
"aria-label": openFiltersAriaLabel,
|
|
7243
7420
|
children: /* @__PURE__ */ jsx(FilterIcon3, {})
|
|
7244
7421
|
}
|
|
7245
7422
|
)
|
|
@@ -7272,31 +7449,45 @@ function MarketplaceListMobile(props) {
|
|
|
7272
7449
|
onPreview,
|
|
7273
7450
|
installLabel,
|
|
7274
7451
|
uninstallLabel,
|
|
7452
|
+
previewLabel,
|
|
7275
7453
|
compact: true
|
|
7276
7454
|
},
|
|
7277
7455
|
item.id
|
|
7278
7456
|
)),
|
|
7279
|
-
filtered.length === 0 && /* @__PURE__ */ jsx("p", { className: "py-10 text-center text-sm text-muted-foreground", children:
|
|
7457
|
+
filtered.length === 0 && /* @__PURE__ */ jsx("p", { className: "py-10 text-center text-sm text-muted-foreground", children: emptyMessage })
|
|
7280
7458
|
] }),
|
|
7281
|
-
/* @__PURE__ */ jsx(
|
|
7282
|
-
|
|
7459
|
+
/* @__PURE__ */ jsx(
|
|
7460
|
+
MosaicAdaptiveModal,
|
|
7283
7461
|
{
|
|
7284
|
-
|
|
7285
|
-
|
|
7286
|
-
|
|
7287
|
-
|
|
7288
|
-
|
|
7289
|
-
|
|
7290
|
-
|
|
7291
|
-
|
|
7292
|
-
|
|
7293
|
-
|
|
7294
|
-
|
|
7295
|
-
|
|
7296
|
-
|
|
7297
|
-
|
|
7462
|
+
isOpen: filterOpen,
|
|
7463
|
+
onClose: () => setFilterOpen(false),
|
|
7464
|
+
title: filtersModalTitle,
|
|
7465
|
+
closeAriaLabel: closeFiltersAriaLabel,
|
|
7466
|
+
children: /* @__PURE__ */ jsx("div", { className: "p-4", children: /* @__PURE__ */ jsx(
|
|
7467
|
+
MosaicFilterSidebar,
|
|
7468
|
+
{
|
|
7469
|
+
isCollapsed: false,
|
|
7470
|
+
onToggleCollapse: () => setFilterOpen(false),
|
|
7471
|
+
filters,
|
|
7472
|
+
selectedFilter,
|
|
7473
|
+
onFilterChange: (id) => {
|
|
7474
|
+
onFilterChange(id);
|
|
7475
|
+
setFilterOpen(false);
|
|
7476
|
+
},
|
|
7477
|
+
categories,
|
|
7478
|
+
selectedCategory,
|
|
7479
|
+
expandFiltersAriaLabel,
|
|
7480
|
+
categoriesHeading,
|
|
7481
|
+
collapseSidebarAriaLabel,
|
|
7482
|
+
expandSidebarAriaLabel,
|
|
7483
|
+
onCategoryChange: (id) => {
|
|
7484
|
+
onCategoryChange(id);
|
|
7485
|
+
setFilterOpen(false);
|
|
7486
|
+
}
|
|
7487
|
+
}
|
|
7488
|
+
) })
|
|
7298
7489
|
}
|
|
7299
|
-
)
|
|
7490
|
+
)
|
|
7300
7491
|
] });
|
|
7301
7492
|
}
|
|
7302
7493
|
function MosaicMarketplaceList(props) {
|
|
@@ -7412,7 +7603,9 @@ function MosaicTemplateCard({
|
|
|
7412
7603
|
onPreview,
|
|
7413
7604
|
onDuplicate,
|
|
7414
7605
|
showActions = false,
|
|
7415
|
-
compact = false
|
|
7606
|
+
compact = false,
|
|
7607
|
+
previewLabel,
|
|
7608
|
+
duplicateLabel
|
|
7416
7609
|
}) {
|
|
7417
7610
|
const isPopular = (template.metadata?.usageCount ?? 0) > 10;
|
|
7418
7611
|
const isTrending = (template.metadata?.usageCount ?? 0) > 5;
|
|
@@ -7473,7 +7666,7 @@ function MosaicTemplateCard({
|
|
|
7473
7666
|
onPreview(template);
|
|
7474
7667
|
},
|
|
7475
7668
|
className: "inline-flex h-7 items-center gap-1 rounded-md border border-border bg-background px-2.5 text-xs font-medium hover:bg-accent hover:text-accent-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
7476
|
-
children:
|
|
7669
|
+
children: previewLabel
|
|
7477
7670
|
}
|
|
7478
7671
|
),
|
|
7479
7672
|
onDuplicate && /* @__PURE__ */ jsx(
|
|
@@ -7485,7 +7678,7 @@ function MosaicTemplateCard({
|
|
|
7485
7678
|
onDuplicate(template);
|
|
7486
7679
|
},
|
|
7487
7680
|
className: "inline-flex h-7 items-center gap-1 rounded-md border border-border bg-background px-2.5 text-xs font-medium hover:bg-accent hover:text-accent-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
7488
|
-
children:
|
|
7681
|
+
children: duplicateLabel
|
|
7489
7682
|
}
|
|
7490
7683
|
)
|
|
7491
7684
|
] })
|
|
@@ -7498,7 +7691,8 @@ function MosaicTemplatePreview({
|
|
|
7498
7691
|
template,
|
|
7499
7692
|
onSelect,
|
|
7500
7693
|
onClose,
|
|
7501
|
-
selectLabel
|
|
7694
|
+
selectLabel,
|
|
7695
|
+
cancelLabel
|
|
7502
7696
|
}) {
|
|
7503
7697
|
return /* @__PURE__ */ jsxs("div", { "data-slot": "template-preview", className: "flex flex-col gap-4 p-4", children: [
|
|
7504
7698
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
@@ -7556,7 +7750,7 @@ function MosaicTemplatePreview({
|
|
|
7556
7750
|
type: "button",
|
|
7557
7751
|
onClick: onClose,
|
|
7558
7752
|
className: "inline-flex min-h-[44px] items-center justify-center rounded-md border border-border bg-background px-4 text-sm font-medium text-foreground hover:bg-accent hover:text-accent-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
7559
|
-
children:
|
|
7753
|
+
children: cancelLabel
|
|
7560
7754
|
}
|
|
7561
7755
|
),
|
|
7562
7756
|
/* @__PURE__ */ jsx(
|
|
@@ -7602,9 +7796,9 @@ function MosaicQuickStartPanel({
|
|
|
7602
7796
|
onSelectScenario,
|
|
7603
7797
|
onSelectPreset,
|
|
7604
7798
|
onStartFromScratch,
|
|
7605
|
-
scenariosTitle
|
|
7606
|
-
presetsTitle
|
|
7607
|
-
scratchLabel
|
|
7799
|
+
scenariosTitle,
|
|
7800
|
+
presetsTitle,
|
|
7801
|
+
scratchLabel,
|
|
7608
7802
|
className
|
|
7609
7803
|
}) {
|
|
7610
7804
|
return /* @__PURE__ */ jsxs("div", { "data-slot": "quick-start-panel", className: cn59("flex flex-col gap-6", className), children: [
|
|
@@ -7704,8 +7898,18 @@ function TemplateGalleryContent({
|
|
|
7704
7898
|
selectedCategory,
|
|
7705
7899
|
onCategoryChange,
|
|
7706
7900
|
showActions,
|
|
7707
|
-
title
|
|
7708
|
-
searchPlaceholder
|
|
7901
|
+
title,
|
|
7902
|
+
searchPlaceholder,
|
|
7903
|
+
emptyMessage,
|
|
7904
|
+
openFiltersAriaLabel,
|
|
7905
|
+
filtersTitle,
|
|
7906
|
+
closeFiltersAriaLabel,
|
|
7907
|
+
expandFiltersAriaLabel,
|
|
7908
|
+
categoriesHeading,
|
|
7909
|
+
collapseSidebarAriaLabel,
|
|
7910
|
+
expandSidebarAriaLabel,
|
|
7911
|
+
previewLabel,
|
|
7912
|
+
duplicateLabel,
|
|
7709
7913
|
isMobile
|
|
7710
7914
|
}) {
|
|
7711
7915
|
const [query, setQuery] = React27.useState("");
|
|
@@ -7731,7 +7935,11 @@ function TemplateGalleryContent({
|
|
|
7731
7935
|
onCategoryChange(id);
|
|
7732
7936
|
setFilterOpen(false);
|
|
7733
7937
|
} : onCategoryChange,
|
|
7734
|
-
title:
|
|
7938
|
+
title: filtersTitle,
|
|
7939
|
+
expandFiltersAriaLabel,
|
|
7940
|
+
categoriesHeading,
|
|
7941
|
+
collapseSidebarAriaLabel,
|
|
7942
|
+
expandSidebarAriaLabel
|
|
7735
7943
|
}
|
|
7736
7944
|
);
|
|
7737
7945
|
if (isMobile) {
|
|
@@ -7745,7 +7953,7 @@ function TemplateGalleryContent({
|
|
|
7745
7953
|
type: "button",
|
|
7746
7954
|
onClick: () => setFilterOpen(true),
|
|
7747
7955
|
className: "inline-flex h-9 w-9 items-center justify-center rounded-md border border-border bg-background text-foreground hover:bg-accent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
7748
|
-
"aria-label":
|
|
7956
|
+
"aria-label": openFiltersAriaLabel,
|
|
7749
7957
|
children: /* @__PURE__ */ jsx(FilterIcon4, {})
|
|
7750
7958
|
}
|
|
7751
7959
|
)
|
|
@@ -7776,18 +7984,21 @@ function TemplateGalleryContent({
|
|
|
7776
7984
|
onPreview: onPreviewTemplate,
|
|
7777
7985
|
onDuplicate: onDuplicateTemplate,
|
|
7778
7986
|
showActions,
|
|
7987
|
+
previewLabel,
|
|
7988
|
+
duplicateLabel,
|
|
7779
7989
|
compact: true
|
|
7780
7990
|
},
|
|
7781
7991
|
template.id
|
|
7782
7992
|
)),
|
|
7783
|
-
filtered.length === 0 && /* @__PURE__ */ jsx("p", { className: "py-10 text-center text-sm text-muted-foreground", children:
|
|
7993
|
+
filtered.length === 0 && /* @__PURE__ */ jsx("p", { className: "py-10 text-center text-sm text-muted-foreground", children: emptyMessage })
|
|
7784
7994
|
] }),
|
|
7785
7995
|
/* @__PURE__ */ jsx(
|
|
7786
7996
|
MosaicAdaptiveModal,
|
|
7787
7997
|
{
|
|
7788
7998
|
isOpen: filterOpen,
|
|
7789
7999
|
onClose: () => setFilterOpen(false),
|
|
7790
|
-
title:
|
|
8000
|
+
title: filtersTitle,
|
|
8001
|
+
closeAriaLabel: closeFiltersAriaLabel,
|
|
7791
8002
|
children: /* @__PURE__ */ jsx("div", { className: "p-4", children: sidebar })
|
|
7792
8003
|
}
|
|
7793
8004
|
)
|
|
@@ -7822,11 +8033,13 @@ function TemplateGalleryContent({
|
|
|
7822
8033
|
onSelect: onSelectTemplate,
|
|
7823
8034
|
onPreview: onPreviewTemplate,
|
|
7824
8035
|
onDuplicate: onDuplicateTemplate,
|
|
7825
|
-
showActions
|
|
8036
|
+
showActions,
|
|
8037
|
+
previewLabel,
|
|
8038
|
+
duplicateLabel
|
|
7826
8039
|
},
|
|
7827
8040
|
template.id
|
|
7828
8041
|
)) }),
|
|
7829
|
-
filtered.length === 0 && /* @__PURE__ */ jsx("p", { className: "py-12 text-center text-sm text-muted-foreground", children:
|
|
8042
|
+
filtered.length === 0 && /* @__PURE__ */ jsx("p", { className: "py-12 text-center text-sm text-muted-foreground", children: emptyMessage })
|
|
7830
8043
|
] })
|
|
7831
8044
|
] })
|
|
7832
8045
|
] })
|
|
@@ -7930,7 +8143,15 @@ function MosaicModuleForm({
|
|
|
7930
8143
|
mode,
|
|
7931
8144
|
formFields = [],
|
|
7932
8145
|
onSave,
|
|
7933
|
-
onCancel
|
|
8146
|
+
onCancel,
|
|
8147
|
+
nameFieldLabel,
|
|
8148
|
+
descriptionFieldLabel,
|
|
8149
|
+
namePlaceholder,
|
|
8150
|
+
descriptionPlaceholder,
|
|
8151
|
+
cancelLabel,
|
|
8152
|
+
saveChangesLabel,
|
|
8153
|
+
createItemLabel,
|
|
8154
|
+
tagListAddPlaceholder
|
|
7934
8155
|
}) {
|
|
7935
8156
|
const [formData, setFormData] = React27.useState({
|
|
7936
8157
|
name: item?.name ?? "",
|
|
@@ -7971,7 +8192,7 @@ function MosaicModuleForm({
|
|
|
7971
8192
|
};
|
|
7972
8193
|
return /* @__PURE__ */ jsxs("div", { "data-slot": "module-form", className: "flex flex-col gap-4 p-4", children: [
|
|
7973
8194
|
/* @__PURE__ */ jsxs("div", { className: "space-y-1.5", children: [
|
|
7974
|
-
/* @__PURE__ */ jsx("label", { htmlFor: "module-name", className: "text-sm font-medium", children:
|
|
8195
|
+
/* @__PURE__ */ jsx("label", { htmlFor: "module-name", className: "text-sm font-medium", children: nameFieldLabel }),
|
|
7975
8196
|
/* @__PURE__ */ jsx(
|
|
7976
8197
|
"input",
|
|
7977
8198
|
{
|
|
@@ -7979,7 +8200,7 @@ function MosaicModuleForm({
|
|
|
7979
8200
|
type: "text",
|
|
7980
8201
|
value: formData.name,
|
|
7981
8202
|
onChange: (e) => update("name", e.target.value),
|
|
7982
|
-
placeholder:
|
|
8203
|
+
placeholder: namePlaceholder,
|
|
7983
8204
|
required: true,
|
|
7984
8205
|
className: cn60(
|
|
7985
8206
|
"w-full rounded-md border border-input bg-background px-3 py-2 min-h-[40px]",
|
|
@@ -7990,14 +8211,14 @@ function MosaicModuleForm({
|
|
|
7990
8211
|
)
|
|
7991
8212
|
] }),
|
|
7992
8213
|
/* @__PURE__ */ jsxs("div", { className: "space-y-1.5", children: [
|
|
7993
|
-
/* @__PURE__ */ jsx("label", { htmlFor: "module-desc", className: "text-sm font-medium", children:
|
|
8214
|
+
/* @__PURE__ */ jsx("label", { htmlFor: "module-desc", className: "text-sm font-medium", children: descriptionFieldLabel }),
|
|
7994
8215
|
/* @__PURE__ */ jsx(
|
|
7995
8216
|
"textarea",
|
|
7996
8217
|
{
|
|
7997
8218
|
id: "module-desc",
|
|
7998
8219
|
value: formData.description,
|
|
7999
8220
|
onChange: (e) => update("description", e.target.value),
|
|
8000
|
-
placeholder:
|
|
8221
|
+
placeholder: descriptionPlaceholder,
|
|
8001
8222
|
rows: 3,
|
|
8002
8223
|
className: cn60(
|
|
8003
8224
|
"w-full rounded-md border border-input bg-background px-3 py-2",
|
|
@@ -8072,7 +8293,7 @@ function MosaicModuleForm({
|
|
|
8072
8293
|
addTag(field.id);
|
|
8073
8294
|
}
|
|
8074
8295
|
},
|
|
8075
|
-
placeholder: field.placeholder ??
|
|
8296
|
+
placeholder: field.placeholder ?? tagListAddPlaceholder,
|
|
8076
8297
|
className: cn60(
|
|
8077
8298
|
"flex-1 rounded-md border border-input bg-background px-3 py-2 min-h-[36px]",
|
|
8078
8299
|
"text-sm placeholder:text-muted-foreground",
|
|
@@ -8119,7 +8340,7 @@ function MosaicModuleForm({
|
|
|
8119
8340
|
type: "button",
|
|
8120
8341
|
onClick: onCancel,
|
|
8121
8342
|
className: "inline-flex min-h-[44px] items-center justify-center rounded-md border border-border bg-background px-4 text-sm font-medium text-foreground hover:bg-accent hover:text-accent-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
8122
|
-
children:
|
|
8343
|
+
children: cancelLabel
|
|
8123
8344
|
}
|
|
8124
8345
|
),
|
|
8125
8346
|
/* @__PURE__ */ jsx(
|
|
@@ -8129,7 +8350,7 @@ function MosaicModuleForm({
|
|
|
8129
8350
|
onClick: handleSave,
|
|
8130
8351
|
disabled: !formData.name,
|
|
8131
8352
|
className: "inline-flex min-h-[44px] items-center justify-center rounded-md bg-primary px-4 text-sm font-medium text-primary-foreground hover:bg-primary/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-50 disabled:pointer-events-none",
|
|
8132
|
-
children: mode === "edit" ?
|
|
8353
|
+
children: mode === "edit" ? saveChangesLabel : createItemLabel
|
|
8133
8354
|
}
|
|
8134
8355
|
)
|
|
8135
8356
|
] })
|
|
@@ -8139,7 +8360,10 @@ MosaicModuleForm.displayName = "MosaicModuleForm";
|
|
|
8139
8360
|
function ModuleItemCard({
|
|
8140
8361
|
item,
|
|
8141
8362
|
onEdit,
|
|
8142
|
-
onDelete
|
|
8363
|
+
onDelete,
|
|
8364
|
+
itemActionsAriaLabel,
|
|
8365
|
+
editItemLabel,
|
|
8366
|
+
deleteItemLabel
|
|
8143
8367
|
}) {
|
|
8144
8368
|
const [menuOpen, setMenuOpen] = React27.useState(false);
|
|
8145
8369
|
const menuRef = React27.useRef(null);
|
|
@@ -8174,7 +8398,7 @@ function ModuleItemCard({
|
|
|
8174
8398
|
type: "button",
|
|
8175
8399
|
onClick: () => setMenuOpen((v) => !v),
|
|
8176
8400
|
className: "inline-flex h-8 w-8 items-center justify-center rounded-md text-muted-foreground hover:bg-accent hover:text-accent-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring opacity-0 group-hover:opacity-100 transition-opacity",
|
|
8177
|
-
"aria-label":
|
|
8401
|
+
"aria-label": itemActionsAriaLabel,
|
|
8178
8402
|
"aria-haspopup": "menu",
|
|
8179
8403
|
children: /* @__PURE__ */ jsx(MoreVertIcon2, {})
|
|
8180
8404
|
}
|
|
@@ -8195,7 +8419,7 @@ function ModuleItemCard({
|
|
|
8195
8419
|
setMenuOpen(false);
|
|
8196
8420
|
},
|
|
8197
8421
|
className: "flex w-full items-center px-3 py-2 text-sm text-foreground hover:bg-accent hover:text-accent-foreground",
|
|
8198
|
-
children:
|
|
8422
|
+
children: editItemLabel
|
|
8199
8423
|
}
|
|
8200
8424
|
),
|
|
8201
8425
|
/* @__PURE__ */ jsx(
|
|
@@ -8208,7 +8432,7 @@ function ModuleItemCard({
|
|
|
8208
8432
|
setMenuOpen(false);
|
|
8209
8433
|
},
|
|
8210
8434
|
className: "flex w-full items-center px-3 py-2 text-sm text-destructive hover:bg-destructive/10",
|
|
8211
|
-
children:
|
|
8435
|
+
children: deleteItemLabel
|
|
8212
8436
|
}
|
|
8213
8437
|
)
|
|
8214
8438
|
]
|
|
@@ -8226,10 +8450,23 @@ function LibraryContent({
|
|
|
8226
8450
|
tabs,
|
|
8227
8451
|
tabFilter,
|
|
8228
8452
|
formFields,
|
|
8229
|
-
title
|
|
8230
|
-
createLabel
|
|
8231
|
-
searchPlaceholder
|
|
8232
|
-
emptyMessage
|
|
8453
|
+
title,
|
|
8454
|
+
createLabel,
|
|
8455
|
+
searchPlaceholder,
|
|
8456
|
+
emptyMessage,
|
|
8457
|
+
nameFieldLabel,
|
|
8458
|
+
descriptionFieldLabel,
|
|
8459
|
+
namePlaceholder,
|
|
8460
|
+
descriptionPlaceholder,
|
|
8461
|
+
cancelLabel,
|
|
8462
|
+
saveChangesLabel,
|
|
8463
|
+
createItemLabel,
|
|
8464
|
+
itemActionsAriaLabel,
|
|
8465
|
+
editItemLabel,
|
|
8466
|
+
deleteItemLabel,
|
|
8467
|
+
closeEditorAriaLabel,
|
|
8468
|
+
editModalTitle,
|
|
8469
|
+
tagListAddPlaceholder
|
|
8233
8470
|
}) {
|
|
8234
8471
|
const [query, setQuery] = React27.useState("");
|
|
8235
8472
|
const [activeTab, setActiveTab] = React27.useState(tabs?.[0]?.id ?? "all");
|
|
@@ -8311,13 +8548,25 @@ function LibraryContent({
|
|
|
8311
8548
|
tab.id
|
|
8312
8549
|
)) })
|
|
8313
8550
|
] }),
|
|
8314
|
-
/* @__PURE__ */ jsx("div", { className: "flex-1 overflow-y-auto p-4 md:p-6", children: isLoading ? /* @__PURE__ */ jsx("div", { className: "space-y-4", children: [0, 1, 2].map((i) => /* @__PURE__ */ jsx("div", { className: "h-24 animate-pulse rounded-lg bg-muted" }, i)) }) : filtered.length === 0 ? /* @__PURE__ */ jsx("p", { className: "py-12 text-center text-sm text-muted-foreground", children: emptyMessage }) : /* @__PURE__ */ jsx("div", { className: "grid gap-4 grid-cols-1 md:grid-cols-2 lg:grid-cols-3", children: filtered.map((item) => /* @__PURE__ */ jsx(
|
|
8551
|
+
/* @__PURE__ */ jsx("div", { className: "flex-1 overflow-y-auto p-4 md:p-6", children: isLoading ? /* @__PURE__ */ jsx("div", { className: "space-y-4", children: [0, 1, 2].map((i) => /* @__PURE__ */ jsx("div", { className: "h-24 animate-pulse rounded-lg bg-muted" }, i)) }) : filtered.length === 0 ? /* @__PURE__ */ jsx("p", { className: "py-12 text-center text-sm text-muted-foreground", children: emptyMessage }) : /* @__PURE__ */ jsx("div", { className: "grid gap-4 grid-cols-1 md:grid-cols-2 lg:grid-cols-3", children: filtered.map((item) => /* @__PURE__ */ jsx(
|
|
8552
|
+
ModuleItemCard,
|
|
8553
|
+
{
|
|
8554
|
+
item,
|
|
8555
|
+
onEdit: openEdit,
|
|
8556
|
+
onDelete: onDeleteItem,
|
|
8557
|
+
itemActionsAriaLabel,
|
|
8558
|
+
editItemLabel,
|
|
8559
|
+
deleteItemLabel
|
|
8560
|
+
},
|
|
8561
|
+
item.id
|
|
8562
|
+
)) }) }),
|
|
8315
8563
|
/* @__PURE__ */ jsx(
|
|
8316
8564
|
MosaicAdaptiveModal,
|
|
8317
8565
|
{
|
|
8318
8566
|
isOpen: editorOpen,
|
|
8319
8567
|
onClose: () => setEditorOpen(false),
|
|
8320
|
-
title: editorMode === "edit" ?
|
|
8568
|
+
title: editorMode === "edit" ? editModalTitle(editingItem?.name ?? "") : createLabel,
|
|
8569
|
+
closeAriaLabel: closeEditorAriaLabel,
|
|
8321
8570
|
children: /* @__PURE__ */ jsx(
|
|
8322
8571
|
MosaicModuleForm,
|
|
8323
8572
|
{
|
|
@@ -8325,7 +8574,15 @@ function LibraryContent({
|
|
|
8325
8574
|
mode: editorMode,
|
|
8326
8575
|
formFields,
|
|
8327
8576
|
onSave: handleSave,
|
|
8328
|
-
onCancel: () => setEditorOpen(false)
|
|
8577
|
+
onCancel: () => setEditorOpen(false),
|
|
8578
|
+
nameFieldLabel,
|
|
8579
|
+
descriptionFieldLabel,
|
|
8580
|
+
namePlaceholder,
|
|
8581
|
+
descriptionPlaceholder,
|
|
8582
|
+
cancelLabel,
|
|
8583
|
+
saveChangesLabel,
|
|
8584
|
+
createItemLabel,
|
|
8585
|
+
tagListAddPlaceholder
|
|
8329
8586
|
}
|
|
8330
8587
|
)
|
|
8331
8588
|
}
|
|
@@ -8428,7 +8685,16 @@ function MosaicCreateOrgDialog({
|
|
|
8428
8685
|
onOpenChange,
|
|
8429
8686
|
onCreateOrg,
|
|
8430
8687
|
isLoading = false,
|
|
8431
|
-
title
|
|
8688
|
+
title,
|
|
8689
|
+
closeAriaLabel,
|
|
8690
|
+
orgNameFieldLabel,
|
|
8691
|
+
orgNamePlaceholder,
|
|
8692
|
+
slugFieldLabel,
|
|
8693
|
+
descriptionFieldLabel,
|
|
8694
|
+
descriptionPlaceholder,
|
|
8695
|
+
cancelLabel,
|
|
8696
|
+
creatingLabel,
|
|
8697
|
+
createLabel
|
|
8432
8698
|
}) {
|
|
8433
8699
|
const [name, setName] = React27.useState("");
|
|
8434
8700
|
const [slug, setSlug] = React27.useState("");
|
|
@@ -8466,90 +8732,99 @@ function MosaicCreateOrgDialog({
|
|
|
8466
8732
|
name.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-|-$/g, "")
|
|
8467
8733
|
);
|
|
8468
8734
|
}, [name]);
|
|
8469
|
-
return /* @__PURE__ */ jsx(
|
|
8470
|
-
|
|
8735
|
+
return /* @__PURE__ */ jsx(
|
|
8736
|
+
MosaicAdaptiveModal,
|
|
8471
8737
|
{
|
|
8472
|
-
|
|
8473
|
-
|
|
8474
|
-
|
|
8475
|
-
|
|
8476
|
-
|
|
8477
|
-
|
|
8478
|
-
|
|
8479
|
-
|
|
8480
|
-
|
|
8481
|
-
|
|
8482
|
-
|
|
8483
|
-
|
|
8484
|
-
|
|
8485
|
-
|
|
8486
|
-
|
|
8487
|
-
|
|
8488
|
-
|
|
8489
|
-
|
|
8490
|
-
|
|
8738
|
+
isOpen: open,
|
|
8739
|
+
onClose: () => onOpenChange(false),
|
|
8740
|
+
title,
|
|
8741
|
+
closeAriaLabel,
|
|
8742
|
+
children: /* @__PURE__ */ jsxs(
|
|
8743
|
+
"form",
|
|
8744
|
+
{
|
|
8745
|
+
"data-slot": "create-org-dialog",
|
|
8746
|
+
onSubmit: handleSubmit,
|
|
8747
|
+
className: "flex flex-col gap-4 p-4",
|
|
8748
|
+
children: [
|
|
8749
|
+
/* @__PURE__ */ jsxs("div", { className: "space-y-1.5", children: [
|
|
8750
|
+
/* @__PURE__ */ jsx("label", { htmlFor: "org-name", className: "text-sm font-medium", children: orgNameFieldLabel }),
|
|
8751
|
+
/* @__PURE__ */ jsx(
|
|
8752
|
+
"input",
|
|
8753
|
+
{
|
|
8754
|
+
id: "org-name",
|
|
8755
|
+
type: "text",
|
|
8756
|
+
value: name,
|
|
8757
|
+
onChange: (e) => setName(e.target.value),
|
|
8758
|
+
placeholder: orgNamePlaceholder,
|
|
8759
|
+
required: true,
|
|
8760
|
+
className: cn61(
|
|
8761
|
+
"w-full rounded-md border bg-background px-3 py-2 min-h-[40px] text-sm placeholder:text-muted-foreground",
|
|
8762
|
+
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
8763
|
+
errors.name ? "border-destructive" : "border-input"
|
|
8764
|
+
)
|
|
8765
|
+
}
|
|
8766
|
+
),
|
|
8767
|
+
errors.name && /* @__PURE__ */ jsx("p", { className: "text-xs text-destructive", children: errors.name })
|
|
8768
|
+
] }),
|
|
8769
|
+
/* @__PURE__ */ jsxs("div", { className: "space-y-1.5", children: [
|
|
8770
|
+
/* @__PURE__ */ jsx("label", { htmlFor: "org-slug", className: "text-sm font-medium", children: slugFieldLabel }),
|
|
8771
|
+
/* @__PURE__ */ jsx(
|
|
8772
|
+
"input",
|
|
8773
|
+
{
|
|
8774
|
+
id: "org-slug",
|
|
8775
|
+
type: "text",
|
|
8776
|
+
value: slug,
|
|
8777
|
+
onChange: (e) => setSlug(e.target.value),
|
|
8778
|
+
placeholder: "acme-inc",
|
|
8779
|
+
required: true,
|
|
8780
|
+
className: cn61(
|
|
8781
|
+
"w-full rounded-md border bg-background px-3 py-2 min-h-[40px] text-sm placeholder:text-muted-foreground",
|
|
8782
|
+
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
8783
|
+
errors.slug ? "border-destructive" : "border-input"
|
|
8784
|
+
)
|
|
8785
|
+
}
|
|
8786
|
+
),
|
|
8787
|
+
errors.slug && /* @__PURE__ */ jsx("p", { className: "text-xs text-destructive", children: errors.slug })
|
|
8788
|
+
] }),
|
|
8789
|
+
/* @__PURE__ */ jsxs("div", { className: "space-y-1.5", children: [
|
|
8790
|
+
/* @__PURE__ */ jsx("label", { htmlFor: "org-desc", className: "text-sm font-medium", children: descriptionFieldLabel }),
|
|
8791
|
+
/* @__PURE__ */ jsx(
|
|
8792
|
+
"textarea",
|
|
8793
|
+
{
|
|
8794
|
+
id: "org-desc",
|
|
8795
|
+
value: description,
|
|
8796
|
+
onChange: (e) => setDescription(e.target.value),
|
|
8797
|
+
placeholder: descriptionPlaceholder,
|
|
8798
|
+
rows: 3,
|
|
8799
|
+
className: "w-full rounded-md border border-input bg-background px-3 py-2 text-sm placeholder:text-muted-foreground resize-none focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
8800
|
+
}
|
|
8491
8801
|
)
|
|
8492
|
-
}
|
|
8493
|
-
|
|
8494
|
-
|
|
8495
|
-
|
|
8496
|
-
|
|
8497
|
-
|
|
8498
|
-
|
|
8499
|
-
|
|
8500
|
-
|
|
8501
|
-
|
|
8502
|
-
|
|
8503
|
-
|
|
8504
|
-
|
|
8505
|
-
|
|
8506
|
-
|
|
8507
|
-
|
|
8508
|
-
|
|
8509
|
-
|
|
8510
|
-
|
|
8802
|
+
] }),
|
|
8803
|
+
/* @__PURE__ */ jsxs("div", { className: "flex justify-end gap-2 pt-2", children: [
|
|
8804
|
+
/* @__PURE__ */ jsx(
|
|
8805
|
+
"button",
|
|
8806
|
+
{
|
|
8807
|
+
type: "button",
|
|
8808
|
+
onClick: () => onOpenChange(false),
|
|
8809
|
+
className: "inline-flex min-h-[44px] items-center justify-center rounded-md border border-border bg-background px-4 text-sm font-medium text-foreground hover:bg-accent hover:text-accent-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
8810
|
+
children: cancelLabel
|
|
8811
|
+
}
|
|
8812
|
+
),
|
|
8813
|
+
/* @__PURE__ */ jsx(
|
|
8814
|
+
"button",
|
|
8815
|
+
{
|
|
8816
|
+
type: "submit",
|
|
8817
|
+
disabled: isLoading,
|
|
8818
|
+
className: "inline-flex min-h-[44px] items-center justify-center rounded-md bg-primary px-4 text-sm font-medium text-primary-foreground hover:bg-primary/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-50 disabled:pointer-events-none",
|
|
8819
|
+
children: isLoading ? creatingLabel : createLabel
|
|
8820
|
+
}
|
|
8511
8821
|
)
|
|
8512
|
-
}
|
|
8513
|
-
|
|
8514
|
-
|
|
8515
|
-
|
|
8516
|
-
/* @__PURE__ */ jsxs("div", { className: "space-y-1.5", children: [
|
|
8517
|
-
/* @__PURE__ */ jsx("label", { htmlFor: "org-desc", className: "text-sm font-medium", children: "Description" }),
|
|
8518
|
-
/* @__PURE__ */ jsx(
|
|
8519
|
-
"textarea",
|
|
8520
|
-
{
|
|
8521
|
-
id: "org-desc",
|
|
8522
|
-
value: description,
|
|
8523
|
-
onChange: (e) => setDescription(e.target.value),
|
|
8524
|
-
placeholder: "Optional description\u2026",
|
|
8525
|
-
rows: 3,
|
|
8526
|
-
className: "w-full rounded-md border border-input bg-background px-3 py-2 text-sm placeholder:text-muted-foreground resize-none focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
8527
|
-
}
|
|
8528
|
-
)
|
|
8529
|
-
] }),
|
|
8530
|
-
/* @__PURE__ */ jsxs("div", { className: "flex justify-end gap-2 pt-2", children: [
|
|
8531
|
-
/* @__PURE__ */ jsx(
|
|
8532
|
-
"button",
|
|
8533
|
-
{
|
|
8534
|
-
type: "button",
|
|
8535
|
-
onClick: () => onOpenChange(false),
|
|
8536
|
-
className: "inline-flex min-h-[44px] items-center justify-center rounded-md border border-border bg-background px-4 text-sm font-medium text-foreground hover:bg-accent hover:text-accent-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
8537
|
-
children: "Cancel"
|
|
8538
|
-
}
|
|
8539
|
-
),
|
|
8540
|
-
/* @__PURE__ */ jsx(
|
|
8541
|
-
"button",
|
|
8542
|
-
{
|
|
8543
|
-
type: "submit",
|
|
8544
|
-
disabled: isLoading,
|
|
8545
|
-
className: "inline-flex min-h-[44px] items-center justify-center rounded-md bg-primary px-4 text-sm font-medium text-primary-foreground hover:bg-primary/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-50 disabled:pointer-events-none",
|
|
8546
|
-
children: isLoading ? "Creating\u2026" : "Create Organization"
|
|
8547
|
-
}
|
|
8548
|
-
)
|
|
8549
|
-
] })
|
|
8550
|
-
]
|
|
8822
|
+
] })
|
|
8823
|
+
]
|
|
8824
|
+
}
|
|
8825
|
+
)
|
|
8551
8826
|
}
|
|
8552
|
-
)
|
|
8827
|
+
);
|
|
8553
8828
|
}
|
|
8554
8829
|
MosaicCreateOrgDialog.displayName = "MosaicCreateOrgDialog";
|
|
8555
8830
|
var DEFAULT_ROLES = [
|
|
@@ -8562,7 +8837,14 @@ function MosaicInviteMemberDialog({
|
|
|
8562
8837
|
onInvite,
|
|
8563
8838
|
isLoading = false,
|
|
8564
8839
|
roles = DEFAULT_ROLES,
|
|
8565
|
-
title
|
|
8840
|
+
title,
|
|
8841
|
+
closeAriaLabel,
|
|
8842
|
+
emailFieldLabel,
|
|
8843
|
+
emailPlaceholder,
|
|
8844
|
+
roleFieldLabel,
|
|
8845
|
+
cancelLabel,
|
|
8846
|
+
sendingLabel,
|
|
8847
|
+
sendInvitationLabel
|
|
8566
8848
|
}) {
|
|
8567
8849
|
const [email, setEmail] = React27.useState("");
|
|
8568
8850
|
const [role, setRole] = React27.useState("member");
|
|
@@ -8583,69 +8865,78 @@ function MosaicInviteMemberDialog({
|
|
|
8583
8865
|
setErrors({});
|
|
8584
8866
|
onOpenChange(false);
|
|
8585
8867
|
};
|
|
8586
|
-
return /* @__PURE__ */ jsx(
|
|
8587
|
-
|
|
8868
|
+
return /* @__PURE__ */ jsx(
|
|
8869
|
+
MosaicAdaptiveModal,
|
|
8588
8870
|
{
|
|
8589
|
-
|
|
8590
|
-
|
|
8591
|
-
|
|
8592
|
-
|
|
8593
|
-
|
|
8594
|
-
|
|
8595
|
-
|
|
8596
|
-
|
|
8597
|
-
|
|
8598
|
-
|
|
8599
|
-
|
|
8600
|
-
|
|
8601
|
-
|
|
8602
|
-
|
|
8603
|
-
|
|
8604
|
-
|
|
8605
|
-
|
|
8606
|
-
|
|
8607
|
-
|
|
8871
|
+
isOpen: open,
|
|
8872
|
+
onClose: () => onOpenChange(false),
|
|
8873
|
+
title,
|
|
8874
|
+
closeAriaLabel,
|
|
8875
|
+
children: /* @__PURE__ */ jsxs(
|
|
8876
|
+
"form",
|
|
8877
|
+
{
|
|
8878
|
+
"data-slot": "invite-member-dialog",
|
|
8879
|
+
onSubmit: handleSubmit,
|
|
8880
|
+
className: "flex flex-col gap-4 p-4",
|
|
8881
|
+
children: [
|
|
8882
|
+
/* @__PURE__ */ jsxs("div", { className: "space-y-1.5", children: [
|
|
8883
|
+
/* @__PURE__ */ jsx("label", { htmlFor: "invite-email", className: "text-sm font-medium", children: emailFieldLabel }),
|
|
8884
|
+
/* @__PURE__ */ jsx(
|
|
8885
|
+
"input",
|
|
8886
|
+
{
|
|
8887
|
+
id: "invite-email",
|
|
8888
|
+
type: "email",
|
|
8889
|
+
value: email,
|
|
8890
|
+
onChange: (e) => setEmail(e.target.value),
|
|
8891
|
+
placeholder: emailPlaceholder,
|
|
8892
|
+
required: true,
|
|
8893
|
+
className: cn61(
|
|
8894
|
+
"w-full rounded-md border bg-background px-3 py-2 min-h-[40px] text-sm placeholder:text-muted-foreground",
|
|
8895
|
+
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
8896
|
+
errors.email ? "border-destructive" : "border-input"
|
|
8897
|
+
)
|
|
8898
|
+
}
|
|
8899
|
+
),
|
|
8900
|
+
errors.email && /* @__PURE__ */ jsx("p", { className: "text-xs text-destructive", children: errors.email })
|
|
8901
|
+
] }),
|
|
8902
|
+
/* @__PURE__ */ jsxs("div", { className: "space-y-1.5", children: [
|
|
8903
|
+
/* @__PURE__ */ jsx("label", { htmlFor: "invite-role", className: "text-sm font-medium", children: roleFieldLabel }),
|
|
8904
|
+
/* @__PURE__ */ jsx(
|
|
8905
|
+
"select",
|
|
8906
|
+
{
|
|
8907
|
+
id: "invite-role",
|
|
8908
|
+
value: role,
|
|
8909
|
+
onChange: (e) => setRole(e.target.value),
|
|
8910
|
+
className: "w-full rounded-md border border-input bg-background px-3 py-2 min-h-[44px] text-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
8911
|
+
children: roles.map((r) => /* @__PURE__ */ jsx("option", { value: r.value, children: r.label }, r.value))
|
|
8912
|
+
}
|
|
8608
8913
|
)
|
|
8609
|
-
}
|
|
8610
|
-
|
|
8611
|
-
|
|
8612
|
-
|
|
8613
|
-
|
|
8614
|
-
|
|
8615
|
-
|
|
8616
|
-
|
|
8617
|
-
|
|
8618
|
-
|
|
8619
|
-
|
|
8620
|
-
|
|
8621
|
-
|
|
8622
|
-
|
|
8623
|
-
|
|
8624
|
-
|
|
8625
|
-
|
|
8626
|
-
|
|
8627
|
-
|
|
8628
|
-
|
|
8629
|
-
|
|
8630
|
-
|
|
8631
|
-
|
|
8632
|
-
|
|
8633
|
-
children: "Cancel"
|
|
8634
|
-
}
|
|
8635
|
-
),
|
|
8636
|
-
/* @__PURE__ */ jsx(
|
|
8637
|
-
"button",
|
|
8638
|
-
{
|
|
8639
|
-
type: "submit",
|
|
8640
|
-
disabled: isLoading,
|
|
8641
|
-
className: "inline-flex min-h-[44px] items-center justify-center rounded-md bg-primary px-4 text-sm font-medium text-primary-foreground hover:bg-primary/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-50 disabled:pointer-events-none",
|
|
8642
|
-
children: isLoading ? "Sending\u2026" : "Send Invitation"
|
|
8643
|
-
}
|
|
8644
|
-
)
|
|
8645
|
-
] })
|
|
8646
|
-
]
|
|
8914
|
+
] }),
|
|
8915
|
+
/* @__PURE__ */ jsxs("div", { className: "flex justify-end gap-2 pt-2", children: [
|
|
8916
|
+
/* @__PURE__ */ jsx(
|
|
8917
|
+
"button",
|
|
8918
|
+
{
|
|
8919
|
+
type: "button",
|
|
8920
|
+
onClick: () => onOpenChange(false),
|
|
8921
|
+
className: "inline-flex min-h-[44px] items-center justify-center rounded-md border border-border bg-background px-4 text-sm font-medium text-foreground hover:bg-accent hover:text-accent-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
8922
|
+
children: cancelLabel
|
|
8923
|
+
}
|
|
8924
|
+
),
|
|
8925
|
+
/* @__PURE__ */ jsx(
|
|
8926
|
+
"button",
|
|
8927
|
+
{
|
|
8928
|
+
type: "submit",
|
|
8929
|
+
disabled: isLoading,
|
|
8930
|
+
className: "inline-flex min-h-[44px] items-center justify-center rounded-md bg-primary px-4 text-sm font-medium text-primary-foreground hover:bg-primary/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-50 disabled:pointer-events-none",
|
|
8931
|
+
children: isLoading ? sendingLabel : sendInvitationLabel
|
|
8932
|
+
}
|
|
8933
|
+
)
|
|
8934
|
+
] })
|
|
8935
|
+
]
|
|
8936
|
+
}
|
|
8937
|
+
)
|
|
8647
8938
|
}
|
|
8648
|
-
)
|
|
8939
|
+
);
|
|
8649
8940
|
}
|
|
8650
8941
|
MosaicInviteMemberDialog.displayName = "MosaicInviteMemberDialog";
|
|
8651
8942
|
function MemberRow({
|
|
@@ -8653,7 +8944,10 @@ function MemberRow({
|
|
|
8653
8944
|
currentUserId,
|
|
8654
8945
|
onChangeRole,
|
|
8655
8946
|
onRemoveMember,
|
|
8656
|
-
roles
|
|
8947
|
+
roles,
|
|
8948
|
+
youLabel,
|
|
8949
|
+
memberActionsAriaLabel,
|
|
8950
|
+
removeMemberLabel
|
|
8657
8951
|
}) {
|
|
8658
8952
|
const [menuOpen, setMenuOpen] = React27.useState(false);
|
|
8659
8953
|
const menuRef = React27.useRef(null);
|
|
@@ -8680,7 +8974,7 @@ function MemberRow({
|
|
|
8680
8974
|
/* @__PURE__ */ jsxs("div", { className: "flex-1 min-w-0", children: [
|
|
8681
8975
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
8682
8976
|
/* @__PURE__ */ jsx("p", { className: "text-sm font-medium truncate", children: member.name }),
|
|
8683
|
-
isSelf && /* @__PURE__ */ jsx("span", { className: "shrink-0 rounded-full bg-muted px-1.5 py-0.5 text-[10px] text-muted-foreground", children:
|
|
8977
|
+
isSelf && /* @__PURE__ */ jsx("span", { className: "shrink-0 rounded-full bg-muted px-1.5 py-0.5 text-[10px] text-muted-foreground", children: youLabel })
|
|
8684
8978
|
] }),
|
|
8685
8979
|
/* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground truncate", children: member.email }),
|
|
8686
8980
|
joinedDate && /* @__PURE__ */ jsxs("p", { className: "text-xs text-muted-foreground", children: [
|
|
@@ -8696,7 +8990,7 @@ function MemberRow({
|
|
|
8696
8990
|
type: "button",
|
|
8697
8991
|
onClick: () => setMenuOpen((v) => !v),
|
|
8698
8992
|
className: "inline-flex h-8 w-8 items-center justify-center rounded-md text-muted-foreground hover:bg-accent hover:text-accent-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
8699
|
-
"aria-label":
|
|
8993
|
+
"aria-label": memberActionsAriaLabel,
|
|
8700
8994
|
children: /* @__PURE__ */ jsxs(
|
|
8701
8995
|
"svg",
|
|
8702
8996
|
{
|
|
@@ -8754,7 +9048,7 @@ function MemberRow({
|
|
|
8754
9048
|
setMenuOpen(false);
|
|
8755
9049
|
},
|
|
8756
9050
|
className: "flex w-full items-center px-3 py-2 text-sm text-destructive hover:bg-destructive/10",
|
|
8757
|
-
children:
|
|
9051
|
+
children: removeMemberLabel
|
|
8758
9052
|
}
|
|
8759
9053
|
)
|
|
8760
9054
|
]
|
|
@@ -8771,7 +9065,12 @@ function MosaicMemberList({
|
|
|
8771
9065
|
onInvite,
|
|
8772
9066
|
roles = DEFAULT_ROLES,
|
|
8773
9067
|
isLoading,
|
|
8774
|
-
searchPlaceholder
|
|
9068
|
+
searchPlaceholder,
|
|
9069
|
+
youLabel,
|
|
9070
|
+
memberActionsAriaLabel,
|
|
9071
|
+
removeMemberLabel,
|
|
9072
|
+
emptyMessage,
|
|
9073
|
+
inviteLabel,
|
|
8775
9074
|
className
|
|
8776
9075
|
}) {
|
|
8777
9076
|
const [query, setQuery] = React27.useState("");
|
|
@@ -8839,7 +9138,7 @@ function MosaicMemberList({
|
|
|
8839
9138
|
]
|
|
8840
9139
|
}
|
|
8841
9140
|
),
|
|
8842
|
-
|
|
9141
|
+
inviteLabel
|
|
8843
9142
|
]
|
|
8844
9143
|
}
|
|
8845
9144
|
)
|
|
@@ -8852,11 +9151,14 @@ function MosaicMemberList({
|
|
|
8852
9151
|
currentUserId,
|
|
8853
9152
|
onChangeRole,
|
|
8854
9153
|
onRemoveMember,
|
|
8855
|
-
roles
|
|
9154
|
+
roles,
|
|
9155
|
+
youLabel,
|
|
9156
|
+
memberActionsAriaLabel,
|
|
9157
|
+
removeMemberLabel
|
|
8856
9158
|
},
|
|
8857
9159
|
member.id
|
|
8858
9160
|
)),
|
|
8859
|
-
filtered.length === 0 && /* @__PURE__ */ jsx("p", { className: "py-8 text-center text-sm text-muted-foreground", children:
|
|
9161
|
+
filtered.length === 0 && /* @__PURE__ */ jsx("p", { className: "py-8 text-center text-sm text-muted-foreground", children: emptyMessage })
|
|
8860
9162
|
] })
|
|
8861
9163
|
] });
|
|
8862
9164
|
}
|
|
@@ -9046,13 +9348,15 @@ function SparklesIcon4() {
|
|
|
9046
9348
|
);
|
|
9047
9349
|
}
|
|
9048
9350
|
function MosaicDashboardHeader({
|
|
9049
|
-
title
|
|
9351
|
+
title,
|
|
9050
9352
|
subtitle,
|
|
9051
9353
|
notificationCount = 0,
|
|
9052
9354
|
onNotificationsClick,
|
|
9053
9355
|
onSearchChange,
|
|
9054
9356
|
actions,
|
|
9055
9357
|
logoSlot,
|
|
9358
|
+
searchPlaceholder,
|
|
9359
|
+
searchAriaLabel,
|
|
9056
9360
|
className
|
|
9057
9361
|
}) {
|
|
9058
9362
|
const { isMobile } = useDevice();
|
|
@@ -9089,7 +9393,7 @@ function MosaicDashboardHeader({
|
|
|
9089
9393
|
type: "search",
|
|
9090
9394
|
value: searchQuery,
|
|
9091
9395
|
onChange: handleSearch,
|
|
9092
|
-
placeholder:
|
|
9396
|
+
placeholder: searchPlaceholder,
|
|
9093
9397
|
className: cn63(
|
|
9094
9398
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
9095
9399
|
"text-sm placeholder:text-muted-foreground",
|
|
@@ -9104,7 +9408,7 @@ function MosaicDashboardHeader({
|
|
|
9104
9408
|
{
|
|
9105
9409
|
type: "button",
|
|
9106
9410
|
className: "inline-flex h-8 w-8 items-center justify-center rounded-md text-muted-foreground hover:bg-accent hover:text-accent-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
9107
|
-
"aria-label":
|
|
9411
|
+
"aria-label": searchAriaLabel,
|
|
9108
9412
|
onClick: () => {
|
|
9109
9413
|
},
|
|
9110
9414
|
children: /* @__PURE__ */ jsx(SearchIcon7, {})
|
|
@@ -9195,7 +9499,9 @@ function MosaicOrgSwitcher({
|
|
|
9195
9499
|
currentOrgId,
|
|
9196
9500
|
onSelectOrg,
|
|
9197
9501
|
onCreateOrg,
|
|
9198
|
-
createOrgLabel
|
|
9502
|
+
createOrgLabel,
|
|
9503
|
+
triggerAriaLabel,
|
|
9504
|
+
noOrgSelectedLabel,
|
|
9199
9505
|
className
|
|
9200
9506
|
}) {
|
|
9201
9507
|
const [open, setOpen] = React27.useState(false);
|
|
@@ -9234,7 +9540,7 @@ function MosaicOrgSwitcher({
|
|
|
9234
9540
|
className: "h-full w-full object-cover"
|
|
9235
9541
|
}
|
|
9236
9542
|
) : initials }),
|
|
9237
|
-
/* @__PURE__ */ jsx("span", { className: "max-w-[120px] truncate", children: currentOrg?.name ??
|
|
9543
|
+
/* @__PURE__ */ jsx("span", { className: "max-w-[120px] truncate", children: currentOrg?.name ?? noOrgSelectedLabel }),
|
|
9238
9544
|
/* @__PURE__ */ jsx(ChevronDownIcon4, {})
|
|
9239
9545
|
]
|
|
9240
9546
|
}
|
|
@@ -9243,7 +9549,7 @@ function MosaicOrgSwitcher({
|
|
|
9243
9549
|
"div",
|
|
9244
9550
|
{
|
|
9245
9551
|
role: "menu",
|
|
9246
|
-
"aria-label":
|
|
9552
|
+
"aria-label": triggerAriaLabel,
|
|
9247
9553
|
className: cn64(
|
|
9248
9554
|
"absolute left-0 top-full z-50 mt-1 min-w-[200px] rounded-md border border-border",
|
|
9249
9555
|
"bg-popover py-1 shadow-md"
|
|
@@ -9323,10 +9629,11 @@ function PlusIcon7() {
|
|
|
9323
9629
|
var DEFAULT_ACTIONS = [];
|
|
9324
9630
|
function MosaicQuickActionsMenu({
|
|
9325
9631
|
actions = DEFAULT_ACTIONS,
|
|
9326
|
-
label
|
|
9632
|
+
label,
|
|
9327
9633
|
triggerIcon,
|
|
9328
|
-
menuTitle
|
|
9634
|
+
menuTitle,
|
|
9329
9635
|
renderLink,
|
|
9636
|
+
emptyMessage,
|
|
9330
9637
|
className
|
|
9331
9638
|
}) {
|
|
9332
9639
|
const { isMobile } = useDevice();
|
|
@@ -9408,7 +9715,7 @@ function MosaicQuickActionsMenu({
|
|
|
9408
9715
|
}
|
|
9409
9716
|
)
|
|
9410
9717
|
] }, action.id)),
|
|
9411
|
-
actions.length === 0 && /* @__PURE__ */ jsx("p", { className: "px-3 py-4 text-center text-sm text-muted-foreground", children:
|
|
9718
|
+
actions.length === 0 && /* @__PURE__ */ jsx("p", { className: "px-3 py-4 text-center text-sm text-muted-foreground", children: emptyMessage })
|
|
9412
9719
|
]
|
|
9413
9720
|
}
|
|
9414
9721
|
)
|
|
@@ -9696,6 +10003,7 @@ function MosaicDataTable({
|
|
|
9696
10003
|
getRowKey,
|
|
9697
10004
|
sortable: masterSortable = true,
|
|
9698
10005
|
emptyState,
|
|
10006
|
+
emptyMessage,
|
|
9699
10007
|
className,
|
|
9700
10008
|
ref
|
|
9701
10009
|
}) {
|
|
@@ -9781,7 +10089,7 @@ function MosaicDataTable({
|
|
|
9781
10089
|
"data-slot": "data-table-empty-cell",
|
|
9782
10090
|
colSpan: columns.length,
|
|
9783
10091
|
className: "px-4 py-12 text-center text-muted-foreground",
|
|
9784
|
-
children: emptyState ??
|
|
10092
|
+
children: emptyState ?? emptyMessage
|
|
9785
10093
|
}
|
|
9786
10094
|
) }) : sortedRows.map((row, index) => {
|
|
9787
10095
|
const key = getRowKey ? getRowKey(row, index) : index;
|
|
@@ -9816,6 +10124,311 @@ function MosaicDataTable({
|
|
|
9816
10124
|
);
|
|
9817
10125
|
}
|
|
9818
10126
|
MosaicDataTable.displayName = "MosaicDataTable";
|
|
10127
|
+
var stepPipelineVariants = cva(["flex", "items-stretch"], {
|
|
10128
|
+
variants: {
|
|
10129
|
+
orientation: {
|
|
10130
|
+
horizontal: "flex-row items-center w-full",
|
|
10131
|
+
vertical: "flex-col"
|
|
10132
|
+
}
|
|
10133
|
+
},
|
|
10134
|
+
defaultVariants: {
|
|
10135
|
+
orientation: "horizontal"
|
|
10136
|
+
}
|
|
10137
|
+
});
|
|
10138
|
+
var stepIndicatorVariants = cva(
|
|
10139
|
+
[
|
|
10140
|
+
"flex items-center justify-center shrink-0",
|
|
10141
|
+
"rounded-full border-2 font-semibold text-sm select-none",
|
|
10142
|
+
"transition-colors"
|
|
10143
|
+
],
|
|
10144
|
+
{
|
|
10145
|
+
variants: {
|
|
10146
|
+
status: {
|
|
10147
|
+
done: "bg-foreground text-background border-foreground",
|
|
10148
|
+
current: "bg-background text-foreground border-foreground ring-2 ring-ring ring-offset-2",
|
|
10149
|
+
upcoming: "bg-muted text-muted-foreground border-border"
|
|
10150
|
+
},
|
|
10151
|
+
orientation: {
|
|
10152
|
+
horizontal: "size-8",
|
|
10153
|
+
vertical: "size-8"
|
|
10154
|
+
}
|
|
10155
|
+
},
|
|
10156
|
+
defaultVariants: {
|
|
10157
|
+
status: "upcoming",
|
|
10158
|
+
orientation: "horizontal"
|
|
10159
|
+
}
|
|
10160
|
+
}
|
|
10161
|
+
);
|
|
10162
|
+
var stepConnectorVariants = cva(["shrink-0 transition-colors"], {
|
|
10163
|
+
variants: {
|
|
10164
|
+
status: {
|
|
10165
|
+
done: "bg-foreground",
|
|
10166
|
+
current: "bg-border",
|
|
10167
|
+
upcoming: "bg-border"
|
|
10168
|
+
},
|
|
10169
|
+
orientation: {
|
|
10170
|
+
horizontal: "h-px flex-1 min-w-4",
|
|
10171
|
+
vertical: "w-px self-stretch min-h-4 ml-4"
|
|
10172
|
+
}
|
|
10173
|
+
},
|
|
10174
|
+
defaultVariants: {
|
|
10175
|
+
status: "upcoming",
|
|
10176
|
+
orientation: "horizontal"
|
|
10177
|
+
}
|
|
10178
|
+
});
|
|
10179
|
+
var stepLabelVariants = cva(["text-sm font-medium transition-colors"], {
|
|
10180
|
+
variants: {
|
|
10181
|
+
status: {
|
|
10182
|
+
done: "text-foreground",
|
|
10183
|
+
current: "text-foreground",
|
|
10184
|
+
upcoming: "text-muted-foreground"
|
|
10185
|
+
}
|
|
10186
|
+
},
|
|
10187
|
+
defaultVariants: {
|
|
10188
|
+
status: "upcoming"
|
|
10189
|
+
}
|
|
10190
|
+
});
|
|
10191
|
+
var stepDescriptionVariants = cva(["text-xs transition-colors"], {
|
|
10192
|
+
variants: {
|
|
10193
|
+
status: {
|
|
10194
|
+
done: "text-muted-foreground",
|
|
10195
|
+
current: "text-muted-foreground",
|
|
10196
|
+
upcoming: "text-muted-foreground/60"
|
|
10197
|
+
}
|
|
10198
|
+
},
|
|
10199
|
+
defaultVariants: {
|
|
10200
|
+
status: "upcoming"
|
|
10201
|
+
}
|
|
10202
|
+
});
|
|
10203
|
+
function cn67(...classes) {
|
|
10204
|
+
return classes.filter(Boolean).join(" ");
|
|
10205
|
+
}
|
|
10206
|
+
function resolveStatus(step, index, currentIndex) {
|
|
10207
|
+
if (step.status !== void 0) return step.status;
|
|
10208
|
+
if (index < currentIndex) return "done";
|
|
10209
|
+
if (index === currentIndex) return "current";
|
|
10210
|
+
return "upcoming";
|
|
10211
|
+
}
|
|
10212
|
+
function MosaicStepPipeline({
|
|
10213
|
+
steps,
|
|
10214
|
+
currentIndex = 0,
|
|
10215
|
+
orientation = "horizontal",
|
|
10216
|
+
className,
|
|
10217
|
+
ref
|
|
10218
|
+
}) {
|
|
10219
|
+
return /* @__PURE__ */ jsx(
|
|
10220
|
+
"ol",
|
|
10221
|
+
{
|
|
10222
|
+
ref,
|
|
10223
|
+
"data-slot": "step-pipeline",
|
|
10224
|
+
className: cn67(stepPipelineVariants({ orientation }), className),
|
|
10225
|
+
children: steps.map((step, index) => {
|
|
10226
|
+
const status = resolveStatus(step, index, currentIndex);
|
|
10227
|
+
const isCurrent = status === "current";
|
|
10228
|
+
const isLast = index === steps.length - 1;
|
|
10229
|
+
const key = step.id !== void 0 ? step.id : index;
|
|
10230
|
+
return /* @__PURE__ */ jsx(
|
|
10231
|
+
"li",
|
|
10232
|
+
{
|
|
10233
|
+
"data-slot": "step",
|
|
10234
|
+
"data-status": status,
|
|
10235
|
+
"aria-current": isCurrent ? "step" : void 0,
|
|
10236
|
+
className: cn67(
|
|
10237
|
+
"flex shrink-0",
|
|
10238
|
+
orientation === "horizontal" ? "flex-col items-center gap-2" : "flex-row items-start gap-3",
|
|
10239
|
+
orientation === "horizontal" && !isLast && "flex-1"
|
|
10240
|
+
),
|
|
10241
|
+
children: orientation === "horizontal" ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
10242
|
+
/* @__PURE__ */ jsxs("div", { className: "flex w-full items-center", children: [
|
|
10243
|
+
index > 0 && /* @__PURE__ */ jsx(
|
|
10244
|
+
"div",
|
|
10245
|
+
{
|
|
10246
|
+
"data-slot": "step-connector",
|
|
10247
|
+
className: cn67(stepConnectorVariants({ status, orientation }))
|
|
10248
|
+
}
|
|
10249
|
+
),
|
|
10250
|
+
/* @__PURE__ */ jsx(
|
|
10251
|
+
"div",
|
|
10252
|
+
{
|
|
10253
|
+
"data-slot": "step-indicator",
|
|
10254
|
+
className: cn67(stepIndicatorVariants({ status, orientation })),
|
|
10255
|
+
"aria-hidden": "true",
|
|
10256
|
+
children: status === "done" ? "\u2713" : /* @__PURE__ */ jsx("span", { children: index + 1 })
|
|
10257
|
+
}
|
|
10258
|
+
),
|
|
10259
|
+
!isLast && /* @__PURE__ */ jsx(
|
|
10260
|
+
"div",
|
|
10261
|
+
{
|
|
10262
|
+
"data-slot": "step-connector",
|
|
10263
|
+
className: cn67(
|
|
10264
|
+
stepConnectorVariants({
|
|
10265
|
+
// connector after current step is still upcoming
|
|
10266
|
+
status: status === "done" ? "done" : "upcoming",
|
|
10267
|
+
orientation
|
|
10268
|
+
})
|
|
10269
|
+
)
|
|
10270
|
+
}
|
|
10271
|
+
)
|
|
10272
|
+
] }),
|
|
10273
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center gap-0.5 text-center px-1", children: [
|
|
10274
|
+
/* @__PURE__ */ jsx("span", { "data-slot": "step-label", className: cn67(stepLabelVariants({ status })), children: step.label }),
|
|
10275
|
+
step.description !== void 0 && /* @__PURE__ */ jsx(
|
|
10276
|
+
"span",
|
|
10277
|
+
{
|
|
10278
|
+
"data-slot": "step-description",
|
|
10279
|
+
className: cn67(stepDescriptionVariants({ status })),
|
|
10280
|
+
children: step.description
|
|
10281
|
+
}
|
|
10282
|
+
)
|
|
10283
|
+
] })
|
|
10284
|
+
] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
10285
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center", children: [
|
|
10286
|
+
/* @__PURE__ */ jsx(
|
|
10287
|
+
"div",
|
|
10288
|
+
{
|
|
10289
|
+
"data-slot": "step-indicator",
|
|
10290
|
+
className: cn67(stepIndicatorVariants({ status, orientation })),
|
|
10291
|
+
"aria-hidden": "true",
|
|
10292
|
+
children: status === "done" ? "\u2713" : /* @__PURE__ */ jsx("span", { children: index + 1 })
|
|
10293
|
+
}
|
|
10294
|
+
),
|
|
10295
|
+
!isLast && /* @__PURE__ */ jsx(
|
|
10296
|
+
"div",
|
|
10297
|
+
{
|
|
10298
|
+
"data-slot": "step-connector",
|
|
10299
|
+
className: cn67(
|
|
10300
|
+
stepConnectorVariants({
|
|
10301
|
+
status: status === "done" ? "done" : "upcoming",
|
|
10302
|
+
orientation
|
|
10303
|
+
})
|
|
10304
|
+
)
|
|
10305
|
+
}
|
|
10306
|
+
)
|
|
10307
|
+
] }),
|
|
10308
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-0.5 pt-1 pb-4", children: [
|
|
10309
|
+
/* @__PURE__ */ jsx("span", { "data-slot": "step-label", className: cn67(stepLabelVariants({ status })), children: step.label }),
|
|
10310
|
+
step.description !== void 0 && /* @__PURE__ */ jsx(
|
|
10311
|
+
"span",
|
|
10312
|
+
{
|
|
10313
|
+
"data-slot": "step-description",
|
|
10314
|
+
className: cn67(stepDescriptionVariants({ status })),
|
|
10315
|
+
children: step.description
|
|
10316
|
+
}
|
|
10317
|
+
)
|
|
10318
|
+
] })
|
|
10319
|
+
] })
|
|
10320
|
+
},
|
|
10321
|
+
key
|
|
10322
|
+
);
|
|
10323
|
+
})
|
|
10324
|
+
}
|
|
10325
|
+
);
|
|
10326
|
+
}
|
|
10327
|
+
MosaicStepPipeline.displayName = "MosaicStepPipeline";
|
|
10328
|
+
function cn68(...classes) {
|
|
10329
|
+
return classes.filter(Boolean).join(" ");
|
|
10330
|
+
}
|
|
10331
|
+
function MosaicKanbanBoard({ children, className, ref, ...props }) {
|
|
10332
|
+
return /* @__PURE__ */ jsx(
|
|
10333
|
+
"div",
|
|
10334
|
+
{
|
|
10335
|
+
ref,
|
|
10336
|
+
"data-slot": "kanban-board",
|
|
10337
|
+
className: cn68(
|
|
10338
|
+
"flex gap-4 overflow-x-auto pb-4",
|
|
10339
|
+
"min-h-0",
|
|
10340
|
+
// Smooth momentum scrolling on iOS
|
|
10341
|
+
"[scroll-behavior:smooth]",
|
|
10342
|
+
className
|
|
10343
|
+
),
|
|
10344
|
+
...props,
|
|
10345
|
+
children
|
|
10346
|
+
}
|
|
10347
|
+
);
|
|
10348
|
+
}
|
|
10349
|
+
MosaicKanbanBoard.displayName = "MosaicKanbanBoard";
|
|
10350
|
+
function cn69(...classes) {
|
|
10351
|
+
return classes.filter(Boolean).join(" ");
|
|
10352
|
+
}
|
|
10353
|
+
function MosaicKanbanColumn({
|
|
10354
|
+
title,
|
|
10355
|
+
count,
|
|
10356
|
+
headerActions,
|
|
10357
|
+
children,
|
|
10358
|
+
footer,
|
|
10359
|
+
countLabel,
|
|
10360
|
+
className,
|
|
10361
|
+
ref
|
|
10362
|
+
}) {
|
|
10363
|
+
return /* @__PURE__ */ jsxs(
|
|
10364
|
+
"section",
|
|
10365
|
+
{
|
|
10366
|
+
ref,
|
|
10367
|
+
"data-slot": "kanban-column",
|
|
10368
|
+
className: cn69(
|
|
10369
|
+
// Fixed column width, never shrink so board stays scrollable
|
|
10370
|
+
"flex flex-col w-72 shrink-0",
|
|
10371
|
+
// Surface
|
|
10372
|
+
"rounded-lg border border-border bg-muted/30",
|
|
10373
|
+
className
|
|
10374
|
+
),
|
|
10375
|
+
children: [
|
|
10376
|
+
/* @__PURE__ */ jsxs(
|
|
10377
|
+
"div",
|
|
10378
|
+
{
|
|
10379
|
+
"data-slot": "kanban-column-header",
|
|
10380
|
+
className: "flex items-center justify-between gap-2 px-3 py-2.5 border-b border-border",
|
|
10381
|
+
children: [
|
|
10382
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 min-w-0", children: [
|
|
10383
|
+
/* @__PURE__ */ jsx("span", { className: "text-sm font-semibold text-foreground truncate", children: title }),
|
|
10384
|
+
count !== void 0 && /* @__PURE__ */ jsx(
|
|
10385
|
+
"span",
|
|
10386
|
+
{
|
|
10387
|
+
"data-slot": "kanban-column-count",
|
|
10388
|
+
"aria-label": countLabel(count),
|
|
10389
|
+
className: cn69(
|
|
10390
|
+
"inline-flex items-center justify-center",
|
|
10391
|
+
"min-w-[1.25rem] h-5 px-1.5 rounded-full",
|
|
10392
|
+
"bg-muted text-muted-foreground",
|
|
10393
|
+
"text-xs font-medium tabular-nums",
|
|
10394
|
+
"select-none"
|
|
10395
|
+
),
|
|
10396
|
+
children: count
|
|
10397
|
+
}
|
|
10398
|
+
)
|
|
10399
|
+
] }),
|
|
10400
|
+
headerActions && /* @__PURE__ */ jsx(
|
|
10401
|
+
"div",
|
|
10402
|
+
{
|
|
10403
|
+
"data-slot": "kanban-column-header-actions",
|
|
10404
|
+
className: "flex items-center gap-1 shrink-0",
|
|
10405
|
+
children: headerActions
|
|
10406
|
+
}
|
|
10407
|
+
)
|
|
10408
|
+
]
|
|
10409
|
+
}
|
|
10410
|
+
),
|
|
10411
|
+
/* @__PURE__ */ jsx(
|
|
10412
|
+
"div",
|
|
10413
|
+
{
|
|
10414
|
+
"data-slot": "kanban-column-body",
|
|
10415
|
+
className: "flex flex-col gap-2 p-2 overflow-y-auto flex-1 min-h-0",
|
|
10416
|
+
children
|
|
10417
|
+
}
|
|
10418
|
+
),
|
|
10419
|
+
footer && /* @__PURE__ */ jsx(
|
|
10420
|
+
"div",
|
|
10421
|
+
{
|
|
10422
|
+
"data-slot": "kanban-column-footer",
|
|
10423
|
+
className: "px-3 py-2 border-t border-border text-sm text-muted-foreground",
|
|
10424
|
+
children: footer
|
|
10425
|
+
}
|
|
10426
|
+
)
|
|
10427
|
+
]
|
|
10428
|
+
}
|
|
10429
|
+
);
|
|
10430
|
+
}
|
|
10431
|
+
MosaicKanbanColumn.displayName = "MosaicKanbanColumn";
|
|
9819
10432
|
var WorkspaceCtx = React27.createContext({
|
|
9820
10433
|
workspaceId: null,
|
|
9821
10434
|
isLoading: false
|
|
@@ -9937,6 +10550,6 @@ async function MosaicClerkWebhookHandler(req, options) {
|
|
|
9937
10550
|
return new Response("OK", { status: 200 });
|
|
9938
10551
|
}
|
|
9939
10552
|
|
|
9940
|
-
export { MosaicAccordion, MosaicAccordionItem, MosaicAccordionPanel, MosaicAccordionTrigger, MosaicActivityFeed, MosaicActivityItem, MosaicAdaptiveGrid, MosaicAdaptiveModal, MosaicAdaptiveNavigation, MosaicAgentCard, MosaicAgentComposer, MosaicAgentComposerDesktop, MosaicAgentComposerMobile, MosaicAgentList, AgentListDesktop as MosaicAgentListDesktop, AgentListMobile as MosaicAgentListMobile, MosaicAgentTeamPreview, MosaicAnimatedList, MosaicAppSidebar, MosaicAvatar, MosaicBadge, MosaicBlurredOrb, MosaicButton, MosaicCard, MosaicCardContent, MosaicCardDescription, MosaicCardFooter, MosaicCardHeader, MosaicCardTitle, MosaicCheckbox, MosaicClerkOrgSwitcher, MosaicClerkWebhookHandler, MosaicCollapsible, MosaicCollapsiblePanel, MosaicCollapsibleTrigger, MosaicCombobox, MosaicCounter, MosaicCreateOrgDialog, MosaicDashboardContent, MosaicDashboardHeader, MosaicDashboardLayout, MosaicDataTable, MosaicDeleteConfirmationDialog, MosaicDeviceProvider, MosaicDropdownMenu, MosaicEmptyState, MosaicFallingPattern, MosaicFeature3Col, MosaicFeatureCenteredMedia, MosaicField, MosaicFieldControl, MosaicFieldDescription, MosaicFieldError, MosaicFieldLabel, MosaicFilterBar, MosaicFilterSidebar, MosaicFooterSimple, MosaicHeroSplit, MosaicInput, MosaicInputGroup, MosaicIntegrationsBadge, MosaicInviteMemberDialog, MosaicLogosGrid, MosaicMainNav, MosaicMarketplaceList, MarketplaceListDesktop as MosaicMarketplaceListDesktop, MarketplaceListMobile as MosaicMarketplaceListMobile, MosaicMemberList, MosaicMessageCard, MosaicMessageList, MessageListDesktop as MosaicMessageListDesktop, MessageListMobile as MosaicMessageListMobile, MosaicModuleCard, MosaicModuleForm, MosaicModuleLibrary, MosaicMultiOrgIndicator, MosaicMultiTenantProvider, MosaicNavbar, MosaicOrgPanel, MosaicOrgProfilePage, MosaicOrgRoleBadge, MosaicOrgSwitcher, MosaicPreferencesPanel, MosaicPricingCard, MosaicProfilePanel, MosaicProgress, MosaicQuickActionCard, MosaicQuickActionsMenu, MosaicQuickAgentSelector, MosaicQuickStartPanel, MosaicRadioGroup, MosaicRadioGroupItem, MosaicScrollArea, MosaicSelect, MosaicSelectorModal, MosaicSeparator, MosaicSignInLayout, MosaicSignUpLayout, MosaicSkeleton, MosaicSlider, MosaicStatsGrid, MosaicSwitch, MosaicTabs, MosaicTabsList, MosaicTabsPanel, MosaicTabsTrigger, MosaicTemplateCard, MosaicTemplateGallery, MosaicTemplatePreview, MosaicTestimonialsGrid, MosaicTextarea, MosaicThemeProvider, MosaicThemeToggle, MosaicTooltip, MosaicUserButton, Placeholder, badgeVariants, buttonVariants, skeletonVariants, useBreakpoint, useDevice, useMosaicWorkspace as useEffectiveWorkspaceId, useIsDesktop, useIsMobile, useIsTablet, useMediaQuery, useMosaicWorkspace, useOrientation, useViewport, version };
|
|
10553
|
+
export { MosaicAccordion, MosaicAccordionItem, MosaicAccordionPanel, MosaicAccordionTrigger, MosaicActivityFeed, MosaicActivityItem, MosaicAdaptiveGrid, MosaicAdaptiveModal, MosaicAdaptiveNavigation, MosaicAgentCard, MosaicAgentComposer, MosaicAgentComposerDesktop, MosaicAgentComposerMobile, MosaicAgentList, AgentListDesktop as MosaicAgentListDesktop, AgentListMobile as MosaicAgentListMobile, MosaicAgentTeamPreview, MosaicAnimatedList, MosaicAppSidebar, MosaicAvatar, MosaicBadge, MosaicBlurredOrb, MosaicButton, MosaicCard, MosaicCardContent, MosaicCardDescription, MosaicCardFooter, MosaicCardHeader, MosaicCardTitle, MosaicCheckbox, MosaicClerkOrgSwitcher, MosaicClerkWebhookHandler, MosaicCollapsible, MosaicCollapsiblePanel, MosaicCollapsibleTrigger, MosaicCombobox, MosaicCounter, MosaicCreateOrgDialog, MosaicDashboardContent, MosaicDashboardHeader, MosaicDashboardLayout, MosaicDataTable, MosaicDeleteConfirmationDialog, MosaicDeviceProvider, MosaicDropdownMenu, MosaicEmptyState, MosaicFallingPattern, MosaicFeature3Col, MosaicFeatureCenteredMedia, MosaicField, MosaicFieldControl, MosaicFieldDescription, MosaicFieldError, MosaicFieldLabel, MosaicFilterBar, MosaicFilterSidebar, MosaicFooterSimple, MosaicHeroSplit, MosaicInput, MosaicInputGroup, MosaicIntegrationsBadge, MosaicInviteMemberDialog, MosaicKanbanBoard, MosaicKanbanColumn, MosaicLogosGrid, MosaicMainNav, MosaicMarketplaceList, MarketplaceListDesktop as MosaicMarketplaceListDesktop, MarketplaceListMobile as MosaicMarketplaceListMobile, MosaicMemberList, MosaicMessageCard, MosaicMessageList, MessageListDesktop as MosaicMessageListDesktop, MessageListMobile as MosaicMessageListMobile, MosaicModuleCard, MosaicModuleForm, MosaicModuleLibrary, MosaicMultiOrgIndicator, MosaicMultiTenantProvider, MosaicNavbar, MosaicOrgPanel, MosaicOrgProfilePage, MosaicOrgRoleBadge, MosaicOrgSwitcher, MosaicPreferencesPanel, MosaicPricingCard, MosaicProfilePanel, MosaicProgress, MosaicQuickActionCard, MosaicQuickActionsMenu, MosaicQuickAgentSelector, MosaicQuickStartPanel, MosaicRadioGroup, MosaicRadioGroupItem, MosaicScrollArea, MosaicSelect, MosaicSelectorModal, MosaicSeparator, MosaicSignInLayout, MosaicSignUpLayout, MosaicSkeleton, MosaicSlider, MosaicStatsGrid, MosaicStepPipeline, MosaicSwitch, MosaicTabs, MosaicTabsList, MosaicTabsPanel, MosaicTabsTrigger, MosaicTemplateCard, MosaicTemplateGallery, MosaicTemplatePreview, MosaicTestimonialsGrid, MosaicTextarea, MosaicThemeProvider, MosaicThemeToggle, MosaicTooltip, MosaicUserButton, Placeholder, badgeVariants, buttonVariants, skeletonVariants, useBreakpoint, useDevice, useMosaicWorkspace as useEffectiveWorkspaceId, useIsDesktop, useIsMobile, useIsTablet, useMediaQuery, useMosaicWorkspace, useOrientation, useViewport, version };
|
|
9941
10554
|
//# sourceMappingURL=index.js.map
|
|
9942
10555
|
//# sourceMappingURL=index.js.map
|