@vantageos/mosaic-blocks 0.3.2-alpha → 0.3.4-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 +400 -280
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +148 -3
- package/dist/index.d.ts +148 -3
- package/dist/index.js +398 -281
- 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.4-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,63 @@ 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 MosaicFilterBar({
|
|
1085
|
+
label,
|
|
1086
|
+
children,
|
|
1087
|
+
onClearAll,
|
|
1088
|
+
clearLabel = "Clear",
|
|
1089
|
+
align = "start",
|
|
1090
|
+
className,
|
|
1091
|
+
ref
|
|
1092
|
+
}) {
|
|
1093
|
+
const isBetween = align === "between";
|
|
1094
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1095
|
+
"div",
|
|
1096
|
+
{
|
|
1097
|
+
ref,
|
|
1098
|
+
"data-slot": "filter-bar",
|
|
1099
|
+
className: cn14(
|
|
1100
|
+
"flex flex-wrap items-center gap-2",
|
|
1101
|
+
isBetween ? "justify-between" : "justify-start",
|
|
1102
|
+
className
|
|
1103
|
+
),
|
|
1104
|
+
children: [
|
|
1105
|
+
label != null && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1106
|
+
"span",
|
|
1107
|
+
{
|
|
1108
|
+
"data-slot": "filter-bar-label",
|
|
1109
|
+
className: "shrink-0 text-sm font-medium text-muted-foreground",
|
|
1110
|
+
children: label
|
|
1111
|
+
}
|
|
1112
|
+
),
|
|
1113
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1114
|
+
"div",
|
|
1115
|
+
{
|
|
1116
|
+
"data-slot": "filter-bar-controls",
|
|
1117
|
+
className: cn14("flex flex-wrap items-center gap-2", isBetween && "flex-1"),
|
|
1118
|
+
children
|
|
1119
|
+
}
|
|
1120
|
+
),
|
|
1121
|
+
onClearAll != null && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1122
|
+
MosaicButton,
|
|
1123
|
+
{
|
|
1124
|
+
"data-slot": "filter-bar-clear",
|
|
1125
|
+
variant: "ghost",
|
|
1126
|
+
size: "sm",
|
|
1127
|
+
onClick: onClearAll,
|
|
1128
|
+
className: "shrink-0",
|
|
1129
|
+
children: clearLabel
|
|
1130
|
+
}
|
|
1131
|
+
)
|
|
1132
|
+
]
|
|
1133
|
+
}
|
|
1134
|
+
);
|
|
1135
|
+
}
|
|
1136
|
+
MosaicFilterBar.displayName = "MosaicFilterBar";
|
|
1137
|
+
function cn15(...classes) {
|
|
1021
1138
|
return classes.filter(Boolean).join(" ");
|
|
1022
1139
|
}
|
|
1023
1140
|
function MosaicEmptyState({
|
|
@@ -1033,7 +1150,7 @@ function MosaicEmptyState({
|
|
|
1033
1150
|
{
|
|
1034
1151
|
ref,
|
|
1035
1152
|
"data-slot": "empty-state",
|
|
1036
|
-
className:
|
|
1153
|
+
className: cn15(
|
|
1037
1154
|
"flex flex-col items-center justify-center gap-4 px-4 py-12 text-center",
|
|
1038
1155
|
className
|
|
1039
1156
|
),
|
|
@@ -1056,7 +1173,7 @@ function MosaicEmptyState({
|
|
|
1056
1173
|
);
|
|
1057
1174
|
}
|
|
1058
1175
|
MosaicEmptyState.displayName = "MosaicEmptyState";
|
|
1059
|
-
function
|
|
1176
|
+
function cn16(...classes) {
|
|
1060
1177
|
return classes.filter(Boolean).join(" ");
|
|
1061
1178
|
}
|
|
1062
1179
|
function MosaicAccordion({ className, ref, ...props }) {
|
|
@@ -1065,7 +1182,7 @@ function MosaicAccordion({ className, ref, ...props }) {
|
|
|
1065
1182
|
{
|
|
1066
1183
|
ref,
|
|
1067
1184
|
"data-slot": "accordion",
|
|
1068
|
-
className:
|
|
1185
|
+
className: cn16("w-full divide-y divide-border", className),
|
|
1069
1186
|
...props
|
|
1070
1187
|
}
|
|
1071
1188
|
);
|
|
@@ -1077,7 +1194,7 @@ function MosaicAccordionItem({ className, ref, ...props }) {
|
|
|
1077
1194
|
{
|
|
1078
1195
|
ref,
|
|
1079
1196
|
"data-slot": "accordion-item",
|
|
1080
|
-
className:
|
|
1197
|
+
className: cn16("py-0", className),
|
|
1081
1198
|
...props
|
|
1082
1199
|
}
|
|
1083
1200
|
);
|
|
@@ -1094,7 +1211,7 @@ function MosaicAccordionTrigger({
|
|
|
1094
1211
|
{
|
|
1095
1212
|
ref,
|
|
1096
1213
|
"data-slot": "accordion-trigger",
|
|
1097
|
-
className:
|
|
1214
|
+
className: cn16(
|
|
1098
1215
|
"flex w-full flex-1 items-center justify-between py-4",
|
|
1099
1216
|
"text-sm font-medium text-foreground",
|
|
1100
1217
|
"outline-none transition-all",
|
|
@@ -1134,13 +1251,13 @@ function MosaicAccordionPanel({ className, ref, ...props }) {
|
|
|
1134
1251
|
{
|
|
1135
1252
|
ref,
|
|
1136
1253
|
"data-slot": "accordion-panel",
|
|
1137
|
-
className:
|
|
1254
|
+
className: cn16("overflow-hidden text-sm text-muted-foreground", "transition-all", className),
|
|
1138
1255
|
...props
|
|
1139
1256
|
}
|
|
1140
1257
|
);
|
|
1141
1258
|
}
|
|
1142
1259
|
MosaicAccordionPanel.displayName = "MosaicAccordionPanel";
|
|
1143
|
-
function
|
|
1260
|
+
function cn17(...classes) {
|
|
1144
1261
|
return classes.filter(Boolean).join(" ");
|
|
1145
1262
|
}
|
|
1146
1263
|
function MosaicCheckbox({ className, ref, ...props }) {
|
|
@@ -1149,7 +1266,7 @@ function MosaicCheckbox({ className, ref, ...props }) {
|
|
|
1149
1266
|
{
|
|
1150
1267
|
ref,
|
|
1151
1268
|
"data-slot": "checkbox",
|
|
1152
|
-
className:
|
|
1269
|
+
className: cn17(
|
|
1153
1270
|
"peer size-4 shrink-0 cursor-pointer",
|
|
1154
1271
|
"rounded-sm border border-border bg-background",
|
|
1155
1272
|
"outline-none transition-colors",
|
|
@@ -1189,7 +1306,7 @@ function MosaicCheckbox({ className, ref, ...props }) {
|
|
|
1189
1306
|
);
|
|
1190
1307
|
}
|
|
1191
1308
|
MosaicCheckbox.displayName = "MosaicCheckbox";
|
|
1192
|
-
function
|
|
1309
|
+
function cn18(...classes) {
|
|
1193
1310
|
return classes.filter(Boolean).join(" ");
|
|
1194
1311
|
}
|
|
1195
1312
|
function MosaicCollapsible({ className, ref, ...props }) {
|
|
@@ -1198,7 +1315,7 @@ function MosaicCollapsible({ className, ref, ...props }) {
|
|
|
1198
1315
|
{
|
|
1199
1316
|
ref,
|
|
1200
1317
|
"data-slot": "collapsible",
|
|
1201
|
-
className:
|
|
1318
|
+
className: cn18("w-full", className),
|
|
1202
1319
|
...props
|
|
1203
1320
|
}
|
|
1204
1321
|
);
|
|
@@ -1214,7 +1331,7 @@ function MosaicCollapsibleTrigger({
|
|
|
1214
1331
|
{
|
|
1215
1332
|
ref,
|
|
1216
1333
|
"data-slot": "collapsible-trigger",
|
|
1217
|
-
className:
|
|
1334
|
+
className: cn18(
|
|
1218
1335
|
"inline-flex w-full items-center justify-between gap-2",
|
|
1219
1336
|
"rounded-md px-0 py-2 text-sm font-medium",
|
|
1220
1337
|
"text-foreground outline-none transition-colors",
|
|
@@ -1236,7 +1353,7 @@ function MosaicCollapsiblePanel({ className, ref, ...props }) {
|
|
|
1236
1353
|
{
|
|
1237
1354
|
ref,
|
|
1238
1355
|
"data-slot": "collapsible-panel",
|
|
1239
|
-
className:
|
|
1356
|
+
className: cn18(
|
|
1240
1357
|
"overflow-hidden text-sm transition-all",
|
|
1241
1358
|
"data-[open]:animate-in data-[closed]:animate-out",
|
|
1242
1359
|
className
|
|
@@ -1246,7 +1363,7 @@ function MosaicCollapsiblePanel({ className, ref, ...props }) {
|
|
|
1246
1363
|
);
|
|
1247
1364
|
}
|
|
1248
1365
|
MosaicCollapsiblePanel.displayName = "MosaicCollapsiblePanel";
|
|
1249
|
-
function
|
|
1366
|
+
function cn19(...classes) {
|
|
1250
1367
|
return classes.filter(Boolean).join(" ");
|
|
1251
1368
|
}
|
|
1252
1369
|
function MosaicProgress({
|
|
@@ -1263,7 +1380,7 @@ function MosaicProgress({
|
|
|
1263
1380
|
"data-slot": "progress",
|
|
1264
1381
|
value,
|
|
1265
1382
|
max,
|
|
1266
|
-
className:
|
|
1383
|
+
className: cn19("w-full", className),
|
|
1267
1384
|
...props,
|
|
1268
1385
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1269
1386
|
progress.Progress.Track,
|
|
@@ -1284,7 +1401,7 @@ function MosaicProgress({
|
|
|
1284
1401
|
);
|
|
1285
1402
|
}
|
|
1286
1403
|
MosaicProgress.displayName = "MosaicProgress";
|
|
1287
|
-
function
|
|
1404
|
+
function cn20(...classes) {
|
|
1288
1405
|
return classes.filter(Boolean).join(" ");
|
|
1289
1406
|
}
|
|
1290
1407
|
function MosaicRadioGroup({ className, ref, ...props }) {
|
|
@@ -1293,7 +1410,7 @@ function MosaicRadioGroup({ className, ref, ...props }) {
|
|
|
1293
1410
|
{
|
|
1294
1411
|
ref,
|
|
1295
1412
|
"data-slot": "radio-group",
|
|
1296
|
-
className:
|
|
1413
|
+
className: cn20("flex flex-col gap-2", className),
|
|
1297
1414
|
...props
|
|
1298
1415
|
}
|
|
1299
1416
|
);
|
|
@@ -1310,7 +1427,7 @@ function MosaicRadioGroupItem({
|
|
|
1310
1427
|
{
|
|
1311
1428
|
ref,
|
|
1312
1429
|
"data-slot": "radio",
|
|
1313
|
-
className:
|
|
1430
|
+
className: cn20(
|
|
1314
1431
|
"flex items-center gap-2 text-sm font-medium",
|
|
1315
1432
|
"cursor-pointer select-none",
|
|
1316
1433
|
"data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50",
|
|
@@ -1321,7 +1438,7 @@ function MosaicRadioGroupItem({
|
|
|
1321
1438
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1322
1439
|
"span",
|
|
1323
1440
|
{
|
|
1324
|
-
className:
|
|
1441
|
+
className: cn20(
|
|
1325
1442
|
"flex size-4 shrink-0 items-center justify-center",
|
|
1326
1443
|
"rounded-full border border-border bg-background",
|
|
1327
1444
|
"outline-none transition-colors",
|
|
@@ -1337,7 +1454,7 @@ function MosaicRadioGroupItem({
|
|
|
1337
1454
|
);
|
|
1338
1455
|
}
|
|
1339
1456
|
MosaicRadioGroupItem.displayName = "MosaicRadioGroupItem";
|
|
1340
|
-
function
|
|
1457
|
+
function cn21(...classes) {
|
|
1341
1458
|
return classes.filter(Boolean).join(" ");
|
|
1342
1459
|
}
|
|
1343
1460
|
function MosaicScrollArea({
|
|
@@ -1352,7 +1469,7 @@ function MosaicScrollArea({
|
|
|
1352
1469
|
{
|
|
1353
1470
|
ref,
|
|
1354
1471
|
"data-slot": "scroll-area",
|
|
1355
|
-
className:
|
|
1472
|
+
className: cn21("relative overflow-hidden", className),
|
|
1356
1473
|
...props,
|
|
1357
1474
|
children: [
|
|
1358
1475
|
/* @__PURE__ */ jsxRuntime.jsx(scrollArea.ScrollArea.Viewport, { "data-slot": "scroll-area-viewport", className: "size-full rounded-[inherit]", children: /* @__PURE__ */ jsxRuntime.jsx(scrollArea.ScrollArea.Content, { children }) }),
|
|
@@ -1380,7 +1497,7 @@ function MosaicScrollArea({
|
|
|
1380
1497
|
);
|
|
1381
1498
|
}
|
|
1382
1499
|
MosaicScrollArea.displayName = "MosaicScrollArea";
|
|
1383
|
-
function
|
|
1500
|
+
function cn22(...classes) {
|
|
1384
1501
|
return classes.filter(Boolean).join(" ");
|
|
1385
1502
|
}
|
|
1386
1503
|
function MosaicSeparator({
|
|
@@ -1395,7 +1512,7 @@ function MosaicSeparator({
|
|
|
1395
1512
|
ref,
|
|
1396
1513
|
"data-slot": "separator",
|
|
1397
1514
|
orientation,
|
|
1398
|
-
className:
|
|
1515
|
+
className: cn22(
|
|
1399
1516
|
"shrink-0 bg-border",
|
|
1400
1517
|
orientation === "vertical" ? "h-full w-px" : "h-px w-full",
|
|
1401
1518
|
className
|
|
@@ -1405,7 +1522,7 @@ function MosaicSeparator({
|
|
|
1405
1522
|
);
|
|
1406
1523
|
}
|
|
1407
1524
|
MosaicSeparator.displayName = "MosaicSeparator";
|
|
1408
|
-
function
|
|
1525
|
+
function cn23(...classes) {
|
|
1409
1526
|
return classes.filter(Boolean).join(" ");
|
|
1410
1527
|
}
|
|
1411
1528
|
function MosaicSlider({ className, ref, ...props }) {
|
|
@@ -1416,7 +1533,7 @@ function MosaicSlider({ className, ref, ...props }) {
|
|
|
1416
1533
|
{
|
|
1417
1534
|
ref,
|
|
1418
1535
|
"data-slot": "slider",
|
|
1419
|
-
className:
|
|
1536
|
+
className: cn23("w-full touch-none select-none", className),
|
|
1420
1537
|
...props,
|
|
1421
1538
|
children: /* @__PURE__ */ jsxRuntime.jsx(slider.Slider.Control, { className: "flex items-center", children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1422
1539
|
slider.Slider.Track,
|
|
@@ -1435,7 +1552,7 @@ function MosaicSlider({ className, ref, ...props }) {
|
|
|
1435
1552
|
slider.Slider.Thumb,
|
|
1436
1553
|
{
|
|
1437
1554
|
"data-slot": "slider-thumb",
|
|
1438
|
-
className:
|
|
1555
|
+
className: cn23(
|
|
1439
1556
|
"block size-5 rounded-full",
|
|
1440
1557
|
"border-2 border-foreground bg-background",
|
|
1441
1558
|
"shadow-sm outline-none transition-colors",
|
|
@@ -1452,7 +1569,7 @@ function MosaicSlider({ className, ref, ...props }) {
|
|
|
1452
1569
|
);
|
|
1453
1570
|
}
|
|
1454
1571
|
MosaicSlider.displayName = "MosaicSlider";
|
|
1455
|
-
function
|
|
1572
|
+
function cn24(...classes) {
|
|
1456
1573
|
return classes.filter(Boolean).join(" ");
|
|
1457
1574
|
}
|
|
1458
1575
|
function MosaicTabs({ className, ref, ...props }) {
|
|
@@ -1461,7 +1578,7 @@ function MosaicTabs({ className, ref, ...props }) {
|
|
|
1461
1578
|
{
|
|
1462
1579
|
ref,
|
|
1463
1580
|
"data-slot": "tabs",
|
|
1464
|
-
className:
|
|
1581
|
+
className: cn24("flex flex-col gap-2", className),
|
|
1465
1582
|
...props
|
|
1466
1583
|
}
|
|
1467
1584
|
);
|
|
@@ -1473,7 +1590,7 @@ function MosaicTabsList({ className, ref, ...props }) {
|
|
|
1473
1590
|
{
|
|
1474
1591
|
ref,
|
|
1475
1592
|
"data-slot": "tabs-list",
|
|
1476
|
-
className:
|
|
1593
|
+
className: cn24(
|
|
1477
1594
|
"relative inline-flex items-center justify-start gap-1",
|
|
1478
1595
|
"rounded-lg bg-muted p-1 text-muted-foreground",
|
|
1479
1596
|
className
|
|
@@ -1489,7 +1606,7 @@ function MosaicTabsTrigger({ className, ref, ...props }) {
|
|
|
1489
1606
|
{
|
|
1490
1607
|
ref,
|
|
1491
1608
|
"data-slot": "tabs-trigger",
|
|
1492
|
-
className:
|
|
1609
|
+
className: cn24(
|
|
1493
1610
|
"inline-flex items-center justify-center gap-1.5 whitespace-nowrap",
|
|
1494
1611
|
"rounded-md px-3 py-1.5 text-sm font-medium",
|
|
1495
1612
|
"outline-none transition-all",
|
|
@@ -1512,7 +1629,7 @@ function MosaicTabsPanel({ className, ref, ...props }) {
|
|
|
1512
1629
|
{
|
|
1513
1630
|
ref,
|
|
1514
1631
|
"data-slot": "tabs-panel",
|
|
1515
|
-
className:
|
|
1632
|
+
className: cn24(
|
|
1516
1633
|
"flex-1 outline-none",
|
|
1517
1634
|
"focus-visible:ring-ring focus-visible:ring-[3px] focus-visible:rounded-md",
|
|
1518
1635
|
className
|
|
@@ -1522,7 +1639,7 @@ function MosaicTabsPanel({ className, ref, ...props }) {
|
|
|
1522
1639
|
);
|
|
1523
1640
|
}
|
|
1524
1641
|
MosaicTabsPanel.displayName = "MosaicTabsPanel";
|
|
1525
|
-
function
|
|
1642
|
+
function cn25(...classes) {
|
|
1526
1643
|
return classes.filter(Boolean).join(" ");
|
|
1527
1644
|
}
|
|
1528
1645
|
function MosaicTextarea({ className, ref, ...props }) {
|
|
@@ -1531,7 +1648,7 @@ function MosaicTextarea({ className, ref, ...props }) {
|
|
|
1531
1648
|
{
|
|
1532
1649
|
ref,
|
|
1533
1650
|
"data-slot": "textarea",
|
|
1534
|
-
className:
|
|
1651
|
+
className: cn25(
|
|
1535
1652
|
"flex min-h-[80px] w-full resize-y",
|
|
1536
1653
|
"rounded-md border border-border bg-background px-3 py-2",
|
|
1537
1654
|
"text-sm text-foreground shadow-xs",
|
|
@@ -1546,7 +1663,7 @@ function MosaicTextarea({ className, ref, ...props }) {
|
|
|
1546
1663
|
);
|
|
1547
1664
|
}
|
|
1548
1665
|
MosaicTextarea.displayName = "MosaicTextarea";
|
|
1549
|
-
function
|
|
1666
|
+
function cn26(...classes) {
|
|
1550
1667
|
return classes.filter(Boolean).join(" ");
|
|
1551
1668
|
}
|
|
1552
1669
|
function MosaicTooltip({
|
|
@@ -1563,7 +1680,7 @@ function MosaicTooltip({
|
|
|
1563
1680
|
tooltip.Tooltip.Popup,
|
|
1564
1681
|
{
|
|
1565
1682
|
"data-slot": "tooltip-content",
|
|
1566
|
-
className:
|
|
1683
|
+
className: cn26(
|
|
1567
1684
|
"z-50 max-w-xs overflow-hidden rounded-md",
|
|
1568
1685
|
"border border-border bg-foreground px-3 py-1.5",
|
|
1569
1686
|
"text-xs text-background shadow-md",
|
|
@@ -1580,7 +1697,7 @@ function MosaicTooltip({
|
|
|
1580
1697
|
] }) });
|
|
1581
1698
|
}
|
|
1582
1699
|
MosaicTooltip.displayName = "MosaicTooltip";
|
|
1583
|
-
function
|
|
1700
|
+
function cn27(...classes) {
|
|
1584
1701
|
return classes.filter(Boolean).join(" ");
|
|
1585
1702
|
}
|
|
1586
1703
|
function MosaicCard({ className, ref, ...props }) {
|
|
@@ -1589,7 +1706,7 @@ function MosaicCard({ className, ref, ...props }) {
|
|
|
1589
1706
|
{
|
|
1590
1707
|
ref,
|
|
1591
1708
|
"data-slot": "card",
|
|
1592
|
-
className:
|
|
1709
|
+
className: cn27(
|
|
1593
1710
|
"bg-card text-card-foreground rounded-xl border border-border shadow-sm",
|
|
1594
1711
|
className
|
|
1595
1712
|
),
|
|
@@ -1604,7 +1721,7 @@ function MosaicCardHeader({ className, ref, ...props }) {
|
|
|
1604
1721
|
{
|
|
1605
1722
|
ref,
|
|
1606
1723
|
"data-slot": "card-header",
|
|
1607
|
-
className:
|
|
1724
|
+
className: cn27("flex flex-col gap-1.5 p-6", className),
|
|
1608
1725
|
...props
|
|
1609
1726
|
}
|
|
1610
1727
|
);
|
|
@@ -1616,7 +1733,7 @@ function MosaicCardTitle({ className, ref, ...props }) {
|
|
|
1616
1733
|
{
|
|
1617
1734
|
ref,
|
|
1618
1735
|
"data-slot": "card-title",
|
|
1619
|
-
className:
|
|
1736
|
+
className: cn27("text-lg font-semibold leading-none tracking-tight", className),
|
|
1620
1737
|
...props
|
|
1621
1738
|
}
|
|
1622
1739
|
);
|
|
@@ -1628,14 +1745,14 @@ function MosaicCardDescription({ className, ref, ...props }) {
|
|
|
1628
1745
|
{
|
|
1629
1746
|
ref,
|
|
1630
1747
|
"data-slot": "card-description",
|
|
1631
|
-
className:
|
|
1748
|
+
className: cn27("text-sm text-muted-foreground", className),
|
|
1632
1749
|
...props
|
|
1633
1750
|
}
|
|
1634
1751
|
);
|
|
1635
1752
|
}
|
|
1636
1753
|
MosaicCardDescription.displayName = "MosaicCardDescription";
|
|
1637
1754
|
function MosaicCardContent({ className, ref, ...props }) {
|
|
1638
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { ref, "data-slot": "card-content", className:
|
|
1755
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { ref, "data-slot": "card-content", className: cn27("p-6 pt-0", className), ...props });
|
|
1639
1756
|
}
|
|
1640
1757
|
MosaicCardContent.displayName = "MosaicCardContent";
|
|
1641
1758
|
function MosaicCardFooter({ className, ref, ...props }) {
|
|
@@ -1644,7 +1761,7 @@ function MosaicCardFooter({ className, ref, ...props }) {
|
|
|
1644
1761
|
{
|
|
1645
1762
|
ref,
|
|
1646
1763
|
"data-slot": "card-footer",
|
|
1647
|
-
className:
|
|
1764
|
+
className: cn27("flex items-center p-6 pt-0", className),
|
|
1648
1765
|
...props
|
|
1649
1766
|
}
|
|
1650
1767
|
);
|
|
@@ -1673,7 +1790,7 @@ var badgeVariants = classVarianceAuthority.cva(
|
|
|
1673
1790
|
}
|
|
1674
1791
|
}
|
|
1675
1792
|
);
|
|
1676
|
-
function
|
|
1793
|
+
function cn28(...classes) {
|
|
1677
1794
|
return classes.filter(Boolean).join(" ");
|
|
1678
1795
|
}
|
|
1679
1796
|
function MosaicBadge({ className, variant, ref, ...props }) {
|
|
@@ -1682,13 +1799,13 @@ function MosaicBadge({ className, variant, ref, ...props }) {
|
|
|
1682
1799
|
{
|
|
1683
1800
|
ref,
|
|
1684
1801
|
"data-slot": "badge",
|
|
1685
|
-
className:
|
|
1802
|
+
className: cn28(badgeVariants({ variant }), className),
|
|
1686
1803
|
...props
|
|
1687
1804
|
}
|
|
1688
1805
|
);
|
|
1689
1806
|
}
|
|
1690
1807
|
MosaicBadge.displayName = "MosaicBadge";
|
|
1691
|
-
function
|
|
1808
|
+
function cn29(...classes) {
|
|
1692
1809
|
return classes.filter(Boolean).join(" ");
|
|
1693
1810
|
}
|
|
1694
1811
|
function MosaicAvatar({ src, alt, fallback, className, ref, ...props }) {
|
|
@@ -1697,7 +1814,7 @@ function MosaicAvatar({ src, alt, fallback, className, ref, ...props }) {
|
|
|
1697
1814
|
{
|
|
1698
1815
|
ref,
|
|
1699
1816
|
"data-slot": "avatar",
|
|
1700
|
-
className:
|
|
1817
|
+
className: cn29(
|
|
1701
1818
|
"relative flex size-10 shrink-0 overflow-hidden rounded-full",
|
|
1702
1819
|
"bg-muted text-muted-foreground",
|
|
1703
1820
|
className
|
|
@@ -1726,7 +1843,7 @@ function MosaicAvatar({ src, alt, fallback, className, ref, ...props }) {
|
|
|
1726
1843
|
);
|
|
1727
1844
|
}
|
|
1728
1845
|
MosaicAvatar.displayName = "MosaicAvatar";
|
|
1729
|
-
function
|
|
1846
|
+
function cn30(...classes) {
|
|
1730
1847
|
return classes.filter(Boolean).join(" ");
|
|
1731
1848
|
}
|
|
1732
1849
|
function MosaicInput({ className, ref, ...props }) {
|
|
@@ -1735,7 +1852,7 @@ function MosaicInput({ className, ref, ...props }) {
|
|
|
1735
1852
|
{
|
|
1736
1853
|
ref,
|
|
1737
1854
|
"data-slot": "input",
|
|
1738
|
-
className:
|
|
1855
|
+
className: cn30(
|
|
1739
1856
|
"flex h-9 w-full rounded-md border border-border bg-background px-3 py-1",
|
|
1740
1857
|
"text-sm text-foreground shadow-xs",
|
|
1741
1858
|
"placeholder:text-muted-foreground",
|
|
@@ -1749,7 +1866,7 @@ function MosaicInput({ className, ref, ...props }) {
|
|
|
1749
1866
|
);
|
|
1750
1867
|
}
|
|
1751
1868
|
MosaicInput.displayName = "MosaicInput";
|
|
1752
|
-
function
|
|
1869
|
+
function cn31(...classes) {
|
|
1753
1870
|
return classes.filter(Boolean).join(" ");
|
|
1754
1871
|
}
|
|
1755
1872
|
function MosaicInputGroup({
|
|
@@ -1765,7 +1882,7 @@ function MosaicInputGroup({
|
|
|
1765
1882
|
{
|
|
1766
1883
|
ref,
|
|
1767
1884
|
"data-slot": "input-group",
|
|
1768
|
-
className:
|
|
1885
|
+
className: cn31("flex items-center", className),
|
|
1769
1886
|
...props,
|
|
1770
1887
|
children: [
|
|
1771
1888
|
prefix ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -1790,7 +1907,7 @@ function MosaicInputGroup({
|
|
|
1790
1907
|
);
|
|
1791
1908
|
}
|
|
1792
1909
|
MosaicInputGroup.displayName = "MosaicInputGroup";
|
|
1793
|
-
function
|
|
1910
|
+
function cn32(...classes) {
|
|
1794
1911
|
return classes.filter(Boolean).join(" ");
|
|
1795
1912
|
}
|
|
1796
1913
|
function MosaicFieldRoot({ className, children, ref, ...props }) {
|
|
@@ -1799,7 +1916,7 @@ function MosaicFieldRoot({ className, children, ref, ...props }) {
|
|
|
1799
1916
|
{
|
|
1800
1917
|
ref,
|
|
1801
1918
|
"data-slot": "field",
|
|
1802
|
-
className:
|
|
1919
|
+
className: cn32("flex flex-col gap-1.5", className),
|
|
1803
1920
|
...props,
|
|
1804
1921
|
children
|
|
1805
1922
|
}
|
|
@@ -1811,7 +1928,7 @@ function MosaicFieldLabel({ className, children, ref, ...props }) {
|
|
|
1811
1928
|
field.Field.Label,
|
|
1812
1929
|
{
|
|
1813
1930
|
ref,
|
|
1814
|
-
className:
|
|
1931
|
+
className: cn32(
|
|
1815
1932
|
"text-sm font-medium leading-none text-foreground",
|
|
1816
1933
|
"data-[disabled]:opacity-50",
|
|
1817
1934
|
className
|
|
@@ -1823,7 +1940,7 @@ function MosaicFieldLabel({ className, children, ref, ...props }) {
|
|
|
1823
1940
|
}
|
|
1824
1941
|
MosaicFieldLabel.displayName = "MosaicField.Label";
|
|
1825
1942
|
function MosaicFieldControl({ className, ref, ...props }) {
|
|
1826
|
-
return /* @__PURE__ */ jsxRuntime.jsx(field.Field.Control, { ref, className:
|
|
1943
|
+
return /* @__PURE__ */ jsxRuntime.jsx(field.Field.Control, { ref, className: cn32(className), ...props });
|
|
1827
1944
|
}
|
|
1828
1945
|
MosaicFieldControl.displayName = "MosaicField.Control";
|
|
1829
1946
|
function MosaicFieldDescription({
|
|
@@ -1836,7 +1953,7 @@ function MosaicFieldDescription({
|
|
|
1836
1953
|
field.Field.Description,
|
|
1837
1954
|
{
|
|
1838
1955
|
ref,
|
|
1839
|
-
className:
|
|
1956
|
+
className: cn32("text-xs text-muted-foreground", className),
|
|
1840
1957
|
...props,
|
|
1841
1958
|
children
|
|
1842
1959
|
}
|
|
@@ -1856,7 +1973,7 @@ function MosaicFieldError({
|
|
|
1856
1973
|
{
|
|
1857
1974
|
ref,
|
|
1858
1975
|
match: show === true ? true : void 0,
|
|
1859
|
-
className:
|
|
1976
|
+
className: cn32("text-xs font-medium text-destructive", className),
|
|
1860
1977
|
...props,
|
|
1861
1978
|
children
|
|
1862
1979
|
}
|
|
@@ -1869,7 +1986,7 @@ var MosaicField = Object.assign(MosaicFieldRoot, {
|
|
|
1869
1986
|
Description: MosaicFieldDescription,
|
|
1870
1987
|
Error: MosaicFieldError
|
|
1871
1988
|
});
|
|
1872
|
-
function
|
|
1989
|
+
function cn33(...classes) {
|
|
1873
1990
|
return classes.filter(Boolean).join(" ");
|
|
1874
1991
|
}
|
|
1875
1992
|
function MosaicSwitch({ className, ref, ...props }) {
|
|
@@ -1878,7 +1995,7 @@ function MosaicSwitch({ className, ref, ...props }) {
|
|
|
1878
1995
|
{
|
|
1879
1996
|
ref,
|
|
1880
1997
|
"data-slot": "switch",
|
|
1881
|
-
className:
|
|
1998
|
+
className: cn33(
|
|
1882
1999
|
// Track
|
|
1883
2000
|
"relative inline-flex h-6 w-10 shrink-0 cursor-pointer items-center",
|
|
1884
2001
|
"rounded-full border-2 border-transparent outline-none",
|
|
@@ -1896,7 +2013,7 @@ function MosaicSwitch({ className, ref, ...props }) {
|
|
|
1896
2013
|
_switch.Switch.Thumb,
|
|
1897
2014
|
{
|
|
1898
2015
|
"data-slot": "switch-thumb",
|
|
1899
|
-
className:
|
|
2016
|
+
className: cn33(
|
|
1900
2017
|
"pointer-events-none block h-4 w-4 rounded-full",
|
|
1901
2018
|
"bg-background shadow-sm",
|
|
1902
2019
|
"translate-x-0 transition-transform",
|
|
@@ -1908,7 +2025,7 @@ function MosaicSwitch({ className, ref, ...props }) {
|
|
|
1908
2025
|
);
|
|
1909
2026
|
}
|
|
1910
2027
|
MosaicSwitch.displayName = "MosaicSwitch";
|
|
1911
|
-
function
|
|
2028
|
+
function cn34(...classes) {
|
|
1912
2029
|
return classes.filter(Boolean).join(" ");
|
|
1913
2030
|
}
|
|
1914
2031
|
function MosaicSelect({
|
|
@@ -1940,7 +2057,7 @@ function MosaicSelect({
|
|
|
1940
2057
|
select.Select.Trigger,
|
|
1941
2058
|
{
|
|
1942
2059
|
"data-slot": "select",
|
|
1943
|
-
className:
|
|
2060
|
+
className: cn34(
|
|
1944
2061
|
"inline-flex h-9 w-full min-w-[8rem] items-center justify-between gap-2",
|
|
1945
2062
|
"rounded-md border border-border bg-background px-3 py-2",
|
|
1946
2063
|
"text-sm text-foreground shadow-xs outline-none",
|
|
@@ -1960,7 +2077,7 @@ function MosaicSelect({
|
|
|
1960
2077
|
select.Select.Popup,
|
|
1961
2078
|
{
|
|
1962
2079
|
"data-slot": "select-popup",
|
|
1963
|
-
className:
|
|
2080
|
+
className: cn34(
|
|
1964
2081
|
"z-50 min-w-[8rem] overflow-hidden rounded-md border border-border",
|
|
1965
2082
|
"bg-popover p-1 text-popover-foreground shadow-md",
|
|
1966
2083
|
"origin-[var(--transform-origin)]",
|
|
@@ -1974,7 +2091,7 @@ function MosaicSelect({
|
|
|
1974
2091
|
{
|
|
1975
2092
|
value: item.value,
|
|
1976
2093
|
disabled: item.disabled,
|
|
1977
|
-
className:
|
|
2094
|
+
className: cn34(
|
|
1978
2095
|
"relative flex cursor-pointer select-none items-center rounded-sm px-2 py-1.5",
|
|
1979
2096
|
"text-sm text-popover-foreground outline-none",
|
|
1980
2097
|
"data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground",
|
|
@@ -2028,7 +2145,7 @@ function CheckIcon() {
|
|
|
2028
2145
|
}
|
|
2029
2146
|
);
|
|
2030
2147
|
}
|
|
2031
|
-
function
|
|
2148
|
+
function cn35(...classes) {
|
|
2032
2149
|
return classes.filter(Boolean).join(" ");
|
|
2033
2150
|
}
|
|
2034
2151
|
function MosaicCombobox({
|
|
@@ -2057,12 +2174,12 @@ function MosaicCombobox({
|
|
|
2057
2174
|
name,
|
|
2058
2175
|
onInputValueChange: setInputValue,
|
|
2059
2176
|
autoHighlight: true,
|
|
2060
|
-
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "combobox", className:
|
|
2177
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "combobox", className: cn35("relative w-full", className), children: [
|
|
2061
2178
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2062
2179
|
combobox.Combobox.Input,
|
|
2063
2180
|
{
|
|
2064
2181
|
placeholder,
|
|
2065
|
-
className:
|
|
2182
|
+
className: cn35(
|
|
2066
2183
|
"h-9 w-full rounded-md border border-border bg-background px-3 py-2",
|
|
2067
2184
|
"text-sm text-foreground shadow-xs outline-none",
|
|
2068
2185
|
"placeholder:text-muted-foreground",
|
|
@@ -2074,7 +2191,7 @@ function MosaicCombobox({
|
|
|
2074
2191
|
/* @__PURE__ */ jsxRuntime.jsx(combobox.Combobox.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(combobox.Combobox.Positioner, { sideOffset: 4, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2075
2192
|
combobox.Combobox.Popup,
|
|
2076
2193
|
{
|
|
2077
|
-
className:
|
|
2194
|
+
className: cn35(
|
|
2078
2195
|
"z-50 min-w-[8rem] overflow-hidden rounded-md border border-border",
|
|
2079
2196
|
"bg-popover p-1 text-popover-foreground shadow-md",
|
|
2080
2197
|
"origin-[var(--transform-origin)]",
|
|
@@ -2089,7 +2206,7 @@ function MosaicCombobox({
|
|
|
2089
2206
|
{
|
|
2090
2207
|
value: item.value,
|
|
2091
2208
|
disabled: item.disabled,
|
|
2092
|
-
className:
|
|
2209
|
+
className: cn35(
|
|
2093
2210
|
"relative flex cursor-pointer select-none items-center rounded-sm px-2 py-1.5",
|
|
2094
2211
|
"text-sm text-popover-foreground outline-none",
|
|
2095
2212
|
"data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground",
|
|
@@ -2108,7 +2225,7 @@ function MosaicCombobox({
|
|
|
2108
2225
|
}
|
|
2109
2226
|
);
|
|
2110
2227
|
}
|
|
2111
|
-
function
|
|
2228
|
+
function cn36(...classes) {
|
|
2112
2229
|
return classes.filter(Boolean).join(" ");
|
|
2113
2230
|
}
|
|
2114
2231
|
function MosaicDropdownMenu({
|
|
@@ -2125,7 +2242,7 @@ function MosaicDropdownMenu({
|
|
|
2125
2242
|
menu.Menu.Popup,
|
|
2126
2243
|
{
|
|
2127
2244
|
"data-slot": "dropdown-menu",
|
|
2128
|
-
className:
|
|
2245
|
+
className: cn36(
|
|
2129
2246
|
"z-50 min-w-[8rem] overflow-hidden rounded-md border border-border",
|
|
2130
2247
|
"bg-popover p-1 text-popover-foreground shadow-md",
|
|
2131
2248
|
"origin-[var(--transform-origin)]",
|
|
@@ -2142,7 +2259,7 @@ function MosaicDropdownMenu({
|
|
|
2142
2259
|
{
|
|
2143
2260
|
disabled: item.disabled,
|
|
2144
2261
|
onClick: () => onItemSelect?.(item.id),
|
|
2145
|
-
className:
|
|
2262
|
+
className: cn36(
|
|
2146
2263
|
"relative flex cursor-pointer select-none items-center rounded-sm px-2 py-1.5",
|
|
2147
2264
|
"text-sm text-popover-foreground outline-none",
|
|
2148
2265
|
"data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground",
|
|
@@ -2284,7 +2401,7 @@ function useDevice() {
|
|
|
2284
2401
|
}
|
|
2285
2402
|
return ctx;
|
|
2286
2403
|
}
|
|
2287
|
-
function
|
|
2404
|
+
function cn37(...classes) {
|
|
2288
2405
|
return classes.filter(Boolean).join(" ");
|
|
2289
2406
|
}
|
|
2290
2407
|
function MosaicAdaptiveGrid({
|
|
@@ -2303,14 +2420,14 @@ function MosaicAdaptiveGrid({
|
|
|
2303
2420
|
{
|
|
2304
2421
|
ref,
|
|
2305
2422
|
"data-slot": "adaptive-grid",
|
|
2306
|
-
className:
|
|
2423
|
+
className: cn37("grid", gap, className),
|
|
2307
2424
|
style: { gridTemplateColumns: `repeat(${cols}, minmax(0, 1fr))` },
|
|
2308
2425
|
children
|
|
2309
2426
|
}
|
|
2310
2427
|
);
|
|
2311
2428
|
}
|
|
2312
2429
|
MosaicAdaptiveGrid.displayName = "MosaicAdaptiveGrid";
|
|
2313
|
-
function
|
|
2430
|
+
function cn38(...classes) {
|
|
2314
2431
|
return classes.filter(Boolean).join(" ");
|
|
2315
2432
|
}
|
|
2316
2433
|
var ANIM_ID = "mosaic-adaptive-modal-kf";
|
|
@@ -2415,7 +2532,7 @@ function MosaicAdaptiveModal({
|
|
|
2415
2532
|
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2416
2533
|
"div",
|
|
2417
2534
|
{
|
|
2418
|
-
className:
|
|
2535
|
+
className: cn38(
|
|
2419
2536
|
"mosaic-sheet-panel relative w-full rounded-t-2xl border-t border-border bg-background",
|
|
2420
2537
|
"max-h-[90dvh] flex flex-col",
|
|
2421
2538
|
className
|
|
@@ -2448,7 +2565,7 @@ function MosaicAdaptiveModal({
|
|
|
2448
2565
|
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2449
2566
|
"div",
|
|
2450
2567
|
{
|
|
2451
|
-
className:
|
|
2568
|
+
className: cn38(
|
|
2452
2569
|
"mosaic-modal-panel relative w-[min(90vw,42rem)] rounded-xl border border-border bg-background shadow-xl",
|
|
2453
2570
|
"max-h-[90vh] flex flex-col",
|
|
2454
2571
|
className
|
|
@@ -2496,7 +2613,7 @@ function MosaicAdaptiveModal({
|
|
|
2496
2613
|
);
|
|
2497
2614
|
}
|
|
2498
2615
|
MosaicAdaptiveModal.displayName = "MosaicAdaptiveModal";
|
|
2499
|
-
function
|
|
2616
|
+
function cn39(...classes) {
|
|
2500
2617
|
return classes.filter(Boolean).join(" ");
|
|
2501
2618
|
}
|
|
2502
2619
|
function CheckIcon2() {
|
|
@@ -2553,7 +2670,7 @@ function MosaicAdaptiveNavigation({
|
|
|
2553
2670
|
{
|
|
2554
2671
|
ref,
|
|
2555
2672
|
"data-slot": "adaptive-navigation",
|
|
2556
|
-
className:
|
|
2673
|
+
className: cn39("space-y-3", className),
|
|
2557
2674
|
"aria-label": "Step navigation",
|
|
2558
2675
|
children: items.map((item, idx) => {
|
|
2559
2676
|
const isExpanded = expandedItems?.has(item.id) ?? false;
|
|
@@ -2571,7 +2688,7 @@ function MosaicAdaptiveNavigation({
|
|
|
2571
2688
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2572
2689
|
"div",
|
|
2573
2690
|
{
|
|
2574
|
-
className:
|
|
2691
|
+
className: cn39(
|
|
2575
2692
|
"flex h-8 w-8 shrink-0 items-center justify-center rounded-full text-xs font-bold",
|
|
2576
2693
|
item.isComplete ? "bg-green-500 text-white" : "bg-muted text-muted-foreground"
|
|
2577
2694
|
),
|
|
@@ -2605,7 +2722,7 @@ function MosaicAdaptiveNavigation({
|
|
|
2605
2722
|
{
|
|
2606
2723
|
ref,
|
|
2607
2724
|
"data-slot": "adaptive-navigation",
|
|
2608
|
-
className:
|
|
2725
|
+
className: cn39("w-full", className),
|
|
2609
2726
|
"aria-label": "Tab navigation",
|
|
2610
2727
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2611
2728
|
"div",
|
|
@@ -2622,7 +2739,7 @@ function MosaicAdaptiveNavigation({
|
|
|
2622
2739
|
role: "tab",
|
|
2623
2740
|
"aria-selected": isActive,
|
|
2624
2741
|
onClick: () => onItemChange(item.id),
|
|
2625
|
-
className:
|
|
2742
|
+
className: cn39(
|
|
2626
2743
|
"flex items-center justify-center gap-2 rounded-md px-3 py-2 text-sm font-medium transition-colors",
|
|
2627
2744
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1",
|
|
2628
2745
|
isActive ? "bg-primary text-primary-foreground shadow-sm" : "text-muted-foreground hover:text-foreground"
|
|
@@ -2631,7 +2748,7 @@ function MosaicAdaptiveNavigation({
|
|
|
2631
2748
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2632
2749
|
"div",
|
|
2633
2750
|
{
|
|
2634
|
-
className:
|
|
2751
|
+
className: cn39(
|
|
2635
2752
|
"flex h-6 w-6 shrink-0 items-center justify-center rounded-full text-xs font-bold",
|
|
2636
2753
|
item.isComplete ? "bg-green-500 text-white" : isActive ? "bg-primary-foreground/20 text-primary-foreground" : "bg-background text-muted-foreground"
|
|
2637
2754
|
),
|
|
@@ -2643,7 +2760,7 @@ function MosaicAdaptiveNavigation({
|
|
|
2643
2760
|
item.duration !== void 0 && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2644
2761
|
"span",
|
|
2645
2762
|
{
|
|
2646
|
-
className:
|
|
2763
|
+
className: cn39(
|
|
2647
2764
|
"rounded px-1 py-0.5 text-xs",
|
|
2648
2765
|
isActive ? "bg-primary-foreground/20" : "bg-muted"
|
|
2649
2766
|
),
|
|
@@ -2664,7 +2781,7 @@ function MosaicAdaptiveNavigation({
|
|
|
2664
2781
|
);
|
|
2665
2782
|
}
|
|
2666
2783
|
MosaicAdaptiveNavigation.displayName = "MosaicAdaptiveNavigation";
|
|
2667
|
-
function
|
|
2784
|
+
function cn40(...classes) {
|
|
2668
2785
|
return classes.filter(Boolean).join(" ");
|
|
2669
2786
|
}
|
|
2670
2787
|
var ANIM_ID2 = "mosaic-sidebar-kf";
|
|
@@ -2834,7 +2951,7 @@ function MosaicAppSidebar({
|
|
|
2834
2951
|
{
|
|
2835
2952
|
ref,
|
|
2836
2953
|
"data-slot": "app-sidebar",
|
|
2837
|
-
className:
|
|
2954
|
+
className: cn40(
|
|
2838
2955
|
"flex h-full flex-col bg-sidebar border-r border-sidebar-border",
|
|
2839
2956
|
isMobile && "border-r-0",
|
|
2840
2957
|
className
|
|
@@ -2854,7 +2971,7 @@ function MosaicAppSidebar({
|
|
|
2854
2971
|
type: "button",
|
|
2855
2972
|
onClick: onToggleCollapse,
|
|
2856
2973
|
"aria-label": isCollapsed ? "Expand sidebar" : "Collapse sidebar",
|
|
2857
|
-
className:
|
|
2974
|
+
className: cn40(
|
|
2858
2975
|
"flex h-9 w-9 items-center justify-center rounded-lg transition-colors",
|
|
2859
2976
|
"hover:bg-sidebar-accent text-sidebar-foreground",
|
|
2860
2977
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -2884,7 +3001,7 @@ function MosaicAppSidebar({
|
|
|
2884
3001
|
},
|
|
2885
3002
|
"aria-current": isActive ? "page" : void 0,
|
|
2886
3003
|
"aria-expanded": hasSubmenu && !isCollapsed ? isExpanded : void 0,
|
|
2887
|
-
className:
|
|
3004
|
+
className: cn40(
|
|
2888
3005
|
"group flex w-full min-h-[44px] items-center rounded-lg p-3 transition-colors",
|
|
2889
3006
|
"hover:bg-sidebar-accent",
|
|
2890
3007
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -2911,7 +3028,7 @@ function MosaicAppSidebar({
|
|
|
2911
3028
|
type: "button",
|
|
2912
3029
|
onClick: () => handleNavClick(sub.href),
|
|
2913
3030
|
"aria-current": isSubActive ? "page" : void 0,
|
|
2914
|
-
className:
|
|
3031
|
+
className: cn40(
|
|
2915
3032
|
"flex w-full min-h-[40px] items-center gap-3 rounded-lg px-3 py-2 text-sm transition-colors",
|
|
2916
3033
|
"hover:bg-sidebar-accent/50 text-sidebar-foreground",
|
|
2917
3034
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -2934,7 +3051,7 @@ function MosaicAppSidebar({
|
|
|
2934
3051
|
{
|
|
2935
3052
|
type: "button",
|
|
2936
3053
|
onClick: action.onClick,
|
|
2937
|
-
className:
|
|
3054
|
+
className: cn40(
|
|
2938
3055
|
"flex w-full min-h-[44px] items-center gap-3 rounded-lg px-3 py-2 text-sm font-medium",
|
|
2939
3056
|
"text-sidebar-foreground transition-colors hover:bg-sidebar-accent",
|
|
2940
3057
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -2981,7 +3098,7 @@ function MosaicAppSidebar({
|
|
|
2981
3098
|
);
|
|
2982
3099
|
}
|
|
2983
3100
|
MosaicAppSidebar.displayName = "MosaicAppSidebar";
|
|
2984
|
-
function
|
|
3101
|
+
function cn41(...classes) {
|
|
2985
3102
|
return classes.filter(Boolean).join(" ");
|
|
2986
3103
|
}
|
|
2987
3104
|
var ANIM_ID3 = "mosaic-dashboard-kf";
|
|
@@ -3071,7 +3188,7 @@ function MosaicDashboardLayout({
|
|
|
3071
3188
|
{
|
|
3072
3189
|
ref,
|
|
3073
3190
|
"data-slot": "dashboard-layout",
|
|
3074
|
-
className:
|
|
3191
|
+
className: cn41("flex h-screen w-full bg-background", className),
|
|
3075
3192
|
children: [
|
|
3076
3193
|
!isMobile && /* @__PURE__ */ jsxRuntime.jsx(
|
|
3077
3194
|
MosaicAppSidebar,
|
|
@@ -3095,7 +3212,7 @@ function MosaicDashboardLayout({
|
|
|
3095
3212
|
type: "button",
|
|
3096
3213
|
"aria-label": "Open navigation",
|
|
3097
3214
|
onClick: () => setIsMobileSidebarOpen(true),
|
|
3098
|
-
className:
|
|
3215
|
+
className: cn41(
|
|
3099
3216
|
"flex h-11 w-11 shrink-0 items-center justify-center rounded-lg",
|
|
3100
3217
|
"text-foreground transition-colors hover:bg-muted",
|
|
3101
3218
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -3147,7 +3264,7 @@ function MosaicDashboardLayout({
|
|
|
3147
3264
|
);
|
|
3148
3265
|
}
|
|
3149
3266
|
MosaicDashboardLayout.displayName = "MosaicDashboardLayout";
|
|
3150
|
-
function
|
|
3267
|
+
function cn42(...classes) {
|
|
3151
3268
|
return classes.filter(Boolean).join(" ");
|
|
3152
3269
|
}
|
|
3153
3270
|
var ANIM_ID4 = "mosaic-quick-action-kf";
|
|
@@ -3202,7 +3319,7 @@ function MosaicQuickActionCard({
|
|
|
3202
3319
|
{
|
|
3203
3320
|
ref,
|
|
3204
3321
|
"data-slot": "quick-action-card",
|
|
3205
|
-
className:
|
|
3322
|
+
className: cn42("rounded-xl border border-border bg-card", className),
|
|
3206
3323
|
children: [
|
|
3207
3324
|
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 }) }),
|
|
3208
3325
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -3227,7 +3344,7 @@ function MosaicQuickActionCard({
|
|
|
3227
3344
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
3228
3345
|
"div",
|
|
3229
3346
|
{
|
|
3230
|
-
className:
|
|
3347
|
+
className: cn42(
|
|
3231
3348
|
"flex min-h-[100px] cursor-pointer flex-col items-center justify-center gap-2 rounded-xl border p-4",
|
|
3232
3349
|
"transition-transform duration-150 hover:scale-105 active:scale-[0.98]",
|
|
3233
3350
|
accentClass
|
|
@@ -3260,7 +3377,7 @@ function MosaicQuickActionCard({
|
|
|
3260
3377
|
);
|
|
3261
3378
|
}
|
|
3262
3379
|
MosaicQuickActionCard.displayName = "MosaicQuickActionCard";
|
|
3263
|
-
function
|
|
3380
|
+
function cn43(...classes) {
|
|
3264
3381
|
return classes.filter(Boolean).join(" ");
|
|
3265
3382
|
}
|
|
3266
3383
|
var ANIM_ID5 = "mosaic-activity-feed-kf";
|
|
@@ -3349,7 +3466,7 @@ function MosaicActivityItem({ activity, icon, className }) {
|
|
|
3349
3466
|
"div",
|
|
3350
3467
|
{
|
|
3351
3468
|
"data-slot": "activity-item",
|
|
3352
|
-
className:
|
|
3469
|
+
className: cn43(
|
|
3353
3470
|
"flex cursor-pointer items-start gap-4 rounded-lg p-3 transition-colors hover:bg-muted/50",
|
|
3354
3471
|
className
|
|
3355
3472
|
),
|
|
@@ -3383,7 +3500,7 @@ function MosaicActivityItem({ activity, icon, className }) {
|
|
|
3383
3500
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3384
3501
|
"span",
|
|
3385
3502
|
{
|
|
3386
|
-
className:
|
|
3503
|
+
className: cn43(
|
|
3387
3504
|
"rounded-full px-2 py-0.5 text-xs font-medium",
|
|
3388
3505
|
getStatusClass(activity.status)
|
|
3389
3506
|
),
|
|
@@ -3424,7 +3541,7 @@ function MosaicActivityFeed({
|
|
|
3424
3541
|
{
|
|
3425
3542
|
ref,
|
|
3426
3543
|
"data-slot": "activity-feed",
|
|
3427
|
-
className:
|
|
3544
|
+
className: cn43("rounded-xl border border-border bg-card", className),
|
|
3428
3545
|
children: [
|
|
3429
3546
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between border-b border-border px-6 py-4", children: [
|
|
3430
3547
|
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "text-lg font-semibold text-foreground", children: heading }),
|
|
@@ -3450,7 +3567,7 @@ function MosaicActivityFeed({
|
|
|
3450
3567
|
);
|
|
3451
3568
|
}
|
|
3452
3569
|
MosaicActivityFeed.displayName = "MosaicActivityFeed";
|
|
3453
|
-
function
|
|
3570
|
+
function cn44(...classes) {
|
|
3454
3571
|
return classes.filter(Boolean).join(" ");
|
|
3455
3572
|
}
|
|
3456
3573
|
function SparklesIcon() {
|
|
@@ -3659,7 +3776,7 @@ function MosaicAgentComposerDesktop({
|
|
|
3659
3776
|
value: agentName,
|
|
3660
3777
|
onChange: (e) => onAgentNameChange(e.target.value),
|
|
3661
3778
|
placeholder: "Enter agent name\u2026",
|
|
3662
|
-
className:
|
|
3779
|
+
className: cn44(
|
|
3663
3780
|
"flex min-h-[48px] w-full rounded-lg border border-input bg-transparent px-3 py-2 text-sm",
|
|
3664
3781
|
"placeholder:text-muted-foreground",
|
|
3665
3782
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -3760,7 +3877,7 @@ function MosaicAgentComposerDesktop({
|
|
|
3760
3877
|
onChange: (e) => onCustomInstructionsChange(e.target.value),
|
|
3761
3878
|
placeholder: "Add any specific instructions or behaviors\u2026",
|
|
3762
3879
|
rows: 5,
|
|
3763
|
-
className:
|
|
3880
|
+
className: cn44(
|
|
3764
3881
|
"flex w-full resize-y rounded-lg border border-input bg-transparent px-3 py-2 text-sm",
|
|
3765
3882
|
"placeholder:text-muted-foreground",
|
|
3766
3883
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -3828,7 +3945,7 @@ function MosaicAgentComposerDesktop({
|
|
|
3828
3945
|
/* @__PURE__ */ jsxRuntime.jsx(SparklesIcon, {}),
|
|
3829
3946
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-muted-foreground", children: "Select all modules to see preview" })
|
|
3830
3947
|
] }) }),
|
|
3831
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
3948
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn44("flex gap-2", isEditMode && onCancel ? "flex-row" : "flex-col"), children: [
|
|
3832
3949
|
isEditMode && onCancel && /* @__PURE__ */ jsxRuntime.jsx(
|
|
3833
3950
|
"button",
|
|
3834
3951
|
{
|
|
@@ -3844,7 +3961,7 @@ function MosaicAgentComposerDesktop({
|
|
|
3844
3961
|
type: "button",
|
|
3845
3962
|
onClick: onSave,
|
|
3846
3963
|
disabled: !canSave,
|
|
3847
|
-
className:
|
|
3964
|
+
className: cn44(
|
|
3848
3965
|
"flex min-h-[48px] items-center justify-center gap-2 rounded-lg text-sm font-medium transition-colors",
|
|
3849
3966
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
3850
3967
|
"bg-primary text-primary-foreground hover:bg-primary/90",
|
|
@@ -3865,7 +3982,7 @@ function MosaicAgentComposerDesktop({
|
|
|
3865
3982
|
] });
|
|
3866
3983
|
}
|
|
3867
3984
|
MosaicAgentComposerDesktop.displayName = "MosaicAgentComposerDesktop";
|
|
3868
|
-
function
|
|
3985
|
+
function cn45(...classes) {
|
|
3869
3986
|
return classes.filter(Boolean).join(" ");
|
|
3870
3987
|
}
|
|
3871
3988
|
function SparklesIcon2() {
|
|
@@ -4121,7 +4238,7 @@ function MosaicAgentComposerMobile({
|
|
|
4121
4238
|
disabled: isLoading,
|
|
4122
4239
|
"aria-required": "true",
|
|
4123
4240
|
"aria-invalid": canSave && !agentName ? "true" : "false",
|
|
4124
|
-
className:
|
|
4241
|
+
className: cn45(
|
|
4125
4242
|
"flex min-h-[48px] w-full rounded-lg border border-input bg-transparent px-3 py-2 text-sm",
|
|
4126
4243
|
"placeholder:text-muted-foreground",
|
|
4127
4244
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -4225,7 +4342,7 @@ function MosaicAgentComposerMobile({
|
|
|
4225
4342
|
disabled: isLoading,
|
|
4226
4343
|
"aria-describedby": `${instructionsId}-help`,
|
|
4227
4344
|
rows: 4,
|
|
4228
|
-
className:
|
|
4345
|
+
className: cn45(
|
|
4229
4346
|
"flex w-full resize-y rounded-lg border border-input bg-transparent px-3 py-2 text-sm",
|
|
4230
4347
|
"placeholder:text-muted-foreground",
|
|
4231
4348
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -4281,7 +4398,7 @@ function MosaicAgentComposer(props) {
|
|
|
4281
4398
|
return isMobile ? /* @__PURE__ */ jsxRuntime.jsx(MosaicAgentComposerMobile, { ...props }) : /* @__PURE__ */ jsxRuntime.jsx(MosaicAgentComposerDesktop, { ...props });
|
|
4282
4399
|
}
|
|
4283
4400
|
MosaicAgentComposer.displayName = "MosaicAgentComposer";
|
|
4284
|
-
function
|
|
4401
|
+
function cn46(...classes) {
|
|
4285
4402
|
return classes.filter(Boolean).join(" ");
|
|
4286
4403
|
}
|
|
4287
4404
|
function EditIcon() {
|
|
@@ -4339,7 +4456,7 @@ function MosaicModuleCard({
|
|
|
4339
4456
|
{
|
|
4340
4457
|
ref,
|
|
4341
4458
|
"data-slot": "module-card",
|
|
4342
|
-
className:
|
|
4459
|
+
className: cn46(
|
|
4343
4460
|
"min-h-[80px] rounded-xl border border-border bg-card p-4 transition-all",
|
|
4344
4461
|
"flex items-start gap-3",
|
|
4345
4462
|
isSelected && "ring-2 ring-primary bg-primary/5",
|
|
@@ -4401,7 +4518,7 @@ function MosaicThemeProvider({
|
|
|
4401
4518
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { "data-slot": "theme-provider", children });
|
|
4402
4519
|
}
|
|
4403
4520
|
MosaicThemeProvider.displayName = "MosaicThemeProvider";
|
|
4404
|
-
function
|
|
4521
|
+
function cn47(...classes) {
|
|
4405
4522
|
return classes.filter(Boolean).join(" ");
|
|
4406
4523
|
}
|
|
4407
4524
|
var ANIM_ID6 = "mosaic-delete-dialog-kf";
|
|
@@ -4455,14 +4572,14 @@ function MosaicDeleteConfirmationDialog({
|
|
|
4455
4572
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4456
4573
|
alertDialog.AlertDialog.Backdrop,
|
|
4457
4574
|
{
|
|
4458
|
-
className:
|
|
4575
|
+
className: cn47("mosaic-delete-overlay", "fixed inset-0 z-50 bg-black/50")
|
|
4459
4576
|
}
|
|
4460
4577
|
),
|
|
4461
4578
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
4462
4579
|
alertDialog.AlertDialog.Popup,
|
|
4463
4580
|
{
|
|
4464
4581
|
"data-slot": "delete-confirmation-dialog",
|
|
4465
|
-
className:
|
|
4582
|
+
className: cn47(
|
|
4466
4583
|
"mosaic-delete-content",
|
|
4467
4584
|
"fixed left-1/2 top-1/2 z-50",
|
|
4468
4585
|
"w-full max-w-[92vw] sm:max-w-md",
|
|
@@ -4475,7 +4592,7 @@ function MosaicDeleteConfirmationDialog({
|
|
|
4475
4592
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4476
4593
|
alertDialog.AlertDialog.Close,
|
|
4477
4594
|
{
|
|
4478
|
-
className:
|
|
4595
|
+
className: cn47(
|
|
4479
4596
|
"inline-flex min-h-[44px] w-full items-center justify-center rounded-md border border-border",
|
|
4480
4597
|
"bg-background px-4 py-2 text-sm font-medium text-foreground",
|
|
4481
4598
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -4489,7 +4606,7 @@ function MosaicDeleteConfirmationDialog({
|
|
|
4489
4606
|
alertDialog.AlertDialog.Close,
|
|
4490
4607
|
{
|
|
4491
4608
|
onClick: onConfirm,
|
|
4492
|
-
className:
|
|
4609
|
+
className: cn47(
|
|
4493
4610
|
"inline-flex min-h-[44px] w-full items-center justify-center rounded-md",
|
|
4494
4611
|
"bg-destructive px-4 py-2 text-sm font-medium text-destructive-foreground",
|
|
4495
4612
|
"hover:bg-destructive/90",
|
|
@@ -4506,7 +4623,7 @@ function MosaicDeleteConfirmationDialog({
|
|
|
4506
4623
|
] }) });
|
|
4507
4624
|
}
|
|
4508
4625
|
MosaicDeleteConfirmationDialog.displayName = "MosaicDeleteConfirmationDialog";
|
|
4509
|
-
function
|
|
4626
|
+
function cn48(...classes) {
|
|
4510
4627
|
return classes.filter(Boolean).join(" ");
|
|
4511
4628
|
}
|
|
4512
4629
|
function Toggle({
|
|
@@ -4522,7 +4639,7 @@ function Toggle({
|
|
|
4522
4639
|
id,
|
|
4523
4640
|
"aria-checked": checked,
|
|
4524
4641
|
onClick: () => onChange(!checked),
|
|
4525
|
-
className:
|
|
4642
|
+
className: cn48(
|
|
4526
4643
|
"relative inline-flex h-6 w-11 shrink-0 cursor-pointer rounded-full border-2 border-transparent",
|
|
4527
4644
|
"transition-colors duration-200 ease-in-out",
|
|
4528
4645
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
@@ -4531,7 +4648,7 @@ function Toggle({
|
|
|
4531
4648
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
4532
4649
|
"span",
|
|
4533
4650
|
{
|
|
4534
|
-
className:
|
|
4651
|
+
className: cn48(
|
|
4535
4652
|
"pointer-events-none inline-block h-5 w-5 rounded-full bg-background shadow-lg",
|
|
4536
4653
|
"transform transition duration-200 ease-in-out",
|
|
4537
4654
|
checked ? "translate-x-5" : "translate-x-0"
|
|
@@ -4553,7 +4670,7 @@ function NativeSelect({
|
|
|
4553
4670
|
id,
|
|
4554
4671
|
value,
|
|
4555
4672
|
onChange: (e) => onChange(e.target.value),
|
|
4556
|
-
className:
|
|
4673
|
+
className: cn48(
|
|
4557
4674
|
"flex min-h-[48px] w-full rounded-md border border-input bg-background px-3 py-2",
|
|
4558
4675
|
"text-sm text-foreground",
|
|
4559
4676
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -4572,7 +4689,7 @@ function MosaicPreferencesPanel({
|
|
|
4572
4689
|
className
|
|
4573
4690
|
}) {
|
|
4574
4691
|
const { isMobile } = useDevice();
|
|
4575
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "preferences-panel", className:
|
|
4692
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "preferences-panel", className: cn48("space-y-4 md:space-y-6", className), children: [
|
|
4576
4693
|
groups.map((group) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
4577
4694
|
"div",
|
|
4578
4695
|
{
|
|
@@ -4615,13 +4732,13 @@ function MosaicPreferencesPanel({
|
|
|
4615
4732
|
},
|
|
4616
4733
|
group.id
|
|
4617
4734
|
)),
|
|
4618
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
4735
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: cn48("flex", isMobile ? "flex-col" : "justify-end"), children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
4619
4736
|
"button",
|
|
4620
4737
|
{
|
|
4621
4738
|
type: "button",
|
|
4622
4739
|
onClick: onSave,
|
|
4623
4740
|
disabled: isSaving,
|
|
4624
|
-
className:
|
|
4741
|
+
className: cn48(
|
|
4625
4742
|
"inline-flex min-h-[44px] items-center justify-center gap-2 rounded-md",
|
|
4626
4743
|
"bg-primary px-4 py-2 text-sm font-medium text-primary-foreground",
|
|
4627
4744
|
"hover:bg-primary/90",
|
|
@@ -4657,7 +4774,7 @@ function MosaicPreferencesPanel({
|
|
|
4657
4774
|
] });
|
|
4658
4775
|
}
|
|
4659
4776
|
MosaicPreferencesPanel.displayName = "MosaicPreferencesPanel";
|
|
4660
|
-
function
|
|
4777
|
+
function cn49(...classes) {
|
|
4661
4778
|
return classes.filter(Boolean).join(" ");
|
|
4662
4779
|
}
|
|
4663
4780
|
function AvatarDisplay({
|
|
@@ -4670,7 +4787,7 @@ function AvatarDisplay({
|
|
|
4670
4787
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4671
4788
|
"span",
|
|
4672
4789
|
{
|
|
4673
|
-
className:
|
|
4790
|
+
className: cn49(
|
|
4674
4791
|
"inline-flex shrink-0 items-center justify-center rounded-full bg-muted text-muted-foreground font-semibold overflow-hidden",
|
|
4675
4792
|
sizeClass
|
|
4676
4793
|
),
|
|
@@ -4692,7 +4809,7 @@ function MosaicProfilePanel({
|
|
|
4692
4809
|
className
|
|
4693
4810
|
}) {
|
|
4694
4811
|
const { isMobile } = useDevice();
|
|
4695
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "profile-panel", className:
|
|
4812
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "profile-panel", className: cn49("space-y-4 md:space-y-6", className), children: [
|
|
4696
4813
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "rounded-lg border border-border bg-card text-card-foreground shadow-sm", children: [
|
|
4697
4814
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col space-y-1.5 p-6", children: [
|
|
4698
4815
|
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "text-lg font-semibold leading-none tracking-tight md:text-xl", children: "Profile Picture" }),
|
|
@@ -4712,7 +4829,7 @@ function MosaicProfilePanel({
|
|
|
4712
4829
|
{
|
|
4713
4830
|
type: "button",
|
|
4714
4831
|
onClick: onAvatarUpload,
|
|
4715
|
-
className:
|
|
4832
|
+
className: cn49(
|
|
4716
4833
|
"inline-flex min-h-[44px] items-center justify-center gap-2 rounded-md border border-border",
|
|
4717
4834
|
"bg-background px-4 py-2 text-sm font-medium text-foreground",
|
|
4718
4835
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -4762,7 +4879,7 @@ function MosaicProfilePanel({
|
|
|
4762
4879
|
placeholder: field.placeholder,
|
|
4763
4880
|
onChange: (e) => onFieldChange?.(field.id, e.target.value),
|
|
4764
4881
|
rows: 4,
|
|
4765
|
-
className:
|
|
4882
|
+
className: cn49(
|
|
4766
4883
|
"flex min-h-[120px] w-full rounded-md border border-input bg-background px-3 py-2",
|
|
4767
4884
|
"text-sm text-foreground placeholder:text-muted-foreground",
|
|
4768
4885
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -4778,7 +4895,7 @@ function MosaicProfilePanel({
|
|
|
4778
4895
|
readOnly: field.readOnly,
|
|
4779
4896
|
placeholder: field.placeholder,
|
|
4780
4897
|
onChange: (e) => onFieldChange?.(field.id, e.target.value),
|
|
4781
|
-
className:
|
|
4898
|
+
className: cn49(
|
|
4782
4899
|
"flex min-h-[48px] w-full rounded-md border border-input bg-background px-3 py-2",
|
|
4783
4900
|
"text-sm text-foreground placeholder:text-muted-foreground",
|
|
4784
4901
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -4798,7 +4915,7 @@ function MosaicProfilePanel({
|
|
|
4798
4915
|
{
|
|
4799
4916
|
type: "button",
|
|
4800
4917
|
onClick: onChangePassword,
|
|
4801
|
-
className:
|
|
4918
|
+
className: cn49(
|
|
4802
4919
|
"inline-flex min-h-[44px] items-center justify-center rounded-md border border-border",
|
|
4803
4920
|
"bg-background px-4 py-2 text-sm font-medium text-foreground",
|
|
4804
4921
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -4810,13 +4927,13 @@ function MosaicProfilePanel({
|
|
|
4810
4927
|
) })
|
|
4811
4928
|
] }),
|
|
4812
4929
|
extraSections,
|
|
4813
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
4930
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: cn49("flex", isMobile ? "flex-col" : "justify-end"), children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
4814
4931
|
"button",
|
|
4815
4932
|
{
|
|
4816
4933
|
type: "button",
|
|
4817
4934
|
onClick: onSave,
|
|
4818
4935
|
disabled: isSaving,
|
|
4819
|
-
className:
|
|
4936
|
+
className: cn49(
|
|
4820
4937
|
"inline-flex min-h-[44px] items-center justify-center gap-2 rounded-md",
|
|
4821
4938
|
"bg-primary px-4 py-2 text-sm font-medium text-primary-foreground",
|
|
4822
4939
|
"hover:bg-primary/90",
|
|
@@ -4852,7 +4969,7 @@ function MosaicProfilePanel({
|
|
|
4852
4969
|
] });
|
|
4853
4970
|
}
|
|
4854
4971
|
MosaicProfilePanel.displayName = "MosaicProfilePanel";
|
|
4855
|
-
function
|
|
4972
|
+
function cn50(...classes) {
|
|
4856
4973
|
return classes.filter(Boolean).join(" ");
|
|
4857
4974
|
}
|
|
4858
4975
|
var ANIM_ID7 = "mosaic-main-nav-kf";
|
|
@@ -4960,7 +5077,7 @@ function MosaicMainNav({
|
|
|
4960
5077
|
{
|
|
4961
5078
|
type: "button",
|
|
4962
5079
|
onClick: () => setIsOpen(!isOpen),
|
|
4963
|
-
className:
|
|
5080
|
+
className: cn50(
|
|
4964
5081
|
"inline-flex min-h-[44px] min-w-[44px] items-center justify-center rounded-md p-0",
|
|
4965
5082
|
"text-foreground hover:bg-accent hover:text-accent-foreground",
|
|
4966
5083
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -4986,7 +5103,7 @@ function MosaicMainNav({
|
|
|
4986
5103
|
"aria-label": "Navigation",
|
|
4987
5104
|
open: isOpen,
|
|
4988
5105
|
"data-open": isOpen ? "true" : "false",
|
|
4989
|
-
className:
|
|
5106
|
+
className: cn50(
|
|
4990
5107
|
"mosaic-nav-drawer",
|
|
4991
5108
|
"fixed inset-y-0 left-0 z-50 m-0 w-[280px] max-h-none h-full p-0",
|
|
4992
5109
|
"border-r border-border bg-background shadow-xl",
|
|
@@ -5003,7 +5120,7 @@ function MosaicMainNav({
|
|
|
5003
5120
|
{
|
|
5004
5121
|
type: "button",
|
|
5005
5122
|
onClick: () => setIsOpen(false),
|
|
5006
|
-
className:
|
|
5123
|
+
className: cn50(
|
|
5007
5124
|
"inline-flex h-8 w-8 items-center justify-center rounded-md",
|
|
5008
5125
|
"text-muted-foreground hover:bg-accent hover:text-accent-foreground",
|
|
5009
5126
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -5016,7 +5133,7 @@ function MosaicMainNav({
|
|
|
5016
5133
|
/* @__PURE__ */ jsxRuntime.jsx("nav", { className: "flex flex-col gap-1 p-4", "aria-label": "Main navigation", children: filteredItems.map((item) => {
|
|
5017
5134
|
const Icon = item.icon;
|
|
5018
5135
|
const active = isItemActive(item);
|
|
5019
|
-
const itemClass =
|
|
5136
|
+
const itemClass = cn50(
|
|
5020
5137
|
"flex items-center gap-3 rounded-lg px-3 py-3 text-sm font-medium transition-colors",
|
|
5021
5138
|
"hover:bg-accent hover:text-accent-foreground",
|
|
5022
5139
|
"min-h-[44px]",
|
|
@@ -5042,12 +5159,12 @@ function MosaicMainNav({
|
|
|
5042
5159
|
"nav",
|
|
5043
5160
|
{
|
|
5044
5161
|
"data-slot": "main-nav",
|
|
5045
|
-
className:
|
|
5162
|
+
className: cn50("flex items-center gap-1", className),
|
|
5046
5163
|
"aria-label": "Main navigation",
|
|
5047
5164
|
children: filteredItems.map((item) => {
|
|
5048
5165
|
const Icon = item.icon;
|
|
5049
5166
|
const active = isItemActive(item);
|
|
5050
|
-
const itemClass =
|
|
5167
|
+
const itemClass = cn50(
|
|
5051
5168
|
"flex items-center gap-2 rounded-lg px-3 py-2 text-sm font-medium transition-colors",
|
|
5052
5169
|
"hover:bg-accent hover:text-accent-foreground",
|
|
5053
5170
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -5067,7 +5184,7 @@ function MosaicMainNav({
|
|
|
5067
5184
|
);
|
|
5068
5185
|
}
|
|
5069
5186
|
MosaicMainNav.displayName = "MosaicMainNav";
|
|
5070
|
-
function
|
|
5187
|
+
function cn51(...classes) {
|
|
5071
5188
|
return classes.filter(Boolean).join(" ");
|
|
5072
5189
|
}
|
|
5073
5190
|
function MoreVertIcon() {
|
|
@@ -5198,7 +5315,7 @@ function MosaicAgentCard({
|
|
|
5198
5315
|
"div",
|
|
5199
5316
|
{
|
|
5200
5317
|
"data-slot": "agent-card",
|
|
5201
|
-
className:
|
|
5318
|
+
className: cn51(
|
|
5202
5319
|
"relative overflow-hidden rounded-lg border border-border bg-card text-card-foreground shadow-sm",
|
|
5203
5320
|
"transition-shadow hover:shadow-md",
|
|
5204
5321
|
agent.isActive && "ring-2 ring-primary",
|
|
@@ -5208,7 +5325,7 @@ function MosaicAgentCard({
|
|
|
5208
5325
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5209
5326
|
"div",
|
|
5210
5327
|
{
|
|
5211
|
-
className:
|
|
5328
|
+
className: cn51(
|
|
5212
5329
|
"absolute left-0 top-0 h-1 w-full",
|
|
5213
5330
|
agent.isActive ? "bg-primary" : "bg-muted"
|
|
5214
5331
|
)
|
|
@@ -5220,7 +5337,7 @@ function MosaicAgentCard({
|
|
|
5220
5337
|
agent.accentColor && /* @__PURE__ */ jsxRuntime.jsx(
|
|
5221
5338
|
"span",
|
|
5222
5339
|
{
|
|
5223
|
-
className:
|
|
5340
|
+
className: cn51("h-3 w-3 shrink-0 rounded-full", agent.accentColor),
|
|
5224
5341
|
"aria-hidden": "true"
|
|
5225
5342
|
}
|
|
5226
5343
|
),
|
|
@@ -5238,7 +5355,7 @@ function MosaicAgentCard({
|
|
|
5238
5355
|
{
|
|
5239
5356
|
type: "button",
|
|
5240
5357
|
onClick: () => setMenuOpen((v) => !v),
|
|
5241
|
-
className:
|
|
5358
|
+
className: cn51(
|
|
5242
5359
|
"inline-flex h-8 w-8 items-center justify-center rounded-md",
|
|
5243
5360
|
"text-muted-foreground hover:bg-accent hover:text-accent-foreground",
|
|
5244
5361
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -5253,7 +5370,7 @@ function MosaicAgentCard({
|
|
|
5253
5370
|
"div",
|
|
5254
5371
|
{
|
|
5255
5372
|
role: "menu",
|
|
5256
|
-
className:
|
|
5373
|
+
className: cn51(
|
|
5257
5374
|
"absolute right-0 top-full z-50 mt-1 min-w-[140px] rounded-md border border-border",
|
|
5258
5375
|
"bg-popover py-1 shadow-md"
|
|
5259
5376
|
),
|
|
@@ -5268,7 +5385,7 @@ function MosaicAgentCard({
|
|
|
5268
5385
|
onToggleStatus(agent.id);
|
|
5269
5386
|
setMenuOpen(false);
|
|
5270
5387
|
},
|
|
5271
|
-
className:
|
|
5388
|
+
className: cn51(
|
|
5272
5389
|
"flex w-full items-center gap-2 px-3 py-2 text-sm text-foreground",
|
|
5273
5390
|
"hover:bg-accent hover:text-accent-foreground",
|
|
5274
5391
|
"disabled:pointer-events-none disabled:opacity-50"
|
|
@@ -5330,7 +5447,7 @@ function MosaicAgentCard({
|
|
|
5330
5447
|
type: "button",
|
|
5331
5448
|
disabled: isLoading,
|
|
5332
5449
|
onClick: () => onToggleStatus(agent.id),
|
|
5333
|
-
className:
|
|
5450
|
+
className: cn51(
|
|
5334
5451
|
"inline-flex h-7 items-center justify-center rounded-md px-3 text-xs font-medium",
|
|
5335
5452
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
5336
5453
|
"disabled:pointer-events-none disabled:opacity-50",
|
|
@@ -5346,7 +5463,7 @@ function MosaicAgentCard({
|
|
|
5346
5463
|
);
|
|
5347
5464
|
}
|
|
5348
5465
|
MosaicAgentCard.displayName = "MosaicAgentCard";
|
|
5349
|
-
function
|
|
5466
|
+
function cn52(...classes) {
|
|
5350
5467
|
return classes.filter(Boolean).join(" ");
|
|
5351
5468
|
}
|
|
5352
5469
|
function PlusIcon3() {
|
|
@@ -5426,7 +5543,7 @@ function PickerContent({
|
|
|
5426
5543
|
{
|
|
5427
5544
|
type: "button",
|
|
5428
5545
|
onClick: () => onAdd(agent.id),
|
|
5429
|
-
className:
|
|
5546
|
+
className: cn52(
|
|
5430
5547
|
"flex w-full items-center gap-3 rounded-lg px-3 py-2.5 text-sm",
|
|
5431
5548
|
"hover:bg-accent hover:text-accent-foreground",
|
|
5432
5549
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -5435,7 +5552,7 @@ function PickerContent({
|
|
|
5435
5552
|
agent.accentColor && /* @__PURE__ */ jsxRuntime.jsx(
|
|
5436
5553
|
"span",
|
|
5437
5554
|
{
|
|
5438
|
-
className:
|
|
5555
|
+
className: cn52("h-3 w-3 shrink-0 rounded-full", agent.accentColor),
|
|
5439
5556
|
"aria-hidden": "true"
|
|
5440
5557
|
}
|
|
5441
5558
|
),
|
|
@@ -5452,7 +5569,7 @@ function PickerContent({
|
|
|
5452
5569
|
{
|
|
5453
5570
|
type: "button",
|
|
5454
5571
|
onClick: onOpenBuilder,
|
|
5455
|
-
className:
|
|
5572
|
+
className: cn52(
|
|
5456
5573
|
"flex w-full items-center gap-3 rounded-lg px-3 py-2.5 text-sm",
|
|
5457
5574
|
"hover:bg-accent hover:text-accent-foreground",
|
|
5458
5575
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -5502,11 +5619,11 @@ function MosaicQuickAgentSelector({
|
|
|
5502
5619
|
setPickerOpen(false);
|
|
5503
5620
|
};
|
|
5504
5621
|
const canAdd = selectedAgents.length < maxAgents;
|
|
5505
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "quick-agent-selector", className:
|
|
5622
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "quick-agent-selector", className: cn52("flex items-center gap-2", className), children: [
|
|
5506
5623
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-2 overflow-x-auto", children: selectedAgents.map((agent) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
5507
5624
|
"div",
|
|
5508
5625
|
{
|
|
5509
|
-
className:
|
|
5626
|
+
className: cn52(
|
|
5510
5627
|
"group flex shrink-0 items-center gap-2 rounded-md border border-border bg-card",
|
|
5511
5628
|
isMobile ? "px-2 py-1" : "px-3 py-1.5"
|
|
5512
5629
|
),
|
|
@@ -5514,17 +5631,17 @@ function MosaicQuickAgentSelector({
|
|
|
5514
5631
|
agent.accentColor && /* @__PURE__ */ jsxRuntime.jsx(
|
|
5515
5632
|
"span",
|
|
5516
5633
|
{
|
|
5517
|
-
className:
|
|
5634
|
+
className: cn52("h-2 w-2 shrink-0 rounded-full", agent.accentColor),
|
|
5518
5635
|
"aria-hidden": "true"
|
|
5519
5636
|
}
|
|
5520
5637
|
),
|
|
5521
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
5638
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: cn52("whitespace-nowrap font-medium", isMobile ? "text-xs" : "text-sm"), children: isMobile ? agent.type.split("-")[0] : agent.name }),
|
|
5522
5639
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5523
5640
|
"button",
|
|
5524
5641
|
{
|
|
5525
5642
|
type: "button",
|
|
5526
5643
|
onClick: () => onRemoveAgent(agent.id),
|
|
5527
|
-
className:
|
|
5644
|
+
className: cn52(
|
|
5528
5645
|
"inline-flex h-4 w-4 items-center justify-center rounded",
|
|
5529
5646
|
"text-muted-foreground hover:text-foreground",
|
|
5530
5647
|
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
@@ -5544,7 +5661,7 @@ function MosaicQuickAgentSelector({
|
|
|
5544
5661
|
{
|
|
5545
5662
|
type: "button",
|
|
5546
5663
|
onClick: () => setPickerOpen((v) => !v),
|
|
5547
|
-
className:
|
|
5664
|
+
className: cn52(
|
|
5548
5665
|
"inline-flex items-center justify-center gap-2 rounded-md border border-border bg-background",
|
|
5549
5666
|
"px-3 py-1.5 text-sm font-medium text-foreground",
|
|
5550
5667
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -5559,7 +5676,7 @@ function MosaicQuickAgentSelector({
|
|
|
5559
5676
|
!isMobile && pickerOpen && /* @__PURE__ */ jsxRuntime.jsx(
|
|
5560
5677
|
"div",
|
|
5561
5678
|
{
|
|
5562
|
-
className:
|
|
5679
|
+
className: cn52(
|
|
5563
5680
|
"absolute left-0 top-full z-50 mt-2 w-72 rounded-lg border border-border",
|
|
5564
5681
|
"bg-popover shadow-lg"
|
|
5565
5682
|
),
|
|
@@ -5601,7 +5718,7 @@ function MosaicQuickAgentSelector({
|
|
|
5601
5718
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
5602
5719
|
"span",
|
|
5603
5720
|
{
|
|
5604
|
-
className:
|
|
5721
|
+
className: cn52(
|
|
5605
5722
|
"shrink-0 rounded-md bg-secondary px-2 py-0.5 text-xs font-medium text-secondary-foreground"
|
|
5606
5723
|
),
|
|
5607
5724
|
children: [
|
|
@@ -5614,7 +5731,7 @@ function MosaicQuickAgentSelector({
|
|
|
5614
5731
|
] });
|
|
5615
5732
|
}
|
|
5616
5733
|
MosaicQuickAgentSelector.displayName = "MosaicQuickAgentSelector";
|
|
5617
|
-
function
|
|
5734
|
+
function cn53(...classes) {
|
|
5618
5735
|
return classes.filter(Boolean).join(" ");
|
|
5619
5736
|
}
|
|
5620
5737
|
function SearchIcon() {
|
|
@@ -5704,7 +5821,7 @@ function MosaicSelectorModal({
|
|
|
5704
5821
|
value: query,
|
|
5705
5822
|
onChange: (e) => setQuery(e.target.value),
|
|
5706
5823
|
placeholder: searchPlaceholder,
|
|
5707
|
-
className:
|
|
5824
|
+
className: cn53(
|
|
5708
5825
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
5709
5826
|
"text-sm text-foreground placeholder:text-muted-foreground",
|
|
5710
5827
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -5718,7 +5835,7 @@ function MosaicSelectorModal({
|
|
|
5718
5835
|
{
|
|
5719
5836
|
type: "button",
|
|
5720
5837
|
onClick: () => setActiveCategory("all"),
|
|
5721
|
-
className:
|
|
5838
|
+
className: cn53(
|
|
5722
5839
|
"shrink-0 rounded-md px-3 py-1.5 text-sm font-medium transition-colors",
|
|
5723
5840
|
activeCategory === "all" ? "bg-primary text-primary-foreground" : "bg-muted text-muted-foreground hover:bg-accent hover:text-accent-foreground"
|
|
5724
5841
|
),
|
|
@@ -5730,7 +5847,7 @@ function MosaicSelectorModal({
|
|
|
5730
5847
|
{
|
|
5731
5848
|
type: "button",
|
|
5732
5849
|
onClick: () => setActiveCategory(cat.id),
|
|
5733
|
-
className:
|
|
5850
|
+
className: cn53(
|
|
5734
5851
|
"shrink-0 rounded-md px-3 py-1.5 text-sm font-medium transition-colors",
|
|
5735
5852
|
activeCategory === cat.id ? "bg-primary text-primary-foreground" : "bg-muted text-muted-foreground hover:bg-accent hover:text-accent-foreground"
|
|
5736
5853
|
),
|
|
@@ -5742,7 +5859,7 @@ function MosaicSelectorModal({
|
|
|
5742
5859
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
5743
5860
|
"div",
|
|
5744
5861
|
{
|
|
5745
|
-
className:
|
|
5862
|
+
className: cn53(
|
|
5746
5863
|
"max-h-[50vh] overflow-y-auto",
|
|
5747
5864
|
columns === 2 ? "grid grid-cols-1 gap-3 sm:grid-cols-2" : "flex flex-col gap-3"
|
|
5748
5865
|
),
|
|
@@ -5754,7 +5871,7 @@ function MosaicSelectorModal({
|
|
|
5754
5871
|
{
|
|
5755
5872
|
type: "button",
|
|
5756
5873
|
onClick: () => setPendingId(item.id),
|
|
5757
|
-
className:
|
|
5874
|
+
className: cn53(
|
|
5758
5875
|
"group relative rounded-lg border p-4 text-left transition-all duration-150",
|
|
5759
5876
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
5760
5877
|
isSelected ? "border-primary bg-primary/5 ring-2 ring-primary" : "border-border bg-card hover:border-primary/50"
|
|
@@ -5792,7 +5909,7 @@ function MosaicSelectorModal({
|
|
|
5792
5909
|
{
|
|
5793
5910
|
type: "button",
|
|
5794
5911
|
onClick: onClose,
|
|
5795
|
-
className:
|
|
5912
|
+
className: cn53(
|
|
5796
5913
|
"inline-flex min-h-[44px] items-center justify-center rounded-md border border-border",
|
|
5797
5914
|
"bg-background px-4 py-2 text-sm font-medium text-foreground",
|
|
5798
5915
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -5807,7 +5924,7 @@ function MosaicSelectorModal({
|
|
|
5807
5924
|
type: "button",
|
|
5808
5925
|
onClick: handleConfirm,
|
|
5809
5926
|
disabled: !pendingItem,
|
|
5810
|
-
className:
|
|
5927
|
+
className: cn53(
|
|
5811
5928
|
"inline-flex min-h-[44px] items-center justify-center rounded-md",
|
|
5812
5929
|
"bg-primary px-4 py-2 text-sm font-medium text-primary-foreground",
|
|
5813
5930
|
"hover:bg-primary/90",
|
|
@@ -5821,7 +5938,7 @@ function MosaicSelectorModal({
|
|
|
5821
5938
|
] }) });
|
|
5822
5939
|
}
|
|
5823
5940
|
MosaicSelectorModal.displayName = "MosaicSelectorModal";
|
|
5824
|
-
function
|
|
5941
|
+
function cn54(...classes) {
|
|
5825
5942
|
return classes.filter(Boolean).join(" ");
|
|
5826
5943
|
}
|
|
5827
5944
|
function relativeTime(ts) {
|
|
@@ -6070,7 +6187,7 @@ function MosaicMessageCard({
|
|
|
6070
6187
|
"div",
|
|
6071
6188
|
{
|
|
6072
6189
|
"data-slot": "message-card",
|
|
6073
|
-
className:
|
|
6190
|
+
className: cn54(
|
|
6074
6191
|
"rounded-lg border border-border bg-card p-4 shadow-sm transition-shadow hover:shadow-md",
|
|
6075
6192
|
compact && "p-3",
|
|
6076
6193
|
message.sender.type === "user" && "bg-primary/5",
|
|
@@ -6080,7 +6197,7 @@ function MosaicMessageCard({
|
|
|
6080
6197
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6081
6198
|
"span",
|
|
6082
6199
|
{
|
|
6083
|
-
className:
|
|
6200
|
+
className: cn54(
|
|
6084
6201
|
"inline-flex shrink-0 items-center justify-center rounded-full text-white font-semibold",
|
|
6085
6202
|
compact ? "h-8 w-8 text-xs" : "h-10 w-10 text-sm",
|
|
6086
6203
|
message.sender.accentColor ?? "bg-muted text-muted-foreground"
|
|
@@ -6098,7 +6215,7 @@ function MosaicMessageCard({
|
|
|
6098
6215
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-w-0 flex-1", children: [
|
|
6099
6216
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mb-2 flex items-center justify-between gap-2", children: [
|
|
6100
6217
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
6101
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
6218
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: cn54("font-medium", compact ? "text-sm" : "text-base"), children: message.sender.name }),
|
|
6102
6219
|
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" })
|
|
6103
6220
|
] }),
|
|
6104
6221
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "shrink-0 text-xs text-muted-foreground", children: relativeTime(message.timestamp) })
|
|
@@ -6106,7 +6223,7 @@ function MosaicMessageCard({
|
|
|
6106
6223
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6107
6224
|
"p",
|
|
6108
6225
|
{
|
|
6109
|
-
className:
|
|
6226
|
+
className: cn54(
|
|
6110
6227
|
"leading-relaxed text-foreground mb-3",
|
|
6111
6228
|
compact ? "text-sm" : "text-base"
|
|
6112
6229
|
),
|
|
@@ -6121,7 +6238,7 @@ function MosaicMessageCard({
|
|
|
6121
6238
|
{
|
|
6122
6239
|
type: "button",
|
|
6123
6240
|
onClick: handleLike,
|
|
6124
|
-
className:
|
|
6241
|
+
className: cn54(
|
|
6125
6242
|
"inline-flex h-8 items-center gap-1 rounded-md px-2 text-xs",
|
|
6126
6243
|
"hover:bg-accent hover:text-accent-foreground",
|
|
6127
6244
|
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
@@ -6139,7 +6256,7 @@ function MosaicMessageCard({
|
|
|
6139
6256
|
{
|
|
6140
6257
|
type: "button",
|
|
6141
6258
|
onClick: handleDislike,
|
|
6142
|
-
className:
|
|
6259
|
+
className: cn54(
|
|
6143
6260
|
"inline-flex h-8 items-center gap-1 rounded-md px-2 text-xs",
|
|
6144
6261
|
"hover:bg-accent hover:text-accent-foreground",
|
|
6145
6262
|
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
@@ -6184,7 +6301,7 @@ function MosaicMessageCard({
|
|
|
6184
6301
|
{
|
|
6185
6302
|
type: "button",
|
|
6186
6303
|
onClick: handleBookmark,
|
|
6187
|
-
className:
|
|
6304
|
+
className: cn54(
|
|
6188
6305
|
"inline-flex h-8 w-8 items-center justify-center rounded-md",
|
|
6189
6306
|
"hover:bg-accent hover:text-accent-foreground",
|
|
6190
6307
|
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
@@ -6285,7 +6402,7 @@ function MosaicMessageCard({
|
|
|
6285
6402
|
);
|
|
6286
6403
|
}
|
|
6287
6404
|
MosaicMessageCard.displayName = "MosaicMessageCard";
|
|
6288
|
-
function
|
|
6405
|
+
function cn55(...classes) {
|
|
6289
6406
|
return classes.filter(Boolean).join(" ");
|
|
6290
6407
|
}
|
|
6291
6408
|
function SearchIcon2() {
|
|
@@ -6325,7 +6442,7 @@ function MessageListDesktop({
|
|
|
6325
6442
|
const filtered = query ? messages.filter(
|
|
6326
6443
|
(m) => m.content.toLowerCase().includes(query.toLowerCase()) || m.sender.name.toLowerCase().includes(query.toLowerCase())
|
|
6327
6444
|
) : messages;
|
|
6328
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "message-list-desktop", className:
|
|
6445
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "message-list-desktop", className: cn55("flex h-full flex-col", className), children: [
|
|
6329
6446
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between border-b border-border px-6 py-4", children: [
|
|
6330
6447
|
title && /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-lg font-semibold", children: title }),
|
|
6331
6448
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative ml-auto max-w-xs flex-1", children: [
|
|
@@ -6337,7 +6454,7 @@ function MessageListDesktop({
|
|
|
6337
6454
|
value: query,
|
|
6338
6455
|
onChange: (e) => setQuery(e.target.value),
|
|
6339
6456
|
placeholder: "Search messages\u2026",
|
|
6340
|
-
className:
|
|
6457
|
+
className: cn55(
|
|
6341
6458
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
6342
6459
|
"text-sm placeholder:text-muted-foreground",
|
|
6343
6460
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -6366,7 +6483,7 @@ function MessageListDesktop({
|
|
|
6366
6483
|
{
|
|
6367
6484
|
type: "button",
|
|
6368
6485
|
onClick: onLoadMore,
|
|
6369
|
-
className:
|
|
6486
|
+
className: cn55(
|
|
6370
6487
|
"w-full rounded-md border border-border bg-background px-4 py-2 text-sm font-medium",
|
|
6371
6488
|
"hover:bg-accent hover:text-accent-foreground",
|
|
6372
6489
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -6388,7 +6505,7 @@ function MessageListMobile({
|
|
|
6388
6505
|
isLoading,
|
|
6389
6506
|
className
|
|
6390
6507
|
}) {
|
|
6391
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "message-list-mobile", className:
|
|
6508
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "message-list-mobile", className: cn55("flex flex-col", className), children: [
|
|
6392
6509
|
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 }) }),
|
|
6393
6510
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-3 p-4", children: [
|
|
6394
6511
|
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)) }),
|
|
@@ -6411,7 +6528,7 @@ function MessageListMobile({
|
|
|
6411
6528
|
{
|
|
6412
6529
|
type: "button",
|
|
6413
6530
|
onClick: onLoadMore,
|
|
6414
|
-
className:
|
|
6531
|
+
className: cn55(
|
|
6415
6532
|
"w-full min-h-[44px] rounded-md border border-border bg-background px-4 py-2 text-sm font-medium",
|
|
6416
6533
|
"hover:bg-accent hover:text-accent-foreground",
|
|
6417
6534
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -6426,7 +6543,7 @@ function MosaicMessageList(props) {
|
|
|
6426
6543
|
return isMobile ? /* @__PURE__ */ jsxRuntime.jsx(MessageListMobile, { ...props }) : /* @__PURE__ */ jsxRuntime.jsx(MessageListDesktop, { ...props });
|
|
6427
6544
|
}
|
|
6428
6545
|
MosaicMessageList.displayName = "MosaicMessageList";
|
|
6429
|
-
function
|
|
6546
|
+
function cn56(...classes) {
|
|
6430
6547
|
return classes.filter(Boolean).join(" ");
|
|
6431
6548
|
}
|
|
6432
6549
|
function ChevronLeftIcon2() {
|
|
@@ -6502,7 +6619,7 @@ function MosaicFilterSidebar({
|
|
|
6502
6619
|
{
|
|
6503
6620
|
"data-slot": "filter-sidebar",
|
|
6504
6621
|
style: { width, minWidth: isCollapsed && !isMobile ? "64px" : void 0 },
|
|
6505
|
-
className:
|
|
6622
|
+
className: cn56(
|
|
6506
6623
|
"relative flex flex-col border-r border-border bg-card",
|
|
6507
6624
|
"transition-[width] duration-200 ease-in-out",
|
|
6508
6625
|
"overflow-hidden",
|
|
@@ -6514,7 +6631,7 @@ function MosaicFilterSidebar({
|
|
|
6514
6631
|
{
|
|
6515
6632
|
type: "button",
|
|
6516
6633
|
onClick: onToggleCollapse,
|
|
6517
|
-
className:
|
|
6634
|
+
className: cn56(
|
|
6518
6635
|
"absolute -right-3 top-6 z-10 flex h-6 w-6 items-center justify-center rounded-full",
|
|
6519
6636
|
"border border-border bg-background shadow-sm",
|
|
6520
6637
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -6544,7 +6661,7 @@ function MosaicFilterSidebar({
|
|
|
6544
6661
|
{
|
|
6545
6662
|
type: "button",
|
|
6546
6663
|
onClick: () => onFilterChange(f.id),
|
|
6547
|
-
className:
|
|
6664
|
+
className: cn56(
|
|
6548
6665
|
"flex min-h-[40px] items-center justify-between rounded-md px-3 py-2 text-sm font-medium",
|
|
6549
6666
|
"transition-colors hover:bg-accent hover:text-accent-foreground",
|
|
6550
6667
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -6564,7 +6681,7 @@ function MosaicFilterSidebar({
|
|
|
6564
6681
|
{
|
|
6565
6682
|
type: "button",
|
|
6566
6683
|
onClick: () => onCategoryChange(cat.id),
|
|
6567
|
-
className:
|
|
6684
|
+
className: cn56(
|
|
6568
6685
|
"flex min-h-[36px] items-center justify-between rounded-md px-3 py-1.5 text-sm",
|
|
6569
6686
|
"transition-colors hover:bg-accent hover:text-accent-foreground",
|
|
6570
6687
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -6584,7 +6701,7 @@ function MosaicFilterSidebar({
|
|
|
6584
6701
|
);
|
|
6585
6702
|
}
|
|
6586
6703
|
MosaicFilterSidebar.displayName = "MosaicFilterSidebar";
|
|
6587
|
-
function
|
|
6704
|
+
function cn57(...classes) {
|
|
6588
6705
|
return classes.filter(Boolean).join(" ");
|
|
6589
6706
|
}
|
|
6590
6707
|
function SearchIcon3() {
|
|
@@ -6699,7 +6816,7 @@ function AgentListDesktop({
|
|
|
6699
6816
|
value: query,
|
|
6700
6817
|
onChange: (e) => setQuery(e.target.value),
|
|
6701
6818
|
placeholder: searchPlaceholder,
|
|
6702
|
-
className:
|
|
6819
|
+
className: cn57(
|
|
6703
6820
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
6704
6821
|
"text-sm placeholder:text-muted-foreground",
|
|
6705
6822
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -6712,7 +6829,7 @@ function AgentListDesktop({
|
|
|
6712
6829
|
{
|
|
6713
6830
|
type: "button",
|
|
6714
6831
|
onClick: onCreateAgent,
|
|
6715
|
-
className:
|
|
6832
|
+
className: cn57(
|
|
6716
6833
|
"inline-flex items-center gap-2 rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground",
|
|
6717
6834
|
"hover:bg-primary/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
6718
6835
|
),
|
|
@@ -6771,7 +6888,7 @@ function AgentListMobile({
|
|
|
6771
6888
|
{
|
|
6772
6889
|
type: "button",
|
|
6773
6890
|
onClick: () => setFilterOpen(true),
|
|
6774
|
-
className:
|
|
6891
|
+
className: cn57(
|
|
6775
6892
|
"inline-flex h-9 w-9 items-center justify-center rounded-md",
|
|
6776
6893
|
"border border-border bg-background text-foreground",
|
|
6777
6894
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -6786,7 +6903,7 @@ function AgentListMobile({
|
|
|
6786
6903
|
{
|
|
6787
6904
|
type: "button",
|
|
6788
6905
|
onClick: onCreateAgent,
|
|
6789
|
-
className:
|
|
6906
|
+
className: cn57(
|
|
6790
6907
|
"inline-flex h-9 items-center gap-1.5 rounded-md bg-primary px-3 text-sm font-medium text-primary-foreground",
|
|
6791
6908
|
"hover:bg-primary/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
6792
6909
|
),
|
|
@@ -6807,7 +6924,7 @@ function AgentListMobile({
|
|
|
6807
6924
|
value: query,
|
|
6808
6925
|
onChange: (e) => setQuery(e.target.value),
|
|
6809
6926
|
placeholder: searchPlaceholder,
|
|
6810
|
-
className:
|
|
6927
|
+
className: cn57(
|
|
6811
6928
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
6812
6929
|
"text-sm placeholder:text-muted-foreground",
|
|
6813
6930
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -6855,7 +6972,7 @@ function MosaicAgentList(props) {
|
|
|
6855
6972
|
return isMobile ? /* @__PURE__ */ jsxRuntime.jsx(AgentListMobile, { ...props }) : /* @__PURE__ */ jsxRuntime.jsx(AgentListDesktop, { ...props });
|
|
6856
6973
|
}
|
|
6857
6974
|
MosaicAgentList.displayName = "MosaicAgentList";
|
|
6858
|
-
function
|
|
6975
|
+
function cn58(...classes) {
|
|
6859
6976
|
return classes.filter(Boolean).join(" ");
|
|
6860
6977
|
}
|
|
6861
6978
|
function StarIcon({ filled }) {
|
|
@@ -6951,7 +7068,7 @@ function MarketplaceCard({
|
|
|
6951
7068
|
"div",
|
|
6952
7069
|
{
|
|
6953
7070
|
"data-slot": "marketplace-card",
|
|
6954
|
-
className:
|
|
7071
|
+
className: cn58(
|
|
6955
7072
|
"rounded-lg border border-border bg-card p-4 transition-shadow hover:shadow-md",
|
|
6956
7073
|
compact ? "flex items-center gap-3" : "flex flex-col gap-3"
|
|
6957
7074
|
),
|
|
@@ -6959,7 +7076,7 @@ function MarketplaceCard({
|
|
|
6959
7076
|
item.icon && /* @__PURE__ */ jsxRuntime.jsx(
|
|
6960
7077
|
"div",
|
|
6961
7078
|
{
|
|
6962
|
-
className:
|
|
7079
|
+
className: cn58(
|
|
6963
7080
|
"flex shrink-0 items-center justify-center rounded-lg",
|
|
6964
7081
|
compact ? "h-10 w-10" : "h-12 w-12",
|
|
6965
7082
|
item.accentClass ?? "bg-muted text-muted-foreground"
|
|
@@ -6970,7 +7087,7 @@ function MarketplaceCard({
|
|
|
6970
7087
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex-1 min-w-0", children: [
|
|
6971
7088
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start justify-between gap-2", children: [
|
|
6972
7089
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-w-0", children: [
|
|
6973
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className:
|
|
7090
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: cn58("font-semibold leading-tight", compact ? "text-sm" : "text-base"), children: item.title }),
|
|
6974
7091
|
item.description && !compact && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-1 text-sm text-muted-foreground line-clamp-2", children: item.description })
|
|
6975
7092
|
] }),
|
|
6976
7093
|
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 })
|
|
@@ -6987,13 +7104,13 @@ function MarketplaceCard({
|
|
|
6987
7104
|
] })
|
|
6988
7105
|
] })
|
|
6989
7106
|
] }),
|
|
6990
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
7107
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn58("flex gap-2", compact ? "shrink-0" : "mt-1"), children: [
|
|
6991
7108
|
onPreview && /* @__PURE__ */ jsxRuntime.jsx(
|
|
6992
7109
|
"button",
|
|
6993
7110
|
{
|
|
6994
7111
|
type: "button",
|
|
6995
7112
|
onClick: () => onPreview(item.id),
|
|
6996
|
-
className:
|
|
7113
|
+
className: cn58(
|
|
6997
7114
|
"inline-flex min-h-[36px] items-center justify-center rounded-md border border-border",
|
|
6998
7115
|
"bg-background px-3 text-xs font-medium text-foreground",
|
|
6999
7116
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -7007,7 +7124,7 @@ function MarketplaceCard({
|
|
|
7007
7124
|
{
|
|
7008
7125
|
type: "button",
|
|
7009
7126
|
onClick: () => onUninstall(item.id),
|
|
7010
|
-
className:
|
|
7127
|
+
className: cn58(
|
|
7011
7128
|
"inline-flex min-h-[36px] items-center justify-center rounded-md",
|
|
7012
7129
|
"bg-secondary px-3 text-xs font-medium text-secondary-foreground",
|
|
7013
7130
|
"hover:bg-secondary/80",
|
|
@@ -7020,7 +7137,7 @@ function MarketplaceCard({
|
|
|
7020
7137
|
{
|
|
7021
7138
|
type: "button",
|
|
7022
7139
|
onClick: () => onInstall(item.id),
|
|
7023
|
-
className:
|
|
7140
|
+
className: cn58(
|
|
7024
7141
|
"inline-flex min-h-[36px] items-center justify-center rounded-md",
|
|
7025
7142
|
"bg-primary px-3 text-xs font-medium text-primary-foreground",
|
|
7026
7143
|
"hover:bg-primary/90",
|
|
@@ -7082,7 +7199,7 @@ function MarketplaceListDesktop(props) {
|
|
|
7082
7199
|
value: query,
|
|
7083
7200
|
onChange: (e) => setQuery(e.target.value),
|
|
7084
7201
|
placeholder: searchPlaceholder,
|
|
7085
|
-
className:
|
|
7202
|
+
className: cn58(
|
|
7086
7203
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
7087
7204
|
"text-sm placeholder:text-muted-foreground",
|
|
7088
7205
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -7155,7 +7272,7 @@ function MarketplaceListMobile(props) {
|
|
|
7155
7272
|
value: query,
|
|
7156
7273
|
onChange: (e) => setQuery(e.target.value),
|
|
7157
7274
|
placeholder: searchPlaceholder,
|
|
7158
|
-
className:
|
|
7275
|
+
className: cn58(
|
|
7159
7276
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
7160
7277
|
"text-sm placeholder:text-muted-foreground",
|
|
7161
7278
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -7206,7 +7323,7 @@ function MosaicMarketplaceList(props) {
|
|
|
7206
7323
|
return isMobile ? /* @__PURE__ */ jsxRuntime.jsx(MarketplaceListMobile, { ...props }) : /* @__PURE__ */ jsxRuntime.jsx(MarketplaceListDesktop, { ...props });
|
|
7207
7324
|
}
|
|
7208
7325
|
MosaicMarketplaceList.displayName = "MosaicMarketplaceList";
|
|
7209
|
-
function
|
|
7326
|
+
function cn59(...classes) {
|
|
7210
7327
|
return classes.filter(Boolean).join(" ");
|
|
7211
7328
|
}
|
|
7212
7329
|
function StarIcon2() {
|
|
@@ -7325,7 +7442,7 @@ function MosaicTemplateCard({
|
|
|
7325
7442
|
type: "button",
|
|
7326
7443
|
onClick: () => onSelect(template),
|
|
7327
7444
|
"data-slot": "template-card",
|
|
7328
|
-
className:
|
|
7445
|
+
className: cn59(
|
|
7329
7446
|
"w-full text-left rounded-lg border transition-all duration-200",
|
|
7330
7447
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
7331
7448
|
isSelected ? "border-primary bg-primary/5 ring-2 ring-primary" : "border-border bg-card hover:border-primary/50",
|
|
@@ -7425,7 +7542,7 @@ function MosaicTemplatePreview({
|
|
|
7425
7542
|
agent.accentColor && /* @__PURE__ */ jsxRuntime.jsx(
|
|
7426
7543
|
"span",
|
|
7427
7544
|
{
|
|
7428
|
-
className:
|
|
7545
|
+
className: cn59("h-2 w-2 rounded-full", agent.accentColor),
|
|
7429
7546
|
"aria-hidden": "true"
|
|
7430
7547
|
}
|
|
7431
7548
|
),
|
|
@@ -7485,7 +7602,7 @@ function MosaicAgentTeamPreview({ agents, label }) {
|
|
|
7485
7602
|
agent.accentColor && /* @__PURE__ */ jsxRuntime.jsx(
|
|
7486
7603
|
"span",
|
|
7487
7604
|
{
|
|
7488
|
-
className:
|
|
7605
|
+
className: cn59("h-2.5 w-2.5 rounded-full", agent.accentColor),
|
|
7489
7606
|
"aria-hidden": "true"
|
|
7490
7607
|
}
|
|
7491
7608
|
),
|
|
@@ -7509,7 +7626,7 @@ function MosaicQuickStartPanel({
|
|
|
7509
7626
|
scratchLabel = "Start from Scratch",
|
|
7510
7627
|
className
|
|
7511
7628
|
}) {
|
|
7512
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "quick-start-panel", className:
|
|
7629
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "quick-start-panel", className: cn59("flex flex-col gap-6", className), children: [
|
|
7513
7630
|
scenarios.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
7514
7631
|
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "mb-3 text-sm font-semibold text-foreground", children: scenariosTitle }),
|
|
7515
7632
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "grid gap-3 sm:grid-cols-2", children: scenarios.map((scenario) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -7517,7 +7634,7 @@ function MosaicQuickStartPanel({
|
|
|
7517
7634
|
{
|
|
7518
7635
|
type: "button",
|
|
7519
7636
|
onClick: () => onSelectScenario(scenario),
|
|
7520
|
-
className:
|
|
7637
|
+
className: cn59(
|
|
7521
7638
|
"flex items-start gap-3 rounded-lg border border-border bg-card p-4 text-left",
|
|
7522
7639
|
"hover:border-primary/50 hover:bg-primary/5",
|
|
7523
7640
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -7549,7 +7666,7 @@ function MosaicQuickStartPanel({
|
|
|
7549
7666
|
{
|
|
7550
7667
|
type: "button",
|
|
7551
7668
|
onClick: () => onSelectPreset(preset),
|
|
7552
|
-
className:
|
|
7669
|
+
className: cn59(
|
|
7553
7670
|
"flex items-center justify-between gap-3 rounded-lg border border-border bg-card px-4 py-3 text-left",
|
|
7554
7671
|
"hover:border-primary/50",
|
|
7555
7672
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -7563,7 +7680,7 @@ function MosaicQuickStartPanel({
|
|
|
7563
7680
|
a.accentColor && /* @__PURE__ */ jsxRuntime.jsx(
|
|
7564
7681
|
"span",
|
|
7565
7682
|
{
|
|
7566
|
-
className:
|
|
7683
|
+
className: cn59("h-2 w-2 rounded-full", a.accentColor),
|
|
7567
7684
|
"aria-hidden": "true"
|
|
7568
7685
|
}
|
|
7569
7686
|
),
|
|
@@ -7581,7 +7698,7 @@ function MosaicQuickStartPanel({
|
|
|
7581
7698
|
{
|
|
7582
7699
|
type: "button",
|
|
7583
7700
|
onClick: onStartFromScratch,
|
|
7584
|
-
className:
|
|
7701
|
+
className: cn59(
|
|
7585
7702
|
"inline-flex min-h-[44px] w-full items-center justify-center rounded-md border border-border",
|
|
7586
7703
|
"bg-background px-4 text-sm font-medium text-foreground",
|
|
7587
7704
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -7661,7 +7778,7 @@ function TemplateGalleryContent({
|
|
|
7661
7778
|
value: query,
|
|
7662
7779
|
onChange: (e) => setQuery(e.target.value),
|
|
7663
7780
|
placeholder: searchPlaceholder,
|
|
7664
|
-
className:
|
|
7781
|
+
className: cn59(
|
|
7665
7782
|
"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"
|
|
7666
7783
|
)
|
|
7667
7784
|
}
|
|
@@ -7709,7 +7826,7 @@ function TemplateGalleryContent({
|
|
|
7709
7826
|
value: query,
|
|
7710
7827
|
onChange: (e) => setQuery(e.target.value),
|
|
7711
7828
|
placeholder: searchPlaceholder,
|
|
7712
|
-
className:
|
|
7829
|
+
className: cn59(
|
|
7713
7830
|
"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"
|
|
7714
7831
|
)
|
|
7715
7832
|
}
|
|
@@ -7739,7 +7856,7 @@ function MosaicTemplateGallery(props) {
|
|
|
7739
7856
|
return /* @__PURE__ */ jsxRuntime.jsx(TemplateGalleryContent, { ...props, isMobile });
|
|
7740
7857
|
}
|
|
7741
7858
|
MosaicTemplateGallery.displayName = "MosaicTemplateGallery";
|
|
7742
|
-
function
|
|
7859
|
+
function cn60(...classes) {
|
|
7743
7860
|
return classes.filter(Boolean).join(" ");
|
|
7744
7861
|
}
|
|
7745
7862
|
function PlusIcon5() {
|
|
@@ -7883,7 +8000,7 @@ function MosaicModuleForm({
|
|
|
7883
8000
|
onChange: (e) => update("name", e.target.value),
|
|
7884
8001
|
placeholder: "Module name\u2026",
|
|
7885
8002
|
required: true,
|
|
7886
|
-
className:
|
|
8003
|
+
className: cn60(
|
|
7887
8004
|
"w-full rounded-md border border-input bg-background px-3 py-2 min-h-[40px]",
|
|
7888
8005
|
"text-sm placeholder:text-muted-foreground",
|
|
7889
8006
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -7901,7 +8018,7 @@ function MosaicModuleForm({
|
|
|
7901
8018
|
onChange: (e) => update("description", e.target.value),
|
|
7902
8019
|
placeholder: "Describe this module\u2026",
|
|
7903
8020
|
rows: 3,
|
|
7904
|
-
className:
|
|
8021
|
+
className: cn60(
|
|
7905
8022
|
"w-full rounded-md border border-input bg-background px-3 py-2",
|
|
7906
8023
|
"text-sm placeholder:text-muted-foreground resize-none",
|
|
7907
8024
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -7923,7 +8040,7 @@ function MosaicModuleForm({
|
|
|
7923
8040
|
value: formData[field.id] ?? "",
|
|
7924
8041
|
onChange: (e) => update(field.id, e.target.value),
|
|
7925
8042
|
placeholder: field.placeholder,
|
|
7926
|
-
className:
|
|
8043
|
+
className: cn60(
|
|
7927
8044
|
"w-full rounded-md border border-input bg-background px-3 py-2 min-h-[40px]",
|
|
7928
8045
|
"text-sm placeholder:text-muted-foreground",
|
|
7929
8046
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -7938,7 +8055,7 @@ function MosaicModuleForm({
|
|
|
7938
8055
|
onChange: (e) => update(field.id, e.target.value),
|
|
7939
8056
|
placeholder: field.placeholder,
|
|
7940
8057
|
rows: 3,
|
|
7941
|
-
className:
|
|
8058
|
+
className: cn60(
|
|
7942
8059
|
"w-full rounded-md border border-input bg-background px-3 py-2",
|
|
7943
8060
|
"text-sm placeholder:text-muted-foreground resize-none",
|
|
7944
8061
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -7954,7 +8071,7 @@ function MosaicModuleForm({
|
|
|
7954
8071
|
onChange: (e) => update(field.id, e.target.value),
|
|
7955
8072
|
placeholder: field.placeholder ?? "\u{1F9E0}",
|
|
7956
8073
|
maxLength: 4,
|
|
7957
|
-
className:
|
|
8074
|
+
className: cn60(
|
|
7958
8075
|
"w-20 rounded-md border border-input bg-background px-3 py-2 text-2xl",
|
|
7959
8076
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
7960
8077
|
)
|
|
@@ -7975,7 +8092,7 @@ function MosaicModuleForm({
|
|
|
7975
8092
|
}
|
|
7976
8093
|
},
|
|
7977
8094
|
placeholder: field.placeholder ?? "Add item\u2026",
|
|
7978
|
-
className:
|
|
8095
|
+
className: cn60(
|
|
7979
8096
|
"flex-1 rounded-md border border-input bg-background px-3 py-2 min-h-[36px]",
|
|
7980
8097
|
"text-sm placeholder:text-muted-foreground",
|
|
7981
8098
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -8171,7 +8288,7 @@ function LibraryContent({
|
|
|
8171
8288
|
{
|
|
8172
8289
|
type: "button",
|
|
8173
8290
|
onClick: openCreate,
|
|
8174
|
-
className:
|
|
8291
|
+
className: cn60(
|
|
8175
8292
|
"inline-flex items-center gap-2 rounded-md bg-primary px-3 py-2 text-sm font-medium text-primary-foreground",
|
|
8176
8293
|
"hover:bg-primary/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
8177
8294
|
),
|
|
@@ -8191,7 +8308,7 @@ function LibraryContent({
|
|
|
8191
8308
|
value: query,
|
|
8192
8309
|
onChange: (e) => setQuery(e.target.value),
|
|
8193
8310
|
placeholder: searchPlaceholder,
|
|
8194
|
-
className:
|
|
8311
|
+
className: cn60(
|
|
8195
8312
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
8196
8313
|
"text-sm placeholder:text-muted-foreground",
|
|
8197
8314
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -8204,7 +8321,7 @@ function LibraryContent({
|
|
|
8204
8321
|
{
|
|
8205
8322
|
type: "button",
|
|
8206
8323
|
onClick: () => setActiveTab(tab.id),
|
|
8207
|
-
className:
|
|
8324
|
+
className: cn60(
|
|
8208
8325
|
"rounded-md px-3 py-1.5 text-sm font-medium transition-colors",
|
|
8209
8326
|
activeTab === tab.id ? "bg-primary text-primary-foreground" : "bg-muted text-muted-foreground hover:bg-accent hover:text-accent-foreground"
|
|
8210
8327
|
),
|
|
@@ -8238,7 +8355,7 @@ function MosaicModuleLibrary(props) {
|
|
|
8238
8355
|
return /* @__PURE__ */ jsxRuntime.jsx(LibraryContent, { ...props });
|
|
8239
8356
|
}
|
|
8240
8357
|
MosaicModuleLibrary.displayName = "MosaicModuleLibrary";
|
|
8241
|
-
function
|
|
8358
|
+
function cn61(...classes) {
|
|
8242
8359
|
return classes.filter(Boolean).join(" ");
|
|
8243
8360
|
}
|
|
8244
8361
|
var roleConfig = {
|
|
@@ -8265,7 +8382,7 @@ function MosaicOrgRoleBadge({ role, className }) {
|
|
|
8265
8382
|
{
|
|
8266
8383
|
"data-slot": "org-role-badge",
|
|
8267
8384
|
title: config.description,
|
|
8268
|
-
className:
|
|
8385
|
+
className: cn61(
|
|
8269
8386
|
"inline-flex items-center rounded-full px-2 py-0.5 text-xs font-medium",
|
|
8270
8387
|
config.className,
|
|
8271
8388
|
className
|
|
@@ -8282,13 +8399,13 @@ function MosaicMultiOrgIndicator({
|
|
|
8282
8399
|
className
|
|
8283
8400
|
}) {
|
|
8284
8401
|
if (orgCount <= 1) return null;
|
|
8285
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "multi-org-indicator", className:
|
|
8402
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "multi-org-indicator", className: cn61("flex items-center gap-2", className), children: [
|
|
8286
8403
|
onSwitchOrg ? /* @__PURE__ */ jsxRuntime.jsxs(
|
|
8287
8404
|
"button",
|
|
8288
8405
|
{
|
|
8289
8406
|
type: "button",
|
|
8290
8407
|
onClick: onSwitchOrg,
|
|
8291
|
-
className:
|
|
8408
|
+
className: cn61(
|
|
8292
8409
|
"inline-flex items-center gap-1.5 rounded-full bg-secondary px-2.5 py-1 text-xs font-medium text-secondary-foreground",
|
|
8293
8410
|
"hover:bg-secondary/80",
|
|
8294
8411
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -8386,7 +8503,7 @@ function MosaicCreateOrgDialog({
|
|
|
8386
8503
|
onChange: (e) => setName(e.target.value),
|
|
8387
8504
|
placeholder: "Acme Inc.",
|
|
8388
8505
|
required: true,
|
|
8389
|
-
className:
|
|
8506
|
+
className: cn61(
|
|
8390
8507
|
"w-full rounded-md border bg-background px-3 py-2 min-h-[40px] text-sm placeholder:text-muted-foreground",
|
|
8391
8508
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
8392
8509
|
errors.name ? "border-destructive" : "border-input"
|
|
@@ -8406,7 +8523,7 @@ function MosaicCreateOrgDialog({
|
|
|
8406
8523
|
onChange: (e) => setSlug(e.target.value),
|
|
8407
8524
|
placeholder: "acme-inc",
|
|
8408
8525
|
required: true,
|
|
8409
|
-
className:
|
|
8526
|
+
className: cn61(
|
|
8410
8527
|
"w-full rounded-md border bg-background px-3 py-2 min-h-[40px] text-sm placeholder:text-muted-foreground",
|
|
8411
8528
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
8412
8529
|
errors.slug ? "border-destructive" : "border-input"
|
|
@@ -8503,7 +8620,7 @@ function MosaicInviteMemberDialog({
|
|
|
8503
8620
|
onChange: (e) => setEmail(e.target.value),
|
|
8504
8621
|
placeholder: "colleague@example.com",
|
|
8505
8622
|
required: true,
|
|
8506
|
-
className:
|
|
8623
|
+
className: cn61(
|
|
8507
8624
|
"w-full rounded-md border bg-background px-3 py-2 min-h-[40px] text-sm placeholder:text-muted-foreground",
|
|
8508
8625
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
8509
8626
|
errors.email ? "border-destructive" : "border-input"
|
|
@@ -8680,7 +8797,7 @@ function MosaicMemberList({
|
|
|
8680
8797
|
const filtered = members.filter(
|
|
8681
8798
|
(m) => !query || m.name.toLowerCase().includes(query.toLowerCase()) || m.email.toLowerCase().includes(query.toLowerCase())
|
|
8682
8799
|
);
|
|
8683
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "member-list", className:
|
|
8800
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "member-list", className: cn61("flex flex-col gap-4", className), children: [
|
|
8684
8801
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
8685
8802
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative flex-1", children: [
|
|
8686
8803
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground", children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -8773,7 +8890,7 @@ function MosaicOrgPanel({
|
|
|
8773
8890
|
const { isMobile } = useDevice();
|
|
8774
8891
|
const [activeTab, setActiveTab] = React27__namespace.useState(defaultTab ?? tabs[0]?.id ?? "");
|
|
8775
8892
|
const activeContent = tabs.find((t) => t.id === activeTab)?.content;
|
|
8776
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "org-panel", className:
|
|
8893
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "org-panel", className: cn61("flex h-full flex-col", className), children: [
|
|
8777
8894
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "border-b border-border px-4 py-4 md:px-6", children: [
|
|
8778
8895
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start justify-between gap-4", children: [
|
|
8779
8896
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
@@ -8795,12 +8912,12 @@ function MosaicOrgPanel({
|
|
|
8795
8912
|
] }),
|
|
8796
8913
|
headerActions
|
|
8797
8914
|
] }),
|
|
8798
|
-
tabs.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
8915
|
+
tabs.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn61("mt-4 flex gap-1", isMobile && "overflow-x-auto"), children: tabs.map((tab) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
8799
8916
|
"button",
|
|
8800
8917
|
{
|
|
8801
8918
|
type: "button",
|
|
8802
8919
|
onClick: () => setActiveTab(tab.id),
|
|
8803
|
-
className:
|
|
8920
|
+
className: cn61(
|
|
8804
8921
|
"shrink-0 rounded-md px-3 py-1.5 text-sm font-medium transition-colors",
|
|
8805
8922
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
8806
8923
|
activeTab === tab.id ? "bg-primary text-primary-foreground" : "bg-muted text-muted-foreground hover:bg-accent hover:text-accent-foreground"
|
|
@@ -8814,7 +8931,7 @@ function MosaicOrgPanel({
|
|
|
8814
8931
|
] });
|
|
8815
8932
|
}
|
|
8816
8933
|
MosaicOrgPanel.displayName = "MosaicOrgPanel";
|
|
8817
|
-
function
|
|
8934
|
+
function cn62(...classes) {
|
|
8818
8935
|
return classes.filter(Boolean).join(" ");
|
|
8819
8936
|
}
|
|
8820
8937
|
var ANIM_ID8 = "mosaic-dashboard-content-kf";
|
|
@@ -8851,7 +8968,7 @@ function MosaicDashboardContent({
|
|
|
8851
8968
|
"div",
|
|
8852
8969
|
{
|
|
8853
8970
|
"data-slot": "dashboard-content",
|
|
8854
|
-
className:
|
|
8971
|
+
className: cn62("h-full overflow-auto", isMobile ? "p-4" : "p-6", className),
|
|
8855
8972
|
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: [
|
|
8856
8973
|
"View not found: ",
|
|
8857
8974
|
currentView
|
|
@@ -8860,7 +8977,7 @@ function MosaicDashboardContent({
|
|
|
8860
8977
|
);
|
|
8861
8978
|
}
|
|
8862
8979
|
MosaicDashboardContent.displayName = "MosaicDashboardContent";
|
|
8863
|
-
function
|
|
8980
|
+
function cn63(...classes) {
|
|
8864
8981
|
return classes.filter(Boolean).join(" ");
|
|
8865
8982
|
}
|
|
8866
8983
|
var ANIM_ID9 = "mosaic-dashboard-header2-kf";
|
|
@@ -8970,16 +9087,16 @@ function MosaicDashboardHeader({
|
|
|
8970
9087
|
"header",
|
|
8971
9088
|
{
|
|
8972
9089
|
"data-slot": "dashboard-header",
|
|
8973
|
-
className:
|
|
9090
|
+
className: cn63(
|
|
8974
9091
|
"mosaic-dashboard-header2",
|
|
8975
9092
|
"sticky top-0 z-40 border-b border-border/50 bg-background/80 backdrop-blur-sm",
|
|
8976
9093
|
className
|
|
8977
9094
|
),
|
|
8978
|
-
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
9095
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn63(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: [
|
|
8979
9096
|
/* @__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: [
|
|
8980
9097
|
logoSlot ?? /* @__PURE__ */ jsxRuntime.jsx(SparklesIcon4, {}),
|
|
8981
9098
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-w-0", children: [
|
|
8982
|
-
/* @__PURE__ */ jsxRuntime.jsx("h1", { className:
|
|
9099
|
+
/* @__PURE__ */ jsxRuntime.jsx("h1", { className: cn63("font-semibold truncate", isMobile ? "text-lg" : "text-xl"), children: title }),
|
|
8983
9100
|
subtitle && !isMobile && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-muted-foreground truncate", children: subtitle })
|
|
8984
9101
|
] })
|
|
8985
9102
|
] }) }),
|
|
@@ -8992,7 +9109,7 @@ function MosaicDashboardHeader({
|
|
|
8992
9109
|
value: searchQuery,
|
|
8993
9110
|
onChange: handleSearch,
|
|
8994
9111
|
placeholder: "Search\u2026",
|
|
8995
|
-
className:
|
|
9112
|
+
className: cn63(
|
|
8996
9113
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
8997
9114
|
"text-sm placeholder:text-muted-foreground",
|
|
8998
9115
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -9032,7 +9149,7 @@ function MosaicDashboardHeader({
|
|
|
9032
9149
|
);
|
|
9033
9150
|
}
|
|
9034
9151
|
MosaicDashboardHeader.displayName = "MosaicDashboardHeader";
|
|
9035
|
-
function
|
|
9152
|
+
function cn64(...classes) {
|
|
9036
9153
|
return classes.filter(Boolean).join(" ");
|
|
9037
9154
|
}
|
|
9038
9155
|
function ChevronDownIcon4() {
|
|
@@ -9113,13 +9230,13 @@ function MosaicOrgSwitcher({
|
|
|
9113
9230
|
}, [open]);
|
|
9114
9231
|
if (!currentOrg && organizations.length === 0 && !onCreateOrg) return null;
|
|
9115
9232
|
const initials = currentOrg?.name.split(" ").map((n) => n[0]).filter(Boolean).slice(0, 2).join("").toUpperCase() ?? "?";
|
|
9116
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, "data-slot": "org-switcher", className:
|
|
9233
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, "data-slot": "org-switcher", className: cn64("relative", className), children: [
|
|
9117
9234
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
9118
9235
|
"button",
|
|
9119
9236
|
{
|
|
9120
9237
|
type: "button",
|
|
9121
9238
|
onClick: () => setOpen((v) => !v),
|
|
9122
|
-
className:
|
|
9239
|
+
className: cn64(
|
|
9123
9240
|
"inline-flex items-center gap-2 rounded-md border border-border bg-background px-3 py-1.5",
|
|
9124
9241
|
"text-sm font-medium text-foreground",
|
|
9125
9242
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -9146,7 +9263,7 @@ function MosaicOrgSwitcher({
|
|
|
9146
9263
|
{
|
|
9147
9264
|
role: "menu",
|
|
9148
9265
|
"aria-label": "Select organization",
|
|
9149
|
-
className:
|
|
9266
|
+
className: cn64(
|
|
9150
9267
|
"absolute left-0 top-full z-50 mt-1 min-w-[200px] rounded-md border border-border",
|
|
9151
9268
|
"bg-popover py-1 shadow-md"
|
|
9152
9269
|
),
|
|
@@ -9161,7 +9278,7 @@ function MosaicOrgSwitcher({
|
|
|
9161
9278
|
onSelectOrg?.(org.id);
|
|
9162
9279
|
setOpen(false);
|
|
9163
9280
|
},
|
|
9164
|
-
className:
|
|
9281
|
+
className: cn64(
|
|
9165
9282
|
"flex w-full items-center gap-2.5 px-3 py-2 text-sm text-foreground",
|
|
9166
9283
|
"hover:bg-accent hover:text-accent-foreground",
|
|
9167
9284
|
org.id === currentOrgId && "bg-primary/10 text-primary"
|
|
@@ -9198,7 +9315,7 @@ function MosaicOrgSwitcher({
|
|
|
9198
9315
|
] });
|
|
9199
9316
|
}
|
|
9200
9317
|
MosaicOrgSwitcher.displayName = "MosaicOrgSwitcher";
|
|
9201
|
-
function
|
|
9318
|
+
function cn65(...classes) {
|
|
9202
9319
|
return classes.filter(Boolean).join(" ");
|
|
9203
9320
|
}
|
|
9204
9321
|
function PlusIcon7() {
|
|
@@ -9242,19 +9359,19 @@ function MosaicQuickActionsMenu({
|
|
|
9242
9359
|
document.addEventListener("mousedown", h);
|
|
9243
9360
|
return () => document.removeEventListener("mousedown", h);
|
|
9244
9361
|
}, [open]);
|
|
9245
|
-
const itemClass =
|
|
9362
|
+
const itemClass = cn65(
|
|
9246
9363
|
"flex w-full items-center gap-2 px-3 py-2 text-sm text-foreground",
|
|
9247
9364
|
"hover:bg-accent hover:text-accent-foreground",
|
|
9248
9365
|
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
9249
9366
|
"min-h-[44px]"
|
|
9250
9367
|
);
|
|
9251
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, "data-slot": "quick-actions-menu", className:
|
|
9368
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, "data-slot": "quick-actions-menu", className: cn65("relative", className), children: [
|
|
9252
9369
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
9253
9370
|
"button",
|
|
9254
9371
|
{
|
|
9255
9372
|
type: "button",
|
|
9256
9373
|
onClick: () => setOpen((v) => !v),
|
|
9257
|
-
className:
|
|
9374
|
+
className: cn65(
|
|
9258
9375
|
"inline-flex items-center justify-center gap-2 rounded-md border border-border bg-background",
|
|
9259
9376
|
"min-h-[44px] min-w-[44px] px-3 py-2 text-sm font-medium text-foreground",
|
|
9260
9377
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -9265,7 +9382,7 @@ function MosaicQuickActionsMenu({
|
|
|
9265
9382
|
"aria-label": label,
|
|
9266
9383
|
children: [
|
|
9267
9384
|
triggerIcon ?? /* @__PURE__ */ jsxRuntime.jsx(PlusIcon7, {}),
|
|
9268
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
9385
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: cn65("hidden md:inline"), children: label })
|
|
9269
9386
|
]
|
|
9270
9387
|
}
|
|
9271
9388
|
),
|
|
@@ -9274,13 +9391,13 @@ function MosaicQuickActionsMenu({
|
|
|
9274
9391
|
{
|
|
9275
9392
|
role: "menu",
|
|
9276
9393
|
"aria-label": menuTitle,
|
|
9277
|
-
className:
|
|
9394
|
+
className: cn65(
|
|
9278
9395
|
"absolute right-0 top-full z-50 mt-1 rounded-md border border-border bg-popover py-1 shadow-md",
|
|
9279
9396
|
isMobile ? "w-[min(90vw,280px)]" : "w-56"
|
|
9280
9397
|
),
|
|
9281
9398
|
children: [
|
|
9282
9399
|
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 }) }),
|
|
9283
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
9400
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: cn65(menuTitle && "border-t border-border") }),
|
|
9284
9401
|
actions.map((action) => /* @__PURE__ */ jsxRuntime.jsxs(React27__namespace.Fragment, { children: [
|
|
9285
9402
|
action.separator && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "my-1 border-t border-border" }),
|
|
9286
9403
|
action.href && renderLink ? renderLink(
|
|
@@ -9767,6 +9884,7 @@ exports.MosaicFieldControl = MosaicFieldControl;
|
|
|
9767
9884
|
exports.MosaicFieldDescription = MosaicFieldDescription;
|
|
9768
9885
|
exports.MosaicFieldError = MosaicFieldError;
|
|
9769
9886
|
exports.MosaicFieldLabel = MosaicFieldLabel;
|
|
9887
|
+
exports.MosaicFilterBar = MosaicFilterBar;
|
|
9770
9888
|
exports.MosaicFilterSidebar = MosaicFilterSidebar;
|
|
9771
9889
|
exports.MosaicFooterSimple = MosaicFooterSimple;
|
|
9772
9890
|
exports.MosaicHeroSplit = MosaicHeroSplit;
|
|
@@ -9810,6 +9928,7 @@ exports.MosaicSelectorModal = MosaicSelectorModal;
|
|
|
9810
9928
|
exports.MosaicSeparator = MosaicSeparator;
|
|
9811
9929
|
exports.MosaicSignInLayout = MosaicSignInLayout;
|
|
9812
9930
|
exports.MosaicSignUpLayout = MosaicSignUpLayout;
|
|
9931
|
+
exports.MosaicSkeleton = MosaicSkeleton;
|
|
9813
9932
|
exports.MosaicSlider = MosaicSlider;
|
|
9814
9933
|
exports.MosaicStatsGrid = MosaicStatsGrid;
|
|
9815
9934
|
exports.MosaicSwitch = MosaicSwitch;
|
|
@@ -9829,6 +9948,7 @@ exports.MosaicUserButton = MosaicUserButton;
|
|
|
9829
9948
|
exports.Placeholder = Placeholder;
|
|
9830
9949
|
exports.badgeVariants = badgeVariants;
|
|
9831
9950
|
exports.buttonVariants = buttonVariants;
|
|
9951
|
+
exports.skeletonVariants = skeletonVariants;
|
|
9832
9952
|
exports.useBreakpoint = useBreakpoint;
|
|
9833
9953
|
exports.useDevice = useDevice;
|
|
9834
9954
|
exports.useEffectiveWorkspaceId = useMosaicWorkspace;
|