@vantageos/mosaic-blocks 0.1.0-alpha.1

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.
@@ -0,0 +1,968 @@
1
+ import * as React from 'react';
2
+ import * as class_variance_authority_types from 'class-variance-authority/types';
3
+ import { Button } from '@base-ui/react/button';
4
+ import { VariantProps } from 'class-variance-authority';
5
+ import { Avatar } from '@base-ui/react/avatar';
6
+ import { Input } from '@base-ui/react/input';
7
+ import { Field } from '@base-ui/react/field';
8
+ import { Switch } from '@base-ui/react/switch';
9
+
10
+ declare const version = "0.1.0-alpha.1";
11
+
12
+ /**
13
+ * Placeholder component — infra scaffold only.
14
+ * Remove when T3/T4 lands real blocks.
15
+ */
16
+ interface PlaceholderProps {
17
+ label?: string;
18
+ }
19
+ declare function Placeholder({ label }: PlaceholderProps): React.JSX.Element;
20
+
21
+ declare const buttonVariants: (props?: ({
22
+ variant?: "link" | "default" | "secondary" | "ghost" | "destructive" | "outline" | null | undefined;
23
+ size?: "default" | "sm" | "lg" | "icon" | "icon-sm" | "icon-lg" | null | undefined;
24
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
25
+ interface MosaicButtonProps extends Button.Props, VariantProps<typeof buttonVariants> {
26
+ className?: string;
27
+ }
28
+ /**
29
+ * MosaicButton — production Button atom for @vantageos/mosaic-blocks.
30
+ *
31
+ * Built on @base-ui/react/button (ADR-0001). Headless, accessible by default.
32
+ * Accepts all native button props + variant/size from cva.
33
+ *
34
+ * @example
35
+ * <MosaicButton variant="secondary" size="lg">Save</MosaicButton>
36
+ * <MosaicButton variant="destructive" disabled>Delete</MosaicButton>
37
+ */
38
+ declare const MosaicButton: React.ForwardRefExoticComponent<Omit<MosaicButtonProps, "ref"> & React.RefAttributes<HTMLElement>>;
39
+
40
+ /**
41
+ * MosaicNavbar — scroll-aware fixed navbar
42
+ *
43
+ * Ported from heyfabrika/styleui components/templates/axis/navbar.tsx (MIT).
44
+ * Adapted: props-driven (no hardcoded links/logo/cta), no next/router dependency,
45
+ * motion/react replaced with CSS transitions for bundle budget.
46
+ * Scroll hide-on-scroll-down via native scroll listener.
47
+ */
48
+
49
+ interface NavLink {
50
+ label: string;
51
+ href: string;
52
+ }
53
+ interface NavCta {
54
+ label: string;
55
+ href: string;
56
+ }
57
+ interface MosaicNavbarProps {
58
+ /** Logo node (image, svg, or text). All branding via this prop. */
59
+ logo: React.ReactNode;
60
+ /** Navigation links */
61
+ links: NavLink[];
62
+ /** Optional CTA button */
63
+ cta?: NavCta;
64
+ className?: string;
65
+ }
66
+ /**
67
+ * MosaicNavbar — fixed top navbar with scroll-aware hide-on-scroll-down and
68
+ * blur backdrop on scroll. Mobile menu included. All content via props.
69
+ *
70
+ * @example
71
+ * <MosaicNavbar
72
+ * logo={<img src="/logo.svg" alt="Brand" className="h-8 w-auto" />}
73
+ * links={[{ label: "Features", href: "#features" }, { label: "Pricing", href: "#pricing" }]}
74
+ * cta={{ label: "Get started", href: "#start" }}
75
+ * />
76
+ */
77
+ declare const MosaicNavbar: React.ForwardRefExoticComponent<MosaicNavbarProps & React.RefAttributes<HTMLElement>>;
78
+
79
+ /**
80
+ * MosaicHeroSplit — split hero section
81
+ *
82
+ * Ported from heyfabrika/styleui components/templates/axis/hero.tsx (MIT).
83
+ * Adapted: fully props-driven, no hardcoded copy/images/branding.
84
+ * Motion: CSS fade-up via Tailwind animate utilities (@keyframes in globals).
85
+ * Media slot: accepts any React node (image, illustration, video, etc.).
86
+ */
87
+
88
+ interface HeroCta {
89
+ label: string;
90
+ href: string;
91
+ }
92
+ interface MosaicHeroSplitProps {
93
+ /** Small badge text above the title */
94
+ eyebrow?: string;
95
+ /** Main heading — the primary message */
96
+ title: React.ReactNode;
97
+ /** Supporting paragraph */
98
+ subtitle: React.ReactNode;
99
+ /** Primary CTA */
100
+ cta?: HeroCta;
101
+ /** Secondary CTA */
102
+ ctaSecondary?: HeroCta;
103
+ /** Right-column media slot — accepts img, video, SVG, or any node */
104
+ media?: React.ReactNode;
105
+ className?: string;
106
+ }
107
+ /**
108
+ * MosaicHeroSplit — two-column hero: copy on left, media on right.
109
+ * Falls back to centered single-column when no media provided.
110
+ *
111
+ * @example
112
+ * <MosaicHeroSplit
113
+ * eyebrow="New"
114
+ * title="The platform built for modern teams"
115
+ * subtitle="Ship faster, collaborate smarter."
116
+ * cta={{ label: "Start free", href: "/signup" }}
117
+ * media={<img src="/hero.png" alt="Product screenshot" className="w-full rounded-2xl" />}
118
+ * />
119
+ */
120
+ declare const MosaicHeroSplit: React.ForwardRefExoticComponent<MosaicHeroSplitProps & React.RefAttributes<HTMLElement>>;
121
+
122
+ /**
123
+ * MosaicFeatureCenteredMedia — centered feature section with media
124
+ *
125
+ * Ported from heyfabrika/styleui components/templates/axis/feature.tsx (MIT).
126
+ * Adapted: props-driven features list + media slot. No hardcoded copy.
127
+ * Layout: text header centered, media centered below.
128
+ */
129
+
130
+ interface FeatureItem {
131
+ id: string;
132
+ title: string;
133
+ description: string;
134
+ }
135
+ interface MosaicFeatureCenteredMediaProps {
136
+ /** Section heading */
137
+ title: React.ReactNode;
138
+ /** Section subtext / body */
139
+ body: React.ReactNode;
140
+ /** Optional feature list — rendered in a grid below the heading */
141
+ features?: FeatureItem[];
142
+ /** Media slot — centered below or beside the text */
143
+ media?: React.ReactNode;
144
+ className?: string;
145
+ }
146
+ /**
147
+ * MosaicFeatureCenteredMedia — centered heading + body, optional feature grid,
148
+ * centered media below. Media slot accepts any React node.
149
+ *
150
+ * @example
151
+ * <MosaicFeatureCenteredMedia
152
+ * title="Everything you need"
153
+ * body="Built for teams that move fast."
154
+ * features={[{ id: "f1", title: "Fast", description: "Deploy in seconds." }]}
155
+ * media={<img src="/feature.png" alt="Feature screenshot" className="w-full rounded-2xl" />}
156
+ * />
157
+ */
158
+ declare const MosaicFeatureCenteredMedia: React.ForwardRefExoticComponent<MosaicFeatureCenteredMediaProps & React.RefAttributes<HTMLElement>>;
159
+
160
+ /**
161
+ * MosaicStatsGrid — statistics grid section
162
+ *
163
+ * Ported from heyfabrika/styleui components/templates/axis/stats.tsx (MIT).
164
+ * Adapted: props-driven stats array (label + value as strings — no animated counter
165
+ * dependency for portability; consumers may wrap value in their own counter component).
166
+ * Grid layout: border-grid pattern for visual rhythm.
167
+ */
168
+
169
+ interface StatItem {
170
+ /** Stat numeric or string value, e.g. "10K+" or "99.9%" */
171
+ value: string;
172
+ /** Human-readable label, e.g. "Active users" */
173
+ label: string;
174
+ }
175
+ interface MosaicStatsGridProps {
176
+ /** Array of stats to display */
177
+ stats: StatItem[];
178
+ /** Optional section heading */
179
+ heading?: React.ReactNode;
180
+ /** Optional section subtext */
181
+ subtext?: React.ReactNode;
182
+ className?: string;
183
+ }
184
+ /**
185
+ * MosaicStatsGrid — border-grid layout for 2–6 stats. Values are plain strings;
186
+ * wrap in an animated counter component at the consumer level if needed.
187
+ *
188
+ * @example
189
+ * <MosaicStatsGrid
190
+ * heading="Trusted by thousands"
191
+ * stats={[
192
+ * { value: "10K+", label: "Active users" },
193
+ * { value: "99.9%", label: "Uptime" },
194
+ * { value: "50+", label: "Countries" },
195
+ * ]}
196
+ * />
197
+ */
198
+ declare const MosaicStatsGrid: React.ForwardRefExoticComponent<MosaicStatsGridProps & React.RefAttributes<HTMLElement>>;
199
+
200
+ /**
201
+ * MosaicPricingCard — single pricing tier card
202
+ *
203
+ * Ported from heyfabrika/styleui blocks/pricing/pricing-card.tsx (MIT).
204
+ * Adapted: props-driven (tier, price, features, cta, highlighted).
205
+ * No shadcn Card/Badge imports — self-contained for lib portability.
206
+ * Styling: Tailwind v4 + OKLCH tokens.
207
+ */
208
+
209
+ interface PricingCta {
210
+ label: string;
211
+ href: string;
212
+ }
213
+ interface MosaicPricingCardProps {
214
+ /** Tier name, e.g. "Free", "Pro", "Enterprise" */
215
+ tier: string;
216
+ /** Price string, e.g. "$19/mo" or "Free" */
217
+ price: string;
218
+ /** Feature list items */
219
+ features: string[];
220
+ /** CTA button config */
221
+ cta: PricingCta;
222
+ /** Highlighted tier — renders with accent border + tinted background */
223
+ highlighted?: boolean;
224
+ className?: string;
225
+ }
226
+ /**
227
+ * MosaicPricingCard — a single pricing tier. Compose multiple inside a flex/grid
228
+ * wrapper to build a full pricing section.
229
+ *
230
+ * @example
231
+ * <MosaicPricingCard
232
+ * tier="Pro"
233
+ * price="$19/mo"
234
+ * features={["Unlimited projects", "Priority support", "Custom domain"]}
235
+ * cta={{ label: "Get started", href: "/signup/pro" }}
236
+ * highlighted
237
+ * />
238
+ */
239
+ declare const MosaicPricingCard: React.ForwardRefExoticComponent<MosaicPricingCardProps & React.RefAttributes<HTMLDivElement>>;
240
+
241
+ /**
242
+ * MosaicLogosGrid — logo cloud / partner logos grid
243
+ *
244
+ * Ported from heyfabrika/styleui blocks/logo-cloud.tsx (MIT).
245
+ * Adapted: fully props-driven logos array (name, src, width, height).
246
+ * No next/image dependency (lib-portable), uses native <img> with role.
247
+ * No motion/react dependency — CSS opacity transition only.
248
+ */
249
+
250
+ interface LogoItem {
251
+ /** Alt text / brand name */
252
+ name: string;
253
+ /** Image src URL */
254
+ src: string;
255
+ /** Optional explicit width (defaults to 80) */
256
+ width?: number;
257
+ /** Optional explicit height (defaults to 80) */
258
+ height?: number;
259
+ }
260
+ interface MosaicLogosGridProps {
261
+ /** Array of logos to display */
262
+ logos: LogoItem[];
263
+ /** Optional heading text above the grid */
264
+ heading?: React.ReactNode;
265
+ className?: string;
266
+ }
267
+ /**
268
+ * MosaicLogosGrid — wrapping flex grid of partner/integration logos.
269
+ * Pass `heading` for a "Trusted by" label above the logos.
270
+ *
271
+ * @example
272
+ * <MosaicLogosGrid
273
+ * heading="Trusted by leading teams"
274
+ * logos={[
275
+ * { name: "Notion", src: "/logos/notion.svg", width: 100, height: 40 },
276
+ * { name: "Slack", src: "/logos/slack.svg", width: 80, height: 80 },
277
+ * ]}
278
+ * />
279
+ */
280
+ declare const MosaicLogosGrid: React.ForwardRefExoticComponent<MosaicLogosGridProps & React.RefAttributes<HTMLElement>>;
281
+
282
+ /**
283
+ * MosaicTestimonialsGrid — testimonials masonry-style grid
284
+ *
285
+ * Ported from heyfabrika/styleui blocks/testimonial/testimonial.tsx (MIT).
286
+ * Adapted: fully props-driven testimonials array. No shadcn Card/Avatar.
287
+ * Layout: 6-col grid (featured first item spans 3, rest stack 3+3).
288
+ * Falls back to uniform 2-col for 2 items, 3-col for 3+.
289
+ */
290
+
291
+ interface TestimonialItem {
292
+ /** Stable unique identifier */
293
+ id: string;
294
+ /** Quote text */
295
+ quote: string;
296
+ /** Author full name */
297
+ author: string;
298
+ /** Author role / title */
299
+ role: string;
300
+ /** Optional avatar src */
301
+ avatar?: string;
302
+ /** Optional company/brand logo src */
303
+ logo?: string;
304
+ }
305
+ interface MosaicTestimonialsGridProps {
306
+ /** Testimonials to render */
307
+ testimonials: TestimonialItem[];
308
+ /** Optional section heading */
309
+ heading?: React.ReactNode;
310
+ className?: string;
311
+ }
312
+ /**
313
+ * MosaicTestimonialsGrid — masonry-style testimonial grid.
314
+ * First item spans full-width on mobile, half on md; rest fill remaining slots.
315
+ *
316
+ * @example
317
+ * <MosaicTestimonialsGrid
318
+ * heading="What our customers say"
319
+ * testimonials={[
320
+ * { id: "t1", quote: "...", author: "Alice", role: "CTO", avatar: "/a.jpg" },
321
+ * { id: "t2", quote: "...", author: "Bob", role: "Designer" },
322
+ * ]}
323
+ * />
324
+ */
325
+ declare const MosaicTestimonialsGrid: React.ForwardRefExoticComponent<MosaicTestimonialsGridProps & React.RefAttributes<HTMLElement>>;
326
+
327
+ /**
328
+ * MosaicFooterSimple — simple multi-column footer
329
+ *
330
+ * Ported from heyfabrika/styleui components/templates/axis/footer.tsx (MIT).
331
+ * Adapted: props-driven columns (heading + links), legal text, social links.
332
+ * No next/image or next/link — lib-portable.
333
+ */
334
+
335
+ interface FooterLink {
336
+ label: string;
337
+ href: string;
338
+ }
339
+ interface FooterColumn {
340
+ /** Stable unique identifier */
341
+ id: string;
342
+ /** Column heading */
343
+ heading: string;
344
+ /** Links in this column */
345
+ links: FooterLink[];
346
+ }
347
+ interface SocialLink {
348
+ label: string;
349
+ href: string;
350
+ /** Optional icon — renders as img if src provided, else renders label text */
351
+ iconSrc?: string;
352
+ }
353
+ interface MosaicFooterSimpleProps {
354
+ /** Footer link columns */
355
+ columns: FooterColumn[];
356
+ /** Legal / copyright string */
357
+ legal: string;
358
+ /** Optional logo node */
359
+ logo?: React.ReactNode;
360
+ /** Optional social icon links */
361
+ social?: SocialLink[];
362
+ className?: string;
363
+ }
364
+ /**
365
+ * MosaicFooterSimple — footer with columns of links, optional logo, social
366
+ * links, and legal text. All content via props.
367
+ *
368
+ * @example
369
+ * <MosaicFooterSimple
370
+ * logo={<img src="/logo.svg" alt="Brand" className="h-8 w-auto" />}
371
+ * columns={[
372
+ * { id: "c1", heading: "Product", links: [{ label: "Features", href: "#" }] },
373
+ * { id: "c2", heading: "Company", links: [{ label: "About", href: "#" }] },
374
+ * ]}
375
+ * social={[{ label: "Twitter", href: "https://x.com", iconSrc: "/icons/x.svg" }]}
376
+ * legal="© 2026 Mosaic. All rights reserved."
377
+ * />
378
+ */
379
+ declare const MosaicFooterSimple: React.ForwardRefExoticComponent<MosaicFooterSimpleProps & React.RefAttributes<HTMLElement>>;
380
+
381
+ /**
382
+ * MosaicCounter — animated metric count-up
383
+ *
384
+ * Ported from heyfabrika/styleui components/counter (MIT).
385
+ * Animation decision: requestAnimationFrame with easeOutExpo — no `motion` dependency.
386
+ * styleui uses CSS + JS approach; we match with rAF for bundle budget savings (~0 kb added).
387
+ * Bundle impact: 0 extra deps (pure rAF).
388
+ */
389
+
390
+ interface MosaicCounterProps {
391
+ /** Target numeric value to count to */
392
+ value: number;
393
+ /** Animation duration in ms (default 1500) */
394
+ duration?: number;
395
+ /** Optional format function applied to the current number */
396
+ format?: (value: number) => string;
397
+ className?: string;
398
+ }
399
+ /**
400
+ * MosaicCounter — counts up from 0 to `value` on mount using requestAnimationFrame.
401
+ * No external animation library required. Respects prefers-reduced-motion.
402
+ *
403
+ * @example
404
+ * <MosaicCounter value={10000} duration={2000} format={(v) => `${Math.round(v).toLocaleString()}+`} />
405
+ */
406
+ declare const MosaicCounter: React.ForwardRefExoticComponent<MosaicCounterProps & React.RefAttributes<HTMLSpanElement>>;
407
+
408
+ /**
409
+ * MosaicThemeToggle — light / dark / system theme toggle
410
+ *
411
+ * Ported from heyfabrika/styleui components/theme-toggle (MIT).
412
+ * Flips `data-theme` attribute on document.documentElement.
413
+ * Theme-reactive: reads current state from DOM on mount.
414
+ * No hardcoded branding — icon is a pure SVG, all color via OKLCH CSS vars.
415
+ */
416
+
417
+ type Theme = "light" | "dark" | "system";
418
+ interface MosaicThemeToggleProps {
419
+ /**
420
+ * Ordered list of theme values to cycle through.
421
+ * Default: ["light", "dark"]
422
+ */
423
+ themes?: Theme[];
424
+ /** Called with the new theme string after each toggle */
425
+ onChange?: (theme: Theme) => void;
426
+ className?: string;
427
+ /** aria-label for the toggle button */
428
+ label?: string;
429
+ }
430
+ /**
431
+ * MosaicThemeToggle — cycles through themes, setting `data-theme` on
432
+ * document.documentElement. Works with any OKLCH-var-based CSS theme.
433
+ *
434
+ * @example
435
+ * <MosaicThemeToggle onChange={(t) => console.log("theme:", t)} />
436
+ */
437
+ declare const MosaicThemeToggle: React.ForwardRefExoticComponent<MosaicThemeToggleProps & React.RefAttributes<HTMLButtonElement>>;
438
+
439
+ /**
440
+ * MosaicBlurredOrb — decorative blurred gradient orb background
441
+ *
442
+ * Ported from heyfabrika/styleui components/blurred-orb (MIT).
443
+ * Pure CSS/SVG — zero JS animation, zero extra deps.
444
+ * Purely decorative: aria-hidden="true".
445
+ * Colors via OKLCH props — no hardcoded branding.
446
+ */
447
+
448
+ interface OrbPosition {
449
+ top?: string;
450
+ right?: string;
451
+ bottom?: string;
452
+ left?: string;
453
+ }
454
+ interface MosaicBlurredOrbProps {
455
+ /**
456
+ * Array of 1–3 OKLCH color strings.
457
+ * Default: ["oklch(0.7 0.15 250)", "oklch(0.65 0.18 290)"]
458
+ */
459
+ colors?: string[];
460
+ /** Orb diameter in pixels (default 500) */
461
+ size?: number;
462
+ /** CSS position values — absolute positioning anchors */
463
+ position?: OrbPosition;
464
+ /** Blur strength in pixels (default 80) */
465
+ blur?: number;
466
+ /** Opacity 0–1 (default 0.6) */
467
+ opacity?: number;
468
+ className?: string;
469
+ }
470
+ /**
471
+ * MosaicBlurredOrb — absolutely-positioned blurred gradient blob.
472
+ * Wrap the parent container in `position: relative; overflow: hidden`.
473
+ *
474
+ * @example
475
+ * <div className="relative overflow-hidden">
476
+ * <MosaicBlurredOrb
477
+ * colors={["oklch(0.7 0.2 250)", "oklch(0.6 0.15 300)"]}
478
+ * size={600}
479
+ * position={{ top: "-10%", left: "-5%" }}
480
+ * />
481
+ * <YourContent />
482
+ * </div>
483
+ */
484
+ declare const MosaicBlurredOrb: React.ForwardRefExoticComponent<MosaicBlurredOrbProps & React.RefAttributes<HTMLDivElement>>;
485
+
486
+ /**
487
+ * MosaicAnimatedList — staggered reveal list
488
+ *
489
+ * Ported from heyfabrika/styleui components/animated-list (MIT).
490
+ * Animation decision: CSS keyframe animation with inline `animation-delay` stagger.
491
+ * No `motion` dependency — saves ~45 kb gzip. This matches styleui's approach
492
+ * of preferring CSS-first animation for simple stagger reveals.
493
+ * Bundle impact: 0 extra deps (pure CSS animations).
494
+ * Respects prefers-reduced-motion.
495
+ */
496
+
497
+ interface MosaicAnimatedListProps {
498
+ /** Delay between each item animation in ms (default 80) */
499
+ stagger?: number;
500
+ children: React.ReactNode;
501
+ className?: string;
502
+ /** Wrapper element tag (default "ul") */
503
+ as?: "ul" | "ol" | "div";
504
+ }
505
+ /**
506
+ * MosaicAnimatedList — wraps children in a list, stagger-revealing each item
507
+ * on mount via CSS keyframe animations. Accessible: respects prefers-reduced-motion.
508
+ *
509
+ * @example
510
+ * <MosaicAnimatedList stagger={100}>
511
+ * <li>First feature</li>
512
+ * <li>Second feature</li>
513
+ * <li>Third feature</li>
514
+ * </MosaicAnimatedList>
515
+ */
516
+ declare const MosaicAnimatedList: React.ForwardRefExoticComponent<MosaicAnimatedListProps & React.RefAttributes<HTMLElement>>;
517
+
518
+ /**
519
+ * MosaicIntegrationsBadge — integration badge / pill
520
+ *
521
+ * Ported from heyfabrika/styleui components/integrations-badge (MIT).
522
+ * Props-driven: logo slot (ReactNode), label string, optional href.
523
+ * Theme-reactive via OKLCH CSS variables; no hardcoded branding colors.
524
+ * Zero extra deps — pure HTML/CSS.
525
+ */
526
+
527
+ interface MosaicIntegrationsBadgeProps {
528
+ /** Badge label text (e.g. "Stripe", "GitHub") */
529
+ label: string;
530
+ /** Optional logo/icon slot — use <img>, <svg>, or any ReactNode */
531
+ logo?: React.ReactNode;
532
+ /** When provided, renders the badge as an <a> tag */
533
+ href?: string;
534
+ /** Link target (default "_blank" for external links) */
535
+ target?: React.HTMLAttributeAnchorTarget;
536
+ className?: string;
537
+ }
538
+ /**
539
+ * MosaicIntegrationsBadge — pill-shaped badge showing a logo + label.
540
+ * Renders as `<a>` when `href` is provided.
541
+ *
542
+ * @example
543
+ * <MosaicIntegrationsBadge
544
+ * label="Stripe"
545
+ * logo={<img src="/stripe-logo.svg" alt="" width={16} height={16} />}
546
+ * href="https://stripe.com"
547
+ * />
548
+ */
549
+ declare const MosaicIntegrationsBadge: React.ForwardRefExoticComponent<MosaicIntegrationsBadgeProps & React.RefAttributes<HTMLAnchorElement & HTMLSpanElement>>;
550
+
551
+ /**
552
+ * MosaicFallingPattern — animated grid/dot background pattern
553
+ *
554
+ * Ported from heyfabrika/styleui components/grid-pattern / falling-pattern (MIT).
555
+ * Implementation: SVG pattern + CSS animation for "falling" dot effect.
556
+ * Zero extra deps — pure SVG/CSS.
557
+ * Purely decorative: aria-hidden="true".
558
+ * Color via prop (OKLCH string) — no hardcoded branding.
559
+ */
560
+
561
+ interface MosaicFallingPatternProps {
562
+ /**
563
+ * Number of columns in the grid (default 12).
564
+ * Higher = denser pattern.
565
+ */
566
+ density?: number;
567
+ /**
568
+ * Dot/grid line color (default "oklch(0.85 0.005 250)").
569
+ * Accepts any CSS color string — use OKLCH for theme-reactive behavior.
570
+ */
571
+ color?: string;
572
+ /** Animation duration for one full cycle in ms (default 4000) */
573
+ animationDuration?: number;
574
+ className?: string;
575
+ }
576
+ /**
577
+ * MosaicFallingPattern — decorative animated dot-grid background.
578
+ * Position absolutely within a `relative overflow-hidden` container.
579
+ *
580
+ * @example
581
+ * <div className="relative overflow-hidden min-h-96">
582
+ * <MosaicFallingPattern density={14} color="oklch(0.8 0.05 250)" />
583
+ * <YourContent className="relative z-10" />
584
+ * </div>
585
+ */
586
+ declare const MosaicFallingPattern: React.ForwardRefExoticComponent<MosaicFallingPatternProps & React.RefAttributes<HTMLDivElement>>;
587
+
588
+ /**
589
+ * useMediaQuery — SSR-safe media query hook
590
+ *
591
+ * Ported from heyfabrika/styleui hooks/use-media-query.ts (MIT).
592
+ * SSR-safe: returns false during server render (no window access at render time).
593
+ * Subscribes via addEventListener("change") in useEffect only.
594
+ */
595
+ /**
596
+ * SSR-safe hook that returns true when the given CSS media query matches.
597
+ *
598
+ * @param query - A valid CSS media query string, e.g. "(min-width: 768px)"
599
+ * @returns boolean — false during SSR / before hydration, then reflects real match
600
+ *
601
+ * @example
602
+ * const isMd = useMediaQuery("(min-width: 768px)");
603
+ * const prefersDark = useMediaQuery("(prefers-color-scheme: dark)");
604
+ */
605
+ declare function useMediaQuery(query: string): boolean;
606
+
607
+ /**
608
+ * MosaicCard — style-only composable Card atom
609
+ *
610
+ * Composable sub-parts: Card + CardHeader + CardTitle + CardDescription +
611
+ * CardContent + CardFooter. Plain <div>s with data-slot attributes.
612
+ * No base-ui primitive needed — purely presentational.
613
+ *
614
+ * Design tokens: Tailwind v4 semantic classes only (bg-card, text-card-foreground,
615
+ * border-border). No hardcoded colors.
616
+ */
617
+
618
+ interface MosaicCardProps extends React.HTMLAttributes<HTMLDivElement> {
619
+ className?: string;
620
+ }
621
+ /**
622
+ * MosaicCard — root container with rounded border and background.
623
+ *
624
+ * @example
625
+ * <MosaicCard>
626
+ * <MosaicCardHeader>…</MosaicCardHeader>
627
+ * <MosaicCardContent>…</MosaicCardContent>
628
+ * <MosaicCardFooter>…</MosaicCardFooter>
629
+ * </MosaicCard>
630
+ */
631
+ declare const MosaicCard: React.ForwardRefExoticComponent<MosaicCardProps & React.RefAttributes<HTMLDivElement>>;
632
+ interface MosaicCardHeaderProps extends React.HTMLAttributes<HTMLDivElement> {
633
+ className?: string;
634
+ }
635
+ declare const MosaicCardHeader: React.ForwardRefExoticComponent<MosaicCardHeaderProps & React.RefAttributes<HTMLDivElement>>;
636
+ interface MosaicCardTitleProps extends React.HTMLAttributes<HTMLHeadingElement> {
637
+ className?: string;
638
+ }
639
+ declare const MosaicCardTitle: React.ForwardRefExoticComponent<MosaicCardTitleProps & React.RefAttributes<HTMLHeadingElement>>;
640
+ interface MosaicCardDescriptionProps extends React.HTMLAttributes<HTMLParagraphElement> {
641
+ className?: string;
642
+ }
643
+ declare const MosaicCardDescription: React.ForwardRefExoticComponent<MosaicCardDescriptionProps & React.RefAttributes<HTMLParagraphElement>>;
644
+ interface MosaicCardContentProps extends React.HTMLAttributes<HTMLDivElement> {
645
+ className?: string;
646
+ }
647
+ declare const MosaicCardContent: React.ForwardRefExoticComponent<MosaicCardContentProps & React.RefAttributes<HTMLDivElement>>;
648
+ interface MosaicCardFooterProps extends React.HTMLAttributes<HTMLDivElement> {
649
+ className?: string;
650
+ }
651
+ declare const MosaicCardFooter: React.ForwardRefExoticComponent<MosaicCardFooterProps & React.RefAttributes<HTMLDivElement>>;
652
+
653
+ declare const badgeVariants: (props?: ({
654
+ variant?: "default" | "secondary" | "destructive" | "outline" | null | undefined;
655
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
656
+ interface MosaicBadgeProps extends React.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof badgeVariants> {
657
+ className?: string;
658
+ }
659
+ /**
660
+ * MosaicBadge — inline status/label badge.
661
+ *
662
+ * @example
663
+ * <MosaicBadge>New</MosaicBadge>
664
+ * <MosaicBadge variant="destructive">Error</MosaicBadge>
665
+ * <MosaicBadge variant="outline">Beta</MosaicBadge>
666
+ */
667
+ declare const MosaicBadge: React.ForwardRefExoticComponent<MosaicBadgeProps & React.RefAttributes<HTMLSpanElement>>;
668
+
669
+ /**
670
+ * MosaicAvatar — built on @base-ui/react/avatar
671
+ *
672
+ * Uses Avatar.Root + Avatar.Image + Avatar.Fallback from @base-ui/react/avatar.
673
+ * Props: src, alt, fallback, className.
674
+ * data-slot attributes on root ("avatar"), image ("avatar-image"), fallback ("avatar-fallback").
675
+ *
676
+ * Design tokens: Tailwind v4 semantic classes (bg-muted, text-muted-foreground).
677
+ */
678
+
679
+ interface MosaicAvatarProps extends Avatar.Root.Props {
680
+ /** Image source URL */
681
+ src?: string;
682
+ /** Alt text for the image */
683
+ alt?: string;
684
+ /** Text or node rendered when image is absent or fails to load */
685
+ fallback: React.ReactNode;
686
+ className?: string;
687
+ }
688
+ /**
689
+ * MosaicAvatar — user avatar with automatic image fallback.
690
+ *
691
+ * @example
692
+ * <MosaicAvatar src="/user.png" alt="John" fallback="JD" />
693
+ * <MosaicAvatar fallback="AB" />
694
+ */
695
+ declare const MosaicAvatar: React.ForwardRefExoticComponent<Omit<MosaicAvatarProps, "ref"> & React.RefAttributes<HTMLSpanElement>>;
696
+
697
+ /**
698
+ * MosaicInput — built on @base-ui/react/input
699
+ *
700
+ * Uses the Input primitive from @base-ui/react/input which renders a native
701
+ * <input> element with Field integration and forwardRef.
702
+ * data-slot="input".
703
+ *
704
+ * Design tokens: Tailwind v4 semantic classes (bg-background, border-border,
705
+ * text-foreground, ring-ring). No hardcoded colors.
706
+ */
707
+
708
+ interface MosaicInputProps extends Input.Props {
709
+ className?: string;
710
+ }
711
+ /**
712
+ * MosaicInput — accessible text input built on @base-ui/react Input.
713
+ *
714
+ * Forwards ref to the underlying <input> element.
715
+ * Accepts all standard input props plus className.
716
+ *
717
+ * @example
718
+ * <MosaicInput placeholder="Search…" />
719
+ * <MosaicInput type="email" value={email} onChange={handleChange} />
720
+ */
721
+ declare const MosaicInput: React.ForwardRefExoticComponent<Omit<MosaicInputProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
722
+
723
+ /**
724
+ * MosaicInputGroup — composition wrapper for MosaicInput with addons
725
+ *
726
+ * Lays out an optional prefix addon + children (MosaicInput) + optional suffix
727
+ * horizontally. Plain <div> wrapper — no base-ui primitive needed.
728
+ * data-slot="input-group".
729
+ *
730
+ * Design tokens: Tailwind v4 semantic classes only.
731
+ */
732
+
733
+ interface MosaicInputGroupProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "prefix"> {
734
+ /** Element rendered before the input (icon, text addon, etc.) */
735
+ prefix?: React.ReactNode;
736
+ /** Element rendered after the input (icon, text addon, etc.) */
737
+ suffix?: React.ReactNode;
738
+ className?: string;
739
+ children: React.ReactNode;
740
+ }
741
+ /**
742
+ * MosaicInputGroup — wraps MosaicInput with optional prefix/suffix addons.
743
+ *
744
+ * @example
745
+ * <MosaicInputGroup prefix={<SearchIcon />}>
746
+ * <MosaicInput placeholder="Search…" />
747
+ * </MosaicInputGroup>
748
+ *
749
+ * <MosaicInputGroup
750
+ * prefix={<span>https://</span>}
751
+ * suffix={<span>.com</span>}
752
+ * >
753
+ * <MosaicInput placeholder="yoursite" />
754
+ * </MosaicInputGroup>
755
+ */
756
+ declare const MosaicInputGroup: React.ForwardRefExoticComponent<MosaicInputGroupProps & React.RefAttributes<HTMLDivElement>>;
757
+
758
+ /**
759
+ * MosaicField — @base-ui/react Field primitive
760
+ *
761
+ * Wires Field.Root + Field.Label + Field.Control + Field.Description + Field.Error
762
+ * with full a11y associations (htmlFor, aria-describedby, aria-errormessage).
763
+ *
764
+ * API: data-slot="field" on root. Compound component pattern via static props.
765
+ * Styling: Tailwind v4 semantic tokens only, no hardcoded colors.
766
+ */
767
+
768
+ interface MosaicFieldProps extends React.ComponentPropsWithoutRef<typeof Field.Root> {
769
+ className?: string;
770
+ }
771
+ interface MosaicFieldLabelProps extends React.ComponentPropsWithoutRef<typeof Field.Label> {
772
+ className?: string;
773
+ }
774
+ declare const MosaicFieldLabel: React.ForwardRefExoticComponent<MosaicFieldLabelProps & React.RefAttributes<HTMLLabelElement>>;
775
+ interface MosaicFieldControlProps extends React.ComponentPropsWithoutRef<typeof Field.Control> {
776
+ className?: string;
777
+ }
778
+ declare const MosaicFieldControl: React.ForwardRefExoticComponent<MosaicFieldControlProps & React.RefAttributes<HTMLElement>>;
779
+ interface MosaicFieldDescriptionProps extends React.ComponentPropsWithoutRef<typeof Field.Description> {
780
+ className?: string;
781
+ }
782
+ declare const MosaicFieldDescription: React.ForwardRefExoticComponent<MosaicFieldDescriptionProps & React.RefAttributes<HTMLParagraphElement>>;
783
+ interface MosaicFieldErrorProps extends React.ComponentPropsWithoutRef<typeof Field.Error> {
784
+ className?: string;
785
+ /** Force-show the error even without native validity state */
786
+ show?: boolean;
787
+ }
788
+ declare const MosaicFieldError: React.ForwardRefExoticComponent<MosaicFieldErrorProps & React.RefAttributes<HTMLDivElement>>;
789
+ declare const MosaicField: React.ForwardRefExoticComponent<MosaicFieldProps & React.RefAttributes<HTMLDivElement>> & {
790
+ Label: React.ForwardRefExoticComponent<MosaicFieldLabelProps & React.RefAttributes<HTMLLabelElement>>;
791
+ Control: React.ForwardRefExoticComponent<MosaicFieldControlProps & React.RefAttributes<HTMLElement>>;
792
+ Description: React.ForwardRefExoticComponent<MosaicFieldDescriptionProps & React.RefAttributes<HTMLParagraphElement>>;
793
+ Error: React.ForwardRefExoticComponent<MosaicFieldErrorProps & React.RefAttributes<HTMLDivElement>>;
794
+ };
795
+
796
+ /**
797
+ * MosaicSwitch — @base-ui/react Switch primitive
798
+ *
799
+ * Builds on Switch.Root + Switch.Thumb.
800
+ * Supports controlled (checked + onCheckedChange) and uncontrolled (defaultChecked).
801
+ * role=switch and aria-checked are managed by the primitive automatically.
802
+ *
803
+ * data-slot="switch" on Root, data-slot="switch-thumb" on Thumb.
804
+ * Styling: Tailwind v4 semantic tokens only.
805
+ */
806
+
807
+ interface MosaicSwitchProps extends React.ComponentPropsWithoutRef<typeof Switch.Root> {
808
+ className?: string;
809
+ }
810
+ /**
811
+ * MosaicSwitch — production Switch atom for @vantageos/mosaic-blocks.
812
+ *
813
+ * Built on @base-ui/react/switch. Supports controlled + uncontrolled modes.
814
+ * role=switch + aria-checked managed automatically by the primitive.
815
+ *
816
+ * @example
817
+ * // Uncontrolled
818
+ * <MosaicSwitch aria-label="Dark mode" defaultChecked />
819
+ *
820
+ * // Controlled
821
+ * <MosaicSwitch checked={enabled} onCheckedChange={setEnabled} aria-label="Notifications" />
822
+ */
823
+ declare const MosaicSwitch: React.ForwardRefExoticComponent<MosaicSwitchProps & React.RefAttributes<HTMLElement>>;
824
+
825
+ /**
826
+ * MosaicSelect — @base-ui/react Select primitive
827
+ *
828
+ * Builds on Select.Root / Trigger / Value / Portal / Positioner / Popup / Item.
829
+ * Props: items[], value, onValueChange, placeholder.
830
+ *
831
+ * data-slot="select" on Trigger, "select-popup" on Popup.
832
+ * Items render with role=option (managed by base-ui).
833
+ * Styling: Tailwind v4 semantic tokens only.
834
+ */
835
+
836
+ interface MosaicSelectItem {
837
+ value: string;
838
+ label: string;
839
+ disabled?: boolean;
840
+ }
841
+ interface MosaicSelectProps {
842
+ /** List of options to display */
843
+ items: MosaicSelectItem[];
844
+ /** Controlled value */
845
+ value?: string;
846
+ /** Callback when value changes. Receives null when selection is cleared. */
847
+ onValueChange?: (value: string | null) => void;
848
+ /** Placeholder text shown when no item is selected */
849
+ placeholder?: string;
850
+ /** Uncontrolled default value */
851
+ defaultValue?: string;
852
+ disabled?: boolean;
853
+ required?: boolean;
854
+ name?: string;
855
+ className?: string;
856
+ }
857
+ /**
858
+ * MosaicSelect — production Select atom for @vantageos/mosaic-blocks.
859
+ *
860
+ * Built on @base-ui/react/select. Keyboard-accessible, portal-rendered popup.
861
+ * Accepts a flat items[] array for simplicity over the compound pattern.
862
+ *
863
+ * @example
864
+ * <MosaicSelect
865
+ * items={[{ value: "a", label: "Option A" }]}
866
+ * placeholder="Pick one"
867
+ * onValueChange={(v) => console.log(v)}
868
+ * />
869
+ */
870
+ declare function MosaicSelect({ items, value, onValueChange, placeholder, defaultValue, disabled, required, name, className, }: MosaicSelectProps): React.JSX.Element;
871
+
872
+ /**
873
+ * MosaicCombobox — @base-ui/react Combobox primitive
874
+ *
875
+ * Path taken: @base-ui/react/combobox (NATIVE in @base-ui/react@1.5.0 — confirmed present).
876
+ * The `combobox` subpath exports Combobox.Root / Input / Trigger / Portal /
877
+ * Positioner / Popup / List / Item / Empty / useFilter.
878
+ *
879
+ * Props: items[], value, onValueChange, placeholder.
880
+ * Filtering: built-in useFilter from @base-ui/react/combobox with "contains" strategy.
881
+ *
882
+ * data-slot="combobox" on the wrapper div.
883
+ * Styling: Tailwind v4 semantic tokens only.
884
+ */
885
+
886
+ interface MosaicComboboxItem {
887
+ value: string;
888
+ label: string;
889
+ disabled?: boolean;
890
+ }
891
+ interface MosaicComboboxProps {
892
+ /** List of options */
893
+ items: MosaicComboboxItem[];
894
+ /** Controlled selected value */
895
+ value?: string;
896
+ /** Callback when selected value changes. Receives null when selection is cleared. */
897
+ onValueChange?: (value: string | null) => void;
898
+ /** Uncontrolled default value */
899
+ defaultValue?: string;
900
+ /** Input placeholder */
901
+ placeholder?: string;
902
+ disabled?: boolean;
903
+ name?: string;
904
+ className?: string;
905
+ }
906
+ /**
907
+ * MosaicCombobox — production Combobox atom for @vantageos/mosaic-blocks.
908
+ *
909
+ * Built on @base-ui/react/combobox (native in 1.5.0).
910
+ * Filtering via built-in useFilter with "contains" strategy.
911
+ * Keyboard-accessible: ArrowDown/Up navigate, Enter selects, Escape closes.
912
+ *
913
+ * @example
914
+ * <MosaicCombobox
915
+ * items={[{ value: "ts", label: "TypeScript" }]}
916
+ * placeholder="Search…"
917
+ * onValueChange={(v) => console.log(v)}
918
+ * />
919
+ */
920
+ declare function MosaicCombobox({ items, value, onValueChange, defaultValue, placeholder, disabled, name, className, }: MosaicComboboxProps): React.JSX.Element;
921
+
922
+ /**
923
+ * MosaicDropdownMenu — @base-ui/react Menu primitive
924
+ *
925
+ * Builds on Menu.Root / Trigger / Portal / Positioner / Popup / Item / Separator.
926
+ * Exported as MosaicDropdownMenu per spec (named separately from Menu to avoid clash).
927
+ *
928
+ * data-slot="dropdown-menu" on Popup.
929
+ * Items render with role=menuitem (managed by base-ui).
930
+ * Styling: Tailwind v4 semantic tokens only.
931
+ */
932
+
933
+ interface MosaicDropdownMenuItem {
934
+ id: string;
935
+ label: string;
936
+ disabled?: boolean;
937
+ /** Render a separator BEFORE this item */
938
+ separator?: boolean;
939
+ }
940
+ interface MosaicDropdownMenuProps {
941
+ /** The trigger element — wrapped in Menu.Trigger automatically */
942
+ trigger: React.ReactNode;
943
+ /** List of menu items */
944
+ items: MosaicDropdownMenuItem[];
945
+ /** Callback when an item is selected, receives item.id */
946
+ onItemSelect?: (id: string) => void;
947
+ /** Whether the menu is open (controlled) */
948
+ open?: boolean;
949
+ /** Callback when open state changes (controlled) */
950
+ onOpenChange?: (open: boolean) => void;
951
+ className?: string;
952
+ }
953
+ /**
954
+ * MosaicDropdownMenu — production DropdownMenu atom for @vantageos/mosaic-blocks.
955
+ *
956
+ * Built on @base-ui/react/menu. Portal-rendered popup, keyboard-accessible.
957
+ * Keyboard: Enter/Space opens, ArrowDown/Up navigate, Escape closes, Enter selects.
958
+ *
959
+ * @example
960
+ * <MosaicDropdownMenu
961
+ * trigger={<button type="button">Open menu</button>}
962
+ * items={[{ id: "edit", label: "Edit" }, { id: "delete", label: "Delete" }]}
963
+ * onItemSelect={(id) => console.log(id)}
964
+ * />
965
+ */
966
+ declare function MosaicDropdownMenu({ trigger, items, onItemSelect, open, onOpenChange, className, }: MosaicDropdownMenuProps): React.JSX.Element;
967
+
968
+ export { type FeatureItem, type FooterColumn, type FooterLink, type HeroCta, type LogoItem, MosaicAnimatedList, type MosaicAnimatedListProps, MosaicAvatar, type MosaicAvatarProps, MosaicBadge, type MosaicBadgeProps, MosaicBlurredOrb, type MosaicBlurredOrbProps, MosaicButton, type MosaicButtonProps, MosaicCard, MosaicCardContent, type MosaicCardContentProps, MosaicCardDescription, type MosaicCardDescriptionProps, MosaicCardFooter, type MosaicCardFooterProps, MosaicCardHeader, type MosaicCardHeaderProps, type MosaicCardProps, MosaicCardTitle, type MosaicCardTitleProps, MosaicCombobox, type MosaicComboboxItem, type MosaicComboboxProps, MosaicCounter, type MosaicCounterProps, MosaicDropdownMenu, type MosaicDropdownMenuItem, type MosaicDropdownMenuProps, MosaicFallingPattern, type MosaicFallingPatternProps, MosaicFeatureCenteredMedia, type MosaicFeatureCenteredMediaProps, MosaicField, MosaicFieldControl, type MosaicFieldControlProps, MosaicFieldDescription, type MosaicFieldDescriptionProps, MosaicFieldError, type MosaicFieldErrorProps, MosaicFieldLabel, type MosaicFieldLabelProps, type MosaicFieldProps, MosaicFooterSimple, type MosaicFooterSimpleProps, MosaicHeroSplit, type MosaicHeroSplitProps, MosaicInput, MosaicInputGroup, type MosaicInputGroupProps, type MosaicInputProps, MosaicIntegrationsBadge, type MosaicIntegrationsBadgeProps, MosaicLogosGrid, type MosaicLogosGridProps, MosaicNavbar, type MosaicNavbarProps, MosaicPricingCard, type MosaicPricingCardProps, MosaicSelect, type MosaicSelectItem, type MosaicSelectProps, MosaicStatsGrid, type MosaicStatsGridProps, MosaicSwitch, type MosaicSwitchProps, MosaicTestimonialsGrid, type MosaicTestimonialsGridProps, MosaicThemeToggle, type MosaicThemeToggleProps, type NavCta, type NavLink, type OrbPosition, Placeholder, type PricingCta, type SocialLink, type StatItem, type TestimonialItem, type Theme, badgeVariants, buttonVariants, useMediaQuery, version };