@opensite/ui 0.1.2 → 0.1.4

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.
Files changed (105) hide show
  1. package/dist/components.cjs +1511 -3
  2. package/dist/components.cjs.map +1 -1
  3. package/dist/components.d.cts +13 -0
  4. package/dist/components.d.ts +13 -0
  5. package/dist/components.js +1499 -4
  6. package/dist/components.js.map +1 -1
  7. package/dist/footer-animated-social.cjs +272 -0
  8. package/dist/footer-animated-social.cjs.map +1 -0
  9. package/dist/footer-animated-social.d.cts +41 -0
  10. package/dist/footer-animated-social.d.ts +41 -0
  11. package/dist/footer-animated-social.js +250 -0
  12. package/dist/footer-animated-social.js.map +1 -0
  13. package/dist/footer-background-card.cjs +149 -0
  14. package/dist/footer-background-card.cjs.map +1 -0
  15. package/dist/footer-background-card.d.cts +74 -0
  16. package/dist/footer-background-card.d.ts +74 -0
  17. package/dist/footer-background-card.js +147 -0
  18. package/dist/footer-background-card.js.map +1 -0
  19. package/dist/footer-brand-description.cjs +244 -0
  20. package/dist/footer-brand-description.cjs.map +1 -0
  21. package/dist/footer-brand-description.d.cts +65 -0
  22. package/dist/footer-brand-description.d.ts +65 -0
  23. package/dist/footer-brand-description.js +222 -0
  24. package/dist/footer-brand-description.js.map +1 -0
  25. package/dist/footer-contact-card.cjs +238 -0
  26. package/dist/footer-contact-card.cjs.map +1 -0
  27. package/dist/footer-contact-card.d.cts +65 -0
  28. package/dist/footer-contact-card.d.ts +65 -0
  29. package/dist/footer-contact-card.js +216 -0
  30. package/dist/footer-contact-card.js.map +1 -0
  31. package/dist/footer-cta-banner.cjs +282 -0
  32. package/dist/footer-cta-banner.cjs.map +1 -0
  33. package/dist/footer-cta-banner.d.cts +77 -0
  34. package/dist/footer-cta-banner.d.ts +77 -0
  35. package/dist/footer-cta-banner.js +260 -0
  36. package/dist/footer-cta-banner.js.map +1 -0
  37. package/dist/footer-cta-social.cjs +221 -0
  38. package/dist/footer-cta-social.cjs.map +1 -0
  39. package/dist/footer-cta-social.d.cts +45 -0
  40. package/dist/footer-cta-social.d.ts +45 -0
  41. package/dist/footer-cta-social.js +199 -0
  42. package/dist/footer-cta-social.js.map +1 -0
  43. package/dist/footer-links-grid.cjs +119 -0
  44. package/dist/footer-links-grid.cjs.map +1 -0
  45. package/dist/footer-links-grid.d.cts +54 -0
  46. package/dist/footer-links-grid.d.ts +54 -0
  47. package/dist/footer-links-grid.js +117 -0
  48. package/dist/footer-links-grid.js.map +1 -0
  49. package/dist/footer-nav-social.cjs +273 -0
  50. package/dist/footer-nav-social.cjs.map +1 -0
  51. package/dist/footer-nav-social.d.cts +72 -0
  52. package/dist/footer-nav-social.d.ts +72 -0
  53. package/dist/footer-nav-social.js +251 -0
  54. package/dist/footer-nav-social.js.map +1 -0
  55. package/dist/footer-newsletter-grid.cjs +271 -0
  56. package/dist/footer-newsletter-grid.cjs.map +1 -0
  57. package/dist/footer-newsletter-grid.d.cts +74 -0
  58. package/dist/footer-newsletter-grid.d.ts +74 -0
  59. package/dist/footer-newsletter-grid.js +249 -0
  60. package/dist/footer-newsletter-grid.js.map +1 -0
  61. package/dist/footer-newsletter-minimal.cjs +271 -0
  62. package/dist/footer-newsletter-minimal.cjs.map +1 -0
  63. package/dist/footer-newsletter-minimal.d.cts +57 -0
  64. package/dist/footer-newsletter-minimal.d.ts +57 -0
  65. package/dist/footer-newsletter-minimal.js +249 -0
  66. package/dist/footer-newsletter-minimal.js.map +1 -0
  67. package/dist/footer-simple-centered.cjs +101 -0
  68. package/dist/footer-simple-centered.cjs.map +1 -0
  69. package/dist/footer-simple-centered.d.cts +52 -0
  70. package/dist/footer-simple-centered.d.ts +52 -0
  71. package/dist/footer-simple-centered.js +99 -0
  72. package/dist/footer-simple-centered.js.map +1 -0
  73. package/dist/footer-social-apps.cjs +247 -0
  74. package/dist/footer-social-apps.cjs.map +1 -0
  75. package/dist/footer-social-apps.d.cts +75 -0
  76. package/dist/footer-social-apps.d.ts +75 -0
  77. package/dist/footer-social-apps.js +225 -0
  78. package/dist/footer-social-apps.js.map +1 -0
  79. package/dist/footer-social-newsletter.cjs +267 -0
  80. package/dist/footer-social-newsletter.cjs.map +1 -0
  81. package/dist/footer-social-newsletter.d.cts +68 -0
  82. package/dist/footer-social-newsletter.d.ts +68 -0
  83. package/dist/footer-social-newsletter.js +245 -0
  84. package/dist/footer-social-newsletter.js.map +1 -0
  85. package/dist/index.cjs +1511 -3
  86. package/dist/index.cjs.map +1 -1
  87. package/dist/index.d.cts +13 -0
  88. package/dist/index.d.ts +13 -0
  89. package/dist/index.js +1499 -4
  90. package/dist/index.js.map +1 -1
  91. package/dist/pressable.cjs +10 -3
  92. package/dist/pressable.cjs.map +1 -1
  93. package/dist/pressable.js +10 -3
  94. package/dist/pressable.js.map +1 -1
  95. package/dist/registry.cjs +1971 -1
  96. package/dist/registry.cjs.map +1 -1
  97. package/dist/registry.js +1971 -1
  98. package/dist/registry.js.map +1 -1
  99. package/dist/team-media-showcase.cjs +182 -0
  100. package/dist/team-media-showcase.cjs.map +1 -0
  101. package/dist/team-media-showcase.d.cts +145 -0
  102. package/dist/team-media-showcase.d.ts +145 -0
  103. package/dist/team-media-showcase.js +160 -0
  104. package/dist/team-media-showcase.js.map +1 -0
  105. package/package.json +71 -1
@@ -0,0 +1,271 @@
1
+ "use client";
2
+ 'use strict';
3
+
4
+ var clsx = require('clsx');
5
+ var tailwindMerge = require('tailwind-merge');
6
+ var img = require('@page-speed/img');
7
+ var React = require('react');
8
+ var jsxRuntime = require('react/jsx-runtime');
9
+
10
+ function _interopNamespace(e) {
11
+ if (e && e.__esModule) return e;
12
+ var n = Object.create(null);
13
+ if (e) {
14
+ Object.keys(e).forEach(function (k) {
15
+ if (k !== 'default') {
16
+ var d = Object.getOwnPropertyDescriptor(e, k);
17
+ Object.defineProperty(n, k, d.get ? d : {
18
+ enumerable: true,
19
+ get: function () { return e[k]; }
20
+ });
21
+ }
22
+ });
23
+ }
24
+ n.default = e;
25
+ return Object.freeze(n);
26
+ }
27
+
28
+ var React__namespace = /*#__PURE__*/_interopNamespace(React);
29
+
30
+ // lib/utils.ts
31
+ function cn(...inputs) {
32
+ return tailwindMerge.twMerge(clsx.clsx(inputs));
33
+ }
34
+ var svgCache = /* @__PURE__ */ new Map();
35
+ function DynamicIcon({
36
+ name,
37
+ size = 28,
38
+ color,
39
+ className,
40
+ alt
41
+ }) {
42
+ const [svgContent, setSvgContent] = React__namespace.useState(null);
43
+ const [isLoading, setIsLoading] = React__namespace.useState(true);
44
+ const [error, setError] = React__namespace.useState(null);
45
+ const { url, iconName } = React__namespace.useMemo(() => {
46
+ const separator = name.includes("/") ? "/" : ":";
47
+ const [prefix, iconName2] = name.split(separator);
48
+ const baseUrl = `https://icons.opensite.ai/api/icon/${prefix}/${iconName2}?format=svg&width=${size}&height=${size}`;
49
+ return {
50
+ url: baseUrl,
51
+ iconName: iconName2
52
+ };
53
+ }, [name, size]);
54
+ React__namespace.useEffect(() => {
55
+ let isMounted = true;
56
+ const fetchSvg = async () => {
57
+ const cached = svgCache.get(url);
58
+ if (cached) {
59
+ if (isMounted) {
60
+ setSvgContent(cached);
61
+ setIsLoading(false);
62
+ }
63
+ return;
64
+ }
65
+ try {
66
+ setIsLoading(true);
67
+ setError(null);
68
+ const response = await fetch(url);
69
+ if (!response.ok) {
70
+ throw new Error(`Failed to fetch icon: ${response.status}`);
71
+ }
72
+ let svg = await response.text();
73
+ svg = processSvgForCurrentColor(svg);
74
+ svgCache.set(url, svg);
75
+ if (isMounted) {
76
+ setSvgContent(svg);
77
+ setIsLoading(false);
78
+ }
79
+ } catch (err) {
80
+ if (isMounted) {
81
+ setError(err instanceof Error ? err.message : "Failed to load icon");
82
+ setIsLoading(false);
83
+ }
84
+ }
85
+ };
86
+ fetchSvg();
87
+ return () => {
88
+ isMounted = false;
89
+ };
90
+ }, [url]);
91
+ if (isLoading) {
92
+ return /* @__PURE__ */ jsxRuntime.jsx(
93
+ "span",
94
+ {
95
+ className: cn("inline-block", className),
96
+ style: { width: size, height: size },
97
+ "aria-hidden": "true"
98
+ }
99
+ );
100
+ }
101
+ if (error || !svgContent) {
102
+ return /* @__PURE__ */ jsxRuntime.jsx(
103
+ "span",
104
+ {
105
+ className: cn("inline-block", className),
106
+ style: { width: size, height: size },
107
+ role: "img",
108
+ "aria-label": alt || iconName
109
+ }
110
+ );
111
+ }
112
+ return /* @__PURE__ */ jsxRuntime.jsx(
113
+ "span",
114
+ {
115
+ className: cn("inline-flex items-center justify-center", className),
116
+ style: {
117
+ width: size,
118
+ height: size,
119
+ color: color || "inherit"
120
+ },
121
+ role: "img",
122
+ "aria-label": alt || iconName,
123
+ dangerouslySetInnerHTML: { __html: svgContent }
124
+ }
125
+ );
126
+ }
127
+ function processSvgForCurrentColor(svg) {
128
+ let processed = svg;
129
+ processed = processed.replace(
130
+ /stroke=["'](#000000|#000|black)["']/gi,
131
+ 'stroke="currentColor"'
132
+ );
133
+ processed = processed.replace(
134
+ /fill=["'](#000000|#000|black)["']/gi,
135
+ 'fill="currentColor"'
136
+ );
137
+ return processed;
138
+ }
139
+ var defaultSections = [
140
+ {
141
+ title: "Product",
142
+ links: [
143
+ { name: "Overview", href: "#" },
144
+ { name: "Pricing", href: "#" },
145
+ { name: "Marketplace", href: "#" },
146
+ { name: "Features", href: "#" },
147
+ { name: "Integrations", href: "#" },
148
+ { name: "Marketing", href: "#" }
149
+ ]
150
+ },
151
+ {
152
+ title: "Company",
153
+ links: [
154
+ { name: "About", href: "#" },
155
+ { name: "Team", href: "#" },
156
+ { name: "Blog", href: "#" },
157
+ { name: "Careers", href: "#" },
158
+ { name: "Contact", href: "#" }
159
+ ]
160
+ }
161
+ ];
162
+ var defaultSocialLinks = [
163
+ { icon: "simple-icons/instagram", href: "#", label: "Instagram" },
164
+ { icon: "simple-icons/facebook", href: "#", label: "Facebook" },
165
+ { icon: "simple-icons/x", href: "#", label: "X (Twitter)" },
166
+ { icon: "simple-icons/linkedin", href: "#", label: "LinkedIn" }
167
+ ];
168
+ function FooterNewsletterGrid({
169
+ logo = {
170
+ url: "https://opensite.ai",
171
+ src: "https://cdn.ing/assets/i/r/285975/eud79qeya11q5w6ueyhklueardyx/os-suircle-black-white.png",
172
+ alt: "Opensite AI",
173
+ title: "Opensite AI"
174
+ },
175
+ className,
176
+ description = "A collection of 100+ responsive HTML templates for your startup business or side project.",
177
+ sections = defaultSections,
178
+ socialLinks = defaultSocialLinks,
179
+ newsletterTitle = "Newsletter",
180
+ newsletterPlaceholder = "Email",
181
+ newsletterButtonText = "Subscribe",
182
+ privacyText = "By submitting, you agree to our",
183
+ privacyLinkText = "Privacy Policy",
184
+ privacyLinkUrl = "#",
185
+ copyright = `\xA9 ${(/* @__PURE__ */ new Date()).getFullYear()} Opensite AI. All rights reserved.`,
186
+ optixFlowConfig
187
+ }) {
188
+ return /* @__PURE__ */ jsxRuntime.jsx("section", { className: cn("py-32", className), children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "container", children: /* @__PURE__ */ jsxRuntime.jsxs("footer", { children: [
189
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid grid-cols-4 justify-between gap-10 lg:grid-cols-6 lg:text-left", children: [
190
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "col-span-4 flex w-full flex-col gap-6 lg:col-span-2", children: [
191
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2 lg:justify-start", children: [
192
+ /* @__PURE__ */ jsxRuntime.jsx("a", { href: logo.url, children: /* @__PURE__ */ jsxRuntime.jsx(
193
+ img.Img,
194
+ {
195
+ src: logo.src,
196
+ alt: logo.alt,
197
+ className: "h-8",
198
+ optixFlowConfig
199
+ }
200
+ ) }),
201
+ /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-xl font-semibold", children: logo.title })
202
+ ] }),
203
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground", children: description }),
204
+ /* @__PURE__ */ jsxRuntime.jsx("ul", { className: "flex items-center space-x-6", children: socialLinks.map((social, idx) => /* @__PURE__ */ jsxRuntime.jsx(
205
+ "li",
206
+ {
207
+ className: "font-medium duration-200 hover:scale-110 hover:text-muted-foreground",
208
+ children: /* @__PURE__ */ jsxRuntime.jsx("a", { href: social.href, "aria-label": social.label, children: /* @__PURE__ */ jsxRuntime.jsx(DynamicIcon, { name: social.icon, size: 24 }) })
209
+ },
210
+ idx
211
+ )) })
212
+ ] }),
213
+ sections.map((section, sectionIdx) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "col-span-2 md:col-span-1", children: [
214
+ /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "mb-5 font-medium", children: section.title }),
215
+ /* @__PURE__ */ jsxRuntime.jsx("ul", { className: "space-y-4 text-sm text-muted-foreground", children: section.links.map((link, linkIdx) => /* @__PURE__ */ jsxRuntime.jsx(
216
+ "li",
217
+ {
218
+ className: "font-medium hover:text-primary",
219
+ children: /* @__PURE__ */ jsxRuntime.jsx("a", { href: link.href, children: link.name })
220
+ },
221
+ linkIdx
222
+ )) })
223
+ ] }, sectionIdx)),
224
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "col-span-4 md:col-span-2", children: [
225
+ /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "mb-5 font-medium", children: newsletterTitle }),
226
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "grid gap-1.5", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex w-full items-center space-x-2", children: [
227
+ /* @__PURE__ */ jsxRuntime.jsx(
228
+ "input",
229
+ {
230
+ type: "email",
231
+ placeholder: newsletterPlaceholder,
232
+ className: "flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50"
233
+ }
234
+ ),
235
+ /* @__PURE__ */ jsxRuntime.jsx(
236
+ "button",
237
+ {
238
+ type: "submit",
239
+ className: "inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 bg-primary text-primary-foreground hover:bg-primary/90 h-10 px-4 py-2",
240
+ children: newsletterButtonText
241
+ }
242
+ )
243
+ ] }) }),
244
+ /* @__PURE__ */ jsxRuntime.jsxs("p", { className: "mt-1 text-xs font-medium text-muted-foreground", children: [
245
+ privacyText,
246
+ /* @__PURE__ */ jsxRuntime.jsx("a", { href: privacyLinkUrl, className: "ml-1 text-primary hover:underline", children: privacyLinkText })
247
+ ] })
248
+ ] })
249
+ ] }),
250
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-20 flex flex-col justify-between gap-4 border-t pt-8 text-sm font-medium text-muted-foreground lg:flex-row lg:items-center lg:text-left", children: [
251
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-col gap-2 lg:flex-row lg:items-center lg:gap-4", children: /* @__PURE__ */ jsxRuntime.jsxs("p", { children: [
252
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "mr-1 font-bold text-primary", children: "Opensite AI" }),
253
+ copyright
254
+ ] }) }),
255
+ /* @__PURE__ */ jsxRuntime.jsx(
256
+ "a",
257
+ {
258
+ href: "https://opensite.ai",
259
+ className: "hover:text-primary",
260
+ target: "_blank",
261
+ rel: "noopener noreferrer",
262
+ children: "AI Website and Automation Platform by Opensite"
263
+ }
264
+ )
265
+ ] })
266
+ ] }) }) });
267
+ }
268
+
269
+ exports.FooterNewsletterGrid = FooterNewsletterGrid;
270
+ //# sourceMappingURL=footer-newsletter-grid.cjs.map
271
+ //# sourceMappingURL=footer-newsletter-grid.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../lib/utils.ts","../components/ui/dynamic-icon.tsx","../components/blocks/footers/footer-newsletter-grid.tsx"],"names":["twMerge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K,SAAA,EAAU,6BAAA,EAA8B,QAAA,EAAA,aAAA,EAAW,CAAA;AAAA,QACxD;AAAA,OAAA,EACH,CAAA,EACF,CAAA;AAAA,sBACAA,cAAAA;AAAA,QAAC,GAAA;AAAA,QAAA;AAAA,UACC,IAAA,EAAK,qBAAA;AAAA,UACL,SAAA,EAAU,oBAAA;AAAA,UACV,MAAA,EAAO,QAAA;AAAA,UACP,GAAA,EAAI,qBAAA;AAAA,UACL,QAAA,EAAA;AAAA;AAAA;AAED,KAAA,EACF;AAAA,GAAA,EACF,GACF,CAAA,EACF,CAAA;AAEJ","file":"footer-newsletter-grid.cjs","sourcesContent":["import { clsx, type ClassValue } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n","\"use client\";\n\nimport * as React from \"react\";\n\nimport { cn } from \"../../lib/utils\";\n\ninterface DynamicIconProps {\n /**\n * Icon name in format: prefix/name or prefix:name\n * Examples: \"lucide/home\", \"mdi:account\", \"heroicons/check\"\n */\n name: string;\n /**\n * Icon size in pixels\n * @default 28\n */\n size?: number;\n /**\n * Icon color - accepts any valid CSS color\n * Note: When not specified, the icon inherits color from parent via CSS currentColor\n */\n color?: string;\n /**\n * Additional CSS classes\n */\n className?: string;\n /**\n * Alt text for accessibility\n */\n alt?: string;\n}\n\n// Simple in-memory cache for fetched SVGs\nconst svgCache = new Map<string, string>();\n\n/**\n * Lightweight icon component that dynamically loads SVG icons from icons.opensite.ai API.\n *\n * Features:\n * - Pulls SVGs from https://icons.opensite.ai API and inlines them for CSS color inheritance\n * - Supports currentColor - icons inherit color from parent element\n * - Accepts prefix/name or prefix:name format\n * - Customizable size and explicit color via props\n * - In-memory caching to prevent duplicate fetches\n *\n * @example\n * ```tsx\n * // Icon inherits color from parent (recommended for hover states, etc.)\n * <span className=\"text-white hover:text-red-500\">\n * <DynamicIcon name=\"lucide/home\" size={24} />\n * </span>\n *\n * // Icon with explicit color\n * <DynamicIcon name=\"mdi:account\" size={32} color=\"#ff0000\" />\n * ```\n */\nexport function DynamicIcon({\n name,\n size = 28,\n color,\n className,\n alt,\n}: DynamicIconProps) {\n const [svgContent, setSvgContent] = React.useState<string | null>(null);\n const [isLoading, setIsLoading] = React.useState(true);\n const [error, setError] = React.useState<string | null>(null);\n\n const { url, iconName } = React.useMemo(() => {\n const separator = name.includes(\"/\") ? \"/\" : \":\";\n const [prefix, iconName] = name.split(separator);\n // Don't pass color to API - we'll handle it via CSS\n const baseUrl = `https://icons.opensite.ai/api/icon/${prefix}/${iconName}?format=svg&width=${size}&height=${size}`;\n\n return {\n url: baseUrl,\n iconName,\n };\n }, [name, size]);\n\n React.useEffect(() => {\n let isMounted = true;\n\n const fetchSvg = async () => {\n // Check cache first\n const cached = svgCache.get(url);\n if (cached) {\n if (isMounted) {\n setSvgContent(cached);\n setIsLoading(false);\n }\n return;\n }\n\n try {\n setIsLoading(true);\n setError(null);\n\n const response = await fetch(url);\n if (!response.ok) {\n throw new Error(`Failed to fetch icon: ${response.status}`);\n }\n\n let svg = await response.text();\n\n // Process SVG to ensure currentColor works:\n // 1. Replace any hardcoded colors with currentColor\n // 2. Ensure stroke/fill use currentColor where appropriate\n svg = processSvgForCurrentColor(svg);\n\n // Cache the processed SVG\n svgCache.set(url, svg);\n\n if (isMounted) {\n setSvgContent(svg);\n setIsLoading(false);\n }\n } catch (err) {\n if (isMounted) {\n setError(err instanceof Error ? err.message : \"Failed to load icon\");\n setIsLoading(false);\n }\n }\n };\n\n fetchSvg();\n\n return () => {\n isMounted = false;\n };\n }, [url]);\n\n // Loading state - show placeholder with same dimensions\n if (isLoading) {\n return (\n <span\n className={cn(\"inline-block\", className)}\n style={{ width: size, height: size }}\n aria-hidden=\"true\"\n />\n );\n }\n\n // Error state - show nothing or fallback\n if (error || !svgContent) {\n return (\n <span\n className={cn(\"inline-block\", className)}\n style={{ width: size, height: size }}\n role=\"img\"\n aria-label={alt || iconName}\n />\n );\n }\n\n // Render inline SVG\n // The color prop applies an explicit color, otherwise inherits from parent via currentColor\n return (\n <span\n className={cn(\"inline-flex items-center justify-center\", className)}\n style={{\n width: size,\n height: size,\n color: color || \"inherit\",\n }}\n role=\"img\"\n aria-label={alt || iconName}\n dangerouslySetInnerHTML={{ __html: svgContent }}\n />\n );\n}\n\n/**\n * Process SVG to ensure it uses currentColor for proper CSS inheritance.\n * This handles various icon libraries that may use different color approaches.\n */\nfunction processSvgForCurrentColor(svg: string): string {\n // Replace stroke=\"currentColor\" is already correct, but ensure fill also works\n // Some icons use fill=\"none\" with stroke, others use fill with no stroke\n\n // Ensure the SVG doesn't have hardcoded colors that should be currentColor\n // Common patterns to replace:\n // - stroke=\"#000\" or stroke=\"#000000\" or stroke=\"black\" -> stroke=\"currentColor\"\n // - fill=\"#000\" or fill=\"#000000\" or fill=\"black\" -> fill=\"currentColor\"\n\n let processed = svg;\n\n // Replace common black color values with currentColor for stroke\n processed = processed.replace(\n /stroke=[\"'](#000000|#000|black)[\"']/gi,\n 'stroke=\"currentColor\"'\n );\n\n // Replace common black color values with currentColor for fill\n // But be careful not to replace fill=\"none\"\n processed = processed.replace(\n /fill=[\"'](#000000|#000|black)[\"']/gi,\n 'fill=\"currentColor\"'\n );\n\n return processed;\n}\n","\"use client\";\n\nimport * as React from \"react\";\nimport { cn } from \"../../../lib/utils\";\nimport { Img } from \"@page-speed/img\";\nimport { DynamicIcon } from \"../../ui/dynamic-icon\";\n\n/**\n * Social link configuration\n */\nexport interface FooterNewsletterGridSocialLink {\n /** Icon name in format: prefix/name (e.g., \"simple-icons/instagram\") */\n icon: string;\n /** Link URL */\n href: string;\n /** Accessible label */\n label: string;\n}\n\n/**\n * Navigation section configuration\n */\nexport interface FooterNewsletterGridSection {\n title: string;\n links: {\n name: string;\n href: string;\n }[];\n}\n\n/**\n * Props for the FooterNewsletterGrid component\n */\nexport interface FooterNewsletterGridProps {\n /** Logo configuration */\n logo?: {\n url: string;\n src: string;\n alt: string;\n title: string;\n };\n /** Additional CSS classes */\n className?: string;\n /** Brand description text */\n description?: string;\n /** Navigation sections */\n sections?: FooterNewsletterGridSection[];\n /** Social media links */\n socialLinks?: FooterNewsletterGridSocialLink[];\n /** Newsletter section title */\n newsletterTitle?: string;\n /** Newsletter placeholder text */\n newsletterPlaceholder?: string;\n /** Newsletter button text */\n newsletterButtonText?: string;\n /** Privacy policy text */\n privacyText?: string;\n /** Privacy policy link text */\n privacyLinkText?: string;\n /** Privacy policy URL */\n privacyLinkUrl?: string;\n /** Copyright text */\n copyright?: string;\n /** Attribution text */\n attribution?: string;\n /** Optional Optix Flow configuration for @page-speed/img */\n optixFlowConfig?: {\n apiKey: string;\n compression?: number;\n };\n}\n\nconst defaultSections: FooterNewsletterGridSection[] = [\n {\n title: \"Product\",\n links: [\n { name: \"Overview\", href: \"#\" },\n { name: \"Pricing\", href: \"#\" },\n { name: \"Marketplace\", href: \"#\" },\n { name: \"Features\", href: \"#\" },\n { name: \"Integrations\", href: \"#\" },\n { name: \"Marketing\", href: \"#\" },\n ],\n },\n {\n title: \"Company\",\n links: [\n { name: \"About\", href: \"#\" },\n { name: \"Team\", href: \"#\" },\n { name: \"Blog\", href: \"#\" },\n { name: \"Careers\", href: \"#\" },\n { name: \"Contact\", href: \"#\" },\n ],\n },\n];\n\nconst defaultSocialLinks: FooterNewsletterGridSocialLink[] = [\n { icon: \"simple-icons/instagram\", href: \"#\", label: \"Instagram\" },\n { icon: \"simple-icons/facebook\", href: \"#\", label: \"Facebook\" },\n { icon: \"simple-icons/x\", href: \"#\", label: \"X (Twitter)\" },\n { icon: \"simple-icons/linkedin\", href: \"#\", label: \"LinkedIn\" },\n];\n\n/**\n * FooterNewsletterGrid - A comprehensive footer with logo, social icons, navigation, and newsletter.\n *\n * Features a full-width grid layout with brand section (logo, description, social icons),\n * multi-column navigation, and a prominent newsletter signup form. Ideal for content-heavy\n * websites, SaaS products, and businesses that prioritize email marketing and social engagement.\n */\nexport function FooterNewsletterGrid({\n logo = {\n url: \"https://opensite.ai\",\n src: \"https://cdn.ing/assets/i/r/285975/eud79qeya11q5w6ueyhklueardyx/os-suircle-black-white.png\",\n alt: \"Opensite AI\",\n title: \"Opensite AI\",\n },\n className,\n description = \"A collection of 100+ responsive HTML templates for your startup business or side project.\",\n sections = defaultSections,\n socialLinks = defaultSocialLinks,\n newsletterTitle = \"Newsletter\",\n newsletterPlaceholder = \"Email\",\n newsletterButtonText = \"Subscribe\",\n privacyText = \"By submitting, you agree to our\",\n privacyLinkText = \"Privacy Policy\",\n privacyLinkUrl = \"#\",\n copyright = `© ${new Date().getFullYear()} Opensite AI. All rights reserved.`,\n optixFlowConfig,\n}: FooterNewsletterGridProps): React.JSX.Element {\n return (\n <section className={cn(\"py-32\", className)}>\n <div className=\"container\">\n <footer>\n <div className=\"grid grid-cols-4 justify-between gap-10 lg:grid-cols-6 lg:text-left\">\n <div className=\"col-span-4 flex w-full flex-col gap-6 lg:col-span-2\">\n <div className=\"flex items-center gap-2 lg:justify-start\">\n <a href={logo.url}>\n <Img\n src={logo.src}\n alt={logo.alt}\n className=\"h-8\"\n optixFlowConfig={optixFlowConfig}\n />\n </a>\n <h2 className=\"text-xl font-semibold\">{logo.title}</h2>\n </div>\n <p className=\"text-muted-foreground\">{description}</p>\n <ul className=\"flex items-center space-x-6\">\n {socialLinks.map((social, idx) => (\n <li\n key={idx}\n className=\"font-medium duration-200 hover:scale-110 hover:text-muted-foreground\"\n >\n <a href={social.href} aria-label={social.label}>\n <DynamicIcon name={social.icon} size={24} />\n </a>\n </li>\n ))}\n </ul>\n </div>\n {sections.map((section, sectionIdx) => (\n <div key={sectionIdx} className=\"col-span-2 md:col-span-1\">\n <h3 className=\"mb-5 font-medium\">{section.title}</h3>\n <ul className=\"space-y-4 text-sm text-muted-foreground\">\n {section.links.map((link, linkIdx) => (\n <li\n key={linkIdx}\n className=\"font-medium hover:text-primary\"\n >\n <a href={link.href}>{link.name}</a>\n </li>\n ))}\n </ul>\n </div>\n ))}\n <div className=\"col-span-4 md:col-span-2\">\n <h3 className=\"mb-5 font-medium\">{newsletterTitle}</h3>\n <div className=\"grid gap-1.5\">\n <div className=\"flex w-full items-center space-x-2\">\n <input\n type=\"email\"\n placeholder={newsletterPlaceholder}\n className=\"flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50\"\n />\n <button\n type=\"submit\"\n className=\"inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 bg-primary text-primary-foreground hover:bg-primary/90 h-10 px-4 py-2\"\n >\n {newsletterButtonText}\n </button>\n </div>\n </div>\n <p className=\"mt-1 text-xs font-medium text-muted-foreground\">\n {privacyText}\n <a href={privacyLinkUrl} className=\"ml-1 text-primary hover:underline\">\n {privacyLinkText}\n </a>\n </p>\n </div>\n </div>\n <div className=\"mt-20 flex flex-col justify-between gap-4 border-t pt-8 text-sm font-medium text-muted-foreground lg:flex-row lg:items-center lg:text-left\">\n <div className=\"flex flex-col gap-2 lg:flex-row lg:items-center lg:gap-4\">\n <p>\n <span className=\"mr-1 font-bold text-primary\">Opensite AI</span>\n {copyright}\n </p>\n </div>\n <a\n href=\"https://opensite.ai\"\n className=\"hover:text-primary\"\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n >\n AI Website and Automation Platform by Opensite\n </a>\n </div>\n </footer>\n </div>\n </section>\n );\n}\n"]}
@@ -0,0 +1,74 @@
1
+ import * as React from 'react';
2
+
3
+ /**
4
+ * Social link configuration
5
+ */
6
+ interface FooterNewsletterGridSocialLink {
7
+ /** Icon name in format: prefix/name (e.g., "simple-icons/instagram") */
8
+ icon: string;
9
+ /** Link URL */
10
+ href: string;
11
+ /** Accessible label */
12
+ label: string;
13
+ }
14
+ /**
15
+ * Navigation section configuration
16
+ */
17
+ interface FooterNewsletterGridSection {
18
+ title: string;
19
+ links: {
20
+ name: string;
21
+ href: string;
22
+ }[];
23
+ }
24
+ /**
25
+ * Props for the FooterNewsletterGrid component
26
+ */
27
+ interface FooterNewsletterGridProps {
28
+ /** Logo configuration */
29
+ logo?: {
30
+ url: string;
31
+ src: string;
32
+ alt: string;
33
+ title: string;
34
+ };
35
+ /** Additional CSS classes */
36
+ className?: string;
37
+ /** Brand description text */
38
+ description?: string;
39
+ /** Navigation sections */
40
+ sections?: FooterNewsletterGridSection[];
41
+ /** Social media links */
42
+ socialLinks?: FooterNewsletterGridSocialLink[];
43
+ /** Newsletter section title */
44
+ newsletterTitle?: string;
45
+ /** Newsletter placeholder text */
46
+ newsletterPlaceholder?: string;
47
+ /** Newsletter button text */
48
+ newsletterButtonText?: string;
49
+ /** Privacy policy text */
50
+ privacyText?: string;
51
+ /** Privacy policy link text */
52
+ privacyLinkText?: string;
53
+ /** Privacy policy URL */
54
+ privacyLinkUrl?: string;
55
+ /** Copyright text */
56
+ copyright?: string;
57
+ /** Attribution text */
58
+ attribution?: string;
59
+ /** Optional Optix Flow configuration for @page-speed/img */
60
+ optixFlowConfig?: {
61
+ apiKey: string;
62
+ compression?: number;
63
+ };
64
+ }
65
+ /**
66
+ * FooterNewsletterGrid - A comprehensive footer with logo, social icons, navigation, and newsletter.
67
+ *
68
+ * Features a full-width grid layout with brand section (logo, description, social icons),
69
+ * multi-column navigation, and a prominent newsletter signup form. Ideal for content-heavy
70
+ * websites, SaaS products, and businesses that prioritize email marketing and social engagement.
71
+ */
72
+ declare function FooterNewsletterGrid({ logo, className, description, sections, socialLinks, newsletterTitle, newsletterPlaceholder, newsletterButtonText, privacyText, privacyLinkText, privacyLinkUrl, copyright, optixFlowConfig, }: FooterNewsletterGridProps): React.JSX.Element;
73
+
74
+ export { FooterNewsletterGrid, type FooterNewsletterGridProps, type FooterNewsletterGridSection, type FooterNewsletterGridSocialLink };
@@ -0,0 +1,74 @@
1
+ import * as React from 'react';
2
+
3
+ /**
4
+ * Social link configuration
5
+ */
6
+ interface FooterNewsletterGridSocialLink {
7
+ /** Icon name in format: prefix/name (e.g., "simple-icons/instagram") */
8
+ icon: string;
9
+ /** Link URL */
10
+ href: string;
11
+ /** Accessible label */
12
+ label: string;
13
+ }
14
+ /**
15
+ * Navigation section configuration
16
+ */
17
+ interface FooterNewsletterGridSection {
18
+ title: string;
19
+ links: {
20
+ name: string;
21
+ href: string;
22
+ }[];
23
+ }
24
+ /**
25
+ * Props for the FooterNewsletterGrid component
26
+ */
27
+ interface FooterNewsletterGridProps {
28
+ /** Logo configuration */
29
+ logo?: {
30
+ url: string;
31
+ src: string;
32
+ alt: string;
33
+ title: string;
34
+ };
35
+ /** Additional CSS classes */
36
+ className?: string;
37
+ /** Brand description text */
38
+ description?: string;
39
+ /** Navigation sections */
40
+ sections?: FooterNewsletterGridSection[];
41
+ /** Social media links */
42
+ socialLinks?: FooterNewsletterGridSocialLink[];
43
+ /** Newsletter section title */
44
+ newsletterTitle?: string;
45
+ /** Newsletter placeholder text */
46
+ newsletterPlaceholder?: string;
47
+ /** Newsletter button text */
48
+ newsletterButtonText?: string;
49
+ /** Privacy policy text */
50
+ privacyText?: string;
51
+ /** Privacy policy link text */
52
+ privacyLinkText?: string;
53
+ /** Privacy policy URL */
54
+ privacyLinkUrl?: string;
55
+ /** Copyright text */
56
+ copyright?: string;
57
+ /** Attribution text */
58
+ attribution?: string;
59
+ /** Optional Optix Flow configuration for @page-speed/img */
60
+ optixFlowConfig?: {
61
+ apiKey: string;
62
+ compression?: number;
63
+ };
64
+ }
65
+ /**
66
+ * FooterNewsletterGrid - A comprehensive footer with logo, social icons, navigation, and newsletter.
67
+ *
68
+ * Features a full-width grid layout with brand section (logo, description, social icons),
69
+ * multi-column navigation, and a prominent newsletter signup form. Ideal for content-heavy
70
+ * websites, SaaS products, and businesses that prioritize email marketing and social engagement.
71
+ */
72
+ declare function FooterNewsletterGrid({ logo, className, description, sections, socialLinks, newsletterTitle, newsletterPlaceholder, newsletterButtonText, privacyText, privacyLinkText, privacyLinkUrl, copyright, optixFlowConfig, }: FooterNewsletterGridProps): React.JSX.Element;
73
+
74
+ export { FooterNewsletterGrid, type FooterNewsletterGridProps, type FooterNewsletterGridSection, type FooterNewsletterGridSocialLink };