@vasf/ragnar-web 1.0.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.
- package/dist/components/animated-counter.d.ts +98 -0
- package/dist/components/announcement-bar.d.ts +66 -0
- package/dist/components/app-download.d.ts +41 -0
- package/dist/components/bento-grid.d.ts +32 -0
- package/dist/components/blog-card.d.ts +38 -0
- package/dist/components/comparison-table.d.ts +37 -0
- package/dist/components/contact-form.d.ts +43 -0
- package/dist/components/content-spot.d.ts +17 -0
- package/dist/components/cookie-banner.d.ts +58 -0
- package/dist/components/cta-section.d.ts +21 -0
- package/dist/components/email-form.d.ts +18 -0
- package/dist/components/faq-accordion.d.ts +36 -0
- package/dist/components/feature-spot.d.ts +31 -0
- package/dist/components/footer.d.ts +23 -0
- package/dist/components/gradient-text.d.ts +45 -0
- package/dist/components/header-navigation.d.ts +18 -0
- package/dist/components/hero.d.ts +18 -0
- package/dist/components/logo-cloud.d.ts +19 -0
- package/dist/components/map-embed.d.ts +109 -0
- package/dist/components/marquee.d.ts +51 -0
- package/dist/components/newsletter.d.ts +21 -0
- package/dist/components/pricing-options.d.ts +29 -0
- package/dist/components/pricing-table.d.ts +23 -0
- package/dist/components/quote.d.ts +22 -0
- package/dist/components/shaders/index.d.ts +8 -0
- package/dist/components/shaders/shader-canvas-ogl.d.ts +18 -0
- package/dist/components/shaders/shader-canvas-r3f.d.ts +23 -0
- package/dist/components/shaders/shader-presets.d.ts +79 -0
- package/dist/components/shaders/types.d.ts +46 -0
- package/dist/components/social-proof.d.ts +64 -0
- package/dist/components/stats-section.d.ts +30 -0
- package/dist/components/team-section.d.ts +36 -0
- package/dist/components/testimonial.d.ts +31 -0
- package/dist/components/video-player.d.ts +83 -0
- package/dist/index.cjs +321 -0
- package/dist/index.d.ts +31 -0
- package/dist/index.js +5659 -0
- package/dist/lib/utils.d.ts +2 -0
- package/dist/styles.css +76 -0
- package/dist/test/setup.d.ts +1 -0
- package/package.json +80 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export interface NavItem {
|
|
3
|
+
label: string;
|
|
4
|
+
href?: string;
|
|
5
|
+
onClick?: () => void;
|
|
6
|
+
children?: NavItem[];
|
|
7
|
+
active?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface HeaderNavigationProps extends React.HTMLAttributes<HTMLElement> {
|
|
10
|
+
logo?: React.ReactNode;
|
|
11
|
+
items?: NavItem[];
|
|
12
|
+
actions?: React.ReactNode;
|
|
13
|
+
sticky?: boolean;
|
|
14
|
+
transparent?: boolean;
|
|
15
|
+
mobileBreakpoint?: "sm" | "md" | "lg";
|
|
16
|
+
}
|
|
17
|
+
declare const HeaderNavigation: React.ForwardRefExoticComponent<HeaderNavigationProps & React.RefAttributes<HTMLElement>>;
|
|
18
|
+
export { HeaderNavigation };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { type VariantProps } from "class-variance-authority";
|
|
3
|
+
declare const heroVariants: (props?: ({
|
|
4
|
+
size?: "sm" | "default" | "lg" | "full" | null | undefined;
|
|
5
|
+
align?: "left" | "center" | "right" | null | undefined;
|
|
6
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
|
+
export interface HeroProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof heroVariants> {
|
|
8
|
+
backgroundImage?: string;
|
|
9
|
+
backgroundOverlay?: boolean;
|
|
10
|
+
overlayOpacity?: number;
|
|
11
|
+
}
|
|
12
|
+
declare const Hero: React.ForwardRefExoticComponent<HeroProps & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
+
declare const HeroBadge: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLSpanElement> & React.RefAttributes<HTMLSpanElement>>;
|
|
14
|
+
declare const HeroTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLHeadingElement>>;
|
|
15
|
+
declare const HeroSubtitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
16
|
+
declare const HeroActions: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
17
|
+
declare const HeroImage: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
18
|
+
export { Hero, HeroBadge, HeroTitle, HeroSubtitle, HeroActions, HeroImage, };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { type VariantProps } from "class-variance-authority";
|
|
3
|
+
declare const logoCloudVariants: (props?: ({
|
|
4
|
+
variant?: "default" | "muted" | "bordered" | null | undefined;
|
|
5
|
+
size?: "sm" | "default" | "lg" | null | undefined;
|
|
6
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
|
+
export interface LogoCloudProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof logoCloudVariants> {
|
|
8
|
+
title?: string;
|
|
9
|
+
}
|
|
10
|
+
declare const LogoCloud: React.ForwardRefExoticComponent<LogoCloudProps & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
+
declare const logoItemVariants: (props?: ({
|
|
12
|
+
grayscale?: boolean | null | undefined;
|
|
13
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
14
|
+
export interface LogoCloudItemProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof logoItemVariants> {
|
|
15
|
+
href?: string;
|
|
16
|
+
name: string;
|
|
17
|
+
}
|
|
18
|
+
declare const LogoCloudItem: React.ForwardRefExoticComponent<LogoCloudItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
19
|
+
export { LogoCloud, LogoCloudItem };
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { type VariantProps } from "class-variance-authority";
|
|
3
|
+
declare const mapContainerVariants: (props?: ({
|
|
4
|
+
rounded?: "sm" | "lg" | "none" | "xl" | "md" | "2xl" | null | undefined;
|
|
5
|
+
aspectRatio?: "auto" | "square" | "video" | "4/3" | "3/2" | null | undefined;
|
|
6
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
|
+
export interface GoogleMapEmbedProps extends React.IframeHTMLAttributes<HTMLIFrameElement>, VariantProps<typeof mapContainerVariants> {
|
|
8
|
+
/**
|
|
9
|
+
* Google Maps embed API key
|
|
10
|
+
*/
|
|
11
|
+
apiKey?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Place query (address or place name)
|
|
14
|
+
*/
|
|
15
|
+
query: string;
|
|
16
|
+
/**
|
|
17
|
+
* Zoom level (1-21)
|
|
18
|
+
* @default 15
|
|
19
|
+
*/
|
|
20
|
+
zoom?: number;
|
|
21
|
+
/**
|
|
22
|
+
* Map type
|
|
23
|
+
* @default "roadmap"
|
|
24
|
+
*/
|
|
25
|
+
mapType?: "roadmap" | "satellite";
|
|
26
|
+
/**
|
|
27
|
+
* Container className
|
|
28
|
+
*/
|
|
29
|
+
containerClassName?: string;
|
|
30
|
+
}
|
|
31
|
+
declare const GoogleMapEmbed: React.ForwardRefExoticComponent<GoogleMapEmbedProps & React.RefAttributes<HTMLIFrameElement>>;
|
|
32
|
+
export interface OpenStreetMapEmbedProps extends React.IframeHTMLAttributes<HTMLIFrameElement>, VariantProps<typeof mapContainerVariants> {
|
|
33
|
+
/**
|
|
34
|
+
* Latitude
|
|
35
|
+
*/
|
|
36
|
+
lat: number;
|
|
37
|
+
/**
|
|
38
|
+
* Longitude
|
|
39
|
+
*/
|
|
40
|
+
lng: number;
|
|
41
|
+
/**
|
|
42
|
+
* Zoom level (1-19)
|
|
43
|
+
* @default 15
|
|
44
|
+
*/
|
|
45
|
+
zoom?: number;
|
|
46
|
+
/**
|
|
47
|
+
* Marker label
|
|
48
|
+
*/
|
|
49
|
+
marker?: string;
|
|
50
|
+
/**
|
|
51
|
+
* Container className
|
|
52
|
+
*/
|
|
53
|
+
containerClassName?: string;
|
|
54
|
+
}
|
|
55
|
+
declare const OpenStreetMapEmbed: React.ForwardRefExoticComponent<OpenStreetMapEmbedProps & React.RefAttributes<HTMLIFrameElement>>;
|
|
56
|
+
export interface StaticMapProps extends React.ImgHTMLAttributes<HTMLImageElement>, VariantProps<typeof mapContainerVariants> {
|
|
57
|
+
/**
|
|
58
|
+
* Latitude
|
|
59
|
+
*/
|
|
60
|
+
lat: number;
|
|
61
|
+
/**
|
|
62
|
+
* Longitude
|
|
63
|
+
*/
|
|
64
|
+
lng: number;
|
|
65
|
+
/**
|
|
66
|
+
* Zoom level
|
|
67
|
+
* @default 15
|
|
68
|
+
*/
|
|
69
|
+
zoom?: number;
|
|
70
|
+
/**
|
|
71
|
+
* Map width in pixels
|
|
72
|
+
* @default 600
|
|
73
|
+
*/
|
|
74
|
+
width?: number;
|
|
75
|
+
/**
|
|
76
|
+
* Map height in pixels
|
|
77
|
+
* @default 400
|
|
78
|
+
*/
|
|
79
|
+
height?: number;
|
|
80
|
+
/**
|
|
81
|
+
* Container className
|
|
82
|
+
*/
|
|
83
|
+
containerClassName?: string;
|
|
84
|
+
}
|
|
85
|
+
declare const StaticMap: React.ForwardRefExoticComponent<StaticMapProps & React.RefAttributes<HTMLImageElement>>;
|
|
86
|
+
export interface MapWithInfoProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
87
|
+
/**
|
|
88
|
+
* Address or location name
|
|
89
|
+
*/
|
|
90
|
+
address: string;
|
|
91
|
+
/**
|
|
92
|
+
* Phone number
|
|
93
|
+
*/
|
|
94
|
+
phone?: string;
|
|
95
|
+
/**
|
|
96
|
+
* Email
|
|
97
|
+
*/
|
|
98
|
+
email?: string;
|
|
99
|
+
/**
|
|
100
|
+
* Hours of operation
|
|
101
|
+
*/
|
|
102
|
+
hours?: string;
|
|
103
|
+
/**
|
|
104
|
+
* Direction link
|
|
105
|
+
*/
|
|
106
|
+
directionsUrl?: string;
|
|
107
|
+
}
|
|
108
|
+
declare const MapWithInfo: React.ForwardRefExoticComponent<MapWithInfoProps & React.RefAttributes<HTMLDivElement>>;
|
|
109
|
+
export { GoogleMapEmbed, OpenStreetMapEmbed, StaticMap, MapWithInfo, };
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { type VariantProps } from "class-variance-authority";
|
|
3
|
+
declare const marqueeVariants: (props?: ({
|
|
4
|
+
variant?: "default" | "fade" | null | undefined;
|
|
5
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6
|
+
export interface MarqueeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof marqueeVariants> {
|
|
7
|
+
/**
|
|
8
|
+
* Duration of one complete loop in seconds
|
|
9
|
+
* @default 40
|
|
10
|
+
*/
|
|
11
|
+
duration?: number;
|
|
12
|
+
/**
|
|
13
|
+
* Direction of the marquee
|
|
14
|
+
* @default "left"
|
|
15
|
+
*/
|
|
16
|
+
direction?: "left" | "right";
|
|
17
|
+
/**
|
|
18
|
+
* Whether to pause on hover
|
|
19
|
+
* @default true
|
|
20
|
+
*/
|
|
21
|
+
pauseOnHover?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Gap between items
|
|
24
|
+
* @default 16
|
|
25
|
+
*/
|
|
26
|
+
gap?: number;
|
|
27
|
+
}
|
|
28
|
+
declare const Marquee: React.ForwardRefExoticComponent<MarqueeProps & React.RefAttributes<HTMLDivElement>>;
|
|
29
|
+
declare const MarqueeItem: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
30
|
+
declare const verticalMarqueeVariants: (props?: ({
|
|
31
|
+
variant?: "default" | "fade" | null | undefined;
|
|
32
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
33
|
+
export interface VerticalMarqueeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof verticalMarqueeVariants> {
|
|
34
|
+
duration?: number;
|
|
35
|
+
direction?: "up" | "down";
|
|
36
|
+
pauseOnHover?: boolean;
|
|
37
|
+
gap?: number;
|
|
38
|
+
}
|
|
39
|
+
declare const VerticalMarquee: React.ForwardRefExoticComponent<VerticalMarqueeProps & React.RefAttributes<HTMLDivElement>>;
|
|
40
|
+
declare const MarqueeTestimonial: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
41
|
+
declare const MarqueeTestimonialContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
42
|
+
declare const MarqueeTestimonialAuthor: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
43
|
+
declare const MarqueeTestimonialAvatar: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
44
|
+
src?: string;
|
|
45
|
+
alt?: string;
|
|
46
|
+
fallback?: string;
|
|
47
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
48
|
+
declare const MarqueeTestimonialInfo: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
49
|
+
declare const MarqueeTestimonialName: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
50
|
+
declare const MarqueeTestimonialRole: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
51
|
+
export { Marquee, MarqueeItem, VerticalMarquee, MarqueeTestimonial, MarqueeTestimonialContent, MarqueeTestimonialAuthor, MarqueeTestimonialAvatar, MarqueeTestimonialInfo, MarqueeTestimonialName, MarqueeTestimonialRole, };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { type VariantProps } from "class-variance-authority";
|
|
3
|
+
declare const newsletterVariants: (props?: ({
|
|
4
|
+
variant?: "default" | "dark" | "muted" | "primary" | "gradient" | "card" | null | undefined;
|
|
5
|
+
size?: "sm" | "default" | "lg" | null | undefined;
|
|
6
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
|
+
export interface NewsletterProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof newsletterVariants> {
|
|
8
|
+
}
|
|
9
|
+
declare const Newsletter: React.ForwardRefExoticComponent<NewsletterProps & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
+
declare const NewsletterIcon: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
+
declare const NewsletterTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLHeadingElement>>;
|
|
12
|
+
declare const NewsletterDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
13
|
+
export interface NewsletterFormProps extends React.FormHTMLAttributes<HTMLFormElement> {
|
|
14
|
+
}
|
|
15
|
+
declare const NewsletterForm: React.ForwardRefExoticComponent<NewsletterFormProps & React.RefAttributes<HTMLFormElement>>;
|
|
16
|
+
export interface NewsletterInputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
17
|
+
}
|
|
18
|
+
declare const NewsletterInput: React.ForwardRefExoticComponent<NewsletterInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
19
|
+
declare const NewsletterDisclaimer: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
20
|
+
declare const NewsletterSuccess: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
21
|
+
export { Newsletter, NewsletterIcon, NewsletterTitle, NewsletterDescription, NewsletterForm, NewsletterInput, NewsletterDisclaimer, NewsletterSuccess, };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { type VariantProps } from "class-variance-authority";
|
|
3
|
+
declare const pricingOptionsVariants: (props?: ({
|
|
4
|
+
columns?: 2 | 3 | 4 | null | undefined;
|
|
5
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6
|
+
export interface PricingOption {
|
|
7
|
+
id: string;
|
|
8
|
+
name: string;
|
|
9
|
+
description?: string;
|
|
10
|
+
price: string | number;
|
|
11
|
+
originalPrice?: string | number;
|
|
12
|
+
period?: string;
|
|
13
|
+
features: string[];
|
|
14
|
+
highlighted?: boolean;
|
|
15
|
+
highlightLabel?: string;
|
|
16
|
+
buttonText?: string;
|
|
17
|
+
buttonVariant?: "default" | "outline" | "secondary";
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
onSelect?: () => void;
|
|
20
|
+
}
|
|
21
|
+
export interface PricingOptionsProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof pricingOptionsVariants> {
|
|
22
|
+
options: PricingOption[];
|
|
23
|
+
}
|
|
24
|
+
declare const PricingOptions: React.ForwardRefExoticComponent<PricingOptionsProps & React.RefAttributes<HTMLDivElement>>;
|
|
25
|
+
interface PricingCardProps {
|
|
26
|
+
option: PricingOption;
|
|
27
|
+
}
|
|
28
|
+
declare const PricingCard: React.ForwardRefExoticComponent<PricingCardProps & React.RefAttributes<HTMLDivElement>>;
|
|
29
|
+
export { PricingOptions, PricingCard };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export interface PricingPlan {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
price: string | number;
|
|
6
|
+
period?: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
highlighted?: boolean;
|
|
9
|
+
buttonText?: string;
|
|
10
|
+
onSelect?: () => void;
|
|
11
|
+
}
|
|
12
|
+
export interface PricingFeature {
|
|
13
|
+
name: string;
|
|
14
|
+
tooltip?: string;
|
|
15
|
+
values: Record<string, boolean | string>;
|
|
16
|
+
}
|
|
17
|
+
export interface PricingTableProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
18
|
+
plans: PricingPlan[];
|
|
19
|
+
features: PricingFeature[];
|
|
20
|
+
featureGroupTitle?: string;
|
|
21
|
+
}
|
|
22
|
+
declare const PricingTable: React.ForwardRefExoticComponent<PricingTableProps & React.RefAttributes<HTMLDivElement>>;
|
|
23
|
+
export { PricingTable };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { type VariantProps } from "class-variance-authority";
|
|
3
|
+
declare const quoteVariants: (props?: ({
|
|
4
|
+
variant?: "default" | "card" | "minimal" | "centered" | null | undefined;
|
|
5
|
+
size?: "sm" | "default" | "lg" | null | undefined;
|
|
6
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
|
+
export interface QuoteProps extends React.HTMLAttributes<HTMLElement>, VariantProps<typeof quoteVariants> {
|
|
8
|
+
showIcon?: boolean;
|
|
9
|
+
}
|
|
10
|
+
declare const QuoteComponent: React.ForwardRefExoticComponent<QuoteProps & React.RefAttributes<HTMLQuoteElement>>;
|
|
11
|
+
declare const QuoteText: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & {
|
|
12
|
+
size?: "sm" | "default" | "lg";
|
|
13
|
+
} & React.RefAttributes<HTMLParagraphElement>>;
|
|
14
|
+
declare const QuoteAuthor: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>>;
|
|
15
|
+
declare const QuoteAuthorAvatar: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
16
|
+
src?: string;
|
|
17
|
+
alt?: string;
|
|
18
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
19
|
+
declare const QuoteAuthorInfo: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
20
|
+
declare const QuoteAuthorName: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLSpanElement> & React.RefAttributes<HTMLSpanElement>>;
|
|
21
|
+
declare const QuoteAuthorTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLSpanElement> & React.RefAttributes<HTMLSpanElement>>;
|
|
22
|
+
export { QuoteComponent as Quote, QuoteText, QuoteAuthor, QuoteAuthorAvatar, QuoteAuthorInfo, QuoteAuthorName, QuoteAuthorTitle, };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { ShaderCanvasOGL } from "./shader-canvas-ogl";
|
|
2
|
+
export type { ShaderCanvasOGLProps } from "./shader-canvas-ogl";
|
|
3
|
+
export { ShaderCanvasR3F } from "./shader-canvas-r3f";
|
|
4
|
+
export type { ShaderCanvasR3FProps } from "./shader-canvas-r3f";
|
|
5
|
+
export { ShaderBackground, ShaderGradient, ShaderAurora, ShaderBlob, ShaderNoise, ShaderWave, ShaderMesh, ShaderParticles, ShaderHero, ShaderCard, } from "./shader-presets";
|
|
6
|
+
export type { ShaderBackgroundProps, ShaderGradientProps, ShaderAuroraProps, ShaderBlobProps, ShaderNoiseProps, ShaderWaveProps, ShaderMeshProps, ShaderParticlesProps, ShaderHeroProps, ShaderCardProps, } from "./shader-presets";
|
|
7
|
+
export { SHADER_PRESETS, PRESET_COLORS, VERTEX_SHADER_DEFAULT, FRAGMENT_SHADER_GRADIENT, FRAGMENT_SHADER_AURORA, FRAGMENT_SHADER_BLOB, FRAGMENT_SHADER_NOISE, FRAGMENT_SHADER_WAVE, FRAGMENT_SHADER_MESH_GRADIENT, FRAGMENT_SHADER_PARTICLES, hexToVec3, } from "./types";
|
|
8
|
+
export type { ShaderPreset, ShaderConfig, ShaderUniforms, BaseShaderProps, } from "./types";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { BaseShaderProps, ShaderPreset } from "./types";
|
|
3
|
+
export interface ShaderCanvasOGLProps extends BaseShaderProps, Omit<React.HTMLAttributes<HTMLDivElement>, "children"> {
|
|
4
|
+
/** Shader preset to use */
|
|
5
|
+
preset?: ShaderPreset;
|
|
6
|
+
/** Custom fragment shader (overrides preset) */
|
|
7
|
+
fragmentShader?: string;
|
|
8
|
+
/** Custom vertex shader */
|
|
9
|
+
vertexShader?: string;
|
|
10
|
+
/** Fourth color (for mesh gradient) */
|
|
11
|
+
color4?: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* OGL-based shader canvas - lightweight WebGL shader renderer
|
|
15
|
+
* Best for: 2D effects, backgrounds, simple animations
|
|
16
|
+
*/
|
|
17
|
+
declare const ShaderCanvasOGL: React.ForwardRefExoticComponent<ShaderCanvasOGLProps & React.RefAttributes<HTMLDivElement>>;
|
|
18
|
+
export { ShaderCanvasOGL };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { BaseShaderProps, ShaderPreset } from "./types";
|
|
3
|
+
export interface ShaderCanvasR3FProps extends BaseShaderProps, Omit<React.HTMLAttributes<HTMLDivElement>, "children"> {
|
|
4
|
+
/** Shader preset to use */
|
|
5
|
+
preset?: ShaderPreset;
|
|
6
|
+
/** Custom fragment shader (overrides preset) */
|
|
7
|
+
fragmentShader?: string;
|
|
8
|
+
/** Custom vertex shader */
|
|
9
|
+
vertexShader?: string;
|
|
10
|
+
/** Fourth color (for mesh gradient) */
|
|
11
|
+
color4?: string;
|
|
12
|
+
/** Enable 3D mode (perspective camera) */
|
|
13
|
+
mode3D?: boolean;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* React Three Fiber shader canvas - full 3D WebGL renderer
|
|
17
|
+
* Best for: 3D effects, complex animations, post-processing
|
|
18
|
+
*
|
|
19
|
+
* Note: Requires three.js as a peer dependency.
|
|
20
|
+
* Install with: npm install three @types/three
|
|
21
|
+
*/
|
|
22
|
+
declare const ShaderCanvasR3F: React.ForwardRefExoticComponent<ShaderCanvasR3FProps & React.RefAttributes<HTMLDivElement>>;
|
|
23
|
+
export { ShaderCanvasR3F };
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { type ShaderCanvasOGLProps } from "./shader-canvas-ogl";
|
|
3
|
+
import type { BaseShaderProps } from "./types";
|
|
4
|
+
export interface ShaderBackgroundProps extends Omit<ShaderCanvasOGLProps, "preset">, React.HTMLAttributes<HTMLDivElement> {
|
|
5
|
+
/** Shader preset */
|
|
6
|
+
shader: ShaderCanvasOGLProps["preset"];
|
|
7
|
+
/** Children to render on top */
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
/** Overlay opacity (0-1) for better text readability */
|
|
10
|
+
overlay?: number;
|
|
11
|
+
/** Overlay color */
|
|
12
|
+
overlayColor?: string;
|
|
13
|
+
/** Whether to use fixed positioning */
|
|
14
|
+
fixed?: boolean;
|
|
15
|
+
}
|
|
16
|
+
declare const ShaderBackground: React.ForwardRefExoticComponent<ShaderBackgroundProps & React.RefAttributes<HTMLDivElement>>;
|
|
17
|
+
export interface ShaderGradientProps extends BaseShaderProps {
|
|
18
|
+
className?: string;
|
|
19
|
+
/** Gradient colors (3 colors) */
|
|
20
|
+
colors?: [string, string, string];
|
|
21
|
+
}
|
|
22
|
+
declare const ShaderGradient: React.ForwardRefExoticComponent<ShaderGradientProps & React.RefAttributes<HTMLDivElement>>;
|
|
23
|
+
export interface ShaderAuroraProps extends BaseShaderProps {
|
|
24
|
+
className?: string;
|
|
25
|
+
/** Aurora colors (3 colors) */
|
|
26
|
+
colors?: [string, string, string];
|
|
27
|
+
}
|
|
28
|
+
declare const ShaderAurora: React.ForwardRefExoticComponent<ShaderAuroraProps & React.RefAttributes<HTMLDivElement>>;
|
|
29
|
+
export interface ShaderBlobProps extends BaseShaderProps {
|
|
30
|
+
className?: string;
|
|
31
|
+
/** Blob colors (3 colors) */
|
|
32
|
+
colors?: [string, string, string];
|
|
33
|
+
}
|
|
34
|
+
declare const ShaderBlob: React.ForwardRefExoticComponent<ShaderBlobProps & React.RefAttributes<HTMLDivElement>>;
|
|
35
|
+
export interface ShaderNoiseProps extends BaseShaderProps {
|
|
36
|
+
className?: string;
|
|
37
|
+
/** Noise color */
|
|
38
|
+
color?: string;
|
|
39
|
+
}
|
|
40
|
+
declare const ShaderNoise: React.ForwardRefExoticComponent<ShaderNoiseProps & React.RefAttributes<HTMLDivElement>>;
|
|
41
|
+
export interface ShaderWaveProps extends BaseShaderProps {
|
|
42
|
+
className?: string;
|
|
43
|
+
/** Wave colors (2 colors) */
|
|
44
|
+
colors?: [string, string];
|
|
45
|
+
}
|
|
46
|
+
declare const ShaderWave: React.ForwardRefExoticComponent<ShaderWaveProps & React.RefAttributes<HTMLDivElement>>;
|
|
47
|
+
export interface ShaderMeshProps extends BaseShaderProps {
|
|
48
|
+
className?: string;
|
|
49
|
+
/** Mesh gradient colors (4 colors for corners) */
|
|
50
|
+
colors?: [string, string, string, string];
|
|
51
|
+
}
|
|
52
|
+
declare const ShaderMesh: React.ForwardRefExoticComponent<ShaderMeshProps & React.RefAttributes<HTMLDivElement>>;
|
|
53
|
+
export interface ShaderParticlesProps extends BaseShaderProps {
|
|
54
|
+
className?: string;
|
|
55
|
+
/** Particle colors (2 colors) */
|
|
56
|
+
colors?: [string, string];
|
|
57
|
+
}
|
|
58
|
+
declare const ShaderParticles: React.ForwardRefExoticComponent<ShaderParticlesProps & React.RefAttributes<HTMLDivElement>>;
|
|
59
|
+
export interface ShaderHeroProps extends ShaderBackgroundProps {
|
|
60
|
+
/** Title text */
|
|
61
|
+
title?: string;
|
|
62
|
+
/** Subtitle text */
|
|
63
|
+
subtitle?: string;
|
|
64
|
+
/** Hero size */
|
|
65
|
+
size?: "sm" | "default" | "lg" | "full";
|
|
66
|
+
/** Content alignment */
|
|
67
|
+
align?: "left" | "center" | "right";
|
|
68
|
+
}
|
|
69
|
+
declare const ShaderHero: React.ForwardRefExoticComponent<ShaderHeroProps & React.RefAttributes<HTMLDivElement>>;
|
|
70
|
+
export interface ShaderCardProps extends Omit<ShaderBackgroundProps, "children"> {
|
|
71
|
+
/** Card content */
|
|
72
|
+
children?: React.ReactNode;
|
|
73
|
+
/** Card padding */
|
|
74
|
+
padding?: "sm" | "default" | "lg";
|
|
75
|
+
/** Border radius */
|
|
76
|
+
rounded?: "sm" | "default" | "lg" | "xl" | "2xl" | "full";
|
|
77
|
+
}
|
|
78
|
+
declare const ShaderCard: React.ForwardRefExoticComponent<ShaderCardProps & React.RefAttributes<HTMLDivElement>>;
|
|
79
|
+
export { ShaderBackground, ShaderGradient, ShaderAurora, ShaderBlob, ShaderNoise, ShaderWave, ShaderMesh, ShaderParticles, ShaderHero, ShaderCard, };
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export interface ShaderUniforms {
|
|
2
|
+
[key: string]: {
|
|
3
|
+
value: number | number[] | Float32Array;
|
|
4
|
+
type?: "float" | "vec2" | "vec3" | "vec4" | "mat4";
|
|
5
|
+
};
|
|
6
|
+
}
|
|
7
|
+
export interface ShaderConfig {
|
|
8
|
+
/** Fragment shader GLSL code */
|
|
9
|
+
fragmentShader: string;
|
|
10
|
+
/** Vertex shader GLSL code (optional, uses default) */
|
|
11
|
+
vertexShader?: string;
|
|
12
|
+
/** Uniform values */
|
|
13
|
+
uniforms?: ShaderUniforms;
|
|
14
|
+
}
|
|
15
|
+
export interface BaseShaderProps {
|
|
16
|
+
/** Animation speed multiplier */
|
|
17
|
+
speed?: number;
|
|
18
|
+
/** Mouse interaction */
|
|
19
|
+
interactive?: boolean;
|
|
20
|
+
/** Effect intensity (0-1) */
|
|
21
|
+
intensity?: number;
|
|
22
|
+
/** Primary colors */
|
|
23
|
+
colors?: string[];
|
|
24
|
+
/** Whether the shader is paused */
|
|
25
|
+
paused?: boolean;
|
|
26
|
+
/** Pixel ratio (default: window.devicePixelRatio) */
|
|
27
|
+
pixelRatio?: number;
|
|
28
|
+
/** Quality preset */
|
|
29
|
+
quality?: "low" | "medium" | "high";
|
|
30
|
+
/** Callback when shader is ready */
|
|
31
|
+
onReady?: () => void;
|
|
32
|
+
/** Callback on each frame */
|
|
33
|
+
onFrame?: (time: number) => void;
|
|
34
|
+
}
|
|
35
|
+
export declare const VERTEX_SHADER_DEFAULT = "\n attribute vec2 uv;\n attribute vec2 position;\n varying vec2 vUv;\n void main() {\n vUv = uv;\n gl_Position = vec4(position, 0, 1);\n }\n";
|
|
36
|
+
export declare const FRAGMENT_SHADER_GRADIENT = "\n precision highp float;\n\n uniform float uTime;\n uniform vec2 uResolution;\n uniform vec2 uMouse;\n uniform float uIntensity;\n uniform vec3 uColor1;\n uniform vec3 uColor2;\n uniform vec3 uColor3;\n\n varying vec2 vUv;\n\n void main() {\n vec2 uv = vUv;\n\n // Animated gradient\n float t = uTime * 0.3;\n float noise = sin(uv.x * 3.0 + t) * sin(uv.y * 3.0 + t) * 0.5 + 0.5;\n\n vec3 color = mix(uColor1, uColor2, uv.x + sin(t) * 0.2);\n color = mix(color, uColor3, uv.y + cos(t) * 0.2);\n color = mix(color, uColor1, noise * uIntensity);\n\n gl_FragColor = vec4(color, 1.0);\n }\n";
|
|
37
|
+
export declare const FRAGMENT_SHADER_AURORA = "\n precision highp float;\n\n uniform float uTime;\n uniform vec2 uResolution;\n uniform vec2 uMouse;\n uniform float uIntensity;\n uniform vec3 uColor1;\n uniform vec3 uColor2;\n uniform vec3 uColor3;\n\n varying vec2 vUv;\n\n // Simplex noise function\n vec3 mod289(vec3 x) { return x - floor(x * (1.0 / 289.0)) * 289.0; }\n vec2 mod289(vec2 x) { return x - floor(x * (1.0 / 289.0)) * 289.0; }\n vec3 permute(vec3 x) { return mod289(((x*34.0)+1.0)*x); }\n\n float snoise(vec2 v) {\n const vec4 C = vec4(0.211324865405187, 0.366025403784439, -0.577350269189626, 0.024390243902439);\n vec2 i = floor(v + dot(v, C.yy));\n vec2 x0 = v - i + dot(i, C.xx);\n vec2 i1 = (x0.x > x0.y) ? vec2(1.0, 0.0) : vec2(0.0, 1.0);\n vec4 x12 = x0.xyxy + C.xxzz;\n x12.xy -= i1;\n i = mod289(i);\n vec3 p = permute(permute(i.y + vec3(0.0, i1.y, 1.0)) + i.x + vec3(0.0, i1.x, 1.0));\n vec3 m = max(0.5 - vec3(dot(x0,x0), dot(x12.xy,x12.xy), dot(x12.zw,x12.zw)), 0.0);\n m = m*m;\n m = m*m;\n vec3 x = 2.0 * fract(p * C.www) - 1.0;\n vec3 h = abs(x) - 0.5;\n vec3 ox = floor(x + 0.5);\n vec3 a0 = x - ox;\n m *= 1.79284291400159 - 0.85373472095314 * (a0*a0 + h*h);\n vec3 g;\n g.x = a0.x * x0.x + h.x * x0.y;\n g.yz = a0.yz * x12.xz + h.yz * x12.yw;\n return 130.0 * dot(m, g);\n }\n\n void main() {\n vec2 uv = vUv;\n float t = uTime * 0.2;\n\n // Multiple layers of noise for aurora effect\n float n1 = snoise(vec2(uv.x * 2.0, uv.y * 0.5 + t));\n float n2 = snoise(vec2(uv.x * 4.0 + t * 0.5, uv.y * 1.0));\n float n3 = snoise(vec2(uv.x * 1.0, uv.y * 2.0 - t * 0.3));\n\n float aurora = (n1 + n2 * 0.5 + n3 * 0.25) * 0.5 + 0.5;\n aurora = pow(aurora, 2.0) * uIntensity;\n\n // Vertical fade\n float fade = smoothstep(0.0, 0.6, uv.y) * smoothstep(1.0, 0.4, uv.y);\n aurora *= fade;\n\n // Color mixing\n vec3 color = mix(uColor1, uColor2, aurora);\n color = mix(color, uColor3, pow(aurora, 2.0));\n\n // Add glow\n color += uColor2 * aurora * 0.5;\n\n gl_FragColor = vec4(color, aurora * 0.8 + 0.2);\n }\n";
|
|
38
|
+
export declare const FRAGMENT_SHADER_BLOB = "\n precision highp float;\n\n uniform float uTime;\n uniform vec2 uResolution;\n uniform vec2 uMouse;\n uniform float uIntensity;\n uniform vec3 uColor1;\n uniform vec3 uColor2;\n uniform vec3 uColor3;\n\n varying vec2 vUv;\n\n float sdCircle(vec2 p, float r) {\n return length(p) - r;\n }\n\n void main() {\n vec2 uv = vUv * 2.0 - 1.0;\n uv.x *= uResolution.x / uResolution.y;\n\n float t = uTime * 0.5;\n\n // Morphing blob\n float blob = 0.0;\n for (int i = 0; i < 5; i++) {\n float fi = float(i);\n vec2 offset = vec2(\n sin(t + fi * 1.2) * 0.3,\n cos(t + fi * 0.8) * 0.3\n );\n float size = 0.3 + sin(t + fi) * 0.1;\n blob += smoothstep(size, size - 0.1, length(uv - offset));\n }\n\n blob = clamp(blob, 0.0, 1.0) * uIntensity;\n\n // Color gradient\n vec3 color = mix(uColor1, uColor2, blob);\n color = mix(color, uColor3, pow(blob, 2.0));\n\n gl_FragColor = vec4(color, blob);\n }\n";
|
|
39
|
+
export declare const FRAGMENT_SHADER_NOISE = "\n precision highp float;\n\n uniform float uTime;\n uniform vec2 uResolution;\n uniform float uIntensity;\n uniform vec3 uColor1;\n\n varying vec2 vUv;\n\n float random(vec2 st) {\n return fract(sin(dot(st.xy, vec2(12.9898, 78.233))) * 43758.5453123);\n }\n\n void main() {\n vec2 uv = vUv;\n\n // Animated noise\n float noise = random(uv + uTime * 0.1);\n noise = mix(0.5, noise, uIntensity);\n\n vec3 color = uColor1 * noise;\n\n gl_FragColor = vec4(color, uIntensity * 0.5);\n }\n";
|
|
40
|
+
export declare const FRAGMENT_SHADER_WAVE = "\n precision highp float;\n\n uniform float uTime;\n uniform vec2 uResolution;\n uniform vec2 uMouse;\n uniform float uIntensity;\n uniform vec3 uColor1;\n uniform vec3 uColor2;\n\n varying vec2 vUv;\n\n void main() {\n vec2 uv = vUv;\n float t = uTime * 0.5;\n\n // Wave distortion\n float wave1 = sin(uv.x * 10.0 + t) * 0.1;\n float wave2 = sin(uv.x * 5.0 - t * 0.5) * 0.15;\n float wave3 = cos(uv.x * 15.0 + t * 0.7) * 0.05;\n\n float y = uv.y + (wave1 + wave2 + wave3) * uIntensity;\n\n // Gradient with waves\n vec3 color = mix(uColor1, uColor2, smoothstep(0.3, 0.7, y));\n\n gl_FragColor = vec4(color, 1.0);\n }\n";
|
|
41
|
+
export declare const FRAGMENT_SHADER_MESH_GRADIENT = "\n precision highp float;\n\n uniform float uTime;\n uniform vec2 uResolution;\n uniform vec2 uMouse;\n uniform float uIntensity;\n uniform vec3 uColor1;\n uniform vec3 uColor2;\n uniform vec3 uColor3;\n uniform vec3 uColor4;\n\n varying vec2 vUv;\n\n // Simplex noise\n vec3 mod289(vec3 x) { return x - floor(x * (1.0 / 289.0)) * 289.0; }\n vec2 mod289(vec2 x) { return x - floor(x * (1.0 / 289.0)) * 289.0; }\n vec3 permute(vec3 x) { return mod289(((x*34.0)+1.0)*x); }\n\n float snoise(vec2 v) {\n const vec4 C = vec4(0.211324865405187, 0.366025403784439, -0.577350269189626, 0.024390243902439);\n vec2 i = floor(v + dot(v, C.yy));\n vec2 x0 = v - i + dot(i, C.xx);\n vec2 i1 = (x0.x > x0.y) ? vec2(1.0, 0.0) : vec2(0.0, 1.0);\n vec4 x12 = x0.xyxy + C.xxzz;\n x12.xy -= i1;\n i = mod289(i);\n vec3 p = permute(permute(i.y + vec3(0.0, i1.y, 1.0)) + i.x + vec3(0.0, i1.x, 1.0));\n vec3 m = max(0.5 - vec3(dot(x0,x0), dot(x12.xy,x12.xy), dot(x12.zw,x12.zw)), 0.0);\n m = m*m;\n m = m*m;\n vec3 x = 2.0 * fract(p * C.www) - 1.0;\n vec3 h = abs(x) - 0.5;\n vec3 ox = floor(x + 0.5);\n vec3 a0 = x - ox;\n m *= 1.79284291400159 - 0.85373472095314 * (a0*a0 + h*h);\n vec3 g;\n g.x = a0.x * x0.x + h.x * x0.y;\n g.yz = a0.yz * x12.xz + h.yz * x12.yw;\n return 130.0 * dot(m, g);\n }\n\n void main() {\n vec2 uv = vUv;\n float t = uTime * 0.15;\n\n // Animated mesh gradient using noise\n float n1 = snoise(uv * 2.0 + t) * 0.5 + 0.5;\n float n2 = snoise(uv * 3.0 - t * 0.5) * 0.5 + 0.5;\n float n3 = snoise(uv * 1.5 + vec2(t, -t)) * 0.5 + 0.5;\n\n // Four-corner gradient with noise displacement\n vec3 tl = uColor1;\n vec3 tr = uColor2;\n vec3 bl = uColor3;\n vec3 br = uColor4;\n\n vec2 nuv = uv + vec2(n1 - 0.5, n2 - 0.5) * 0.2 * uIntensity;\n nuv = clamp(nuv, 0.0, 1.0);\n\n vec3 top = mix(tl, tr, nuv.x);\n vec3 bottom = mix(bl, br, nuv.x);\n vec3 color = mix(bottom, top, nuv.y);\n\n // Add subtle glow\n color += (uColor1 + uColor2) * 0.1 * n3 * uIntensity;\n\n gl_FragColor = vec4(color, 1.0);\n }\n";
|
|
42
|
+
export declare const FRAGMENT_SHADER_PARTICLES = "\n precision highp float;\n\n uniform float uTime;\n uniform vec2 uResolution;\n uniform float uIntensity;\n uniform vec3 uColor1;\n uniform vec3 uColor2;\n\n varying vec2 vUv;\n\n float random(vec2 st) {\n return fract(sin(dot(st.xy, vec2(12.9898, 78.233))) * 43758.5453123);\n }\n\n void main() {\n vec2 uv = vUv;\n float t = uTime * 0.2;\n\n vec3 color = vec3(0.0);\n\n // Multiple particle layers\n for (int i = 0; i < 3; i++) {\n float fi = float(i);\n vec2 grid = uv * (20.0 + fi * 10.0);\n vec2 id = floor(grid);\n vec2 gv = fract(grid) - 0.5;\n\n float n = random(id + fi);\n float size = n * 0.3 + 0.1;\n\n // Animated position\n vec2 offset = vec2(\n sin(t + n * 6.28) * 0.2,\n cos(t * 0.7 + n * 6.28) * 0.3 - t * 0.5\n );\n offset.y = mod(offset.y, 1.0) - 0.5;\n\n float d = length(gv - offset);\n float particle = smoothstep(size, size - 0.05, d);\n\n vec3 pColor = mix(uColor1, uColor2, n);\n color += pColor * particle * (1.0 - fi * 0.2);\n }\n\n color *= uIntensity;\n\n gl_FragColor = vec4(color, length(color) * 0.5);\n }\n";
|
|
43
|
+
export declare function hexToVec3(hex: string): [number, number, number];
|
|
44
|
+
export type ShaderPreset = "gradient" | "aurora" | "blob" | "noise" | "wave" | "mesh" | "particles";
|
|
45
|
+
export declare const SHADER_PRESETS: Record<ShaderPreset, string>;
|
|
46
|
+
export declare const PRESET_COLORS: Record<ShaderPreset, string[]>;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { type VariantProps } from "class-variance-authority";
|
|
3
|
+
declare const socialProofVariants: (props?: ({
|
|
4
|
+
size?: "sm" | "default" | "lg" | null | undefined;
|
|
5
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6
|
+
export interface SocialProofProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof socialProofVariants> {
|
|
7
|
+
}
|
|
8
|
+
declare const SocialProof: React.ForwardRefExoticComponent<SocialProofProps & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
export interface AvatarStackProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
10
|
+
/**
|
|
11
|
+
* Maximum number of avatars to show
|
|
12
|
+
* @default 5
|
|
13
|
+
*/
|
|
14
|
+
max?: number;
|
|
15
|
+
/**
|
|
16
|
+
* Total count (for "+X more" display)
|
|
17
|
+
*/
|
|
18
|
+
total?: number;
|
|
19
|
+
/**
|
|
20
|
+
* Size of avatars
|
|
21
|
+
* @default "default"
|
|
22
|
+
*/
|
|
23
|
+
size?: "sm" | "default" | "lg";
|
|
24
|
+
}
|
|
25
|
+
declare const AvatarStack: React.ForwardRefExoticComponent<AvatarStackProps & React.RefAttributes<HTMLDivElement>>;
|
|
26
|
+
export interface StarRatingProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
27
|
+
/**
|
|
28
|
+
* Rating value (0-5)
|
|
29
|
+
*/
|
|
30
|
+
rating: number;
|
|
31
|
+
/**
|
|
32
|
+
* Total reviews count
|
|
33
|
+
*/
|
|
34
|
+
reviewCount?: number;
|
|
35
|
+
/**
|
|
36
|
+
* Size of stars
|
|
37
|
+
* @default "default"
|
|
38
|
+
*/
|
|
39
|
+
size?: "sm" | "default" | "lg";
|
|
40
|
+
/**
|
|
41
|
+
* Whether to show the rating number
|
|
42
|
+
* @default true
|
|
43
|
+
*/
|
|
44
|
+
showValue?: boolean;
|
|
45
|
+
}
|
|
46
|
+
declare const StarRating: React.ForwardRefExoticComponent<StarRatingProps & React.RefAttributes<HTMLDivElement>>;
|
|
47
|
+
declare const TrustBadges: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
48
|
+
export interface TrustBadgeProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
49
|
+
icon?: React.ReactNode;
|
|
50
|
+
label: string;
|
|
51
|
+
}
|
|
52
|
+
declare const TrustBadge: React.ForwardRefExoticComponent<TrustBadgeProps & React.RefAttributes<HTMLDivElement>>;
|
|
53
|
+
export interface CustomerCountProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
54
|
+
count: number;
|
|
55
|
+
label?: string;
|
|
56
|
+
size?: "sm" | "default" | "lg";
|
|
57
|
+
}
|
|
58
|
+
declare const CustomerCount: React.ForwardRefExoticComponent<CustomerCountProps & React.RefAttributes<HTMLDivElement>>;
|
|
59
|
+
declare const SocialProofBanner: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
60
|
+
export interface FeaturedInProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
61
|
+
title?: string;
|
|
62
|
+
}
|
|
63
|
+
declare const FeaturedIn: React.ForwardRefExoticComponent<FeaturedInProps & React.RefAttributes<HTMLDivElement>>;
|
|
64
|
+
export { SocialProof, AvatarStack, StarRating, TrustBadges, TrustBadge, CustomerCount, SocialProofBanner, FeaturedIn, };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { type VariantProps } from "class-variance-authority";
|
|
3
|
+
declare const statsSectionVariants: (props?: ({
|
|
4
|
+
variant?: "default" | "dark" | "muted" | "primary" | null | undefined;
|
|
5
|
+
size?: "sm" | "default" | "lg" | null | undefined;
|
|
6
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
|
+
export interface StatsSectionProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof statsSectionVariants> {
|
|
8
|
+
}
|
|
9
|
+
declare const StatsSection: React.ForwardRefExoticComponent<StatsSectionProps & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
+
declare const StatsHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
+
declare const StatsTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLHeadingElement>>;
|
|
12
|
+
declare const StatsDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
13
|
+
declare const statsGridVariants: (props?: ({
|
|
14
|
+
columns?: 2 | 3 | 4 | null | undefined;
|
|
15
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
16
|
+
export interface StatsGridProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof statsGridVariants> {
|
|
17
|
+
}
|
|
18
|
+
declare const StatsGrid: React.ForwardRefExoticComponent<StatsGridProps & React.RefAttributes<HTMLDivElement>>;
|
|
19
|
+
declare const statItemVariants: (props?: ({
|
|
20
|
+
variant?: "default" | "bordered" | "card" | null | undefined;
|
|
21
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
22
|
+
export interface StatItemProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof statItemVariants> {
|
|
23
|
+
}
|
|
24
|
+
declare const StatItem: React.ForwardRefExoticComponent<StatItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
25
|
+
declare const StatValue: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
26
|
+
declare const StatLabel: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
27
|
+
declare const StatTrend: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
28
|
+
direction?: "up" | "down" | "neutral";
|
|
29
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
30
|
+
export { StatsSection, StatsHeader, StatsTitle, StatsDescription, StatsGrid, StatItem, StatValue, StatLabel, StatTrend, };
|