@vantageos/mosaic-blocks 0.3.0-alpha → 0.3.3-alpha
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +381 -278
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +109 -3
- package/dist/index.d.ts +109 -3
- package/dist/index.js +379 -279
- package/dist/index.js.map +1 -1
- package/dist/server.cjs +22 -0
- package/dist/server.cjs.map +1 -1
- package/dist/server.d.cts +14 -1
- package/dist/server.d.ts +14 -1
- package/dist/server.js +22 -1
- package/dist/server.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -46,7 +46,7 @@ function _interopNamespace(e) {
|
|
|
46
46
|
var React27__namespace = /*#__PURE__*/_interopNamespace(React27);
|
|
47
47
|
|
|
48
48
|
// src/version.ts
|
|
49
|
-
var version = "0.3.
|
|
49
|
+
var version = "0.3.3-alpha";
|
|
50
50
|
function Placeholder({ label = "mosaic-blocks placeholder" }) {
|
|
51
51
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { "data-mosaic-block": "placeholder", children: label });
|
|
52
52
|
}
|
|
@@ -103,9 +103,70 @@ function MosaicButton({ className, variant, size, ref, ...props }) {
|
|
|
103
103
|
);
|
|
104
104
|
}
|
|
105
105
|
MosaicButton.displayName = "MosaicButton";
|
|
106
|
+
var skeletonVariants = classVarianceAuthority.cva(
|
|
107
|
+
// Base: animate-pulse + muted background token
|
|
108
|
+
["animate-pulse", "bg-muted"],
|
|
109
|
+
{
|
|
110
|
+
variants: {
|
|
111
|
+
variant: {
|
|
112
|
+
/** Rounded block — generic rectangular placeholder (cards, images, sections) */
|
|
113
|
+
default: "rounded-md",
|
|
114
|
+
/** Text line — h-4 rounded, for single/multi-line text placeholders */
|
|
115
|
+
text: "h-4 rounded",
|
|
116
|
+
/** Circle — rounded-full aspect-square, for avatars and icons */
|
|
117
|
+
circle: "rounded-full aspect-square",
|
|
118
|
+
/** Button-shaped — h-9 rounded-md, mirrors MosaicButton default size */
|
|
119
|
+
button: "h-9 rounded-md"
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
defaultVariants: {
|
|
123
|
+
variant: "default"
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
);
|
|
106
127
|
function cn2(...classes) {
|
|
107
128
|
return classes.filter(Boolean).join(" ");
|
|
108
129
|
}
|
|
130
|
+
function MosaicSkeleton({
|
|
131
|
+
className,
|
|
132
|
+
variant,
|
|
133
|
+
lines = 1,
|
|
134
|
+
ref,
|
|
135
|
+
...props
|
|
136
|
+
}) {
|
|
137
|
+
if (variant === "text" && lines > 1) {
|
|
138
|
+
const lineKeys = Array.from({ length: lines }, (_, i) => `line-${lines}-${i}`);
|
|
139
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
140
|
+
"div",
|
|
141
|
+
{
|
|
142
|
+
ref,
|
|
143
|
+
"data-slot": "skeleton",
|
|
144
|
+
className: cn2("flex flex-col gap-2", className),
|
|
145
|
+
...props,
|
|
146
|
+
children: lineKeys.map((key, i) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
147
|
+
"div",
|
|
148
|
+
{
|
|
149
|
+
className: cn2(skeletonVariants({ variant }), i === lines - 1 && "w-[60%]")
|
|
150
|
+
},
|
|
151
|
+
key
|
|
152
|
+
))
|
|
153
|
+
}
|
|
154
|
+
);
|
|
155
|
+
}
|
|
156
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
157
|
+
"div",
|
|
158
|
+
{
|
|
159
|
+
ref,
|
|
160
|
+
"data-slot": "skeleton",
|
|
161
|
+
className: cn2(skeletonVariants({ variant }), className),
|
|
162
|
+
...props
|
|
163
|
+
}
|
|
164
|
+
);
|
|
165
|
+
}
|
|
166
|
+
MosaicSkeleton.displayName = "MosaicSkeleton";
|
|
167
|
+
function cn3(...classes) {
|
|
168
|
+
return classes.filter(Boolean).join(" ");
|
|
169
|
+
}
|
|
109
170
|
function MosaicNavbar({ logo, links, cta, className, ref }) {
|
|
110
171
|
const [isScrolled, setIsScrolled] = React27__namespace.useState(false);
|
|
111
172
|
const [isHidden, setIsHidden] = React27__namespace.useState(false);
|
|
@@ -137,7 +198,7 @@ function MosaicNavbar({ logo, links, cta, className, ref }) {
|
|
|
137
198
|
{
|
|
138
199
|
ref,
|
|
139
200
|
"aria-label": "Main navigation",
|
|
140
|
-
className:
|
|
201
|
+
className: cn3(
|
|
141
202
|
"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",
|
|
142
203
|
isHidden ? "opacity-0 -translate-y-5 pointer-events-none" : "opacity-100 translate-y-0",
|
|
143
204
|
className
|
|
@@ -145,7 +206,7 @@ function MosaicNavbar({ logo, links, cta, className, ref }) {
|
|
|
145
206
|
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
146
207
|
"div",
|
|
147
208
|
{
|
|
148
|
-
className:
|
|
209
|
+
className: cn3(
|
|
149
210
|
"relative mx-auto transition-transform duration-200",
|
|
150
211
|
isScrolled ? "scale-[0.98]" : "scale-100"
|
|
151
212
|
),
|
|
@@ -153,7 +214,7 @@ function MosaicNavbar({ logo, links, cta, className, ref }) {
|
|
|
153
214
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
154
215
|
"div",
|
|
155
216
|
{
|
|
156
|
-
className:
|
|
217
|
+
className: cn3(
|
|
157
218
|
"flex flex-row items-center justify-between gap-4 rounded-full border border-[oklch(0.9_0.005_250)] p-2 transition-all duration-300",
|
|
158
219
|
isScrolled ? "bg-[oklch(1_0_0_/_0.8)] backdrop-blur-[12px] shadow-[0_4px_20px_-5px_oklch(0_0_0_/_0.1)]" : "bg-[oklch(1_0_0)]"
|
|
159
220
|
),
|
|
@@ -248,7 +309,7 @@ function MosaicNavbar({ logo, links, cta, className, ref }) {
|
|
|
248
309
|
);
|
|
249
310
|
}
|
|
250
311
|
MosaicNavbar.displayName = "MosaicNavbar";
|
|
251
|
-
function
|
|
312
|
+
function cn4(...classes) {
|
|
252
313
|
return classes.filter(Boolean).join(" ");
|
|
253
314
|
}
|
|
254
315
|
function MosaicHeroSplit({
|
|
@@ -265,7 +326,7 @@ function MosaicHeroSplit({
|
|
|
265
326
|
"section",
|
|
266
327
|
{
|
|
267
328
|
ref,
|
|
268
|
-
className:
|
|
329
|
+
className: cn4(
|
|
269
330
|
"flex flex-col gap-16 items-center justify-center py-8 lg:pt-16 px-4",
|
|
270
331
|
className
|
|
271
332
|
),
|
|
@@ -299,7 +360,7 @@ function MosaicHeroSplit({
|
|
|
299
360
|
);
|
|
300
361
|
}
|
|
301
362
|
MosaicHeroSplit.displayName = "MosaicHeroSplit";
|
|
302
|
-
function
|
|
363
|
+
function cn5(...classes) {
|
|
303
364
|
return classes.filter(Boolean).join(" ");
|
|
304
365
|
}
|
|
305
366
|
function MosaicFeatureCenteredMedia({
|
|
@@ -310,7 +371,7 @@ function MosaicFeatureCenteredMedia({
|
|
|
310
371
|
className,
|
|
311
372
|
ref
|
|
312
373
|
}) {
|
|
313
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("section", { ref, className:
|
|
374
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("section", { ref, className: cn5("relative mx-auto w-full max-w-6xl px-4 py-16", className), children: [
|
|
314
375
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mb-12 text-center lg:mb-16", children: [
|
|
315
376
|
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-3xl font-medium tracking-tight text-[oklch(0.12_0.01_250)] sm:text-4xl", children: title }),
|
|
316
377
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-4 text-sm text-[oklch(0.5_0.01_250)] sm:text-base max-w-xl mx-auto", children: body })
|
|
@@ -323,11 +384,11 @@ function MosaicFeatureCenteredMedia({
|
|
|
323
384
|
] });
|
|
324
385
|
}
|
|
325
386
|
MosaicFeatureCenteredMedia.displayName = "MosaicFeatureCenteredMedia";
|
|
326
|
-
function
|
|
387
|
+
function cn6(...classes) {
|
|
327
388
|
return classes.filter(Boolean).join(" ");
|
|
328
389
|
}
|
|
329
390
|
function MosaicStatsGrid({ stats, heading, subtext, className, ref }) {
|
|
330
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("section", { ref, className:
|
|
391
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("section", { ref, className: cn6("w-full py-16", className), children: [
|
|
331
392
|
(heading ?? subtext) && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mb-16 flex flex-col items-center gap-3 px-4 text-center", children: [
|
|
332
393
|
heading && /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-3xl font-medium tracking-tight text-[oklch(0.12_0.01_250)] sm:text-4xl", children: heading }),
|
|
333
394
|
subtext && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "max-w-md text-sm text-[oklch(0.5_0.01_250)] sm:text-base", children: subtext })
|
|
@@ -355,7 +416,7 @@ function MosaicStatsGrid({ stats, heading, subtext, className, ref }) {
|
|
|
355
416
|
] });
|
|
356
417
|
}
|
|
357
418
|
MosaicStatsGrid.displayName = "MosaicStatsGrid";
|
|
358
|
-
function
|
|
419
|
+
function cn7(...classes) {
|
|
359
420
|
return classes.filter(Boolean).join(" ");
|
|
360
421
|
}
|
|
361
422
|
function MosaicPricingCard({
|
|
@@ -371,7 +432,7 @@ function MosaicPricingCard({
|
|
|
371
432
|
"div",
|
|
372
433
|
{
|
|
373
434
|
ref,
|
|
374
|
-
className:
|
|
435
|
+
className: cn7(
|
|
375
436
|
"flex min-w-72 flex-col gap-6 rounded-2xl border p-8",
|
|
376
437
|
highlighted ? "border-[oklch(0.6_0.15_250_/_0.5)] bg-[oklch(0.97_0.02_250)]" : "border-[oklch(0.9_0.005_250)] bg-[oklch(1_0_0)]",
|
|
377
438
|
className
|
|
@@ -380,7 +441,7 @@ function MosaicPricingCard({
|
|
|
380
441
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
381
442
|
"span",
|
|
382
443
|
{
|
|
383
|
-
className:
|
|
444
|
+
className: cn7(
|
|
384
445
|
"inline-flex w-fit items-center rounded-sm border px-2.5 py-0.5 text-xs font-semibold",
|
|
385
446
|
highlighted ? "border-transparent bg-[oklch(0.15_0.01_250)] text-[oklch(0.98_0_0)]" : "border-[oklch(0.85_0.01_250)] bg-[oklch(1_0_0)] text-[oklch(0.2_0.01_250)]"
|
|
386
447
|
),
|
|
@@ -392,7 +453,7 @@ function MosaicPricingCard({
|
|
|
392
453
|
"a",
|
|
393
454
|
{
|
|
394
455
|
href: cta.href,
|
|
395
|
-
className:
|
|
456
|
+
className: cn7(
|
|
396
457
|
"inline-flex w-full items-center justify-center rounded-lg px-4 py-2.5 text-sm font-medium transition-colors",
|
|
397
458
|
highlighted ? "bg-[oklch(0.15_0.01_250)] text-[oklch(0.98_0_0)] hover:bg-[oklch(0.25_0.01_250)]" : "border border-[oklch(0.75_0.01_250)] bg-transparent text-[oklch(0.15_0.01_250)] hover:bg-[oklch(0.96_0.005_250)]"
|
|
398
459
|
),
|
|
@@ -424,7 +485,7 @@ function MosaicPricingCard({
|
|
|
424
485
|
);
|
|
425
486
|
}
|
|
426
487
|
MosaicPricingCard.displayName = "MosaicPricingCard";
|
|
427
|
-
function
|
|
488
|
+
function cn8(...classes) {
|
|
428
489
|
return classes.filter(Boolean).join(" ");
|
|
429
490
|
}
|
|
430
491
|
function prefersReducedMotion() {
|
|
@@ -439,7 +500,7 @@ function MosaicLogosGrid({ logos, heading, stagger, className, ref }) {
|
|
|
439
500
|
"section",
|
|
440
501
|
{
|
|
441
502
|
ref,
|
|
442
|
-
className:
|
|
503
|
+
className: cn8(
|
|
443
504
|
"flex flex-col items-center justify-center gap-8 px-4 py-12 mx-auto max-w-6xl",
|
|
444
505
|
className
|
|
445
506
|
),
|
|
@@ -450,7 +511,7 @@ function MosaicLogosGrid({ logos, heading, stagger, className, ref }) {
|
|
|
450
511
|
"div",
|
|
451
512
|
{
|
|
452
513
|
"data-slot": "logos-grid-item",
|
|
453
|
-
className:
|
|
514
|
+
className: cn8(
|
|
454
515
|
"transition-transform duration-200 hover:scale-110",
|
|
455
516
|
isStagger && !reducedMotion && "mosaic-logo-stagger"
|
|
456
517
|
),
|
|
@@ -478,7 +539,7 @@ function MosaicLogosGrid({ logos, heading, stagger, className, ref }) {
|
|
|
478
539
|
);
|
|
479
540
|
}
|
|
480
541
|
MosaicLogosGrid.displayName = "MosaicLogosGrid";
|
|
481
|
-
function
|
|
542
|
+
function cn9(...classes) {
|
|
482
543
|
return classes.filter(Boolean).join(" ");
|
|
483
544
|
}
|
|
484
545
|
function getInitials(name) {
|
|
@@ -488,7 +549,7 @@ function TestimonialCard({ item, featured = false }) {
|
|
|
488
549
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
489
550
|
"article",
|
|
490
551
|
{
|
|
491
|
-
className:
|
|
552
|
+
className: cn9(
|
|
492
553
|
"flex flex-col gap-4 rounded-xl border border-[oklch(0.9_0.005_250)] bg-[oklch(1_0_0)] p-6",
|
|
493
554
|
featured && "h-full"
|
|
494
555
|
),
|
|
@@ -538,7 +599,7 @@ function MosaicTestimonialsGrid({
|
|
|
538
599
|
ref
|
|
539
600
|
}) {
|
|
540
601
|
const [featured, ...rest] = testimonials;
|
|
541
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("section", { ref, className:
|
|
602
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("section", { ref, className: cn9("px-4 py-16 mx-auto max-w-6xl", className), children: [
|
|
542
603
|
heading && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mb-12 text-center", children: /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-2xl font-normal tracking-tight text-[oklch(0.12_0.01_250)] md:text-4xl", children: heading }) }),
|
|
543
604
|
testimonials.length === 0 ? null : testimonials.length === 1 ? /* @__PURE__ */ jsxRuntime.jsx(TestimonialCard, { item: featured }) : /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid grid-cols-1 gap-6 md:grid-cols-6", children: [
|
|
544
605
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "md:col-span-3 h-full", children: /* @__PURE__ */ jsxRuntime.jsx(TestimonialCard, { item: featured, featured: true }) }),
|
|
@@ -547,7 +608,7 @@ function MosaicTestimonialsGrid({
|
|
|
547
608
|
] });
|
|
548
609
|
}
|
|
549
610
|
MosaicTestimonialsGrid.displayName = "MosaicTestimonialsGrid";
|
|
550
|
-
function
|
|
611
|
+
function cn10(...classes) {
|
|
551
612
|
return classes.filter(Boolean).join(" ");
|
|
552
613
|
}
|
|
553
614
|
function MosaicFooterSimple({
|
|
@@ -562,7 +623,7 @@ function MosaicFooterSimple({
|
|
|
562
623
|
"footer",
|
|
563
624
|
{
|
|
564
625
|
ref,
|
|
565
|
-
className:
|
|
626
|
+
className: cn10(
|
|
566
627
|
"flex flex-col items-center gap-10 px-4 py-16 border-t border-[oklch(0.9_0.005_250)]",
|
|
567
628
|
className
|
|
568
629
|
),
|
|
@@ -606,7 +667,7 @@ function MosaicFooterSimple({
|
|
|
606
667
|
);
|
|
607
668
|
}
|
|
608
669
|
MosaicFooterSimple.displayName = "MosaicFooterSimple";
|
|
609
|
-
function
|
|
670
|
+
function cn11(...classes) {
|
|
610
671
|
return classes.filter(Boolean).join(" ");
|
|
611
672
|
}
|
|
612
673
|
function MosaicFeature3Col({
|
|
@@ -621,7 +682,7 @@ function MosaicFeature3Col({
|
|
|
621
682
|
{
|
|
622
683
|
ref,
|
|
623
684
|
"data-slot": "feature-3col",
|
|
624
|
-
className:
|
|
685
|
+
className: cn11("mx-auto w-full max-w-6xl px-4 py-16", className),
|
|
625
686
|
children: [
|
|
626
687
|
(heading || subtext) && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mb-12 text-center", children: [
|
|
627
688
|
heading && /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-3xl font-medium tracking-tight text-foreground sm:text-4xl", children: heading }),
|
|
@@ -697,7 +758,7 @@ function MosaicCounter({
|
|
|
697
758
|
);
|
|
698
759
|
}
|
|
699
760
|
MosaicCounter.displayName = "MosaicCounter";
|
|
700
|
-
function
|
|
761
|
+
function cn12(...classes) {
|
|
701
762
|
return classes.filter(Boolean).join(" ");
|
|
702
763
|
}
|
|
703
764
|
function getSystemTheme() {
|
|
@@ -740,7 +801,7 @@ function MosaicThemeToggle({
|
|
|
740
801
|
"aria-label": ariaLabel,
|
|
741
802
|
"aria-pressed": isDark,
|
|
742
803
|
onClick: handleToggle,
|
|
743
|
-
className:
|
|
804
|
+
className: cn12(
|
|
744
805
|
"inline-flex size-9 items-center justify-center rounded-full border border-[oklch(0.9_0.005_250)] bg-[oklch(var(--mosaic-surface,1_0_0))] transition-colors hover:bg-[oklch(0.95_0.005_250)] focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[oklch(0.5_0.15_250)]",
|
|
745
806
|
className
|
|
746
807
|
),
|
|
@@ -871,7 +932,7 @@ function MosaicAnimatedList({
|
|
|
871
932
|
);
|
|
872
933
|
}
|
|
873
934
|
MosaicAnimatedList.displayName = "MosaicAnimatedList";
|
|
874
|
-
function
|
|
935
|
+
function cn13(...classes) {
|
|
875
936
|
return classes.filter(Boolean).join(" ");
|
|
876
937
|
}
|
|
877
938
|
var badgeClass = "inline-flex items-center gap-2 rounded-full border border-[oklch(0.88_0.01_250)] bg-[oklch(0.98_0.005_250)] px-3 py-1.5 text-sm font-medium text-[oklch(0.25_0.01_250)] shadow-[0_1px_3px_oklch(0_0_0_/_0.06)] transition-colors";
|
|
@@ -896,12 +957,12 @@ function MosaicIntegrationsBadge({
|
|
|
896
957
|
href,
|
|
897
958
|
target,
|
|
898
959
|
rel: target === "_blank" ? "noopener noreferrer" : void 0,
|
|
899
|
-
className:
|
|
960
|
+
className: cn13(badgeClass, hoverClass, className),
|
|
900
961
|
children: inner
|
|
901
962
|
}
|
|
902
963
|
);
|
|
903
964
|
}
|
|
904
|
-
return /* @__PURE__ */ jsxRuntime.jsx("span", { ref, className:
|
|
965
|
+
return /* @__PURE__ */ jsxRuntime.jsx("span", { ref, className: cn13(badgeClass, className), children: inner });
|
|
905
966
|
}
|
|
906
967
|
MosaicIntegrationsBadge.displayName = "MosaicIntegrationsBadge";
|
|
907
968
|
var PATTERN_ANIM_ID = "mosaic-falling-pattern-kf";
|
|
@@ -1017,7 +1078,46 @@ function useMediaQuery(query) {
|
|
|
1017
1078
|
}, [query]);
|
|
1018
1079
|
return matches;
|
|
1019
1080
|
}
|
|
1020
|
-
function
|
|
1081
|
+
function cn14(...classes) {
|
|
1082
|
+
return classes.filter(Boolean).join(" ");
|
|
1083
|
+
}
|
|
1084
|
+
function MosaicEmptyState({
|
|
1085
|
+
icon,
|
|
1086
|
+
title,
|
|
1087
|
+
description,
|
|
1088
|
+
action,
|
|
1089
|
+
className,
|
|
1090
|
+
ref
|
|
1091
|
+
}) {
|
|
1092
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1093
|
+
"div",
|
|
1094
|
+
{
|
|
1095
|
+
ref,
|
|
1096
|
+
"data-slot": "empty-state",
|
|
1097
|
+
className: cn14(
|
|
1098
|
+
"flex flex-col items-center justify-center gap-4 px-4 py-12 text-center",
|
|
1099
|
+
className
|
|
1100
|
+
),
|
|
1101
|
+
children: [
|
|
1102
|
+
icon != null && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1103
|
+
"div",
|
|
1104
|
+
{
|
|
1105
|
+
"data-slot": "empty-state-icon",
|
|
1106
|
+
className: "flex items-center justify-center text-muted-foreground",
|
|
1107
|
+
children: icon
|
|
1108
|
+
}
|
|
1109
|
+
),
|
|
1110
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "empty-state-text", className: "flex flex-col gap-1.5", children: [
|
|
1111
|
+
/* @__PURE__ */ jsxRuntime.jsx("h3", { "data-slot": "empty-state-title", className: "text-base font-medium text-foreground", children: title }),
|
|
1112
|
+
description != null && /* @__PURE__ */ jsxRuntime.jsx("p", { "data-slot": "empty-state-description", className: "text-sm text-muted-foreground", children: description })
|
|
1113
|
+
] }),
|
|
1114
|
+
action != null && /* @__PURE__ */ jsxRuntime.jsx("div", { "data-slot": "empty-state-action", className: "mt-2", children: action })
|
|
1115
|
+
]
|
|
1116
|
+
}
|
|
1117
|
+
);
|
|
1118
|
+
}
|
|
1119
|
+
MosaicEmptyState.displayName = "MosaicEmptyState";
|
|
1120
|
+
function cn15(...classes) {
|
|
1021
1121
|
return classes.filter(Boolean).join(" ");
|
|
1022
1122
|
}
|
|
1023
1123
|
function MosaicAccordion({ className, ref, ...props }) {
|
|
@@ -1026,7 +1126,7 @@ function MosaicAccordion({ className, ref, ...props }) {
|
|
|
1026
1126
|
{
|
|
1027
1127
|
ref,
|
|
1028
1128
|
"data-slot": "accordion",
|
|
1029
|
-
className:
|
|
1129
|
+
className: cn15("w-full divide-y divide-border", className),
|
|
1030
1130
|
...props
|
|
1031
1131
|
}
|
|
1032
1132
|
);
|
|
@@ -1038,7 +1138,7 @@ function MosaicAccordionItem({ className, ref, ...props }) {
|
|
|
1038
1138
|
{
|
|
1039
1139
|
ref,
|
|
1040
1140
|
"data-slot": "accordion-item",
|
|
1041
|
-
className:
|
|
1141
|
+
className: cn15("py-0", className),
|
|
1042
1142
|
...props
|
|
1043
1143
|
}
|
|
1044
1144
|
);
|
|
@@ -1055,7 +1155,7 @@ function MosaicAccordionTrigger({
|
|
|
1055
1155
|
{
|
|
1056
1156
|
ref,
|
|
1057
1157
|
"data-slot": "accordion-trigger",
|
|
1058
|
-
className:
|
|
1158
|
+
className: cn15(
|
|
1059
1159
|
"flex w-full flex-1 items-center justify-between py-4",
|
|
1060
1160
|
"text-sm font-medium text-foreground",
|
|
1061
1161
|
"outline-none transition-all",
|
|
@@ -1095,13 +1195,13 @@ function MosaicAccordionPanel({ className, ref, ...props }) {
|
|
|
1095
1195
|
{
|
|
1096
1196
|
ref,
|
|
1097
1197
|
"data-slot": "accordion-panel",
|
|
1098
|
-
className:
|
|
1198
|
+
className: cn15("overflow-hidden text-sm text-muted-foreground", "transition-all", className),
|
|
1099
1199
|
...props
|
|
1100
1200
|
}
|
|
1101
1201
|
);
|
|
1102
1202
|
}
|
|
1103
1203
|
MosaicAccordionPanel.displayName = "MosaicAccordionPanel";
|
|
1104
|
-
function
|
|
1204
|
+
function cn16(...classes) {
|
|
1105
1205
|
return classes.filter(Boolean).join(" ");
|
|
1106
1206
|
}
|
|
1107
1207
|
function MosaicCheckbox({ className, ref, ...props }) {
|
|
@@ -1110,7 +1210,7 @@ function MosaicCheckbox({ className, ref, ...props }) {
|
|
|
1110
1210
|
{
|
|
1111
1211
|
ref,
|
|
1112
1212
|
"data-slot": "checkbox",
|
|
1113
|
-
className:
|
|
1213
|
+
className: cn16(
|
|
1114
1214
|
"peer size-4 shrink-0 cursor-pointer",
|
|
1115
1215
|
"rounded-sm border border-border bg-background",
|
|
1116
1216
|
"outline-none transition-colors",
|
|
@@ -1150,7 +1250,7 @@ function MosaicCheckbox({ className, ref, ...props }) {
|
|
|
1150
1250
|
);
|
|
1151
1251
|
}
|
|
1152
1252
|
MosaicCheckbox.displayName = "MosaicCheckbox";
|
|
1153
|
-
function
|
|
1253
|
+
function cn17(...classes) {
|
|
1154
1254
|
return classes.filter(Boolean).join(" ");
|
|
1155
1255
|
}
|
|
1156
1256
|
function MosaicCollapsible({ className, ref, ...props }) {
|
|
@@ -1159,7 +1259,7 @@ function MosaicCollapsible({ className, ref, ...props }) {
|
|
|
1159
1259
|
{
|
|
1160
1260
|
ref,
|
|
1161
1261
|
"data-slot": "collapsible",
|
|
1162
|
-
className:
|
|
1262
|
+
className: cn17("w-full", className),
|
|
1163
1263
|
...props
|
|
1164
1264
|
}
|
|
1165
1265
|
);
|
|
@@ -1175,7 +1275,7 @@ function MosaicCollapsibleTrigger({
|
|
|
1175
1275
|
{
|
|
1176
1276
|
ref,
|
|
1177
1277
|
"data-slot": "collapsible-trigger",
|
|
1178
|
-
className:
|
|
1278
|
+
className: cn17(
|
|
1179
1279
|
"inline-flex w-full items-center justify-between gap-2",
|
|
1180
1280
|
"rounded-md px-0 py-2 text-sm font-medium",
|
|
1181
1281
|
"text-foreground outline-none transition-colors",
|
|
@@ -1197,7 +1297,7 @@ function MosaicCollapsiblePanel({ className, ref, ...props }) {
|
|
|
1197
1297
|
{
|
|
1198
1298
|
ref,
|
|
1199
1299
|
"data-slot": "collapsible-panel",
|
|
1200
|
-
className:
|
|
1300
|
+
className: cn17(
|
|
1201
1301
|
"overflow-hidden text-sm transition-all",
|
|
1202
1302
|
"data-[open]:animate-in data-[closed]:animate-out",
|
|
1203
1303
|
className
|
|
@@ -1207,7 +1307,7 @@ function MosaicCollapsiblePanel({ className, ref, ...props }) {
|
|
|
1207
1307
|
);
|
|
1208
1308
|
}
|
|
1209
1309
|
MosaicCollapsiblePanel.displayName = "MosaicCollapsiblePanel";
|
|
1210
|
-
function
|
|
1310
|
+
function cn18(...classes) {
|
|
1211
1311
|
return classes.filter(Boolean).join(" ");
|
|
1212
1312
|
}
|
|
1213
1313
|
function MosaicProgress({
|
|
@@ -1224,7 +1324,7 @@ function MosaicProgress({
|
|
|
1224
1324
|
"data-slot": "progress",
|
|
1225
1325
|
value,
|
|
1226
1326
|
max,
|
|
1227
|
-
className:
|
|
1327
|
+
className: cn18("w-full", className),
|
|
1228
1328
|
...props,
|
|
1229
1329
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1230
1330
|
progress.Progress.Track,
|
|
@@ -1245,7 +1345,7 @@ function MosaicProgress({
|
|
|
1245
1345
|
);
|
|
1246
1346
|
}
|
|
1247
1347
|
MosaicProgress.displayName = "MosaicProgress";
|
|
1248
|
-
function
|
|
1348
|
+
function cn19(...classes) {
|
|
1249
1349
|
return classes.filter(Boolean).join(" ");
|
|
1250
1350
|
}
|
|
1251
1351
|
function MosaicRadioGroup({ className, ref, ...props }) {
|
|
@@ -1254,7 +1354,7 @@ function MosaicRadioGroup({ className, ref, ...props }) {
|
|
|
1254
1354
|
{
|
|
1255
1355
|
ref,
|
|
1256
1356
|
"data-slot": "radio-group",
|
|
1257
|
-
className:
|
|
1357
|
+
className: cn19("flex flex-col gap-2", className),
|
|
1258
1358
|
...props
|
|
1259
1359
|
}
|
|
1260
1360
|
);
|
|
@@ -1271,7 +1371,7 @@ function MosaicRadioGroupItem({
|
|
|
1271
1371
|
{
|
|
1272
1372
|
ref,
|
|
1273
1373
|
"data-slot": "radio",
|
|
1274
|
-
className:
|
|
1374
|
+
className: cn19(
|
|
1275
1375
|
"flex items-center gap-2 text-sm font-medium",
|
|
1276
1376
|
"cursor-pointer select-none",
|
|
1277
1377
|
"data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50",
|
|
@@ -1282,7 +1382,7 @@ function MosaicRadioGroupItem({
|
|
|
1282
1382
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1283
1383
|
"span",
|
|
1284
1384
|
{
|
|
1285
|
-
className:
|
|
1385
|
+
className: cn19(
|
|
1286
1386
|
"flex size-4 shrink-0 items-center justify-center",
|
|
1287
1387
|
"rounded-full border border-border bg-background",
|
|
1288
1388
|
"outline-none transition-colors",
|
|
@@ -1298,7 +1398,7 @@ function MosaicRadioGroupItem({
|
|
|
1298
1398
|
);
|
|
1299
1399
|
}
|
|
1300
1400
|
MosaicRadioGroupItem.displayName = "MosaicRadioGroupItem";
|
|
1301
|
-
function
|
|
1401
|
+
function cn20(...classes) {
|
|
1302
1402
|
return classes.filter(Boolean).join(" ");
|
|
1303
1403
|
}
|
|
1304
1404
|
function MosaicScrollArea({
|
|
@@ -1313,7 +1413,7 @@ function MosaicScrollArea({
|
|
|
1313
1413
|
{
|
|
1314
1414
|
ref,
|
|
1315
1415
|
"data-slot": "scroll-area",
|
|
1316
|
-
className:
|
|
1416
|
+
className: cn20("relative overflow-hidden", className),
|
|
1317
1417
|
...props,
|
|
1318
1418
|
children: [
|
|
1319
1419
|
/* @__PURE__ */ jsxRuntime.jsx(scrollArea.ScrollArea.Viewport, { "data-slot": "scroll-area-viewport", className: "size-full rounded-[inherit]", children: /* @__PURE__ */ jsxRuntime.jsx(scrollArea.ScrollArea.Content, { children }) }),
|
|
@@ -1341,7 +1441,7 @@ function MosaicScrollArea({
|
|
|
1341
1441
|
);
|
|
1342
1442
|
}
|
|
1343
1443
|
MosaicScrollArea.displayName = "MosaicScrollArea";
|
|
1344
|
-
function
|
|
1444
|
+
function cn21(...classes) {
|
|
1345
1445
|
return classes.filter(Boolean).join(" ");
|
|
1346
1446
|
}
|
|
1347
1447
|
function MosaicSeparator({
|
|
@@ -1356,7 +1456,7 @@ function MosaicSeparator({
|
|
|
1356
1456
|
ref,
|
|
1357
1457
|
"data-slot": "separator",
|
|
1358
1458
|
orientation,
|
|
1359
|
-
className:
|
|
1459
|
+
className: cn21(
|
|
1360
1460
|
"shrink-0 bg-border",
|
|
1361
1461
|
orientation === "vertical" ? "h-full w-px" : "h-px w-full",
|
|
1362
1462
|
className
|
|
@@ -1366,7 +1466,7 @@ function MosaicSeparator({
|
|
|
1366
1466
|
);
|
|
1367
1467
|
}
|
|
1368
1468
|
MosaicSeparator.displayName = "MosaicSeparator";
|
|
1369
|
-
function
|
|
1469
|
+
function cn22(...classes) {
|
|
1370
1470
|
return classes.filter(Boolean).join(" ");
|
|
1371
1471
|
}
|
|
1372
1472
|
function MosaicSlider({ className, ref, ...props }) {
|
|
@@ -1377,7 +1477,7 @@ function MosaicSlider({ className, ref, ...props }) {
|
|
|
1377
1477
|
{
|
|
1378
1478
|
ref,
|
|
1379
1479
|
"data-slot": "slider",
|
|
1380
|
-
className:
|
|
1480
|
+
className: cn22("w-full touch-none select-none", className),
|
|
1381
1481
|
...props,
|
|
1382
1482
|
children: /* @__PURE__ */ jsxRuntime.jsx(slider.Slider.Control, { className: "flex items-center", children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1383
1483
|
slider.Slider.Track,
|
|
@@ -1396,7 +1496,7 @@ function MosaicSlider({ className, ref, ...props }) {
|
|
|
1396
1496
|
slider.Slider.Thumb,
|
|
1397
1497
|
{
|
|
1398
1498
|
"data-slot": "slider-thumb",
|
|
1399
|
-
className:
|
|
1499
|
+
className: cn22(
|
|
1400
1500
|
"block size-5 rounded-full",
|
|
1401
1501
|
"border-2 border-foreground bg-background",
|
|
1402
1502
|
"shadow-sm outline-none transition-colors",
|
|
@@ -1413,7 +1513,7 @@ function MosaicSlider({ className, ref, ...props }) {
|
|
|
1413
1513
|
);
|
|
1414
1514
|
}
|
|
1415
1515
|
MosaicSlider.displayName = "MosaicSlider";
|
|
1416
|
-
function
|
|
1516
|
+
function cn23(...classes) {
|
|
1417
1517
|
return classes.filter(Boolean).join(" ");
|
|
1418
1518
|
}
|
|
1419
1519
|
function MosaicTabs({ className, ref, ...props }) {
|
|
@@ -1422,7 +1522,7 @@ function MosaicTabs({ className, ref, ...props }) {
|
|
|
1422
1522
|
{
|
|
1423
1523
|
ref,
|
|
1424
1524
|
"data-slot": "tabs",
|
|
1425
|
-
className:
|
|
1525
|
+
className: cn23("flex flex-col gap-2", className),
|
|
1426
1526
|
...props
|
|
1427
1527
|
}
|
|
1428
1528
|
);
|
|
@@ -1434,7 +1534,7 @@ function MosaicTabsList({ className, ref, ...props }) {
|
|
|
1434
1534
|
{
|
|
1435
1535
|
ref,
|
|
1436
1536
|
"data-slot": "tabs-list",
|
|
1437
|
-
className:
|
|
1537
|
+
className: cn23(
|
|
1438
1538
|
"relative inline-flex items-center justify-start gap-1",
|
|
1439
1539
|
"rounded-lg bg-muted p-1 text-muted-foreground",
|
|
1440
1540
|
className
|
|
@@ -1450,7 +1550,7 @@ function MosaicTabsTrigger({ className, ref, ...props }) {
|
|
|
1450
1550
|
{
|
|
1451
1551
|
ref,
|
|
1452
1552
|
"data-slot": "tabs-trigger",
|
|
1453
|
-
className:
|
|
1553
|
+
className: cn23(
|
|
1454
1554
|
"inline-flex items-center justify-center gap-1.5 whitespace-nowrap",
|
|
1455
1555
|
"rounded-md px-3 py-1.5 text-sm font-medium",
|
|
1456
1556
|
"outline-none transition-all",
|
|
@@ -1473,7 +1573,7 @@ function MosaicTabsPanel({ className, ref, ...props }) {
|
|
|
1473
1573
|
{
|
|
1474
1574
|
ref,
|
|
1475
1575
|
"data-slot": "tabs-panel",
|
|
1476
|
-
className:
|
|
1576
|
+
className: cn23(
|
|
1477
1577
|
"flex-1 outline-none",
|
|
1478
1578
|
"focus-visible:ring-ring focus-visible:ring-[3px] focus-visible:rounded-md",
|
|
1479
1579
|
className
|
|
@@ -1483,7 +1583,7 @@ function MosaicTabsPanel({ className, ref, ...props }) {
|
|
|
1483
1583
|
);
|
|
1484
1584
|
}
|
|
1485
1585
|
MosaicTabsPanel.displayName = "MosaicTabsPanel";
|
|
1486
|
-
function
|
|
1586
|
+
function cn24(...classes) {
|
|
1487
1587
|
return classes.filter(Boolean).join(" ");
|
|
1488
1588
|
}
|
|
1489
1589
|
function MosaicTextarea({ className, ref, ...props }) {
|
|
@@ -1492,7 +1592,7 @@ function MosaicTextarea({ className, ref, ...props }) {
|
|
|
1492
1592
|
{
|
|
1493
1593
|
ref,
|
|
1494
1594
|
"data-slot": "textarea",
|
|
1495
|
-
className:
|
|
1595
|
+
className: cn24(
|
|
1496
1596
|
"flex min-h-[80px] w-full resize-y",
|
|
1497
1597
|
"rounded-md border border-border bg-background px-3 py-2",
|
|
1498
1598
|
"text-sm text-foreground shadow-xs",
|
|
@@ -1507,7 +1607,7 @@ function MosaicTextarea({ className, ref, ...props }) {
|
|
|
1507
1607
|
);
|
|
1508
1608
|
}
|
|
1509
1609
|
MosaicTextarea.displayName = "MosaicTextarea";
|
|
1510
|
-
function
|
|
1610
|
+
function cn25(...classes) {
|
|
1511
1611
|
return classes.filter(Boolean).join(" ");
|
|
1512
1612
|
}
|
|
1513
1613
|
function MosaicTooltip({
|
|
@@ -1524,7 +1624,7 @@ function MosaicTooltip({
|
|
|
1524
1624
|
tooltip.Tooltip.Popup,
|
|
1525
1625
|
{
|
|
1526
1626
|
"data-slot": "tooltip-content",
|
|
1527
|
-
className:
|
|
1627
|
+
className: cn25(
|
|
1528
1628
|
"z-50 max-w-xs overflow-hidden rounded-md",
|
|
1529
1629
|
"border border-border bg-foreground px-3 py-1.5",
|
|
1530
1630
|
"text-xs text-background shadow-md",
|
|
@@ -1541,7 +1641,7 @@ function MosaicTooltip({
|
|
|
1541
1641
|
] }) });
|
|
1542
1642
|
}
|
|
1543
1643
|
MosaicTooltip.displayName = "MosaicTooltip";
|
|
1544
|
-
function
|
|
1644
|
+
function cn26(...classes) {
|
|
1545
1645
|
return classes.filter(Boolean).join(" ");
|
|
1546
1646
|
}
|
|
1547
1647
|
function MosaicCard({ className, ref, ...props }) {
|
|
@@ -1550,7 +1650,7 @@ function MosaicCard({ className, ref, ...props }) {
|
|
|
1550
1650
|
{
|
|
1551
1651
|
ref,
|
|
1552
1652
|
"data-slot": "card",
|
|
1553
|
-
className:
|
|
1653
|
+
className: cn26(
|
|
1554
1654
|
"bg-card text-card-foreground rounded-xl border border-border shadow-sm",
|
|
1555
1655
|
className
|
|
1556
1656
|
),
|
|
@@ -1565,7 +1665,7 @@ function MosaicCardHeader({ className, ref, ...props }) {
|
|
|
1565
1665
|
{
|
|
1566
1666
|
ref,
|
|
1567
1667
|
"data-slot": "card-header",
|
|
1568
|
-
className:
|
|
1668
|
+
className: cn26("flex flex-col gap-1.5 p-6", className),
|
|
1569
1669
|
...props
|
|
1570
1670
|
}
|
|
1571
1671
|
);
|
|
@@ -1577,7 +1677,7 @@ function MosaicCardTitle({ className, ref, ...props }) {
|
|
|
1577
1677
|
{
|
|
1578
1678
|
ref,
|
|
1579
1679
|
"data-slot": "card-title",
|
|
1580
|
-
className:
|
|
1680
|
+
className: cn26("text-lg font-semibold leading-none tracking-tight", className),
|
|
1581
1681
|
...props
|
|
1582
1682
|
}
|
|
1583
1683
|
);
|
|
@@ -1589,14 +1689,14 @@ function MosaicCardDescription({ className, ref, ...props }) {
|
|
|
1589
1689
|
{
|
|
1590
1690
|
ref,
|
|
1591
1691
|
"data-slot": "card-description",
|
|
1592
|
-
className:
|
|
1692
|
+
className: cn26("text-sm text-muted-foreground", className),
|
|
1593
1693
|
...props
|
|
1594
1694
|
}
|
|
1595
1695
|
);
|
|
1596
1696
|
}
|
|
1597
1697
|
MosaicCardDescription.displayName = "MosaicCardDescription";
|
|
1598
1698
|
function MosaicCardContent({ className, ref, ...props }) {
|
|
1599
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { ref, "data-slot": "card-content", className:
|
|
1699
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { ref, "data-slot": "card-content", className: cn26("p-6 pt-0", className), ...props });
|
|
1600
1700
|
}
|
|
1601
1701
|
MosaicCardContent.displayName = "MosaicCardContent";
|
|
1602
1702
|
function MosaicCardFooter({ className, ref, ...props }) {
|
|
@@ -1605,7 +1705,7 @@ function MosaicCardFooter({ className, ref, ...props }) {
|
|
|
1605
1705
|
{
|
|
1606
1706
|
ref,
|
|
1607
1707
|
"data-slot": "card-footer",
|
|
1608
|
-
className:
|
|
1708
|
+
className: cn26("flex items-center p-6 pt-0", className),
|
|
1609
1709
|
...props
|
|
1610
1710
|
}
|
|
1611
1711
|
);
|
|
@@ -1634,7 +1734,7 @@ var badgeVariants = classVarianceAuthority.cva(
|
|
|
1634
1734
|
}
|
|
1635
1735
|
}
|
|
1636
1736
|
);
|
|
1637
|
-
function
|
|
1737
|
+
function cn27(...classes) {
|
|
1638
1738
|
return classes.filter(Boolean).join(" ");
|
|
1639
1739
|
}
|
|
1640
1740
|
function MosaicBadge({ className, variant, ref, ...props }) {
|
|
@@ -1643,13 +1743,13 @@ function MosaicBadge({ className, variant, ref, ...props }) {
|
|
|
1643
1743
|
{
|
|
1644
1744
|
ref,
|
|
1645
1745
|
"data-slot": "badge",
|
|
1646
|
-
className:
|
|
1746
|
+
className: cn27(badgeVariants({ variant }), className),
|
|
1647
1747
|
...props
|
|
1648
1748
|
}
|
|
1649
1749
|
);
|
|
1650
1750
|
}
|
|
1651
1751
|
MosaicBadge.displayName = "MosaicBadge";
|
|
1652
|
-
function
|
|
1752
|
+
function cn28(...classes) {
|
|
1653
1753
|
return classes.filter(Boolean).join(" ");
|
|
1654
1754
|
}
|
|
1655
1755
|
function MosaicAvatar({ src, alt, fallback, className, ref, ...props }) {
|
|
@@ -1658,7 +1758,7 @@ function MosaicAvatar({ src, alt, fallback, className, ref, ...props }) {
|
|
|
1658
1758
|
{
|
|
1659
1759
|
ref,
|
|
1660
1760
|
"data-slot": "avatar",
|
|
1661
|
-
className:
|
|
1761
|
+
className: cn28(
|
|
1662
1762
|
"relative flex size-10 shrink-0 overflow-hidden rounded-full",
|
|
1663
1763
|
"bg-muted text-muted-foreground",
|
|
1664
1764
|
className
|
|
@@ -1687,7 +1787,7 @@ function MosaicAvatar({ src, alt, fallback, className, ref, ...props }) {
|
|
|
1687
1787
|
);
|
|
1688
1788
|
}
|
|
1689
1789
|
MosaicAvatar.displayName = "MosaicAvatar";
|
|
1690
|
-
function
|
|
1790
|
+
function cn29(...classes) {
|
|
1691
1791
|
return classes.filter(Boolean).join(" ");
|
|
1692
1792
|
}
|
|
1693
1793
|
function MosaicInput({ className, ref, ...props }) {
|
|
@@ -1696,7 +1796,7 @@ function MosaicInput({ className, ref, ...props }) {
|
|
|
1696
1796
|
{
|
|
1697
1797
|
ref,
|
|
1698
1798
|
"data-slot": "input",
|
|
1699
|
-
className:
|
|
1799
|
+
className: cn29(
|
|
1700
1800
|
"flex h-9 w-full rounded-md border border-border bg-background px-3 py-1",
|
|
1701
1801
|
"text-sm text-foreground shadow-xs",
|
|
1702
1802
|
"placeholder:text-muted-foreground",
|
|
@@ -1710,7 +1810,7 @@ function MosaicInput({ className, ref, ...props }) {
|
|
|
1710
1810
|
);
|
|
1711
1811
|
}
|
|
1712
1812
|
MosaicInput.displayName = "MosaicInput";
|
|
1713
|
-
function
|
|
1813
|
+
function cn30(...classes) {
|
|
1714
1814
|
return classes.filter(Boolean).join(" ");
|
|
1715
1815
|
}
|
|
1716
1816
|
function MosaicInputGroup({
|
|
@@ -1726,7 +1826,7 @@ function MosaicInputGroup({
|
|
|
1726
1826
|
{
|
|
1727
1827
|
ref,
|
|
1728
1828
|
"data-slot": "input-group",
|
|
1729
|
-
className:
|
|
1829
|
+
className: cn30("flex items-center", className),
|
|
1730
1830
|
...props,
|
|
1731
1831
|
children: [
|
|
1732
1832
|
prefix ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -1751,7 +1851,7 @@ function MosaicInputGroup({
|
|
|
1751
1851
|
);
|
|
1752
1852
|
}
|
|
1753
1853
|
MosaicInputGroup.displayName = "MosaicInputGroup";
|
|
1754
|
-
function
|
|
1854
|
+
function cn31(...classes) {
|
|
1755
1855
|
return classes.filter(Boolean).join(" ");
|
|
1756
1856
|
}
|
|
1757
1857
|
function MosaicFieldRoot({ className, children, ref, ...props }) {
|
|
@@ -1760,7 +1860,7 @@ function MosaicFieldRoot({ className, children, ref, ...props }) {
|
|
|
1760
1860
|
{
|
|
1761
1861
|
ref,
|
|
1762
1862
|
"data-slot": "field",
|
|
1763
|
-
className:
|
|
1863
|
+
className: cn31("flex flex-col gap-1.5", className),
|
|
1764
1864
|
...props,
|
|
1765
1865
|
children
|
|
1766
1866
|
}
|
|
@@ -1772,7 +1872,7 @@ function MosaicFieldLabel({ className, children, ref, ...props }) {
|
|
|
1772
1872
|
field.Field.Label,
|
|
1773
1873
|
{
|
|
1774
1874
|
ref,
|
|
1775
|
-
className:
|
|
1875
|
+
className: cn31(
|
|
1776
1876
|
"text-sm font-medium leading-none text-foreground",
|
|
1777
1877
|
"data-[disabled]:opacity-50",
|
|
1778
1878
|
className
|
|
@@ -1784,7 +1884,7 @@ function MosaicFieldLabel({ className, children, ref, ...props }) {
|
|
|
1784
1884
|
}
|
|
1785
1885
|
MosaicFieldLabel.displayName = "MosaicField.Label";
|
|
1786
1886
|
function MosaicFieldControl({ className, ref, ...props }) {
|
|
1787
|
-
return /* @__PURE__ */ jsxRuntime.jsx(field.Field.Control, { ref, className:
|
|
1887
|
+
return /* @__PURE__ */ jsxRuntime.jsx(field.Field.Control, { ref, className: cn31(className), ...props });
|
|
1788
1888
|
}
|
|
1789
1889
|
MosaicFieldControl.displayName = "MosaicField.Control";
|
|
1790
1890
|
function MosaicFieldDescription({
|
|
@@ -1797,7 +1897,7 @@ function MosaicFieldDescription({
|
|
|
1797
1897
|
field.Field.Description,
|
|
1798
1898
|
{
|
|
1799
1899
|
ref,
|
|
1800
|
-
className:
|
|
1900
|
+
className: cn31("text-xs text-muted-foreground", className),
|
|
1801
1901
|
...props,
|
|
1802
1902
|
children
|
|
1803
1903
|
}
|
|
@@ -1817,7 +1917,7 @@ function MosaicFieldError({
|
|
|
1817
1917
|
{
|
|
1818
1918
|
ref,
|
|
1819
1919
|
match: show === true ? true : void 0,
|
|
1820
|
-
className:
|
|
1920
|
+
className: cn31("text-xs font-medium text-destructive", className),
|
|
1821
1921
|
...props,
|
|
1822
1922
|
children
|
|
1823
1923
|
}
|
|
@@ -1830,7 +1930,7 @@ var MosaicField = Object.assign(MosaicFieldRoot, {
|
|
|
1830
1930
|
Description: MosaicFieldDescription,
|
|
1831
1931
|
Error: MosaicFieldError
|
|
1832
1932
|
});
|
|
1833
|
-
function
|
|
1933
|
+
function cn32(...classes) {
|
|
1834
1934
|
return classes.filter(Boolean).join(" ");
|
|
1835
1935
|
}
|
|
1836
1936
|
function MosaicSwitch({ className, ref, ...props }) {
|
|
@@ -1839,7 +1939,7 @@ function MosaicSwitch({ className, ref, ...props }) {
|
|
|
1839
1939
|
{
|
|
1840
1940
|
ref,
|
|
1841
1941
|
"data-slot": "switch",
|
|
1842
|
-
className:
|
|
1942
|
+
className: cn32(
|
|
1843
1943
|
// Track
|
|
1844
1944
|
"relative inline-flex h-6 w-10 shrink-0 cursor-pointer items-center",
|
|
1845
1945
|
"rounded-full border-2 border-transparent outline-none",
|
|
@@ -1857,7 +1957,7 @@ function MosaicSwitch({ className, ref, ...props }) {
|
|
|
1857
1957
|
_switch.Switch.Thumb,
|
|
1858
1958
|
{
|
|
1859
1959
|
"data-slot": "switch-thumb",
|
|
1860
|
-
className:
|
|
1960
|
+
className: cn32(
|
|
1861
1961
|
"pointer-events-none block h-4 w-4 rounded-full",
|
|
1862
1962
|
"bg-background shadow-sm",
|
|
1863
1963
|
"translate-x-0 transition-transform",
|
|
@@ -1869,7 +1969,7 @@ function MosaicSwitch({ className, ref, ...props }) {
|
|
|
1869
1969
|
);
|
|
1870
1970
|
}
|
|
1871
1971
|
MosaicSwitch.displayName = "MosaicSwitch";
|
|
1872
|
-
function
|
|
1972
|
+
function cn33(...classes) {
|
|
1873
1973
|
return classes.filter(Boolean).join(" ");
|
|
1874
1974
|
}
|
|
1875
1975
|
function MosaicSelect({
|
|
@@ -1901,7 +2001,7 @@ function MosaicSelect({
|
|
|
1901
2001
|
select.Select.Trigger,
|
|
1902
2002
|
{
|
|
1903
2003
|
"data-slot": "select",
|
|
1904
|
-
className:
|
|
2004
|
+
className: cn33(
|
|
1905
2005
|
"inline-flex h-9 w-full min-w-[8rem] items-center justify-between gap-2",
|
|
1906
2006
|
"rounded-md border border-border bg-background px-3 py-2",
|
|
1907
2007
|
"text-sm text-foreground shadow-xs outline-none",
|
|
@@ -1921,7 +2021,7 @@ function MosaicSelect({
|
|
|
1921
2021
|
select.Select.Popup,
|
|
1922
2022
|
{
|
|
1923
2023
|
"data-slot": "select-popup",
|
|
1924
|
-
className:
|
|
2024
|
+
className: cn33(
|
|
1925
2025
|
"z-50 min-w-[8rem] overflow-hidden rounded-md border border-border",
|
|
1926
2026
|
"bg-popover p-1 text-popover-foreground shadow-md",
|
|
1927
2027
|
"origin-[var(--transform-origin)]",
|
|
@@ -1935,7 +2035,7 @@ function MosaicSelect({
|
|
|
1935
2035
|
{
|
|
1936
2036
|
value: item.value,
|
|
1937
2037
|
disabled: item.disabled,
|
|
1938
|
-
className:
|
|
2038
|
+
className: cn33(
|
|
1939
2039
|
"relative flex cursor-pointer select-none items-center rounded-sm px-2 py-1.5",
|
|
1940
2040
|
"text-sm text-popover-foreground outline-none",
|
|
1941
2041
|
"data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground",
|
|
@@ -1989,7 +2089,7 @@ function CheckIcon() {
|
|
|
1989
2089
|
}
|
|
1990
2090
|
);
|
|
1991
2091
|
}
|
|
1992
|
-
function
|
|
2092
|
+
function cn34(...classes) {
|
|
1993
2093
|
return classes.filter(Boolean).join(" ");
|
|
1994
2094
|
}
|
|
1995
2095
|
function MosaicCombobox({
|
|
@@ -2018,12 +2118,12 @@ function MosaicCombobox({
|
|
|
2018
2118
|
name,
|
|
2019
2119
|
onInputValueChange: setInputValue,
|
|
2020
2120
|
autoHighlight: true,
|
|
2021
|
-
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "combobox", className:
|
|
2121
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "combobox", className: cn34("relative w-full", className), children: [
|
|
2022
2122
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2023
2123
|
combobox.Combobox.Input,
|
|
2024
2124
|
{
|
|
2025
2125
|
placeholder,
|
|
2026
|
-
className:
|
|
2126
|
+
className: cn34(
|
|
2027
2127
|
"h-9 w-full rounded-md border border-border bg-background px-3 py-2",
|
|
2028
2128
|
"text-sm text-foreground shadow-xs outline-none",
|
|
2029
2129
|
"placeholder:text-muted-foreground",
|
|
@@ -2035,7 +2135,7 @@ function MosaicCombobox({
|
|
|
2035
2135
|
/* @__PURE__ */ jsxRuntime.jsx(combobox.Combobox.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(combobox.Combobox.Positioner, { sideOffset: 4, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2036
2136
|
combobox.Combobox.Popup,
|
|
2037
2137
|
{
|
|
2038
|
-
className:
|
|
2138
|
+
className: cn34(
|
|
2039
2139
|
"z-50 min-w-[8rem] overflow-hidden rounded-md border border-border",
|
|
2040
2140
|
"bg-popover p-1 text-popover-foreground shadow-md",
|
|
2041
2141
|
"origin-[var(--transform-origin)]",
|
|
@@ -2050,7 +2150,7 @@ function MosaicCombobox({
|
|
|
2050
2150
|
{
|
|
2051
2151
|
value: item.value,
|
|
2052
2152
|
disabled: item.disabled,
|
|
2053
|
-
className:
|
|
2153
|
+
className: cn34(
|
|
2054
2154
|
"relative flex cursor-pointer select-none items-center rounded-sm px-2 py-1.5",
|
|
2055
2155
|
"text-sm text-popover-foreground outline-none",
|
|
2056
2156
|
"data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground",
|
|
@@ -2069,7 +2169,7 @@ function MosaicCombobox({
|
|
|
2069
2169
|
}
|
|
2070
2170
|
);
|
|
2071
2171
|
}
|
|
2072
|
-
function
|
|
2172
|
+
function cn35(...classes) {
|
|
2073
2173
|
return classes.filter(Boolean).join(" ");
|
|
2074
2174
|
}
|
|
2075
2175
|
function MosaicDropdownMenu({
|
|
@@ -2086,7 +2186,7 @@ function MosaicDropdownMenu({
|
|
|
2086
2186
|
menu.Menu.Popup,
|
|
2087
2187
|
{
|
|
2088
2188
|
"data-slot": "dropdown-menu",
|
|
2089
|
-
className:
|
|
2189
|
+
className: cn35(
|
|
2090
2190
|
"z-50 min-w-[8rem] overflow-hidden rounded-md border border-border",
|
|
2091
2191
|
"bg-popover p-1 text-popover-foreground shadow-md",
|
|
2092
2192
|
"origin-[var(--transform-origin)]",
|
|
@@ -2103,7 +2203,7 @@ function MosaicDropdownMenu({
|
|
|
2103
2203
|
{
|
|
2104
2204
|
disabled: item.disabled,
|
|
2105
2205
|
onClick: () => onItemSelect?.(item.id),
|
|
2106
|
-
className:
|
|
2206
|
+
className: cn35(
|
|
2107
2207
|
"relative flex cursor-pointer select-none items-center rounded-sm px-2 py-1.5",
|
|
2108
2208
|
"text-sm text-popover-foreground outline-none",
|
|
2109
2209
|
"data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground",
|
|
@@ -2245,7 +2345,7 @@ function useDevice() {
|
|
|
2245
2345
|
}
|
|
2246
2346
|
return ctx;
|
|
2247
2347
|
}
|
|
2248
|
-
function
|
|
2348
|
+
function cn36(...classes) {
|
|
2249
2349
|
return classes.filter(Boolean).join(" ");
|
|
2250
2350
|
}
|
|
2251
2351
|
function MosaicAdaptiveGrid({
|
|
@@ -2264,14 +2364,14 @@ function MosaicAdaptiveGrid({
|
|
|
2264
2364
|
{
|
|
2265
2365
|
ref,
|
|
2266
2366
|
"data-slot": "adaptive-grid",
|
|
2267
|
-
className:
|
|
2367
|
+
className: cn36("grid", gap, className),
|
|
2268
2368
|
style: { gridTemplateColumns: `repeat(${cols}, minmax(0, 1fr))` },
|
|
2269
2369
|
children
|
|
2270
2370
|
}
|
|
2271
2371
|
);
|
|
2272
2372
|
}
|
|
2273
2373
|
MosaicAdaptiveGrid.displayName = "MosaicAdaptiveGrid";
|
|
2274
|
-
function
|
|
2374
|
+
function cn37(...classes) {
|
|
2275
2375
|
return classes.filter(Boolean).join(" ");
|
|
2276
2376
|
}
|
|
2277
2377
|
var ANIM_ID = "mosaic-adaptive-modal-kf";
|
|
@@ -2376,7 +2476,7 @@ function MosaicAdaptiveModal({
|
|
|
2376
2476
|
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2377
2477
|
"div",
|
|
2378
2478
|
{
|
|
2379
|
-
className:
|
|
2479
|
+
className: cn37(
|
|
2380
2480
|
"mosaic-sheet-panel relative w-full rounded-t-2xl border-t border-border bg-background",
|
|
2381
2481
|
"max-h-[90dvh] flex flex-col",
|
|
2382
2482
|
className
|
|
@@ -2409,7 +2509,7 @@ function MosaicAdaptiveModal({
|
|
|
2409
2509
|
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2410
2510
|
"div",
|
|
2411
2511
|
{
|
|
2412
|
-
className:
|
|
2512
|
+
className: cn37(
|
|
2413
2513
|
"mosaic-modal-panel relative w-[min(90vw,42rem)] rounded-xl border border-border bg-background shadow-xl",
|
|
2414
2514
|
"max-h-[90vh] flex flex-col",
|
|
2415
2515
|
className
|
|
@@ -2457,7 +2557,7 @@ function MosaicAdaptiveModal({
|
|
|
2457
2557
|
);
|
|
2458
2558
|
}
|
|
2459
2559
|
MosaicAdaptiveModal.displayName = "MosaicAdaptiveModal";
|
|
2460
|
-
function
|
|
2560
|
+
function cn38(...classes) {
|
|
2461
2561
|
return classes.filter(Boolean).join(" ");
|
|
2462
2562
|
}
|
|
2463
2563
|
function CheckIcon2() {
|
|
@@ -2514,7 +2614,7 @@ function MosaicAdaptiveNavigation({
|
|
|
2514
2614
|
{
|
|
2515
2615
|
ref,
|
|
2516
2616
|
"data-slot": "adaptive-navigation",
|
|
2517
|
-
className:
|
|
2617
|
+
className: cn38("space-y-3", className),
|
|
2518
2618
|
"aria-label": "Step navigation",
|
|
2519
2619
|
children: items.map((item, idx) => {
|
|
2520
2620
|
const isExpanded = expandedItems?.has(item.id) ?? false;
|
|
@@ -2532,7 +2632,7 @@ function MosaicAdaptiveNavigation({
|
|
|
2532
2632
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2533
2633
|
"div",
|
|
2534
2634
|
{
|
|
2535
|
-
className:
|
|
2635
|
+
className: cn38(
|
|
2536
2636
|
"flex h-8 w-8 shrink-0 items-center justify-center rounded-full text-xs font-bold",
|
|
2537
2637
|
item.isComplete ? "bg-green-500 text-white" : "bg-muted text-muted-foreground"
|
|
2538
2638
|
),
|
|
@@ -2566,7 +2666,7 @@ function MosaicAdaptiveNavigation({
|
|
|
2566
2666
|
{
|
|
2567
2667
|
ref,
|
|
2568
2668
|
"data-slot": "adaptive-navigation",
|
|
2569
|
-
className:
|
|
2669
|
+
className: cn38("w-full", className),
|
|
2570
2670
|
"aria-label": "Tab navigation",
|
|
2571
2671
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2572
2672
|
"div",
|
|
@@ -2583,7 +2683,7 @@ function MosaicAdaptiveNavigation({
|
|
|
2583
2683
|
role: "tab",
|
|
2584
2684
|
"aria-selected": isActive,
|
|
2585
2685
|
onClick: () => onItemChange(item.id),
|
|
2586
|
-
className:
|
|
2686
|
+
className: cn38(
|
|
2587
2687
|
"flex items-center justify-center gap-2 rounded-md px-3 py-2 text-sm font-medium transition-colors",
|
|
2588
2688
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1",
|
|
2589
2689
|
isActive ? "bg-primary text-primary-foreground shadow-sm" : "text-muted-foreground hover:text-foreground"
|
|
@@ -2592,7 +2692,7 @@ function MosaicAdaptiveNavigation({
|
|
|
2592
2692
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2593
2693
|
"div",
|
|
2594
2694
|
{
|
|
2595
|
-
className:
|
|
2695
|
+
className: cn38(
|
|
2596
2696
|
"flex h-6 w-6 shrink-0 items-center justify-center rounded-full text-xs font-bold",
|
|
2597
2697
|
item.isComplete ? "bg-green-500 text-white" : isActive ? "bg-primary-foreground/20 text-primary-foreground" : "bg-background text-muted-foreground"
|
|
2598
2698
|
),
|
|
@@ -2604,7 +2704,7 @@ function MosaicAdaptiveNavigation({
|
|
|
2604
2704
|
item.duration !== void 0 && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2605
2705
|
"span",
|
|
2606
2706
|
{
|
|
2607
|
-
className:
|
|
2707
|
+
className: cn38(
|
|
2608
2708
|
"rounded px-1 py-0.5 text-xs",
|
|
2609
2709
|
isActive ? "bg-primary-foreground/20" : "bg-muted"
|
|
2610
2710
|
),
|
|
@@ -2625,7 +2725,7 @@ function MosaicAdaptiveNavigation({
|
|
|
2625
2725
|
);
|
|
2626
2726
|
}
|
|
2627
2727
|
MosaicAdaptiveNavigation.displayName = "MosaicAdaptiveNavigation";
|
|
2628
|
-
function
|
|
2728
|
+
function cn39(...classes) {
|
|
2629
2729
|
return classes.filter(Boolean).join(" ");
|
|
2630
2730
|
}
|
|
2631
2731
|
var ANIM_ID2 = "mosaic-sidebar-kf";
|
|
@@ -2795,7 +2895,7 @@ function MosaicAppSidebar({
|
|
|
2795
2895
|
{
|
|
2796
2896
|
ref,
|
|
2797
2897
|
"data-slot": "app-sidebar",
|
|
2798
|
-
className:
|
|
2898
|
+
className: cn39(
|
|
2799
2899
|
"flex h-full flex-col bg-sidebar border-r border-sidebar-border",
|
|
2800
2900
|
isMobile && "border-r-0",
|
|
2801
2901
|
className
|
|
@@ -2815,7 +2915,7 @@ function MosaicAppSidebar({
|
|
|
2815
2915
|
type: "button",
|
|
2816
2916
|
onClick: onToggleCollapse,
|
|
2817
2917
|
"aria-label": isCollapsed ? "Expand sidebar" : "Collapse sidebar",
|
|
2818
|
-
className:
|
|
2918
|
+
className: cn39(
|
|
2819
2919
|
"flex h-9 w-9 items-center justify-center rounded-lg transition-colors",
|
|
2820
2920
|
"hover:bg-sidebar-accent text-sidebar-foreground",
|
|
2821
2921
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -2845,7 +2945,7 @@ function MosaicAppSidebar({
|
|
|
2845
2945
|
},
|
|
2846
2946
|
"aria-current": isActive ? "page" : void 0,
|
|
2847
2947
|
"aria-expanded": hasSubmenu && !isCollapsed ? isExpanded : void 0,
|
|
2848
|
-
className:
|
|
2948
|
+
className: cn39(
|
|
2849
2949
|
"group flex w-full min-h-[44px] items-center rounded-lg p-3 transition-colors",
|
|
2850
2950
|
"hover:bg-sidebar-accent",
|
|
2851
2951
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -2872,7 +2972,7 @@ function MosaicAppSidebar({
|
|
|
2872
2972
|
type: "button",
|
|
2873
2973
|
onClick: () => handleNavClick(sub.href),
|
|
2874
2974
|
"aria-current": isSubActive ? "page" : void 0,
|
|
2875
|
-
className:
|
|
2975
|
+
className: cn39(
|
|
2876
2976
|
"flex w-full min-h-[40px] items-center gap-3 rounded-lg px-3 py-2 text-sm transition-colors",
|
|
2877
2977
|
"hover:bg-sidebar-accent/50 text-sidebar-foreground",
|
|
2878
2978
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -2895,7 +2995,7 @@ function MosaicAppSidebar({
|
|
|
2895
2995
|
{
|
|
2896
2996
|
type: "button",
|
|
2897
2997
|
onClick: action.onClick,
|
|
2898
|
-
className:
|
|
2998
|
+
className: cn39(
|
|
2899
2999
|
"flex w-full min-h-[44px] items-center gap-3 rounded-lg px-3 py-2 text-sm font-medium",
|
|
2900
3000
|
"text-sidebar-foreground transition-colors hover:bg-sidebar-accent",
|
|
2901
3001
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -2942,7 +3042,7 @@ function MosaicAppSidebar({
|
|
|
2942
3042
|
);
|
|
2943
3043
|
}
|
|
2944
3044
|
MosaicAppSidebar.displayName = "MosaicAppSidebar";
|
|
2945
|
-
function
|
|
3045
|
+
function cn40(...classes) {
|
|
2946
3046
|
return classes.filter(Boolean).join(" ");
|
|
2947
3047
|
}
|
|
2948
3048
|
var ANIM_ID3 = "mosaic-dashboard-kf";
|
|
@@ -3032,7 +3132,7 @@ function MosaicDashboardLayout({
|
|
|
3032
3132
|
{
|
|
3033
3133
|
ref,
|
|
3034
3134
|
"data-slot": "dashboard-layout",
|
|
3035
|
-
className:
|
|
3135
|
+
className: cn40("flex h-screen w-full bg-background", className),
|
|
3036
3136
|
children: [
|
|
3037
3137
|
!isMobile && /* @__PURE__ */ jsxRuntime.jsx(
|
|
3038
3138
|
MosaicAppSidebar,
|
|
@@ -3056,7 +3156,7 @@ function MosaicDashboardLayout({
|
|
|
3056
3156
|
type: "button",
|
|
3057
3157
|
"aria-label": "Open navigation",
|
|
3058
3158
|
onClick: () => setIsMobileSidebarOpen(true),
|
|
3059
|
-
className:
|
|
3159
|
+
className: cn40(
|
|
3060
3160
|
"flex h-11 w-11 shrink-0 items-center justify-center rounded-lg",
|
|
3061
3161
|
"text-foreground transition-colors hover:bg-muted",
|
|
3062
3162
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -3108,7 +3208,7 @@ function MosaicDashboardLayout({
|
|
|
3108
3208
|
);
|
|
3109
3209
|
}
|
|
3110
3210
|
MosaicDashboardLayout.displayName = "MosaicDashboardLayout";
|
|
3111
|
-
function
|
|
3211
|
+
function cn41(...classes) {
|
|
3112
3212
|
return classes.filter(Boolean).join(" ");
|
|
3113
3213
|
}
|
|
3114
3214
|
var ANIM_ID4 = "mosaic-quick-action-kf";
|
|
@@ -3163,7 +3263,7 @@ function MosaicQuickActionCard({
|
|
|
3163
3263
|
{
|
|
3164
3264
|
ref,
|
|
3165
3265
|
"data-slot": "quick-action-card",
|
|
3166
|
-
className:
|
|
3266
|
+
className: cn41("rounded-xl border border-border bg-card", className),
|
|
3167
3267
|
children: [
|
|
3168
3268
|
heading && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "border-b border-border px-6 py-4", children: /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "text-lg font-semibold text-foreground", children: heading }) }),
|
|
3169
3269
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -3188,7 +3288,7 @@ function MosaicQuickActionCard({
|
|
|
3188
3288
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
3189
3289
|
"div",
|
|
3190
3290
|
{
|
|
3191
|
-
className:
|
|
3291
|
+
className: cn41(
|
|
3192
3292
|
"flex min-h-[100px] cursor-pointer flex-col items-center justify-center gap-2 rounded-xl border p-4",
|
|
3193
3293
|
"transition-transform duration-150 hover:scale-105 active:scale-[0.98]",
|
|
3194
3294
|
accentClass
|
|
@@ -3221,7 +3321,7 @@ function MosaicQuickActionCard({
|
|
|
3221
3321
|
);
|
|
3222
3322
|
}
|
|
3223
3323
|
MosaicQuickActionCard.displayName = "MosaicQuickActionCard";
|
|
3224
|
-
function
|
|
3324
|
+
function cn42(...classes) {
|
|
3225
3325
|
return classes.filter(Boolean).join(" ");
|
|
3226
3326
|
}
|
|
3227
3327
|
var ANIM_ID5 = "mosaic-activity-feed-kf";
|
|
@@ -3310,7 +3410,7 @@ function MosaicActivityItem({ activity, icon, className }) {
|
|
|
3310
3410
|
"div",
|
|
3311
3411
|
{
|
|
3312
3412
|
"data-slot": "activity-item",
|
|
3313
|
-
className:
|
|
3413
|
+
className: cn42(
|
|
3314
3414
|
"flex cursor-pointer items-start gap-4 rounded-lg p-3 transition-colors hover:bg-muted/50",
|
|
3315
3415
|
className
|
|
3316
3416
|
),
|
|
@@ -3344,7 +3444,7 @@ function MosaicActivityItem({ activity, icon, className }) {
|
|
|
3344
3444
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3345
3445
|
"span",
|
|
3346
3446
|
{
|
|
3347
|
-
className:
|
|
3447
|
+
className: cn42(
|
|
3348
3448
|
"rounded-full px-2 py-0.5 text-xs font-medium",
|
|
3349
3449
|
getStatusClass(activity.status)
|
|
3350
3450
|
),
|
|
@@ -3385,7 +3485,7 @@ function MosaicActivityFeed({
|
|
|
3385
3485
|
{
|
|
3386
3486
|
ref,
|
|
3387
3487
|
"data-slot": "activity-feed",
|
|
3388
|
-
className:
|
|
3488
|
+
className: cn42("rounded-xl border border-border bg-card", className),
|
|
3389
3489
|
children: [
|
|
3390
3490
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between border-b border-border px-6 py-4", children: [
|
|
3391
3491
|
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "text-lg font-semibold text-foreground", children: heading }),
|
|
@@ -3411,7 +3511,7 @@ function MosaicActivityFeed({
|
|
|
3411
3511
|
);
|
|
3412
3512
|
}
|
|
3413
3513
|
MosaicActivityFeed.displayName = "MosaicActivityFeed";
|
|
3414
|
-
function
|
|
3514
|
+
function cn43(...classes) {
|
|
3415
3515
|
return classes.filter(Boolean).join(" ");
|
|
3416
3516
|
}
|
|
3417
3517
|
function SparklesIcon() {
|
|
@@ -3620,7 +3720,7 @@ function MosaicAgentComposerDesktop({
|
|
|
3620
3720
|
value: agentName,
|
|
3621
3721
|
onChange: (e) => onAgentNameChange(e.target.value),
|
|
3622
3722
|
placeholder: "Enter agent name\u2026",
|
|
3623
|
-
className:
|
|
3723
|
+
className: cn43(
|
|
3624
3724
|
"flex min-h-[48px] w-full rounded-lg border border-input bg-transparent px-3 py-2 text-sm",
|
|
3625
3725
|
"placeholder:text-muted-foreground",
|
|
3626
3726
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -3721,7 +3821,7 @@ function MosaicAgentComposerDesktop({
|
|
|
3721
3821
|
onChange: (e) => onCustomInstructionsChange(e.target.value),
|
|
3722
3822
|
placeholder: "Add any specific instructions or behaviors\u2026",
|
|
3723
3823
|
rows: 5,
|
|
3724
|
-
className:
|
|
3824
|
+
className: cn43(
|
|
3725
3825
|
"flex w-full resize-y rounded-lg border border-input bg-transparent px-3 py-2 text-sm",
|
|
3726
3826
|
"placeholder:text-muted-foreground",
|
|
3727
3827
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -3789,7 +3889,7 @@ function MosaicAgentComposerDesktop({
|
|
|
3789
3889
|
/* @__PURE__ */ jsxRuntime.jsx(SparklesIcon, {}),
|
|
3790
3890
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-muted-foreground", children: "Select all modules to see preview" })
|
|
3791
3891
|
] }) }),
|
|
3792
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
3892
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn43("flex gap-2", isEditMode && onCancel ? "flex-row" : "flex-col"), children: [
|
|
3793
3893
|
isEditMode && onCancel && /* @__PURE__ */ jsxRuntime.jsx(
|
|
3794
3894
|
"button",
|
|
3795
3895
|
{
|
|
@@ -3805,7 +3905,7 @@ function MosaicAgentComposerDesktop({
|
|
|
3805
3905
|
type: "button",
|
|
3806
3906
|
onClick: onSave,
|
|
3807
3907
|
disabled: !canSave,
|
|
3808
|
-
className:
|
|
3908
|
+
className: cn43(
|
|
3809
3909
|
"flex min-h-[48px] items-center justify-center gap-2 rounded-lg text-sm font-medium transition-colors",
|
|
3810
3910
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
3811
3911
|
"bg-primary text-primary-foreground hover:bg-primary/90",
|
|
@@ -3826,7 +3926,7 @@ function MosaicAgentComposerDesktop({
|
|
|
3826
3926
|
] });
|
|
3827
3927
|
}
|
|
3828
3928
|
MosaicAgentComposerDesktop.displayName = "MosaicAgentComposerDesktop";
|
|
3829
|
-
function
|
|
3929
|
+
function cn44(...classes) {
|
|
3830
3930
|
return classes.filter(Boolean).join(" ");
|
|
3831
3931
|
}
|
|
3832
3932
|
function SparklesIcon2() {
|
|
@@ -4082,7 +4182,7 @@ function MosaicAgentComposerMobile({
|
|
|
4082
4182
|
disabled: isLoading,
|
|
4083
4183
|
"aria-required": "true",
|
|
4084
4184
|
"aria-invalid": canSave && !agentName ? "true" : "false",
|
|
4085
|
-
className:
|
|
4185
|
+
className: cn44(
|
|
4086
4186
|
"flex min-h-[48px] w-full rounded-lg border border-input bg-transparent px-3 py-2 text-sm",
|
|
4087
4187
|
"placeholder:text-muted-foreground",
|
|
4088
4188
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -4186,7 +4286,7 @@ function MosaicAgentComposerMobile({
|
|
|
4186
4286
|
disabled: isLoading,
|
|
4187
4287
|
"aria-describedby": `${instructionsId}-help`,
|
|
4188
4288
|
rows: 4,
|
|
4189
|
-
className:
|
|
4289
|
+
className: cn44(
|
|
4190
4290
|
"flex w-full resize-y rounded-lg border border-input bg-transparent px-3 py-2 text-sm",
|
|
4191
4291
|
"placeholder:text-muted-foreground",
|
|
4192
4292
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -4242,7 +4342,7 @@ function MosaicAgentComposer(props) {
|
|
|
4242
4342
|
return isMobile ? /* @__PURE__ */ jsxRuntime.jsx(MosaicAgentComposerMobile, { ...props }) : /* @__PURE__ */ jsxRuntime.jsx(MosaicAgentComposerDesktop, { ...props });
|
|
4243
4343
|
}
|
|
4244
4344
|
MosaicAgentComposer.displayName = "MosaicAgentComposer";
|
|
4245
|
-
function
|
|
4345
|
+
function cn45(...classes) {
|
|
4246
4346
|
return classes.filter(Boolean).join(" ");
|
|
4247
4347
|
}
|
|
4248
4348
|
function EditIcon() {
|
|
@@ -4300,7 +4400,7 @@ function MosaicModuleCard({
|
|
|
4300
4400
|
{
|
|
4301
4401
|
ref,
|
|
4302
4402
|
"data-slot": "module-card",
|
|
4303
|
-
className:
|
|
4403
|
+
className: cn45(
|
|
4304
4404
|
"min-h-[80px] rounded-xl border border-border bg-card p-4 transition-all",
|
|
4305
4405
|
"flex items-start gap-3",
|
|
4306
4406
|
isSelected && "ring-2 ring-primary bg-primary/5",
|
|
@@ -4362,7 +4462,7 @@ function MosaicThemeProvider({
|
|
|
4362
4462
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { "data-slot": "theme-provider", children });
|
|
4363
4463
|
}
|
|
4364
4464
|
MosaicThemeProvider.displayName = "MosaicThemeProvider";
|
|
4365
|
-
function
|
|
4465
|
+
function cn46(...classes) {
|
|
4366
4466
|
return classes.filter(Boolean).join(" ");
|
|
4367
4467
|
}
|
|
4368
4468
|
var ANIM_ID6 = "mosaic-delete-dialog-kf";
|
|
@@ -4416,14 +4516,14 @@ function MosaicDeleteConfirmationDialog({
|
|
|
4416
4516
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4417
4517
|
alertDialog.AlertDialog.Backdrop,
|
|
4418
4518
|
{
|
|
4419
|
-
className:
|
|
4519
|
+
className: cn46("mosaic-delete-overlay", "fixed inset-0 z-50 bg-black/50")
|
|
4420
4520
|
}
|
|
4421
4521
|
),
|
|
4422
4522
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
4423
4523
|
alertDialog.AlertDialog.Popup,
|
|
4424
4524
|
{
|
|
4425
4525
|
"data-slot": "delete-confirmation-dialog",
|
|
4426
|
-
className:
|
|
4526
|
+
className: cn46(
|
|
4427
4527
|
"mosaic-delete-content",
|
|
4428
4528
|
"fixed left-1/2 top-1/2 z-50",
|
|
4429
4529
|
"w-full max-w-[92vw] sm:max-w-md",
|
|
@@ -4436,7 +4536,7 @@ function MosaicDeleteConfirmationDialog({
|
|
|
4436
4536
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4437
4537
|
alertDialog.AlertDialog.Close,
|
|
4438
4538
|
{
|
|
4439
|
-
className:
|
|
4539
|
+
className: cn46(
|
|
4440
4540
|
"inline-flex min-h-[44px] w-full items-center justify-center rounded-md border border-border",
|
|
4441
4541
|
"bg-background px-4 py-2 text-sm font-medium text-foreground",
|
|
4442
4542
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -4450,7 +4550,7 @@ function MosaicDeleteConfirmationDialog({
|
|
|
4450
4550
|
alertDialog.AlertDialog.Close,
|
|
4451
4551
|
{
|
|
4452
4552
|
onClick: onConfirm,
|
|
4453
|
-
className:
|
|
4553
|
+
className: cn46(
|
|
4454
4554
|
"inline-flex min-h-[44px] w-full items-center justify-center rounded-md",
|
|
4455
4555
|
"bg-destructive px-4 py-2 text-sm font-medium text-destructive-foreground",
|
|
4456
4556
|
"hover:bg-destructive/90",
|
|
@@ -4467,7 +4567,7 @@ function MosaicDeleteConfirmationDialog({
|
|
|
4467
4567
|
] }) });
|
|
4468
4568
|
}
|
|
4469
4569
|
MosaicDeleteConfirmationDialog.displayName = "MosaicDeleteConfirmationDialog";
|
|
4470
|
-
function
|
|
4570
|
+
function cn47(...classes) {
|
|
4471
4571
|
return classes.filter(Boolean).join(" ");
|
|
4472
4572
|
}
|
|
4473
4573
|
function Toggle({
|
|
@@ -4483,7 +4583,7 @@ function Toggle({
|
|
|
4483
4583
|
id,
|
|
4484
4584
|
"aria-checked": checked,
|
|
4485
4585
|
onClick: () => onChange(!checked),
|
|
4486
|
-
className:
|
|
4586
|
+
className: cn47(
|
|
4487
4587
|
"relative inline-flex h-6 w-11 shrink-0 cursor-pointer rounded-full border-2 border-transparent",
|
|
4488
4588
|
"transition-colors duration-200 ease-in-out",
|
|
4489
4589
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
@@ -4492,7 +4592,7 @@ function Toggle({
|
|
|
4492
4592
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
4493
4593
|
"span",
|
|
4494
4594
|
{
|
|
4495
|
-
className:
|
|
4595
|
+
className: cn47(
|
|
4496
4596
|
"pointer-events-none inline-block h-5 w-5 rounded-full bg-background shadow-lg",
|
|
4497
4597
|
"transform transition duration-200 ease-in-out",
|
|
4498
4598
|
checked ? "translate-x-5" : "translate-x-0"
|
|
@@ -4514,7 +4614,7 @@ function NativeSelect({
|
|
|
4514
4614
|
id,
|
|
4515
4615
|
value,
|
|
4516
4616
|
onChange: (e) => onChange(e.target.value),
|
|
4517
|
-
className:
|
|
4617
|
+
className: cn47(
|
|
4518
4618
|
"flex min-h-[48px] w-full rounded-md border border-input bg-background px-3 py-2",
|
|
4519
4619
|
"text-sm text-foreground",
|
|
4520
4620
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -4533,7 +4633,7 @@ function MosaicPreferencesPanel({
|
|
|
4533
4633
|
className
|
|
4534
4634
|
}) {
|
|
4535
4635
|
const { isMobile } = useDevice();
|
|
4536
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "preferences-panel", className:
|
|
4636
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "preferences-panel", className: cn47("space-y-4 md:space-y-6", className), children: [
|
|
4537
4637
|
groups.map((group) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
4538
4638
|
"div",
|
|
4539
4639
|
{
|
|
@@ -4576,13 +4676,13 @@ function MosaicPreferencesPanel({
|
|
|
4576
4676
|
},
|
|
4577
4677
|
group.id
|
|
4578
4678
|
)),
|
|
4579
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
4679
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: cn47("flex", isMobile ? "flex-col" : "justify-end"), children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
4580
4680
|
"button",
|
|
4581
4681
|
{
|
|
4582
4682
|
type: "button",
|
|
4583
4683
|
onClick: onSave,
|
|
4584
4684
|
disabled: isSaving,
|
|
4585
|
-
className:
|
|
4685
|
+
className: cn47(
|
|
4586
4686
|
"inline-flex min-h-[44px] items-center justify-center gap-2 rounded-md",
|
|
4587
4687
|
"bg-primary px-4 py-2 text-sm font-medium text-primary-foreground",
|
|
4588
4688
|
"hover:bg-primary/90",
|
|
@@ -4618,7 +4718,7 @@ function MosaicPreferencesPanel({
|
|
|
4618
4718
|
] });
|
|
4619
4719
|
}
|
|
4620
4720
|
MosaicPreferencesPanel.displayName = "MosaicPreferencesPanel";
|
|
4621
|
-
function
|
|
4721
|
+
function cn48(...classes) {
|
|
4622
4722
|
return classes.filter(Boolean).join(" ");
|
|
4623
4723
|
}
|
|
4624
4724
|
function AvatarDisplay({
|
|
@@ -4631,7 +4731,7 @@ function AvatarDisplay({
|
|
|
4631
4731
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4632
4732
|
"span",
|
|
4633
4733
|
{
|
|
4634
|
-
className:
|
|
4734
|
+
className: cn48(
|
|
4635
4735
|
"inline-flex shrink-0 items-center justify-center rounded-full bg-muted text-muted-foreground font-semibold overflow-hidden",
|
|
4636
4736
|
sizeClass
|
|
4637
4737
|
),
|
|
@@ -4653,7 +4753,7 @@ function MosaicProfilePanel({
|
|
|
4653
4753
|
className
|
|
4654
4754
|
}) {
|
|
4655
4755
|
const { isMobile } = useDevice();
|
|
4656
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "profile-panel", className:
|
|
4756
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "profile-panel", className: cn48("space-y-4 md:space-y-6", className), children: [
|
|
4657
4757
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "rounded-lg border border-border bg-card text-card-foreground shadow-sm", children: [
|
|
4658
4758
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col space-y-1.5 p-6", children: [
|
|
4659
4759
|
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "text-lg font-semibold leading-none tracking-tight md:text-xl", children: "Profile Picture" }),
|
|
@@ -4673,7 +4773,7 @@ function MosaicProfilePanel({
|
|
|
4673
4773
|
{
|
|
4674
4774
|
type: "button",
|
|
4675
4775
|
onClick: onAvatarUpload,
|
|
4676
|
-
className:
|
|
4776
|
+
className: cn48(
|
|
4677
4777
|
"inline-flex min-h-[44px] items-center justify-center gap-2 rounded-md border border-border",
|
|
4678
4778
|
"bg-background px-4 py-2 text-sm font-medium text-foreground",
|
|
4679
4779
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -4723,7 +4823,7 @@ function MosaicProfilePanel({
|
|
|
4723
4823
|
placeholder: field.placeholder,
|
|
4724
4824
|
onChange: (e) => onFieldChange?.(field.id, e.target.value),
|
|
4725
4825
|
rows: 4,
|
|
4726
|
-
className:
|
|
4826
|
+
className: cn48(
|
|
4727
4827
|
"flex min-h-[120px] w-full rounded-md border border-input bg-background px-3 py-2",
|
|
4728
4828
|
"text-sm text-foreground placeholder:text-muted-foreground",
|
|
4729
4829
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -4739,7 +4839,7 @@ function MosaicProfilePanel({
|
|
|
4739
4839
|
readOnly: field.readOnly,
|
|
4740
4840
|
placeholder: field.placeholder,
|
|
4741
4841
|
onChange: (e) => onFieldChange?.(field.id, e.target.value),
|
|
4742
|
-
className:
|
|
4842
|
+
className: cn48(
|
|
4743
4843
|
"flex min-h-[48px] w-full rounded-md border border-input bg-background px-3 py-2",
|
|
4744
4844
|
"text-sm text-foreground placeholder:text-muted-foreground",
|
|
4745
4845
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -4759,7 +4859,7 @@ function MosaicProfilePanel({
|
|
|
4759
4859
|
{
|
|
4760
4860
|
type: "button",
|
|
4761
4861
|
onClick: onChangePassword,
|
|
4762
|
-
className:
|
|
4862
|
+
className: cn48(
|
|
4763
4863
|
"inline-flex min-h-[44px] items-center justify-center rounded-md border border-border",
|
|
4764
4864
|
"bg-background px-4 py-2 text-sm font-medium text-foreground",
|
|
4765
4865
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -4771,13 +4871,13 @@ function MosaicProfilePanel({
|
|
|
4771
4871
|
) })
|
|
4772
4872
|
] }),
|
|
4773
4873
|
extraSections,
|
|
4774
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
4874
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: cn48("flex", isMobile ? "flex-col" : "justify-end"), children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
4775
4875
|
"button",
|
|
4776
4876
|
{
|
|
4777
4877
|
type: "button",
|
|
4778
4878
|
onClick: onSave,
|
|
4779
4879
|
disabled: isSaving,
|
|
4780
|
-
className:
|
|
4880
|
+
className: cn48(
|
|
4781
4881
|
"inline-flex min-h-[44px] items-center justify-center gap-2 rounded-md",
|
|
4782
4882
|
"bg-primary px-4 py-2 text-sm font-medium text-primary-foreground",
|
|
4783
4883
|
"hover:bg-primary/90",
|
|
@@ -4813,7 +4913,7 @@ function MosaicProfilePanel({
|
|
|
4813
4913
|
] });
|
|
4814
4914
|
}
|
|
4815
4915
|
MosaicProfilePanel.displayName = "MosaicProfilePanel";
|
|
4816
|
-
function
|
|
4916
|
+
function cn49(...classes) {
|
|
4817
4917
|
return classes.filter(Boolean).join(" ");
|
|
4818
4918
|
}
|
|
4819
4919
|
var ANIM_ID7 = "mosaic-main-nav-kf";
|
|
@@ -4921,7 +5021,7 @@ function MosaicMainNav({
|
|
|
4921
5021
|
{
|
|
4922
5022
|
type: "button",
|
|
4923
5023
|
onClick: () => setIsOpen(!isOpen),
|
|
4924
|
-
className:
|
|
5024
|
+
className: cn49(
|
|
4925
5025
|
"inline-flex min-h-[44px] min-w-[44px] items-center justify-center rounded-md p-0",
|
|
4926
5026
|
"text-foreground hover:bg-accent hover:text-accent-foreground",
|
|
4927
5027
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -4947,7 +5047,7 @@ function MosaicMainNav({
|
|
|
4947
5047
|
"aria-label": "Navigation",
|
|
4948
5048
|
open: isOpen,
|
|
4949
5049
|
"data-open": isOpen ? "true" : "false",
|
|
4950
|
-
className:
|
|
5050
|
+
className: cn49(
|
|
4951
5051
|
"mosaic-nav-drawer",
|
|
4952
5052
|
"fixed inset-y-0 left-0 z-50 m-0 w-[280px] max-h-none h-full p-0",
|
|
4953
5053
|
"border-r border-border bg-background shadow-xl",
|
|
@@ -4964,7 +5064,7 @@ function MosaicMainNav({
|
|
|
4964
5064
|
{
|
|
4965
5065
|
type: "button",
|
|
4966
5066
|
onClick: () => setIsOpen(false),
|
|
4967
|
-
className:
|
|
5067
|
+
className: cn49(
|
|
4968
5068
|
"inline-flex h-8 w-8 items-center justify-center rounded-md",
|
|
4969
5069
|
"text-muted-foreground hover:bg-accent hover:text-accent-foreground",
|
|
4970
5070
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -4977,7 +5077,7 @@ function MosaicMainNav({
|
|
|
4977
5077
|
/* @__PURE__ */ jsxRuntime.jsx("nav", { className: "flex flex-col gap-1 p-4", "aria-label": "Main navigation", children: filteredItems.map((item) => {
|
|
4978
5078
|
const Icon = item.icon;
|
|
4979
5079
|
const active = isItemActive(item);
|
|
4980
|
-
const itemClass =
|
|
5080
|
+
const itemClass = cn49(
|
|
4981
5081
|
"flex items-center gap-3 rounded-lg px-3 py-3 text-sm font-medium transition-colors",
|
|
4982
5082
|
"hover:bg-accent hover:text-accent-foreground",
|
|
4983
5083
|
"min-h-[44px]",
|
|
@@ -5003,12 +5103,12 @@ function MosaicMainNav({
|
|
|
5003
5103
|
"nav",
|
|
5004
5104
|
{
|
|
5005
5105
|
"data-slot": "main-nav",
|
|
5006
|
-
className:
|
|
5106
|
+
className: cn49("flex items-center gap-1", className),
|
|
5007
5107
|
"aria-label": "Main navigation",
|
|
5008
5108
|
children: filteredItems.map((item) => {
|
|
5009
5109
|
const Icon = item.icon;
|
|
5010
5110
|
const active = isItemActive(item);
|
|
5011
|
-
const itemClass =
|
|
5111
|
+
const itemClass = cn49(
|
|
5012
5112
|
"flex items-center gap-2 rounded-lg px-3 py-2 text-sm font-medium transition-colors",
|
|
5013
5113
|
"hover:bg-accent hover:text-accent-foreground",
|
|
5014
5114
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -5028,7 +5128,7 @@ function MosaicMainNav({
|
|
|
5028
5128
|
);
|
|
5029
5129
|
}
|
|
5030
5130
|
MosaicMainNav.displayName = "MosaicMainNav";
|
|
5031
|
-
function
|
|
5131
|
+
function cn50(...classes) {
|
|
5032
5132
|
return classes.filter(Boolean).join(" ");
|
|
5033
5133
|
}
|
|
5034
5134
|
function MoreVertIcon() {
|
|
@@ -5159,7 +5259,7 @@ function MosaicAgentCard({
|
|
|
5159
5259
|
"div",
|
|
5160
5260
|
{
|
|
5161
5261
|
"data-slot": "agent-card",
|
|
5162
|
-
className:
|
|
5262
|
+
className: cn50(
|
|
5163
5263
|
"relative overflow-hidden rounded-lg border border-border bg-card text-card-foreground shadow-sm",
|
|
5164
5264
|
"transition-shadow hover:shadow-md",
|
|
5165
5265
|
agent.isActive && "ring-2 ring-primary",
|
|
@@ -5169,7 +5269,7 @@ function MosaicAgentCard({
|
|
|
5169
5269
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5170
5270
|
"div",
|
|
5171
5271
|
{
|
|
5172
|
-
className:
|
|
5272
|
+
className: cn50(
|
|
5173
5273
|
"absolute left-0 top-0 h-1 w-full",
|
|
5174
5274
|
agent.isActive ? "bg-primary" : "bg-muted"
|
|
5175
5275
|
)
|
|
@@ -5181,7 +5281,7 @@ function MosaicAgentCard({
|
|
|
5181
5281
|
agent.accentColor && /* @__PURE__ */ jsxRuntime.jsx(
|
|
5182
5282
|
"span",
|
|
5183
5283
|
{
|
|
5184
|
-
className:
|
|
5284
|
+
className: cn50("h-3 w-3 shrink-0 rounded-full", agent.accentColor),
|
|
5185
5285
|
"aria-hidden": "true"
|
|
5186
5286
|
}
|
|
5187
5287
|
),
|
|
@@ -5199,7 +5299,7 @@ function MosaicAgentCard({
|
|
|
5199
5299
|
{
|
|
5200
5300
|
type: "button",
|
|
5201
5301
|
onClick: () => setMenuOpen((v) => !v),
|
|
5202
|
-
className:
|
|
5302
|
+
className: cn50(
|
|
5203
5303
|
"inline-flex h-8 w-8 items-center justify-center rounded-md",
|
|
5204
5304
|
"text-muted-foreground hover:bg-accent hover:text-accent-foreground",
|
|
5205
5305
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -5214,7 +5314,7 @@ function MosaicAgentCard({
|
|
|
5214
5314
|
"div",
|
|
5215
5315
|
{
|
|
5216
5316
|
role: "menu",
|
|
5217
|
-
className:
|
|
5317
|
+
className: cn50(
|
|
5218
5318
|
"absolute right-0 top-full z-50 mt-1 min-w-[140px] rounded-md border border-border",
|
|
5219
5319
|
"bg-popover py-1 shadow-md"
|
|
5220
5320
|
),
|
|
@@ -5229,7 +5329,7 @@ function MosaicAgentCard({
|
|
|
5229
5329
|
onToggleStatus(agent.id);
|
|
5230
5330
|
setMenuOpen(false);
|
|
5231
5331
|
},
|
|
5232
|
-
className:
|
|
5332
|
+
className: cn50(
|
|
5233
5333
|
"flex w-full items-center gap-2 px-3 py-2 text-sm text-foreground",
|
|
5234
5334
|
"hover:bg-accent hover:text-accent-foreground",
|
|
5235
5335
|
"disabled:pointer-events-none disabled:opacity-50"
|
|
@@ -5291,7 +5391,7 @@ function MosaicAgentCard({
|
|
|
5291
5391
|
type: "button",
|
|
5292
5392
|
disabled: isLoading,
|
|
5293
5393
|
onClick: () => onToggleStatus(agent.id),
|
|
5294
|
-
className:
|
|
5394
|
+
className: cn50(
|
|
5295
5395
|
"inline-flex h-7 items-center justify-center rounded-md px-3 text-xs font-medium",
|
|
5296
5396
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
5297
5397
|
"disabled:pointer-events-none disabled:opacity-50",
|
|
@@ -5307,7 +5407,7 @@ function MosaicAgentCard({
|
|
|
5307
5407
|
);
|
|
5308
5408
|
}
|
|
5309
5409
|
MosaicAgentCard.displayName = "MosaicAgentCard";
|
|
5310
|
-
function
|
|
5410
|
+
function cn51(...classes) {
|
|
5311
5411
|
return classes.filter(Boolean).join(" ");
|
|
5312
5412
|
}
|
|
5313
5413
|
function PlusIcon3() {
|
|
@@ -5387,7 +5487,7 @@ function PickerContent({
|
|
|
5387
5487
|
{
|
|
5388
5488
|
type: "button",
|
|
5389
5489
|
onClick: () => onAdd(agent.id),
|
|
5390
|
-
className:
|
|
5490
|
+
className: cn51(
|
|
5391
5491
|
"flex w-full items-center gap-3 rounded-lg px-3 py-2.5 text-sm",
|
|
5392
5492
|
"hover:bg-accent hover:text-accent-foreground",
|
|
5393
5493
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -5396,7 +5496,7 @@ function PickerContent({
|
|
|
5396
5496
|
agent.accentColor && /* @__PURE__ */ jsxRuntime.jsx(
|
|
5397
5497
|
"span",
|
|
5398
5498
|
{
|
|
5399
|
-
className:
|
|
5499
|
+
className: cn51("h-3 w-3 shrink-0 rounded-full", agent.accentColor),
|
|
5400
5500
|
"aria-hidden": "true"
|
|
5401
5501
|
}
|
|
5402
5502
|
),
|
|
@@ -5413,7 +5513,7 @@ function PickerContent({
|
|
|
5413
5513
|
{
|
|
5414
5514
|
type: "button",
|
|
5415
5515
|
onClick: onOpenBuilder,
|
|
5416
|
-
className:
|
|
5516
|
+
className: cn51(
|
|
5417
5517
|
"flex w-full items-center gap-3 rounded-lg px-3 py-2.5 text-sm",
|
|
5418
5518
|
"hover:bg-accent hover:text-accent-foreground",
|
|
5419
5519
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -5463,11 +5563,11 @@ function MosaicQuickAgentSelector({
|
|
|
5463
5563
|
setPickerOpen(false);
|
|
5464
5564
|
};
|
|
5465
5565
|
const canAdd = selectedAgents.length < maxAgents;
|
|
5466
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "quick-agent-selector", className:
|
|
5566
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "quick-agent-selector", className: cn51("flex items-center gap-2", className), children: [
|
|
5467
5567
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-2 overflow-x-auto", children: selectedAgents.map((agent) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
5468
5568
|
"div",
|
|
5469
5569
|
{
|
|
5470
|
-
className:
|
|
5570
|
+
className: cn51(
|
|
5471
5571
|
"group flex shrink-0 items-center gap-2 rounded-md border border-border bg-card",
|
|
5472
5572
|
isMobile ? "px-2 py-1" : "px-3 py-1.5"
|
|
5473
5573
|
),
|
|
@@ -5475,17 +5575,17 @@ function MosaicQuickAgentSelector({
|
|
|
5475
5575
|
agent.accentColor && /* @__PURE__ */ jsxRuntime.jsx(
|
|
5476
5576
|
"span",
|
|
5477
5577
|
{
|
|
5478
|
-
className:
|
|
5578
|
+
className: cn51("h-2 w-2 shrink-0 rounded-full", agent.accentColor),
|
|
5479
5579
|
"aria-hidden": "true"
|
|
5480
5580
|
}
|
|
5481
5581
|
),
|
|
5482
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
5582
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: cn51("whitespace-nowrap font-medium", isMobile ? "text-xs" : "text-sm"), children: isMobile ? agent.type.split("-")[0] : agent.name }),
|
|
5483
5583
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5484
5584
|
"button",
|
|
5485
5585
|
{
|
|
5486
5586
|
type: "button",
|
|
5487
5587
|
onClick: () => onRemoveAgent(agent.id),
|
|
5488
|
-
className:
|
|
5588
|
+
className: cn51(
|
|
5489
5589
|
"inline-flex h-4 w-4 items-center justify-center rounded",
|
|
5490
5590
|
"text-muted-foreground hover:text-foreground",
|
|
5491
5591
|
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
@@ -5505,7 +5605,7 @@ function MosaicQuickAgentSelector({
|
|
|
5505
5605
|
{
|
|
5506
5606
|
type: "button",
|
|
5507
5607
|
onClick: () => setPickerOpen((v) => !v),
|
|
5508
|
-
className:
|
|
5608
|
+
className: cn51(
|
|
5509
5609
|
"inline-flex items-center justify-center gap-2 rounded-md border border-border bg-background",
|
|
5510
5610
|
"px-3 py-1.5 text-sm font-medium text-foreground",
|
|
5511
5611
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -5520,7 +5620,7 @@ function MosaicQuickAgentSelector({
|
|
|
5520
5620
|
!isMobile && pickerOpen && /* @__PURE__ */ jsxRuntime.jsx(
|
|
5521
5621
|
"div",
|
|
5522
5622
|
{
|
|
5523
|
-
className:
|
|
5623
|
+
className: cn51(
|
|
5524
5624
|
"absolute left-0 top-full z-50 mt-2 w-72 rounded-lg border border-border",
|
|
5525
5625
|
"bg-popover shadow-lg"
|
|
5526
5626
|
),
|
|
@@ -5562,7 +5662,7 @@ function MosaicQuickAgentSelector({
|
|
|
5562
5662
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
5563
5663
|
"span",
|
|
5564
5664
|
{
|
|
5565
|
-
className:
|
|
5665
|
+
className: cn51(
|
|
5566
5666
|
"shrink-0 rounded-md bg-secondary px-2 py-0.5 text-xs font-medium text-secondary-foreground"
|
|
5567
5667
|
),
|
|
5568
5668
|
children: [
|
|
@@ -5575,7 +5675,7 @@ function MosaicQuickAgentSelector({
|
|
|
5575
5675
|
] });
|
|
5576
5676
|
}
|
|
5577
5677
|
MosaicQuickAgentSelector.displayName = "MosaicQuickAgentSelector";
|
|
5578
|
-
function
|
|
5678
|
+
function cn52(...classes) {
|
|
5579
5679
|
return classes.filter(Boolean).join(" ");
|
|
5580
5680
|
}
|
|
5581
5681
|
function SearchIcon() {
|
|
@@ -5665,7 +5765,7 @@ function MosaicSelectorModal({
|
|
|
5665
5765
|
value: query,
|
|
5666
5766
|
onChange: (e) => setQuery(e.target.value),
|
|
5667
5767
|
placeholder: searchPlaceholder,
|
|
5668
|
-
className:
|
|
5768
|
+
className: cn52(
|
|
5669
5769
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
5670
5770
|
"text-sm text-foreground placeholder:text-muted-foreground",
|
|
5671
5771
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -5679,7 +5779,7 @@ function MosaicSelectorModal({
|
|
|
5679
5779
|
{
|
|
5680
5780
|
type: "button",
|
|
5681
5781
|
onClick: () => setActiveCategory("all"),
|
|
5682
|
-
className:
|
|
5782
|
+
className: cn52(
|
|
5683
5783
|
"shrink-0 rounded-md px-3 py-1.5 text-sm font-medium transition-colors",
|
|
5684
5784
|
activeCategory === "all" ? "bg-primary text-primary-foreground" : "bg-muted text-muted-foreground hover:bg-accent hover:text-accent-foreground"
|
|
5685
5785
|
),
|
|
@@ -5691,7 +5791,7 @@ function MosaicSelectorModal({
|
|
|
5691
5791
|
{
|
|
5692
5792
|
type: "button",
|
|
5693
5793
|
onClick: () => setActiveCategory(cat.id),
|
|
5694
|
-
className:
|
|
5794
|
+
className: cn52(
|
|
5695
5795
|
"shrink-0 rounded-md px-3 py-1.5 text-sm font-medium transition-colors",
|
|
5696
5796
|
activeCategory === cat.id ? "bg-primary text-primary-foreground" : "bg-muted text-muted-foreground hover:bg-accent hover:text-accent-foreground"
|
|
5697
5797
|
),
|
|
@@ -5703,7 +5803,7 @@ function MosaicSelectorModal({
|
|
|
5703
5803
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
5704
5804
|
"div",
|
|
5705
5805
|
{
|
|
5706
|
-
className:
|
|
5806
|
+
className: cn52(
|
|
5707
5807
|
"max-h-[50vh] overflow-y-auto",
|
|
5708
5808
|
columns === 2 ? "grid grid-cols-1 gap-3 sm:grid-cols-2" : "flex flex-col gap-3"
|
|
5709
5809
|
),
|
|
@@ -5715,7 +5815,7 @@ function MosaicSelectorModal({
|
|
|
5715
5815
|
{
|
|
5716
5816
|
type: "button",
|
|
5717
5817
|
onClick: () => setPendingId(item.id),
|
|
5718
|
-
className:
|
|
5818
|
+
className: cn52(
|
|
5719
5819
|
"group relative rounded-lg border p-4 text-left transition-all duration-150",
|
|
5720
5820
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
5721
5821
|
isSelected ? "border-primary bg-primary/5 ring-2 ring-primary" : "border-border bg-card hover:border-primary/50"
|
|
@@ -5753,7 +5853,7 @@ function MosaicSelectorModal({
|
|
|
5753
5853
|
{
|
|
5754
5854
|
type: "button",
|
|
5755
5855
|
onClick: onClose,
|
|
5756
|
-
className:
|
|
5856
|
+
className: cn52(
|
|
5757
5857
|
"inline-flex min-h-[44px] items-center justify-center rounded-md border border-border",
|
|
5758
5858
|
"bg-background px-4 py-2 text-sm font-medium text-foreground",
|
|
5759
5859
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -5768,7 +5868,7 @@ function MosaicSelectorModal({
|
|
|
5768
5868
|
type: "button",
|
|
5769
5869
|
onClick: handleConfirm,
|
|
5770
5870
|
disabled: !pendingItem,
|
|
5771
|
-
className:
|
|
5871
|
+
className: cn52(
|
|
5772
5872
|
"inline-flex min-h-[44px] items-center justify-center rounded-md",
|
|
5773
5873
|
"bg-primary px-4 py-2 text-sm font-medium text-primary-foreground",
|
|
5774
5874
|
"hover:bg-primary/90",
|
|
@@ -5782,7 +5882,7 @@ function MosaicSelectorModal({
|
|
|
5782
5882
|
] }) });
|
|
5783
5883
|
}
|
|
5784
5884
|
MosaicSelectorModal.displayName = "MosaicSelectorModal";
|
|
5785
|
-
function
|
|
5885
|
+
function cn53(...classes) {
|
|
5786
5886
|
return classes.filter(Boolean).join(" ");
|
|
5787
5887
|
}
|
|
5788
5888
|
function relativeTime(ts) {
|
|
@@ -6031,7 +6131,7 @@ function MosaicMessageCard({
|
|
|
6031
6131
|
"div",
|
|
6032
6132
|
{
|
|
6033
6133
|
"data-slot": "message-card",
|
|
6034
|
-
className:
|
|
6134
|
+
className: cn53(
|
|
6035
6135
|
"rounded-lg border border-border bg-card p-4 shadow-sm transition-shadow hover:shadow-md",
|
|
6036
6136
|
compact && "p-3",
|
|
6037
6137
|
message.sender.type === "user" && "bg-primary/5",
|
|
@@ -6041,7 +6141,7 @@ function MosaicMessageCard({
|
|
|
6041
6141
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6042
6142
|
"span",
|
|
6043
6143
|
{
|
|
6044
|
-
className:
|
|
6144
|
+
className: cn53(
|
|
6045
6145
|
"inline-flex shrink-0 items-center justify-center rounded-full text-white font-semibold",
|
|
6046
6146
|
compact ? "h-8 w-8 text-xs" : "h-10 w-10 text-sm",
|
|
6047
6147
|
message.sender.accentColor ?? "bg-muted text-muted-foreground"
|
|
@@ -6059,7 +6159,7 @@ function MosaicMessageCard({
|
|
|
6059
6159
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-w-0 flex-1", children: [
|
|
6060
6160
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mb-2 flex items-center justify-between gap-2", children: [
|
|
6061
6161
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
6062
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
6162
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: cn53("font-medium", compact ? "text-sm" : "text-base"), children: message.sender.name }),
|
|
6063
6163
|
message.sender.type === "ai" && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "rounded-full bg-secondary px-2 py-0.5 text-xs font-medium text-secondary-foreground", children: "AI" })
|
|
6064
6164
|
] }),
|
|
6065
6165
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "shrink-0 text-xs text-muted-foreground", children: relativeTime(message.timestamp) })
|
|
@@ -6067,7 +6167,7 @@ function MosaicMessageCard({
|
|
|
6067
6167
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6068
6168
|
"p",
|
|
6069
6169
|
{
|
|
6070
|
-
className:
|
|
6170
|
+
className: cn53(
|
|
6071
6171
|
"leading-relaxed text-foreground mb-3",
|
|
6072
6172
|
compact ? "text-sm" : "text-base"
|
|
6073
6173
|
),
|
|
@@ -6082,7 +6182,7 @@ function MosaicMessageCard({
|
|
|
6082
6182
|
{
|
|
6083
6183
|
type: "button",
|
|
6084
6184
|
onClick: handleLike,
|
|
6085
|
-
className:
|
|
6185
|
+
className: cn53(
|
|
6086
6186
|
"inline-flex h-8 items-center gap-1 rounded-md px-2 text-xs",
|
|
6087
6187
|
"hover:bg-accent hover:text-accent-foreground",
|
|
6088
6188
|
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
@@ -6100,7 +6200,7 @@ function MosaicMessageCard({
|
|
|
6100
6200
|
{
|
|
6101
6201
|
type: "button",
|
|
6102
6202
|
onClick: handleDislike,
|
|
6103
|
-
className:
|
|
6203
|
+
className: cn53(
|
|
6104
6204
|
"inline-flex h-8 items-center gap-1 rounded-md px-2 text-xs",
|
|
6105
6205
|
"hover:bg-accent hover:text-accent-foreground",
|
|
6106
6206
|
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
@@ -6145,7 +6245,7 @@ function MosaicMessageCard({
|
|
|
6145
6245
|
{
|
|
6146
6246
|
type: "button",
|
|
6147
6247
|
onClick: handleBookmark,
|
|
6148
|
-
className:
|
|
6248
|
+
className: cn53(
|
|
6149
6249
|
"inline-flex h-8 w-8 items-center justify-center rounded-md",
|
|
6150
6250
|
"hover:bg-accent hover:text-accent-foreground",
|
|
6151
6251
|
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
@@ -6246,7 +6346,7 @@ function MosaicMessageCard({
|
|
|
6246
6346
|
);
|
|
6247
6347
|
}
|
|
6248
6348
|
MosaicMessageCard.displayName = "MosaicMessageCard";
|
|
6249
|
-
function
|
|
6349
|
+
function cn54(...classes) {
|
|
6250
6350
|
return classes.filter(Boolean).join(" ");
|
|
6251
6351
|
}
|
|
6252
6352
|
function SearchIcon2() {
|
|
@@ -6286,7 +6386,7 @@ function MessageListDesktop({
|
|
|
6286
6386
|
const filtered = query ? messages.filter(
|
|
6287
6387
|
(m) => m.content.toLowerCase().includes(query.toLowerCase()) || m.sender.name.toLowerCase().includes(query.toLowerCase())
|
|
6288
6388
|
) : messages;
|
|
6289
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "message-list-desktop", className:
|
|
6389
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "message-list-desktop", className: cn54("flex h-full flex-col", className), children: [
|
|
6290
6390
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between border-b border-border px-6 py-4", children: [
|
|
6291
6391
|
title && /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-lg font-semibold", children: title }),
|
|
6292
6392
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative ml-auto max-w-xs flex-1", children: [
|
|
@@ -6298,7 +6398,7 @@ function MessageListDesktop({
|
|
|
6298
6398
|
value: query,
|
|
6299
6399
|
onChange: (e) => setQuery(e.target.value),
|
|
6300
6400
|
placeholder: "Search messages\u2026",
|
|
6301
|
-
className:
|
|
6401
|
+
className: cn54(
|
|
6302
6402
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
6303
6403
|
"text-sm placeholder:text-muted-foreground",
|
|
6304
6404
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -6327,7 +6427,7 @@ function MessageListDesktop({
|
|
|
6327
6427
|
{
|
|
6328
6428
|
type: "button",
|
|
6329
6429
|
onClick: onLoadMore,
|
|
6330
|
-
className:
|
|
6430
|
+
className: cn54(
|
|
6331
6431
|
"w-full rounded-md border border-border bg-background px-4 py-2 text-sm font-medium",
|
|
6332
6432
|
"hover:bg-accent hover:text-accent-foreground",
|
|
6333
6433
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -6349,7 +6449,7 @@ function MessageListMobile({
|
|
|
6349
6449
|
isLoading,
|
|
6350
6450
|
className
|
|
6351
6451
|
}) {
|
|
6352
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "message-list-mobile", className:
|
|
6452
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "message-list-mobile", className: cn54("flex flex-col", className), children: [
|
|
6353
6453
|
title && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "sticky top-0 z-10 border-b border-border bg-background px-4 py-3", children: /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-base font-semibold", children: title }) }),
|
|
6354
6454
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-3 p-4", children: [
|
|
6355
6455
|
isLoading && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "space-y-3", children: [0, 1, 2].map((i) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-20 animate-pulse rounded-lg bg-muted" }, i)) }),
|
|
@@ -6372,7 +6472,7 @@ function MessageListMobile({
|
|
|
6372
6472
|
{
|
|
6373
6473
|
type: "button",
|
|
6374
6474
|
onClick: onLoadMore,
|
|
6375
|
-
className:
|
|
6475
|
+
className: cn54(
|
|
6376
6476
|
"w-full min-h-[44px] rounded-md border border-border bg-background px-4 py-2 text-sm font-medium",
|
|
6377
6477
|
"hover:bg-accent hover:text-accent-foreground",
|
|
6378
6478
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -6387,7 +6487,7 @@ function MosaicMessageList(props) {
|
|
|
6387
6487
|
return isMobile ? /* @__PURE__ */ jsxRuntime.jsx(MessageListMobile, { ...props }) : /* @__PURE__ */ jsxRuntime.jsx(MessageListDesktop, { ...props });
|
|
6388
6488
|
}
|
|
6389
6489
|
MosaicMessageList.displayName = "MosaicMessageList";
|
|
6390
|
-
function
|
|
6490
|
+
function cn55(...classes) {
|
|
6391
6491
|
return classes.filter(Boolean).join(" ");
|
|
6392
6492
|
}
|
|
6393
6493
|
function ChevronLeftIcon2() {
|
|
@@ -6463,7 +6563,7 @@ function MosaicFilterSidebar({
|
|
|
6463
6563
|
{
|
|
6464
6564
|
"data-slot": "filter-sidebar",
|
|
6465
6565
|
style: { width, minWidth: isCollapsed && !isMobile ? "64px" : void 0 },
|
|
6466
|
-
className:
|
|
6566
|
+
className: cn55(
|
|
6467
6567
|
"relative flex flex-col border-r border-border bg-card",
|
|
6468
6568
|
"transition-[width] duration-200 ease-in-out",
|
|
6469
6569
|
"overflow-hidden",
|
|
@@ -6475,7 +6575,7 @@ function MosaicFilterSidebar({
|
|
|
6475
6575
|
{
|
|
6476
6576
|
type: "button",
|
|
6477
6577
|
onClick: onToggleCollapse,
|
|
6478
|
-
className:
|
|
6578
|
+
className: cn55(
|
|
6479
6579
|
"absolute -right-3 top-6 z-10 flex h-6 w-6 items-center justify-center rounded-full",
|
|
6480
6580
|
"border border-border bg-background shadow-sm",
|
|
6481
6581
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -6505,7 +6605,7 @@ function MosaicFilterSidebar({
|
|
|
6505
6605
|
{
|
|
6506
6606
|
type: "button",
|
|
6507
6607
|
onClick: () => onFilterChange(f.id),
|
|
6508
|
-
className:
|
|
6608
|
+
className: cn55(
|
|
6509
6609
|
"flex min-h-[40px] items-center justify-between rounded-md px-3 py-2 text-sm font-medium",
|
|
6510
6610
|
"transition-colors hover:bg-accent hover:text-accent-foreground",
|
|
6511
6611
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -6525,7 +6625,7 @@ function MosaicFilterSidebar({
|
|
|
6525
6625
|
{
|
|
6526
6626
|
type: "button",
|
|
6527
6627
|
onClick: () => onCategoryChange(cat.id),
|
|
6528
|
-
className:
|
|
6628
|
+
className: cn55(
|
|
6529
6629
|
"flex min-h-[36px] items-center justify-between rounded-md px-3 py-1.5 text-sm",
|
|
6530
6630
|
"transition-colors hover:bg-accent hover:text-accent-foreground",
|
|
6531
6631
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -6545,7 +6645,7 @@ function MosaicFilterSidebar({
|
|
|
6545
6645
|
);
|
|
6546
6646
|
}
|
|
6547
6647
|
MosaicFilterSidebar.displayName = "MosaicFilterSidebar";
|
|
6548
|
-
function
|
|
6648
|
+
function cn56(...classes) {
|
|
6549
6649
|
return classes.filter(Boolean).join(" ");
|
|
6550
6650
|
}
|
|
6551
6651
|
function SearchIcon3() {
|
|
@@ -6660,7 +6760,7 @@ function AgentListDesktop({
|
|
|
6660
6760
|
value: query,
|
|
6661
6761
|
onChange: (e) => setQuery(e.target.value),
|
|
6662
6762
|
placeholder: searchPlaceholder,
|
|
6663
|
-
className:
|
|
6763
|
+
className: cn56(
|
|
6664
6764
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
6665
6765
|
"text-sm placeholder:text-muted-foreground",
|
|
6666
6766
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -6673,7 +6773,7 @@ function AgentListDesktop({
|
|
|
6673
6773
|
{
|
|
6674
6774
|
type: "button",
|
|
6675
6775
|
onClick: onCreateAgent,
|
|
6676
|
-
className:
|
|
6776
|
+
className: cn56(
|
|
6677
6777
|
"inline-flex items-center gap-2 rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground",
|
|
6678
6778
|
"hover:bg-primary/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
6679
6779
|
),
|
|
@@ -6732,7 +6832,7 @@ function AgentListMobile({
|
|
|
6732
6832
|
{
|
|
6733
6833
|
type: "button",
|
|
6734
6834
|
onClick: () => setFilterOpen(true),
|
|
6735
|
-
className:
|
|
6835
|
+
className: cn56(
|
|
6736
6836
|
"inline-flex h-9 w-9 items-center justify-center rounded-md",
|
|
6737
6837
|
"border border-border bg-background text-foreground",
|
|
6738
6838
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -6747,7 +6847,7 @@ function AgentListMobile({
|
|
|
6747
6847
|
{
|
|
6748
6848
|
type: "button",
|
|
6749
6849
|
onClick: onCreateAgent,
|
|
6750
|
-
className:
|
|
6850
|
+
className: cn56(
|
|
6751
6851
|
"inline-flex h-9 items-center gap-1.5 rounded-md bg-primary px-3 text-sm font-medium text-primary-foreground",
|
|
6752
6852
|
"hover:bg-primary/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
6753
6853
|
),
|
|
@@ -6768,7 +6868,7 @@ function AgentListMobile({
|
|
|
6768
6868
|
value: query,
|
|
6769
6869
|
onChange: (e) => setQuery(e.target.value),
|
|
6770
6870
|
placeholder: searchPlaceholder,
|
|
6771
|
-
className:
|
|
6871
|
+
className: cn56(
|
|
6772
6872
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
6773
6873
|
"text-sm placeholder:text-muted-foreground",
|
|
6774
6874
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -6816,7 +6916,7 @@ function MosaicAgentList(props) {
|
|
|
6816
6916
|
return isMobile ? /* @__PURE__ */ jsxRuntime.jsx(AgentListMobile, { ...props }) : /* @__PURE__ */ jsxRuntime.jsx(AgentListDesktop, { ...props });
|
|
6817
6917
|
}
|
|
6818
6918
|
MosaicAgentList.displayName = "MosaicAgentList";
|
|
6819
|
-
function
|
|
6919
|
+
function cn57(...classes) {
|
|
6820
6920
|
return classes.filter(Boolean).join(" ");
|
|
6821
6921
|
}
|
|
6822
6922
|
function StarIcon({ filled }) {
|
|
@@ -6912,7 +7012,7 @@ function MarketplaceCard({
|
|
|
6912
7012
|
"div",
|
|
6913
7013
|
{
|
|
6914
7014
|
"data-slot": "marketplace-card",
|
|
6915
|
-
className:
|
|
7015
|
+
className: cn57(
|
|
6916
7016
|
"rounded-lg border border-border bg-card p-4 transition-shadow hover:shadow-md",
|
|
6917
7017
|
compact ? "flex items-center gap-3" : "flex flex-col gap-3"
|
|
6918
7018
|
),
|
|
@@ -6920,7 +7020,7 @@ function MarketplaceCard({
|
|
|
6920
7020
|
item.icon && /* @__PURE__ */ jsxRuntime.jsx(
|
|
6921
7021
|
"div",
|
|
6922
7022
|
{
|
|
6923
|
-
className:
|
|
7023
|
+
className: cn57(
|
|
6924
7024
|
"flex shrink-0 items-center justify-center rounded-lg",
|
|
6925
7025
|
compact ? "h-10 w-10" : "h-12 w-12",
|
|
6926
7026
|
item.accentClass ?? "bg-muted text-muted-foreground"
|
|
@@ -6931,7 +7031,7 @@ function MarketplaceCard({
|
|
|
6931
7031
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex-1 min-w-0", children: [
|
|
6932
7032
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start justify-between gap-2", children: [
|
|
6933
7033
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-w-0", children: [
|
|
6934
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className:
|
|
7034
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: cn57("font-semibold leading-tight", compact ? "text-sm" : "text-base"), children: item.title }),
|
|
6935
7035
|
item.description && !compact && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-1 text-sm text-muted-foreground line-clamp-2", children: item.description })
|
|
6936
7036
|
] }),
|
|
6937
7037
|
item.price && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "shrink-0 rounded-full bg-muted px-2 py-0.5 text-xs font-medium text-muted-foreground", children: item.price })
|
|
@@ -6948,13 +7048,13 @@ function MarketplaceCard({
|
|
|
6948
7048
|
] })
|
|
6949
7049
|
] })
|
|
6950
7050
|
] }),
|
|
6951
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
7051
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn57("flex gap-2", compact ? "shrink-0" : "mt-1"), children: [
|
|
6952
7052
|
onPreview && /* @__PURE__ */ jsxRuntime.jsx(
|
|
6953
7053
|
"button",
|
|
6954
7054
|
{
|
|
6955
7055
|
type: "button",
|
|
6956
7056
|
onClick: () => onPreview(item.id),
|
|
6957
|
-
className:
|
|
7057
|
+
className: cn57(
|
|
6958
7058
|
"inline-flex min-h-[36px] items-center justify-center rounded-md border border-border",
|
|
6959
7059
|
"bg-background px-3 text-xs font-medium text-foreground",
|
|
6960
7060
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -6968,7 +7068,7 @@ function MarketplaceCard({
|
|
|
6968
7068
|
{
|
|
6969
7069
|
type: "button",
|
|
6970
7070
|
onClick: () => onUninstall(item.id),
|
|
6971
|
-
className:
|
|
7071
|
+
className: cn57(
|
|
6972
7072
|
"inline-flex min-h-[36px] items-center justify-center rounded-md",
|
|
6973
7073
|
"bg-secondary px-3 text-xs font-medium text-secondary-foreground",
|
|
6974
7074
|
"hover:bg-secondary/80",
|
|
@@ -6981,7 +7081,7 @@ function MarketplaceCard({
|
|
|
6981
7081
|
{
|
|
6982
7082
|
type: "button",
|
|
6983
7083
|
onClick: () => onInstall(item.id),
|
|
6984
|
-
className:
|
|
7084
|
+
className: cn57(
|
|
6985
7085
|
"inline-flex min-h-[36px] items-center justify-center rounded-md",
|
|
6986
7086
|
"bg-primary px-3 text-xs font-medium text-primary-foreground",
|
|
6987
7087
|
"hover:bg-primary/90",
|
|
@@ -7043,7 +7143,7 @@ function MarketplaceListDesktop(props) {
|
|
|
7043
7143
|
value: query,
|
|
7044
7144
|
onChange: (e) => setQuery(e.target.value),
|
|
7045
7145
|
placeholder: searchPlaceholder,
|
|
7046
|
-
className:
|
|
7146
|
+
className: cn57(
|
|
7047
7147
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
7048
7148
|
"text-sm placeholder:text-muted-foreground",
|
|
7049
7149
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -7116,7 +7216,7 @@ function MarketplaceListMobile(props) {
|
|
|
7116
7216
|
value: query,
|
|
7117
7217
|
onChange: (e) => setQuery(e.target.value),
|
|
7118
7218
|
placeholder: searchPlaceholder,
|
|
7119
|
-
className:
|
|
7219
|
+
className: cn57(
|
|
7120
7220
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
7121
7221
|
"text-sm placeholder:text-muted-foreground",
|
|
7122
7222
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -7167,7 +7267,7 @@ function MosaicMarketplaceList(props) {
|
|
|
7167
7267
|
return isMobile ? /* @__PURE__ */ jsxRuntime.jsx(MarketplaceListMobile, { ...props }) : /* @__PURE__ */ jsxRuntime.jsx(MarketplaceListDesktop, { ...props });
|
|
7168
7268
|
}
|
|
7169
7269
|
MosaicMarketplaceList.displayName = "MosaicMarketplaceList";
|
|
7170
|
-
function
|
|
7270
|
+
function cn58(...classes) {
|
|
7171
7271
|
return classes.filter(Boolean).join(" ");
|
|
7172
7272
|
}
|
|
7173
7273
|
function StarIcon2() {
|
|
@@ -7286,7 +7386,7 @@ function MosaicTemplateCard({
|
|
|
7286
7386
|
type: "button",
|
|
7287
7387
|
onClick: () => onSelect(template),
|
|
7288
7388
|
"data-slot": "template-card",
|
|
7289
|
-
className:
|
|
7389
|
+
className: cn58(
|
|
7290
7390
|
"w-full text-left rounded-lg border transition-all duration-200",
|
|
7291
7391
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
7292
7392
|
isSelected ? "border-primary bg-primary/5 ring-2 ring-primary" : "border-border bg-card hover:border-primary/50",
|
|
@@ -7386,7 +7486,7 @@ function MosaicTemplatePreview({
|
|
|
7386
7486
|
agent.accentColor && /* @__PURE__ */ jsxRuntime.jsx(
|
|
7387
7487
|
"span",
|
|
7388
7488
|
{
|
|
7389
|
-
className:
|
|
7489
|
+
className: cn58("h-2 w-2 rounded-full", agent.accentColor),
|
|
7390
7490
|
"aria-hidden": "true"
|
|
7391
7491
|
}
|
|
7392
7492
|
),
|
|
@@ -7446,7 +7546,7 @@ function MosaicAgentTeamPreview({ agents, label }) {
|
|
|
7446
7546
|
agent.accentColor && /* @__PURE__ */ jsxRuntime.jsx(
|
|
7447
7547
|
"span",
|
|
7448
7548
|
{
|
|
7449
|
-
className:
|
|
7549
|
+
className: cn58("h-2.5 w-2.5 rounded-full", agent.accentColor),
|
|
7450
7550
|
"aria-hidden": "true"
|
|
7451
7551
|
}
|
|
7452
7552
|
),
|
|
@@ -7470,7 +7570,7 @@ function MosaicQuickStartPanel({
|
|
|
7470
7570
|
scratchLabel = "Start from Scratch",
|
|
7471
7571
|
className
|
|
7472
7572
|
}) {
|
|
7473
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "quick-start-panel", className:
|
|
7573
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "quick-start-panel", className: cn58("flex flex-col gap-6", className), children: [
|
|
7474
7574
|
scenarios.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
7475
7575
|
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "mb-3 text-sm font-semibold text-foreground", children: scenariosTitle }),
|
|
7476
7576
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "grid gap-3 sm:grid-cols-2", children: scenarios.map((scenario) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -7478,7 +7578,7 @@ function MosaicQuickStartPanel({
|
|
|
7478
7578
|
{
|
|
7479
7579
|
type: "button",
|
|
7480
7580
|
onClick: () => onSelectScenario(scenario),
|
|
7481
|
-
className:
|
|
7581
|
+
className: cn58(
|
|
7482
7582
|
"flex items-start gap-3 rounded-lg border border-border bg-card p-4 text-left",
|
|
7483
7583
|
"hover:border-primary/50 hover:bg-primary/5",
|
|
7484
7584
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -7510,7 +7610,7 @@ function MosaicQuickStartPanel({
|
|
|
7510
7610
|
{
|
|
7511
7611
|
type: "button",
|
|
7512
7612
|
onClick: () => onSelectPreset(preset),
|
|
7513
|
-
className:
|
|
7613
|
+
className: cn58(
|
|
7514
7614
|
"flex items-center justify-between gap-3 rounded-lg border border-border bg-card px-4 py-3 text-left",
|
|
7515
7615
|
"hover:border-primary/50",
|
|
7516
7616
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -7524,7 +7624,7 @@ function MosaicQuickStartPanel({
|
|
|
7524
7624
|
a.accentColor && /* @__PURE__ */ jsxRuntime.jsx(
|
|
7525
7625
|
"span",
|
|
7526
7626
|
{
|
|
7527
|
-
className:
|
|
7627
|
+
className: cn58("h-2 w-2 rounded-full", a.accentColor),
|
|
7528
7628
|
"aria-hidden": "true"
|
|
7529
7629
|
}
|
|
7530
7630
|
),
|
|
@@ -7542,7 +7642,7 @@ function MosaicQuickStartPanel({
|
|
|
7542
7642
|
{
|
|
7543
7643
|
type: "button",
|
|
7544
7644
|
onClick: onStartFromScratch,
|
|
7545
|
-
className:
|
|
7645
|
+
className: cn58(
|
|
7546
7646
|
"inline-flex min-h-[44px] w-full items-center justify-center rounded-md border border-border",
|
|
7547
7647
|
"bg-background px-4 text-sm font-medium text-foreground",
|
|
7548
7648
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -7622,7 +7722,7 @@ function TemplateGalleryContent({
|
|
|
7622
7722
|
value: query,
|
|
7623
7723
|
onChange: (e) => setQuery(e.target.value),
|
|
7624
7724
|
placeholder: searchPlaceholder,
|
|
7625
|
-
className:
|
|
7725
|
+
className: cn58(
|
|
7626
7726
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3 text-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
7627
7727
|
)
|
|
7628
7728
|
}
|
|
@@ -7670,7 +7770,7 @@ function TemplateGalleryContent({
|
|
|
7670
7770
|
value: query,
|
|
7671
7771
|
onChange: (e) => setQuery(e.target.value),
|
|
7672
7772
|
placeholder: searchPlaceholder,
|
|
7673
|
-
className:
|
|
7773
|
+
className: cn58(
|
|
7674
7774
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3 text-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
7675
7775
|
)
|
|
7676
7776
|
}
|
|
@@ -7700,7 +7800,7 @@ function MosaicTemplateGallery(props) {
|
|
|
7700
7800
|
return /* @__PURE__ */ jsxRuntime.jsx(TemplateGalleryContent, { ...props, isMobile });
|
|
7701
7801
|
}
|
|
7702
7802
|
MosaicTemplateGallery.displayName = "MosaicTemplateGallery";
|
|
7703
|
-
function
|
|
7803
|
+
function cn59(...classes) {
|
|
7704
7804
|
return classes.filter(Boolean).join(" ");
|
|
7705
7805
|
}
|
|
7706
7806
|
function PlusIcon5() {
|
|
@@ -7844,7 +7944,7 @@ function MosaicModuleForm({
|
|
|
7844
7944
|
onChange: (e) => update("name", e.target.value),
|
|
7845
7945
|
placeholder: "Module name\u2026",
|
|
7846
7946
|
required: true,
|
|
7847
|
-
className:
|
|
7947
|
+
className: cn59(
|
|
7848
7948
|
"w-full rounded-md border border-input bg-background px-3 py-2 min-h-[40px]",
|
|
7849
7949
|
"text-sm placeholder:text-muted-foreground",
|
|
7850
7950
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -7862,7 +7962,7 @@ function MosaicModuleForm({
|
|
|
7862
7962
|
onChange: (e) => update("description", e.target.value),
|
|
7863
7963
|
placeholder: "Describe this module\u2026",
|
|
7864
7964
|
rows: 3,
|
|
7865
|
-
className:
|
|
7965
|
+
className: cn59(
|
|
7866
7966
|
"w-full rounded-md border border-input bg-background px-3 py-2",
|
|
7867
7967
|
"text-sm placeholder:text-muted-foreground resize-none",
|
|
7868
7968
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -7884,7 +7984,7 @@ function MosaicModuleForm({
|
|
|
7884
7984
|
value: formData[field.id] ?? "",
|
|
7885
7985
|
onChange: (e) => update(field.id, e.target.value),
|
|
7886
7986
|
placeholder: field.placeholder,
|
|
7887
|
-
className:
|
|
7987
|
+
className: cn59(
|
|
7888
7988
|
"w-full rounded-md border border-input bg-background px-3 py-2 min-h-[40px]",
|
|
7889
7989
|
"text-sm placeholder:text-muted-foreground",
|
|
7890
7990
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -7899,7 +7999,7 @@ function MosaicModuleForm({
|
|
|
7899
7999
|
onChange: (e) => update(field.id, e.target.value),
|
|
7900
8000
|
placeholder: field.placeholder,
|
|
7901
8001
|
rows: 3,
|
|
7902
|
-
className:
|
|
8002
|
+
className: cn59(
|
|
7903
8003
|
"w-full rounded-md border border-input bg-background px-3 py-2",
|
|
7904
8004
|
"text-sm placeholder:text-muted-foreground resize-none",
|
|
7905
8005
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -7915,7 +8015,7 @@ function MosaicModuleForm({
|
|
|
7915
8015
|
onChange: (e) => update(field.id, e.target.value),
|
|
7916
8016
|
placeholder: field.placeholder ?? "\u{1F9E0}",
|
|
7917
8017
|
maxLength: 4,
|
|
7918
|
-
className:
|
|
8018
|
+
className: cn59(
|
|
7919
8019
|
"w-20 rounded-md border border-input bg-background px-3 py-2 text-2xl",
|
|
7920
8020
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
7921
8021
|
)
|
|
@@ -7936,7 +8036,7 @@ function MosaicModuleForm({
|
|
|
7936
8036
|
}
|
|
7937
8037
|
},
|
|
7938
8038
|
placeholder: field.placeholder ?? "Add item\u2026",
|
|
7939
|
-
className:
|
|
8039
|
+
className: cn59(
|
|
7940
8040
|
"flex-1 rounded-md border border-input bg-background px-3 py-2 min-h-[36px]",
|
|
7941
8041
|
"text-sm placeholder:text-muted-foreground",
|
|
7942
8042
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -8132,7 +8232,7 @@ function LibraryContent({
|
|
|
8132
8232
|
{
|
|
8133
8233
|
type: "button",
|
|
8134
8234
|
onClick: openCreate,
|
|
8135
|
-
className:
|
|
8235
|
+
className: cn59(
|
|
8136
8236
|
"inline-flex items-center gap-2 rounded-md bg-primary px-3 py-2 text-sm font-medium text-primary-foreground",
|
|
8137
8237
|
"hover:bg-primary/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
8138
8238
|
),
|
|
@@ -8152,7 +8252,7 @@ function LibraryContent({
|
|
|
8152
8252
|
value: query,
|
|
8153
8253
|
onChange: (e) => setQuery(e.target.value),
|
|
8154
8254
|
placeholder: searchPlaceholder,
|
|
8155
|
-
className:
|
|
8255
|
+
className: cn59(
|
|
8156
8256
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
8157
8257
|
"text-sm placeholder:text-muted-foreground",
|
|
8158
8258
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -8165,7 +8265,7 @@ function LibraryContent({
|
|
|
8165
8265
|
{
|
|
8166
8266
|
type: "button",
|
|
8167
8267
|
onClick: () => setActiveTab(tab.id),
|
|
8168
|
-
className:
|
|
8268
|
+
className: cn59(
|
|
8169
8269
|
"rounded-md px-3 py-1.5 text-sm font-medium transition-colors",
|
|
8170
8270
|
activeTab === tab.id ? "bg-primary text-primary-foreground" : "bg-muted text-muted-foreground hover:bg-accent hover:text-accent-foreground"
|
|
8171
8271
|
),
|
|
@@ -8199,7 +8299,7 @@ function MosaicModuleLibrary(props) {
|
|
|
8199
8299
|
return /* @__PURE__ */ jsxRuntime.jsx(LibraryContent, { ...props });
|
|
8200
8300
|
}
|
|
8201
8301
|
MosaicModuleLibrary.displayName = "MosaicModuleLibrary";
|
|
8202
|
-
function
|
|
8302
|
+
function cn60(...classes) {
|
|
8203
8303
|
return classes.filter(Boolean).join(" ");
|
|
8204
8304
|
}
|
|
8205
8305
|
var roleConfig = {
|
|
@@ -8226,7 +8326,7 @@ function MosaicOrgRoleBadge({ role, className }) {
|
|
|
8226
8326
|
{
|
|
8227
8327
|
"data-slot": "org-role-badge",
|
|
8228
8328
|
title: config.description,
|
|
8229
|
-
className:
|
|
8329
|
+
className: cn60(
|
|
8230
8330
|
"inline-flex items-center rounded-full px-2 py-0.5 text-xs font-medium",
|
|
8231
8331
|
config.className,
|
|
8232
8332
|
className
|
|
@@ -8243,13 +8343,13 @@ function MosaicMultiOrgIndicator({
|
|
|
8243
8343
|
className
|
|
8244
8344
|
}) {
|
|
8245
8345
|
if (orgCount <= 1) return null;
|
|
8246
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "multi-org-indicator", className:
|
|
8346
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "multi-org-indicator", className: cn60("flex items-center gap-2", className), children: [
|
|
8247
8347
|
onSwitchOrg ? /* @__PURE__ */ jsxRuntime.jsxs(
|
|
8248
8348
|
"button",
|
|
8249
8349
|
{
|
|
8250
8350
|
type: "button",
|
|
8251
8351
|
onClick: onSwitchOrg,
|
|
8252
|
-
className:
|
|
8352
|
+
className: cn60(
|
|
8253
8353
|
"inline-flex items-center gap-1.5 rounded-full bg-secondary px-2.5 py-1 text-xs font-medium text-secondary-foreground",
|
|
8254
8354
|
"hover:bg-secondary/80",
|
|
8255
8355
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -8347,7 +8447,7 @@ function MosaicCreateOrgDialog({
|
|
|
8347
8447
|
onChange: (e) => setName(e.target.value),
|
|
8348
8448
|
placeholder: "Acme Inc.",
|
|
8349
8449
|
required: true,
|
|
8350
|
-
className:
|
|
8450
|
+
className: cn60(
|
|
8351
8451
|
"w-full rounded-md border bg-background px-3 py-2 min-h-[40px] text-sm placeholder:text-muted-foreground",
|
|
8352
8452
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
8353
8453
|
errors.name ? "border-destructive" : "border-input"
|
|
@@ -8367,7 +8467,7 @@ function MosaicCreateOrgDialog({
|
|
|
8367
8467
|
onChange: (e) => setSlug(e.target.value),
|
|
8368
8468
|
placeholder: "acme-inc",
|
|
8369
8469
|
required: true,
|
|
8370
|
-
className:
|
|
8470
|
+
className: cn60(
|
|
8371
8471
|
"w-full rounded-md border bg-background px-3 py-2 min-h-[40px] text-sm placeholder:text-muted-foreground",
|
|
8372
8472
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
8373
8473
|
errors.slug ? "border-destructive" : "border-input"
|
|
@@ -8464,7 +8564,7 @@ function MosaicInviteMemberDialog({
|
|
|
8464
8564
|
onChange: (e) => setEmail(e.target.value),
|
|
8465
8565
|
placeholder: "colleague@example.com",
|
|
8466
8566
|
required: true,
|
|
8467
|
-
className:
|
|
8567
|
+
className: cn60(
|
|
8468
8568
|
"w-full rounded-md border bg-background px-3 py-2 min-h-[40px] text-sm placeholder:text-muted-foreground",
|
|
8469
8569
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
8470
8570
|
errors.email ? "border-destructive" : "border-input"
|
|
@@ -8641,7 +8741,7 @@ function MosaicMemberList({
|
|
|
8641
8741
|
const filtered = members.filter(
|
|
8642
8742
|
(m) => !query || m.name.toLowerCase().includes(query.toLowerCase()) || m.email.toLowerCase().includes(query.toLowerCase())
|
|
8643
8743
|
);
|
|
8644
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "member-list", className:
|
|
8744
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "member-list", className: cn60("flex flex-col gap-4", className), children: [
|
|
8645
8745
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
8646
8746
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative flex-1", children: [
|
|
8647
8747
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground", children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -8734,7 +8834,7 @@ function MosaicOrgPanel({
|
|
|
8734
8834
|
const { isMobile } = useDevice();
|
|
8735
8835
|
const [activeTab, setActiveTab] = React27__namespace.useState(defaultTab ?? tabs[0]?.id ?? "");
|
|
8736
8836
|
const activeContent = tabs.find((t) => t.id === activeTab)?.content;
|
|
8737
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "org-panel", className:
|
|
8837
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "org-panel", className: cn60("flex h-full flex-col", className), children: [
|
|
8738
8838
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "border-b border-border px-4 py-4 md:px-6", children: [
|
|
8739
8839
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start justify-between gap-4", children: [
|
|
8740
8840
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
@@ -8756,12 +8856,12 @@ function MosaicOrgPanel({
|
|
|
8756
8856
|
] }),
|
|
8757
8857
|
headerActions
|
|
8758
8858
|
] }),
|
|
8759
|
-
tabs.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
8859
|
+
tabs.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn60("mt-4 flex gap-1", isMobile && "overflow-x-auto"), children: tabs.map((tab) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
8760
8860
|
"button",
|
|
8761
8861
|
{
|
|
8762
8862
|
type: "button",
|
|
8763
8863
|
onClick: () => setActiveTab(tab.id),
|
|
8764
|
-
className:
|
|
8864
|
+
className: cn60(
|
|
8765
8865
|
"shrink-0 rounded-md px-3 py-1.5 text-sm font-medium transition-colors",
|
|
8766
8866
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
8767
8867
|
activeTab === tab.id ? "bg-primary text-primary-foreground" : "bg-muted text-muted-foreground hover:bg-accent hover:text-accent-foreground"
|
|
@@ -8775,7 +8875,7 @@ function MosaicOrgPanel({
|
|
|
8775
8875
|
] });
|
|
8776
8876
|
}
|
|
8777
8877
|
MosaicOrgPanel.displayName = "MosaicOrgPanel";
|
|
8778
|
-
function
|
|
8878
|
+
function cn61(...classes) {
|
|
8779
8879
|
return classes.filter(Boolean).join(" ");
|
|
8780
8880
|
}
|
|
8781
8881
|
var ANIM_ID8 = "mosaic-dashboard-content-kf";
|
|
@@ -8812,7 +8912,7 @@ function MosaicDashboardContent({
|
|
|
8812
8912
|
"div",
|
|
8813
8913
|
{
|
|
8814
8914
|
"data-slot": "dashboard-content",
|
|
8815
|
-
className:
|
|
8915
|
+
className: cn61("h-full overflow-auto", isMobile ? "p-4" : "p-6", className),
|
|
8816
8916
|
children: activeView ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mosaic-content-view space-y-6", children: activeView.content }, currentView) : /* @__PURE__ */ jsxRuntime.jsxs("p", { className: "py-12 text-center text-sm text-muted-foreground", children: [
|
|
8817
8917
|
"View not found: ",
|
|
8818
8918
|
currentView
|
|
@@ -8821,7 +8921,7 @@ function MosaicDashboardContent({
|
|
|
8821
8921
|
);
|
|
8822
8922
|
}
|
|
8823
8923
|
MosaicDashboardContent.displayName = "MosaicDashboardContent";
|
|
8824
|
-
function
|
|
8924
|
+
function cn62(...classes) {
|
|
8825
8925
|
return classes.filter(Boolean).join(" ");
|
|
8826
8926
|
}
|
|
8827
8927
|
var ANIM_ID9 = "mosaic-dashboard-header2-kf";
|
|
@@ -8931,16 +9031,16 @@ function MosaicDashboardHeader({
|
|
|
8931
9031
|
"header",
|
|
8932
9032
|
{
|
|
8933
9033
|
"data-slot": "dashboard-header",
|
|
8934
|
-
className:
|
|
9034
|
+
className: cn62(
|
|
8935
9035
|
"mosaic-dashboard-header2",
|
|
8936
9036
|
"sticky top-0 z-40 border-b border-border/50 bg-background/80 backdrop-blur-sm",
|
|
8937
9037
|
className
|
|
8938
9038
|
),
|
|
8939
|
-
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
9039
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn62(isMobile ? "px-4 py-3" : "container mx-auto px-4 py-4"), children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between gap-4", children: [
|
|
8940
9040
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex min-w-0 flex-1 items-center gap-2 md:gap-4", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
8941
9041
|
logoSlot ?? /* @__PURE__ */ jsxRuntime.jsx(SparklesIcon4, {}),
|
|
8942
9042
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-w-0", children: [
|
|
8943
|
-
/* @__PURE__ */ jsxRuntime.jsx("h1", { className:
|
|
9043
|
+
/* @__PURE__ */ jsxRuntime.jsx("h1", { className: cn62("font-semibold truncate", isMobile ? "text-lg" : "text-xl"), children: title }),
|
|
8944
9044
|
subtitle && !isMobile && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-muted-foreground truncate", children: subtitle })
|
|
8945
9045
|
] })
|
|
8946
9046
|
] }) }),
|
|
@@ -8953,7 +9053,7 @@ function MosaicDashboardHeader({
|
|
|
8953
9053
|
value: searchQuery,
|
|
8954
9054
|
onChange: handleSearch,
|
|
8955
9055
|
placeholder: "Search\u2026",
|
|
8956
|
-
className:
|
|
9056
|
+
className: cn62(
|
|
8957
9057
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
8958
9058
|
"text-sm placeholder:text-muted-foreground",
|
|
8959
9059
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -8993,7 +9093,7 @@ function MosaicDashboardHeader({
|
|
|
8993
9093
|
);
|
|
8994
9094
|
}
|
|
8995
9095
|
MosaicDashboardHeader.displayName = "MosaicDashboardHeader";
|
|
8996
|
-
function
|
|
9096
|
+
function cn63(...classes) {
|
|
8997
9097
|
return classes.filter(Boolean).join(" ");
|
|
8998
9098
|
}
|
|
8999
9099
|
function ChevronDownIcon4() {
|
|
@@ -9074,13 +9174,13 @@ function MosaicOrgSwitcher({
|
|
|
9074
9174
|
}, [open]);
|
|
9075
9175
|
if (!currentOrg && organizations.length === 0 && !onCreateOrg) return null;
|
|
9076
9176
|
const initials = currentOrg?.name.split(" ").map((n) => n[0]).filter(Boolean).slice(0, 2).join("").toUpperCase() ?? "?";
|
|
9077
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, "data-slot": "org-switcher", className:
|
|
9177
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, "data-slot": "org-switcher", className: cn63("relative", className), children: [
|
|
9078
9178
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
9079
9179
|
"button",
|
|
9080
9180
|
{
|
|
9081
9181
|
type: "button",
|
|
9082
9182
|
onClick: () => setOpen((v) => !v),
|
|
9083
|
-
className:
|
|
9183
|
+
className: cn63(
|
|
9084
9184
|
"inline-flex items-center gap-2 rounded-md border border-border bg-background px-3 py-1.5",
|
|
9085
9185
|
"text-sm font-medium text-foreground",
|
|
9086
9186
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -9107,7 +9207,7 @@ function MosaicOrgSwitcher({
|
|
|
9107
9207
|
{
|
|
9108
9208
|
role: "menu",
|
|
9109
9209
|
"aria-label": "Select organization",
|
|
9110
|
-
className:
|
|
9210
|
+
className: cn63(
|
|
9111
9211
|
"absolute left-0 top-full z-50 mt-1 min-w-[200px] rounded-md border border-border",
|
|
9112
9212
|
"bg-popover py-1 shadow-md"
|
|
9113
9213
|
),
|
|
@@ -9122,7 +9222,7 @@ function MosaicOrgSwitcher({
|
|
|
9122
9222
|
onSelectOrg?.(org.id);
|
|
9123
9223
|
setOpen(false);
|
|
9124
9224
|
},
|
|
9125
|
-
className:
|
|
9225
|
+
className: cn63(
|
|
9126
9226
|
"flex w-full items-center gap-2.5 px-3 py-2 text-sm text-foreground",
|
|
9127
9227
|
"hover:bg-accent hover:text-accent-foreground",
|
|
9128
9228
|
org.id === currentOrgId && "bg-primary/10 text-primary"
|
|
@@ -9159,7 +9259,7 @@ function MosaicOrgSwitcher({
|
|
|
9159
9259
|
] });
|
|
9160
9260
|
}
|
|
9161
9261
|
MosaicOrgSwitcher.displayName = "MosaicOrgSwitcher";
|
|
9162
|
-
function
|
|
9262
|
+
function cn64(...classes) {
|
|
9163
9263
|
return classes.filter(Boolean).join(" ");
|
|
9164
9264
|
}
|
|
9165
9265
|
function PlusIcon7() {
|
|
@@ -9203,19 +9303,19 @@ function MosaicQuickActionsMenu({
|
|
|
9203
9303
|
document.addEventListener("mousedown", h);
|
|
9204
9304
|
return () => document.removeEventListener("mousedown", h);
|
|
9205
9305
|
}, [open]);
|
|
9206
|
-
const itemClass =
|
|
9306
|
+
const itemClass = cn64(
|
|
9207
9307
|
"flex w-full items-center gap-2 px-3 py-2 text-sm text-foreground",
|
|
9208
9308
|
"hover:bg-accent hover:text-accent-foreground",
|
|
9209
9309
|
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
9210
9310
|
"min-h-[44px]"
|
|
9211
9311
|
);
|
|
9212
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, "data-slot": "quick-actions-menu", className:
|
|
9312
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, "data-slot": "quick-actions-menu", className: cn64("relative", className), children: [
|
|
9213
9313
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
9214
9314
|
"button",
|
|
9215
9315
|
{
|
|
9216
9316
|
type: "button",
|
|
9217
9317
|
onClick: () => setOpen((v) => !v),
|
|
9218
|
-
className:
|
|
9318
|
+
className: cn64(
|
|
9219
9319
|
"inline-flex items-center justify-center gap-2 rounded-md border border-border bg-background",
|
|
9220
9320
|
"min-h-[44px] min-w-[44px] px-3 py-2 text-sm font-medium text-foreground",
|
|
9221
9321
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -9226,7 +9326,7 @@ function MosaicQuickActionsMenu({
|
|
|
9226
9326
|
"aria-label": label,
|
|
9227
9327
|
children: [
|
|
9228
9328
|
triggerIcon ?? /* @__PURE__ */ jsxRuntime.jsx(PlusIcon7, {}),
|
|
9229
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
9329
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: cn64("hidden md:inline"), children: label })
|
|
9230
9330
|
]
|
|
9231
9331
|
}
|
|
9232
9332
|
),
|
|
@@ -9235,13 +9335,13 @@ function MosaicQuickActionsMenu({
|
|
|
9235
9335
|
{
|
|
9236
9336
|
role: "menu",
|
|
9237
9337
|
"aria-label": menuTitle,
|
|
9238
|
-
className:
|
|
9338
|
+
className: cn64(
|
|
9239
9339
|
"absolute right-0 top-full z-50 mt-1 rounded-md border border-border bg-popover py-1 shadow-md",
|
|
9240
9340
|
isMobile ? "w-[min(90vw,280px)]" : "w-56"
|
|
9241
9341
|
),
|
|
9242
9342
|
children: [
|
|
9243
9343
|
menuTitle && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "px-3 py-1.5", children: /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs font-semibold text-muted-foreground uppercase tracking-wide", children: menuTitle }) }),
|
|
9244
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
9344
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: cn64(menuTitle && "border-t border-border") }),
|
|
9245
9345
|
actions.map((action) => /* @__PURE__ */ jsxRuntime.jsxs(React27__namespace.Fragment, { children: [
|
|
9246
9346
|
action.separator && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "my-1 border-t border-border" }),
|
|
9247
9347
|
action.href && renderLink ? renderLink(
|
|
@@ -9719,6 +9819,7 @@ exports.MosaicDashboardLayout = MosaicDashboardLayout;
|
|
|
9719
9819
|
exports.MosaicDeleteConfirmationDialog = MosaicDeleteConfirmationDialog;
|
|
9720
9820
|
exports.MosaicDeviceProvider = MosaicDeviceProvider;
|
|
9721
9821
|
exports.MosaicDropdownMenu = MosaicDropdownMenu;
|
|
9822
|
+
exports.MosaicEmptyState = MosaicEmptyState;
|
|
9722
9823
|
exports.MosaicFallingPattern = MosaicFallingPattern;
|
|
9723
9824
|
exports.MosaicFeature3Col = MosaicFeature3Col;
|
|
9724
9825
|
exports.MosaicFeatureCenteredMedia = MosaicFeatureCenteredMedia;
|
|
@@ -9770,6 +9871,7 @@ exports.MosaicSelectorModal = MosaicSelectorModal;
|
|
|
9770
9871
|
exports.MosaicSeparator = MosaicSeparator;
|
|
9771
9872
|
exports.MosaicSignInLayout = MosaicSignInLayout;
|
|
9772
9873
|
exports.MosaicSignUpLayout = MosaicSignUpLayout;
|
|
9874
|
+
exports.MosaicSkeleton = MosaicSkeleton;
|
|
9773
9875
|
exports.MosaicSlider = MosaicSlider;
|
|
9774
9876
|
exports.MosaicStatsGrid = MosaicStatsGrid;
|
|
9775
9877
|
exports.MosaicSwitch = MosaicSwitch;
|
|
@@ -9789,6 +9891,7 @@ exports.MosaicUserButton = MosaicUserButton;
|
|
|
9789
9891
|
exports.Placeholder = Placeholder;
|
|
9790
9892
|
exports.badgeVariants = badgeVariants;
|
|
9791
9893
|
exports.buttonVariants = buttonVariants;
|
|
9894
|
+
exports.skeletonVariants = skeletonVariants;
|
|
9792
9895
|
exports.useBreakpoint = useBreakpoint;
|
|
9793
9896
|
exports.useDevice = useDevice;
|
|
9794
9897
|
exports.useEffectiveWorkspaceId = useMosaicWorkspace;
|