@opensite/ui 1.3.2 → 1.3.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 (167) hide show
  1. package/dist/footer-accordion-social.cjs +1344 -0
  2. package/dist/footer-accordion-social.d.cts +154 -0
  3. package/dist/footer-accordion-social.d.ts +154 -0
  4. package/dist/footer-accordion-social.js +1322 -0
  5. package/dist/footer-info-cards-accordion.cjs +1427 -0
  6. package/dist/footer-info-cards-accordion.d.cts +278 -0
  7. package/dist/footer-info-cards-accordion.d.ts +278 -0
  8. package/dist/footer-info-cards-accordion.js +1404 -0
  9. package/dist/footer-newsletter-contact.cjs +1281 -0
  10. package/dist/footer-newsletter-contact.d.cts +163 -0
  11. package/dist/footer-newsletter-contact.d.ts +163 -0
  12. package/dist/footer-newsletter-contact.js +1259 -0
  13. package/dist/footer-split-image-accordion.cjs +1395 -0
  14. package/dist/footer-split-image-accordion.d.cts +236 -0
  15. package/dist/footer-split-image-accordion.d.ts +236 -0
  16. package/dist/footer-split-image-accordion.js +1372 -0
  17. package/dist/list-achievements-showcase.cjs +1141 -0
  18. package/dist/list-achievements-showcase.d.cts +131 -0
  19. package/dist/list-achievements-showcase.d.ts +131 -0
  20. package/dist/list-achievements-showcase.js +1119 -0
  21. package/dist/list-career-timeline.cjs +531 -0
  22. package/dist/list-career-timeline.d.cts +153 -0
  23. package/dist/list-career-timeline.d.ts +153 -0
  24. package/dist/list-career-timeline.js +509 -0
  25. package/dist/list-feature-comparison.cjs +1211 -0
  26. package/dist/list-feature-comparison.d.cts +189 -0
  27. package/dist/list-feature-comparison.d.ts +189 -0
  28. package/dist/list-feature-comparison.js +1190 -0
  29. package/dist/list-metrics-dashboard.cjs +1402 -0
  30. package/dist/list-metrics-dashboard.d.cts +191 -0
  31. package/dist/list-metrics-dashboard.d.ts +191 -0
  32. package/dist/list-metrics-dashboard.js +1379 -0
  33. package/dist/list-service-category-table.cjs +762 -0
  34. package/dist/list-service-category-table.d.cts +135 -0
  35. package/dist/list-service-category-table.d.ts +135 -0
  36. package/dist/list-service-category-table.js +741 -0
  37. package/dist/offer-modal-membership-image.cjs +1361 -0
  38. package/dist/offer-modal-membership-image.d.cts +194 -0
  39. package/dist/offer-modal-membership-image.d.ts +194 -0
  40. package/dist/offer-modal-membership-image.js +1339 -0
  41. package/dist/offer-modal-newsletter-discount.cjs +1296 -0
  42. package/dist/offer-modal-newsletter-discount.d.cts +164 -0
  43. package/dist/offer-modal-newsletter-discount.d.ts +164 -0
  44. package/dist/offer-modal-newsletter-discount.js +1274 -0
  45. package/dist/offer-modal-sheet-newsletter.cjs +1360 -0
  46. package/dist/offer-modal-sheet-newsletter.d.cts +221 -0
  47. package/dist/offer-modal-sheet-newsletter.d.ts +221 -0
  48. package/dist/offer-modal-sheet-newsletter.js +1337 -0
  49. package/dist/pricing-addons-cards.cjs +1143 -0
  50. package/dist/pricing-addons-cards.d.cts +203 -0
  51. package/dist/pricing-addons-cards.d.ts +203 -0
  52. package/dist/pricing-addons-cards.js +1122 -0
  53. package/dist/pricing-addons-featured.cjs +1224 -0
  54. package/dist/pricing-addons-featured.d.cts +271 -0
  55. package/dist/pricing-addons-featured.d.ts +271 -0
  56. package/dist/pricing-addons-featured.js +1203 -0
  57. package/dist/pricing-collapsible-plans.cjs +1315 -0
  58. package/dist/pricing-collapsible-plans.d.cts +258 -0
  59. package/dist/pricing-collapsible-plans.d.ts +258 -0
  60. package/dist/pricing-collapsible-plans.js +1294 -0
  61. package/dist/pricing-columns-toggle.cjs +1234 -0
  62. package/dist/pricing-columns-toggle.d.cts +251 -0
  63. package/dist/pricing-columns-toggle.d.ts +251 -0
  64. package/dist/pricing-columns-toggle.js +1212 -0
  65. package/dist/pricing-comparison-headers.cjs +1235 -0
  66. package/dist/pricing-comparison-headers.d.cts +245 -0
  67. package/dist/pricing-comparison-headers.d.ts +245 -0
  68. package/dist/pricing-comparison-headers.js +1213 -0
  69. package/dist/pricing-comparison-table.cjs +1374 -0
  70. package/dist/pricing-comparison-table.d.cts +280 -0
  71. package/dist/pricing-comparison-table.d.ts +280 -0
  72. package/dist/pricing-comparison-table.js +1352 -0
  73. package/dist/pricing-discount-card.cjs +1217 -0
  74. package/dist/pricing-discount-card.d.cts +195 -0
  75. package/dist/pricing-discount-card.d.ts +195 -0
  76. package/dist/pricing-discount-card.js +1195 -0
  77. package/dist/pricing-enterprise-contact.cjs +1094 -0
  78. package/dist/pricing-enterprise-contact.d.cts +170 -0
  79. package/dist/pricing-enterprise-contact.d.ts +170 -0
  80. package/dist/pricing-enterprise-contact.js +1073 -0
  81. package/dist/pricing-feature-matrix.cjs +1197 -0
  82. package/dist/pricing-feature-matrix.d.cts +56 -0
  83. package/dist/pricing-feature-matrix.d.ts +56 -0
  84. package/dist/pricing-feature-matrix.js +1174 -0
  85. package/dist/pricing-four-tier-toggle.cjs +1320 -0
  86. package/dist/pricing-four-tier-toggle.d.cts +266 -0
  87. package/dist/pricing-four-tier-toggle.d.ts +266 -0
  88. package/dist/pricing-four-tier-toggle.js +1297 -0
  89. package/dist/pricing-full-comparison.cjs +1301 -0
  90. package/dist/pricing-full-comparison.d.cts +265 -0
  91. package/dist/pricing-full-comparison.d.ts +265 -0
  92. package/dist/pricing-full-comparison.js +1279 -0
  93. package/dist/pricing-gradient-cards.cjs +1248 -0
  94. package/dist/pricing-gradient-cards.d.cts +258 -0
  95. package/dist/pricing-gradient-cards.d.ts +258 -0
  96. package/dist/pricing-gradient-cards.js +1226 -0
  97. package/dist/pricing-icon-headers.cjs +1163 -0
  98. package/dist/pricing-icon-headers.d.cts +218 -0
  99. package/dist/pricing-icon-headers.d.ts +218 -0
  100. package/dist/pricing-icon-headers.js +1142 -0
  101. package/dist/pricing-minimal-cards.cjs +1146 -0
  102. package/dist/pricing-minimal-cards.d.cts +210 -0
  103. package/dist/pricing-minimal-cards.d.ts +210 -0
  104. package/dist/pricing-minimal-cards.js +1125 -0
  105. package/dist/pricing-packages-radio.cjs +1203 -0
  106. package/dist/pricing-packages-radio.d.cts +243 -0
  107. package/dist/pricing-packages-radio.d.ts +243 -0
  108. package/dist/pricing-packages-radio.js +1182 -0
  109. package/dist/pricing-popular-highlight.cjs +1293 -0
  110. package/dist/pricing-popular-highlight.d.cts +255 -0
  111. package/dist/pricing-popular-highlight.d.ts +255 -0
  112. package/dist/pricing-popular-highlight.js +1271 -0
  113. package/dist/pricing-radio-toggle.cjs +1277 -0
  114. package/dist/pricing-radio-toggle.d.cts +251 -0
  115. package/dist/pricing-radio-toggle.d.ts +251 -0
  116. package/dist/pricing-radio-toggle.js +1255 -0
  117. package/dist/pricing-responsive-table.cjs +1229 -0
  118. package/dist/pricing-responsive-table.d.cts +55 -0
  119. package/dist/pricing-responsive-table.d.ts +55 -0
  120. package/dist/pricing-responsive-table.js +1206 -0
  121. package/dist/pricing-services-cards.cjs +1209 -0
  122. package/dist/pricing-services-cards.d.cts +230 -0
  123. package/dist/pricing-services-cards.d.ts +230 -0
  124. package/dist/pricing-services-cards.js +1188 -0
  125. package/dist/pricing-simple-card.cjs +1102 -0
  126. package/dist/pricing-simple-card.d.cts +174 -0
  127. package/dist/pricing-simple-card.d.ts +174 -0
  128. package/dist/pricing-simple-card.js +1081 -0
  129. package/dist/pricing-single-card.cjs +1174 -0
  130. package/dist/pricing-single-card.d.cts +201 -0
  131. package/dist/pricing-single-card.d.ts +201 -0
  132. package/dist/pricing-single-card.js +1152 -0
  133. package/dist/pricing-split-layout.cjs +1001 -0
  134. package/dist/pricing-split-layout.d.cts +44 -0
  135. package/dist/pricing-split-layout.d.ts +44 -0
  136. package/dist/pricing-split-layout.js +980 -0
  137. package/dist/pricing-spotlight-card.cjs +1157 -0
  138. package/dist/pricing-spotlight-card.d.cts +201 -0
  139. package/dist/pricing-spotlight-card.d.ts +201 -0
  140. package/dist/pricing-spotlight-card.js +1136 -0
  141. package/dist/pricing-switch-cards.cjs +1274 -0
  142. package/dist/pricing-switch-cards.d.cts +254 -0
  143. package/dist/pricing-switch-cards.d.ts +254 -0
  144. package/dist/pricing-switch-cards.js +1252 -0
  145. package/dist/pricing-tabs-toggle.cjs +1314 -0
  146. package/dist/pricing-tabs-toggle.d.cts +274 -0
  147. package/dist/pricing-tabs-toggle.d.ts +274 -0
  148. package/dist/pricing-tabs-toggle.js +1291 -0
  149. package/dist/pricing-tier-grid.cjs +1190 -0
  150. package/dist/pricing-tier-grid.d.cts +224 -0
  151. package/dist/pricing-tier-grid.d.ts +224 -0
  152. package/dist/pricing-tier-grid.js +1169 -0
  153. package/dist/pricing-toggle-cards.cjs +1330 -0
  154. package/dist/pricing-toggle-cards.d.cts +267 -0
  155. package/dist/pricing-toggle-cards.d.ts +267 -0
  156. package/dist/pricing-toggle-cards.js +1307 -0
  157. package/dist/pricing-toggle-period.cjs +1251 -0
  158. package/dist/pricing-toggle-period.d.cts +265 -0
  159. package/dist/pricing-toggle-period.d.ts +265 -0
  160. package/dist/pricing-toggle-period.js +1230 -0
  161. package/dist/pricing-two-column-basic.cjs +1243 -0
  162. package/dist/pricing-two-column-basic.d.cts +244 -0
  163. package/dist/pricing-two-column-basic.d.ts +244 -0
  164. package/dist/pricing-two-column-basic.js +1222 -0
  165. package/dist/registry.cjs +109 -85
  166. package/dist/registry.js +931 -907
  167. package/package.json +1 -1
@@ -0,0 +1,1224 @@
1
+ "use client";
2
+ 'use strict';
3
+
4
+ var React = require('react');
5
+ var clsx = require('clsx');
6
+ var tailwindMerge = require('tailwind-merge');
7
+ var jsxRuntime = require('react/jsx-runtime');
8
+ var classVarianceAuthority = require('class-variance-authority');
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
+ // components/blocks/pricing/pricing-addons-featured.tsx
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
+ function normalizePhoneNumber(input) {
140
+ const trimmed = input.trim();
141
+ if (trimmed.toLowerCase().startsWith("tel:")) {
142
+ return trimmed;
143
+ }
144
+ const match = trimmed.match(/^[\s\+\-\(\)]*(\d[\d\s\-\(\)\.]*\d)[\s\-]*(x|ext\.?|extension)?[\s\-]*(\d+)?$/i);
145
+ if (match) {
146
+ const mainNumber = match[1].replace(/[\s\-\(\)\.]/g, "");
147
+ const extension = match[3];
148
+ const normalized = mainNumber.length >= 10 && !trimmed.startsWith("+") ? `+${mainNumber}` : mainNumber;
149
+ const withExtension = extension ? `${normalized};ext=${extension}` : normalized;
150
+ return `tel:${withExtension}`;
151
+ }
152
+ const cleaned = trimmed.replace(/[\s\-\(\)\.]/g, "");
153
+ return `tel:${cleaned}`;
154
+ }
155
+ function normalizeEmail(input) {
156
+ const trimmed = input.trim();
157
+ if (trimmed.toLowerCase().startsWith("mailto:")) {
158
+ return trimmed;
159
+ }
160
+ return `mailto:${trimmed}`;
161
+ }
162
+ function isEmail(input) {
163
+ const emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
164
+ return emailRegex.test(input.trim());
165
+ }
166
+ function isPhoneNumber(input) {
167
+ const trimmed = input.trim();
168
+ if (trimmed.toLowerCase().startsWith("tel:")) {
169
+ return true;
170
+ }
171
+ const phoneRegex = /^[\s\+\-\(\)]*\d[\d\s\-\(\)\.]*\d[\s\-]*(x|ext\.?|extension)?[\s\-]*\d*$/i;
172
+ return phoneRegex.test(trimmed);
173
+ }
174
+ function isInternalUrl(href) {
175
+ if (typeof window === "undefined") {
176
+ return href.startsWith("/") && !href.startsWith("//");
177
+ }
178
+ const trimmed = href.trim();
179
+ if (trimmed.startsWith("/") && !trimmed.startsWith("//")) {
180
+ return true;
181
+ }
182
+ try {
183
+ const url = new URL(trimmed, window.location.href);
184
+ const currentOrigin = window.location.origin;
185
+ const normalizeOrigin = (origin) => origin.replace(/^(https?:\/\/)(www\.)?/, "$1");
186
+ return normalizeOrigin(url.origin) === normalizeOrigin(currentOrigin);
187
+ } catch {
188
+ return false;
189
+ }
190
+ }
191
+ function toRelativePath(href) {
192
+ if (typeof window === "undefined") {
193
+ return href;
194
+ }
195
+ const trimmed = href.trim();
196
+ if (trimmed.startsWith("/") && !trimmed.startsWith("//")) {
197
+ return trimmed;
198
+ }
199
+ try {
200
+ const url = new URL(trimmed, window.location.href);
201
+ const currentOrigin = window.location.origin;
202
+ const normalizeOrigin = (origin) => origin.replace(/^(https?:\/\/)(www\.)?/, "$1");
203
+ if (normalizeOrigin(url.origin) === normalizeOrigin(currentOrigin)) {
204
+ return url.pathname + url.search + url.hash;
205
+ }
206
+ } catch {
207
+ }
208
+ return trimmed;
209
+ }
210
+ function useNavigation({
211
+ href,
212
+ onClick
213
+ } = {}) {
214
+ const linkType = React__namespace.useMemo(() => {
215
+ if (!href || href.trim() === "") {
216
+ return onClick ? "none" : "none";
217
+ }
218
+ const trimmed = href.trim();
219
+ if (trimmed.toLowerCase().startsWith("mailto:") || isEmail(trimmed)) {
220
+ return "mailto";
221
+ }
222
+ if (trimmed.toLowerCase().startsWith("tel:") || isPhoneNumber(trimmed)) {
223
+ return "tel";
224
+ }
225
+ if (isInternalUrl(trimmed)) {
226
+ return "internal";
227
+ }
228
+ try {
229
+ new URL(trimmed, typeof window !== "undefined" ? window.location.href : "http://localhost");
230
+ return "external";
231
+ } catch {
232
+ return "internal";
233
+ }
234
+ }, [href, onClick]);
235
+ const normalizedHref = React__namespace.useMemo(() => {
236
+ if (!href || href.trim() === "") {
237
+ return void 0;
238
+ }
239
+ const trimmed = href.trim();
240
+ switch (linkType) {
241
+ case "tel":
242
+ return normalizePhoneNumber(trimmed);
243
+ case "mailto":
244
+ return normalizeEmail(trimmed);
245
+ case "internal":
246
+ return toRelativePath(trimmed);
247
+ case "external":
248
+ return trimmed;
249
+ default:
250
+ return trimmed;
251
+ }
252
+ }, [href, linkType]);
253
+ const target = React__namespace.useMemo(() => {
254
+ switch (linkType) {
255
+ case "external":
256
+ return "_blank";
257
+ case "internal":
258
+ return "_self";
259
+ case "mailto":
260
+ case "tel":
261
+ return void 0;
262
+ default:
263
+ return void 0;
264
+ }
265
+ }, [linkType]);
266
+ const rel = React__namespace.useMemo(() => {
267
+ if (linkType === "external") {
268
+ return "noopener noreferrer";
269
+ }
270
+ return void 0;
271
+ }, [linkType]);
272
+ const isExternal = linkType === "external";
273
+ const isInternal = linkType === "internal";
274
+ const shouldUseRouter = isInternal && typeof normalizedHref === "string" && normalizedHref.startsWith("/");
275
+ const handleClick = React__namespace.useCallback(
276
+ (event) => {
277
+ if (onClick) {
278
+ try {
279
+ onClick(event);
280
+ } catch (error) {
281
+ console.error("Error in user onClick handler:", error);
282
+ }
283
+ }
284
+ if (event.defaultPrevented) {
285
+ return;
286
+ }
287
+ if (shouldUseRouter && normalizedHref && event.button === 0 && // left-click only
288
+ !event.metaKey && !event.altKey && !event.ctrlKey && !event.shiftKey) {
289
+ if (typeof window !== "undefined") {
290
+ const handler = window.__opensiteNavigationHandler;
291
+ if (typeof handler === "function") {
292
+ try {
293
+ const handled = handler(normalizedHref, event.nativeEvent || event);
294
+ if (handled !== false) {
295
+ event.preventDefault();
296
+ }
297
+ } catch (error) {
298
+ console.error("Error in navigation handler:", error);
299
+ }
300
+ }
301
+ }
302
+ }
303
+ },
304
+ [onClick, shouldUseRouter, normalizedHref]
305
+ );
306
+ return {
307
+ linkType,
308
+ normalizedHref,
309
+ target,
310
+ rel,
311
+ isExternal,
312
+ isInternal,
313
+ shouldUseRouter,
314
+ handleClick
315
+ };
316
+ }
317
+ var baseStyles = [
318
+ // Layout
319
+ "inline-flex items-center justify-center gap-2 whitespace-nowrap shrink-0",
320
+ // Typography - using CSS variables with sensible defaults
321
+ "font-[var(--button-font-family,inherit)]",
322
+ "font-[var(--button-font-weight,500)]",
323
+ "tracking-[var(--button-letter-spacing,0)]",
324
+ "leading-[var(--button-line-height,1.25)]",
325
+ "[text-transform:var(--button-text-transform,none)]",
326
+ "text-sm",
327
+ // Border radius
328
+ "rounded-[var(--button-radius,var(--radius,0.375rem))]",
329
+ // Smooth transition - using [transition:...] to set full shorthand property (not just transition-property)
330
+ "[transition:var(--button-transition,all_250ms_cubic-bezier(0.4,0,0.2,1))]",
331
+ // Box shadow (master level) - using [box-shadow:...] for complex multi-value shadows
332
+ "[box-shadow:var(--button-shadow,none)]",
333
+ "hover:[box-shadow:var(--button-shadow-hover,var(--button-shadow,none))]",
334
+ // Disabled state
335
+ "disabled:pointer-events-none disabled:opacity-50",
336
+ // SVG handling
337
+ "[&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0",
338
+ // Focus styles
339
+ "outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
340
+ // Invalid state
341
+ "aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive"
342
+ ].join(" ");
343
+ var buttonVariants = classVarianceAuthority.cva(baseStyles, {
344
+ variants: {
345
+ variant: {
346
+ // Default (Primary) variant - full customization
347
+ default: [
348
+ "bg-[var(--button-default-bg,hsl(var(--primary)))]",
349
+ "text-[var(--button-default-fg,hsl(var(--primary-foreground)))]",
350
+ "border-[length:var(--button-default-border-width,0px)]",
351
+ "border-[color:var(--button-default-border,transparent)]",
352
+ "[box-shadow:var(--button-default-shadow,var(--button-shadow,none))]",
353
+ "hover:bg-[var(--button-default-hover-bg,hsl(var(--primary)/0.9))]",
354
+ "hover:text-[var(--button-default-hover-fg,var(--button-default-fg,hsl(var(--primary-foreground))))]",
355
+ "hover:border-[color:var(--button-default-hover-border,var(--button-default-border,transparent))]",
356
+ "hover:[box-shadow:var(--button-default-shadow-hover,var(--button-shadow-hover,var(--button-default-shadow,var(--button-shadow,none))))]"
357
+ ].join(" "),
358
+ // Destructive variant - full customization
359
+ destructive: [
360
+ "bg-[var(--button-destructive-bg,hsl(var(--destructive)))]",
361
+ "text-[var(--button-destructive-fg,white)]",
362
+ "border-[length:var(--button-destructive-border-width,0px)]",
363
+ "border-[color:var(--button-destructive-border,transparent)]",
364
+ "[box-shadow:var(--button-destructive-shadow,var(--button-shadow,none))]",
365
+ "hover:bg-[var(--button-destructive-hover-bg,hsl(var(--destructive)/0.9))]",
366
+ "hover:text-[var(--button-destructive-hover-fg,var(--button-destructive-fg,white))]",
367
+ "hover:border-[color:var(--button-destructive-hover-border,var(--button-destructive-border,transparent))]",
368
+ "hover:[box-shadow:var(--button-destructive-shadow-hover,var(--button-shadow-hover,var(--button-destructive-shadow,var(--button-shadow,none))))]",
369
+ "focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40",
370
+ "dark:bg-destructive/60"
371
+ ].join(" "),
372
+ // Outline variant - full customization with proper border handling
373
+ outline: [
374
+ "bg-[var(--button-outline-bg,hsl(var(--background)))]",
375
+ "text-[var(--button-outline-fg,inherit)]",
376
+ "border-[length:var(--button-outline-border-width,1px)]",
377
+ "border-[color:var(--button-outline-border,hsl(var(--border)))]",
378
+ "[box-shadow:var(--button-outline-shadow,var(--button-shadow,0_1px_2px_0_rgb(0_0_0/0.05)))]",
379
+ "hover:bg-[var(--button-outline-hover-bg,hsl(var(--accent)))]",
380
+ "hover:text-[var(--button-outline-hover-fg,hsl(var(--accent-foreground)))]",
381
+ "hover:border-[color:var(--button-outline-hover-border,var(--button-outline-border,hsl(var(--border))))]",
382
+ "hover:[box-shadow:var(--button-outline-shadow-hover,var(--button-shadow-hover,var(--button-outline-shadow,var(--button-shadow,none))))]",
383
+ "dark:bg-input/30 dark:border-input dark:hover:bg-input/50"
384
+ ].join(" "),
385
+ // Secondary variant - full customization
386
+ secondary: [
387
+ "bg-[var(--button-secondary-bg,hsl(var(--secondary)))]",
388
+ "text-[var(--button-secondary-fg,hsl(var(--secondary-foreground)))]",
389
+ "border-[length:var(--button-secondary-border-width,0px)]",
390
+ "border-[color:var(--button-secondary-border,transparent)]",
391
+ "[box-shadow:var(--button-secondary-shadow,var(--button-shadow,none))]",
392
+ "hover:bg-[var(--button-secondary-hover-bg,hsl(var(--secondary)/0.8))]",
393
+ "hover:text-[var(--button-secondary-hover-fg,var(--button-secondary-fg,hsl(var(--secondary-foreground))))]",
394
+ "hover:border-[color:var(--button-secondary-hover-border,var(--button-secondary-border,transparent))]",
395
+ "hover:[box-shadow:var(--button-secondary-shadow-hover,var(--button-shadow-hover,var(--button-secondary-shadow,var(--button-shadow,none))))]"
396
+ ].join(" "),
397
+ // Ghost variant - full customization
398
+ ghost: [
399
+ "bg-[var(--button-ghost-bg,transparent)]",
400
+ "text-[var(--button-ghost-fg,inherit)]",
401
+ "border-[length:var(--button-ghost-border-width,0px)]",
402
+ "border-[color:var(--button-ghost-border,transparent)]",
403
+ "[box-shadow:var(--button-ghost-shadow,var(--button-shadow,none))]",
404
+ "hover:bg-[var(--button-ghost-hover-bg,hsl(var(--accent)))]",
405
+ "hover:text-[var(--button-ghost-hover-fg,hsl(var(--accent-foreground)))]",
406
+ "hover:border-[color:var(--button-ghost-hover-border,var(--button-ghost-border,transparent))]",
407
+ "hover:[box-shadow:var(--button-ghost-shadow-hover,var(--button-shadow-hover,var(--button-ghost-shadow,var(--button-shadow,none))))]",
408
+ "dark:hover:bg-accent/50"
409
+ ].join(" "),
410
+ // Link variant - full customization
411
+ link: [
412
+ "bg-[var(--button-link-bg,transparent)]",
413
+ "text-[var(--button-link-fg,hsl(var(--primary)))]",
414
+ "border-[length:var(--button-link-border-width,0px)]",
415
+ "border-[color:var(--button-link-border,transparent)]",
416
+ "[box-shadow:var(--button-link-shadow,none)]",
417
+ "hover:bg-[var(--button-link-hover-bg,transparent)]",
418
+ "hover:text-[var(--button-link-hover-fg,var(--button-link-fg,hsl(var(--primary))))]",
419
+ "hover:[box-shadow:var(--button-link-shadow-hover,none)]",
420
+ "underline-offset-4 hover:underline"
421
+ ].join(" ")
422
+ },
423
+ size: {
424
+ default: [
425
+ "h-[var(--button-height-md,2.25rem)]",
426
+ "px-[var(--button-padding-x-md,1rem)]",
427
+ "py-[var(--button-padding-y-md,0.5rem)]",
428
+ "has-[>svg]:px-[calc(var(--button-padding-x-md,1rem)*0.75)]"
429
+ ].join(" "),
430
+ sm: [
431
+ "h-[var(--button-height-sm,2rem)]",
432
+ "px-[var(--button-padding-x-sm,0.75rem)]",
433
+ "py-[var(--button-padding-y-sm,0.25rem)]",
434
+ "gap-1.5",
435
+ "has-[>svg]:px-[calc(var(--button-padding-x-sm,0.75rem)*0.83)]"
436
+ ].join(" "),
437
+ md: [
438
+ "h-[var(--button-height-md,2.25rem)]",
439
+ "px-[var(--button-padding-x-md,1rem)]",
440
+ "py-[var(--button-padding-y-md,0.5rem)]",
441
+ "has-[>svg]:px-[calc(var(--button-padding-x-md,1rem)*0.75)]"
442
+ ].join(" "),
443
+ lg: [
444
+ "h-[var(--button-height-lg,2.5rem)]",
445
+ "px-[var(--button-padding-x-lg,1.5rem)]",
446
+ "py-[var(--button-padding-y-lg,0.5rem)]",
447
+ "has-[>svg]:px-[calc(var(--button-padding-x-lg,1.5rem)*0.67)]"
448
+ ].join(" "),
449
+ icon: "size-[var(--button-height-md,2.25rem)]",
450
+ "icon-sm": "size-[var(--button-height-sm,2rem)]",
451
+ "icon-lg": "size-[var(--button-height-lg,2.5rem)]"
452
+ }
453
+ },
454
+ defaultVariants: {
455
+ variant: "default",
456
+ size: "default"
457
+ }
458
+ });
459
+ var Pressable = React__namespace.forwardRef(
460
+ ({
461
+ children,
462
+ className,
463
+ href,
464
+ onClick,
465
+ variant,
466
+ size,
467
+ asButton = false,
468
+ fallbackComponentType = "span",
469
+ componentType,
470
+ "aria-label": ariaLabel,
471
+ "aria-describedby": ariaDescribedby,
472
+ id,
473
+ ...props
474
+ }, ref) => {
475
+ const navigation = useNavigation({ href, onClick });
476
+ const {
477
+ normalizedHref,
478
+ target,
479
+ rel,
480
+ linkType,
481
+ isInternal,
482
+ handleClick
483
+ } = navigation;
484
+ const shouldRenderLink = normalizedHref && linkType !== "none";
485
+ const shouldRenderButton = !shouldRenderLink && onClick;
486
+ const effectiveComponentType = componentType || (shouldRenderLink ? "a" : shouldRenderButton ? "button" : fallbackComponentType);
487
+ const finalComponentType = isInternal && shouldRenderLink ? "a" : effectiveComponentType;
488
+ const shouldApplyButtonStyles = asButton || variant || size;
489
+ const combinedClassName = cn(
490
+ shouldApplyButtonStyles && buttonVariants({ variant, size }),
491
+ className
492
+ );
493
+ const dataProps = Object.fromEntries(
494
+ Object.entries(props).filter(([key]) => key.startsWith("data-"))
495
+ );
496
+ const buttonDataAttributes = shouldApplyButtonStyles ? {
497
+ "data-slot": "button",
498
+ "data-variant": variant ?? "default",
499
+ "data-size": size ?? "default"
500
+ } : {};
501
+ const commonProps = {
502
+ className: combinedClassName,
503
+ onClick: handleClick,
504
+ "aria-label": ariaLabel,
505
+ "aria-describedby": ariaDescribedby,
506
+ id,
507
+ ...dataProps,
508
+ ...buttonDataAttributes
509
+ };
510
+ if (finalComponentType === "a" && shouldRenderLink) {
511
+ return /* @__PURE__ */ jsxRuntime.jsx(
512
+ "a",
513
+ {
514
+ ref,
515
+ href: normalizedHref,
516
+ target,
517
+ rel,
518
+ ...commonProps,
519
+ ...props,
520
+ children
521
+ }
522
+ );
523
+ }
524
+ if (finalComponentType === "button") {
525
+ return /* @__PURE__ */ jsxRuntime.jsx(
526
+ "button",
527
+ {
528
+ ref,
529
+ type: props.type || "button",
530
+ ...commonProps,
531
+ ...props,
532
+ children
533
+ }
534
+ );
535
+ }
536
+ if (finalComponentType === "div") {
537
+ return /* @__PURE__ */ jsxRuntime.jsx(
538
+ "div",
539
+ {
540
+ ref,
541
+ ...commonProps,
542
+ children
543
+ }
544
+ );
545
+ }
546
+ return /* @__PURE__ */ jsxRuntime.jsx(
547
+ "span",
548
+ {
549
+ ref,
550
+ ...commonProps,
551
+ children
552
+ }
553
+ );
554
+ }
555
+ );
556
+ Pressable.displayName = "Pressable";
557
+ var maxWidthStyles = {
558
+ sm: "max-w-screen-sm",
559
+ md: "max-w-screen-md",
560
+ lg: "max-w-screen-lg",
561
+ xl: "max-w-7xl",
562
+ "2xl": "max-w-screen-2xl",
563
+ "4xl": "max-w-[1536px]",
564
+ full: "max-w-full"
565
+ };
566
+ var Container = React__namespace.default.forwardRef(
567
+ ({ children, maxWidth = "xl", className, as = "div", ...props }, ref) => {
568
+ const Component = as;
569
+ return /* @__PURE__ */ jsxRuntime.jsx(
570
+ Component,
571
+ {
572
+ ref,
573
+ className: cn(
574
+ "mx-auto w-full px-2 sm:px-4 lg:px-8",
575
+ maxWidthStyles[maxWidth],
576
+ className
577
+ ),
578
+ ...props,
579
+ children
580
+ }
581
+ );
582
+ }
583
+ );
584
+ Container.displayName = "Container";
585
+
586
+ // lib/patternSvgs.ts
587
+ var patternSvgs = {
588
+ squareAltGrid: "https://cdn.ing/assets/files/record/286187/4gpn0yq2ptra8iwlvmwwv860ggwv",
589
+ grid1: "https://cdn.ing/assets/files/record/286186/nbdflpgp4ostrno079hygibsflp3",
590
+ noise: "https://cdn.ing/assets/i/r/286188/zrqcp9hynh3j7p2laihwzfbujgrl/noise.png",
591
+ dots: "https://cdn.ing/assets/files/record/286198/yfsjx9thvtxzhl2qtshxyhkrm524",
592
+ dotPattern: "https://cdn.ing/assets/files/record/286192/7ig0cku8aqbboiza8nuk6hw0nnsr",
593
+ dotPattern2: "https://cdn.ing/assets/files/record/286189/arez6gd2s7isn9i1o6c7sexdq7bl",
594
+ circles: "https://cdn.ing/assets/files/record/286190/gtmia3sncjtzetdshc20zf1d3c17",
595
+ waves: "https://cdn.ing/assets/files/record/286191/mqlb33fzxz9cdth1bx7if0wmpkp1",
596
+ crossPattern: "https://cdn.ing/assets/files/record/286193/9yfqwdbnqaipbp7fsb3wbzzmq472",
597
+ architect: "https://cdn.ing/assets/files/record/286194/vgs88ugpvyhxu13wqgy0acvae6re",
598
+ tinyCheckers: "https://cdn.ing/assets/files/record/286195/65efaknsw8kcpf9o3c2gybytsl5b",
599
+ p6: "https://cdn.ing/assets/i/r/286196/6kl0rqnd6mjk8j7e525fo8fo0vkc/p6.webp"
600
+ };
601
+ var maskTop = "radial-gradient(ellipse 70% 60% at 50% 0%, #000 60%, transparent 100%)";
602
+ var maskBottom = "radial-gradient(ellipse 100% 80% at 50% 100%, #000 50%, transparent 90%)";
603
+ var maskCenter = "radial-gradient(ellipse 60% 60% at 50% 50%, #000 30%, transparent 70%)";
604
+ var maskTopLeft = "radial-gradient(ellipse 80% 80% at 0% 0%, #000 50%, transparent 90%)";
605
+ var maskTopRight = "radial-gradient(ellipse 80% 80% at 100% 0%, #000 50%, transparent 90%)";
606
+ var maskBottomLeft = "radial-gradient(ellipse 80% 80% at 0% 100%, #000 50%, transparent 90%)";
607
+ var maskBottomRight = "radial-gradient(ellipse 80% 80% at 100% 100%, #000 50%, transparent 90%)";
608
+ var circuitBoardPattern = (id, mask) => /* @__PURE__ */ jsxRuntime.jsxs(
609
+ "svg",
610
+ {
611
+ className: "h-full w-full",
612
+ xmlns: "http://www.w3.org/2000/svg",
613
+ style: mask ? {
614
+ maskImage: mask,
615
+ WebkitMaskImage: mask
616
+ } : void 0,
617
+ children: [
618
+ /* @__PURE__ */ jsxRuntime.jsx("defs", { children: /* @__PURE__ */ jsxRuntime.jsxs(
619
+ "pattern",
620
+ {
621
+ id,
622
+ x: "0",
623
+ y: "0",
624
+ width: "100",
625
+ height: "100",
626
+ patternUnits: "userSpaceOnUse",
627
+ children: [
628
+ /* @__PURE__ */ jsxRuntime.jsx(
629
+ "path",
630
+ {
631
+ d: "M0 50h40M60 50h40M50 0v40M50 60v40",
632
+ stroke: "hsl(var(--muted))",
633
+ strokeWidth: "1",
634
+ fill: "none"
635
+ }
636
+ ),
637
+ /* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "50", cy: "50", r: "3", fill: "hsl(var(--muted))" }),
638
+ /* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "0", cy: "50", r: "2", fill: "hsl(var(--muted))" }),
639
+ /* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "100", cy: "50", r: "2", fill: "hsl(var(--muted))" }),
640
+ /* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "50", cy: "0", r: "2", fill: "hsl(var(--muted))" }),
641
+ /* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "50", cy: "100", r: "2", fill: "hsl(var(--muted))" })
642
+ ]
643
+ }
644
+ ) }),
645
+ /* @__PURE__ */ jsxRuntime.jsx("rect", { width: "100%", height: "100%", fill: `url(#${id})` })
646
+ ]
647
+ }
648
+ );
649
+ var gridDotsPattern = (id, mask) => /* @__PURE__ */ jsxRuntime.jsxs(
650
+ "svg",
651
+ {
652
+ className: "h-full w-full",
653
+ xmlns: "http://www.w3.org/2000/svg",
654
+ style: mask ? {
655
+ maskImage: mask,
656
+ WebkitMaskImage: mask
657
+ } : void 0,
658
+ children: [
659
+ /* @__PURE__ */ jsxRuntime.jsx("defs", { children: /* @__PURE__ */ jsxRuntime.jsxs(
660
+ "pattern",
661
+ {
662
+ id,
663
+ x: "0",
664
+ y: "0",
665
+ width: "40",
666
+ height: "40",
667
+ patternUnits: "userSpaceOnUse",
668
+ children: [
669
+ /* @__PURE__ */ jsxRuntime.jsx(
670
+ "path",
671
+ {
672
+ d: "M0 20h40M20 0v40",
673
+ stroke: "hsl(var(--muted))",
674
+ strokeWidth: "0.5",
675
+ fill: "none"
676
+ }
677
+ ),
678
+ /* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "20", cy: "20", r: "2", fill: "hsl(var(--muted))" })
679
+ ]
680
+ }
681
+ ) }),
682
+ /* @__PURE__ */ jsxRuntime.jsx("rect", { width: "100%", height: "100%", fill: `url(#${id})` })
683
+ ]
684
+ }
685
+ );
686
+ var gridPattern = (size, mask) => /* @__PURE__ */ jsxRuntime.jsx(
687
+ "div",
688
+ {
689
+ className: "h-full w-full bg-[linear-gradient(to_right,_hsl(var(--muted))_1px,_transparent_1px),linear-gradient(to_bottom,_hsl(var(--muted))_1px,_transparent_1px)]",
690
+ style: {
691
+ backgroundSize: `${size}px ${size}px`,
692
+ ...mask ? {
693
+ maskImage: mask,
694
+ WebkitMaskImage: mask
695
+ } : {}
696
+ }
697
+ }
698
+ );
699
+ var diagonalCrossPattern = (mask) => /* @__PURE__ */ jsxRuntime.jsx(
700
+ "div",
701
+ {
702
+ className: "h-full w-full",
703
+ style: {
704
+ backgroundImage: "repeating-linear-gradient(45deg, transparent, transparent 32px, hsl(var(--muted)) 32px, hsl(var(--muted)) 33px), repeating-linear-gradient(135deg, transparent, transparent 32px, hsl(var(--muted)) 32px, hsl(var(--muted)) 33px)",
705
+ ...mask ? {
706
+ maskImage: mask,
707
+ WebkitMaskImage: mask
708
+ } : {}
709
+ }
710
+ }
711
+ );
712
+ var dashedGridMaskBase = "repeating-linear-gradient(to right, black 0px, black 3px, transparent 3px, transparent 8px), repeating-linear-gradient(to bottom, black 0px, black 3px, transparent 3px, transparent 8px)";
713
+ var dashedGridPattern = (fadeMask) => {
714
+ const mask = fadeMask ? `${dashedGridMaskBase}, ${fadeMask}` : dashedGridMaskBase;
715
+ return /* @__PURE__ */ jsxRuntime.jsx(
716
+ "div",
717
+ {
718
+ className: "h-full w-full",
719
+ style: {
720
+ backgroundImage: "linear-gradient(to right, hsl(var(--muted)) 1px, transparent 1px), linear-gradient(to bottom, hsl(var(--muted)) 1px, transparent 1px)",
721
+ backgroundSize: "20px 20px",
722
+ backgroundPosition: "0 0, 0 0",
723
+ maskImage: mask,
724
+ WebkitMaskImage: mask,
725
+ maskComposite: "intersect",
726
+ WebkitMaskComposite: "source-in"
727
+ }
728
+ }
729
+ );
730
+ };
731
+ var gradientGlow = (position) => /* @__PURE__ */ jsxRuntime.jsx(
732
+ "div",
733
+ {
734
+ className: cn(
735
+ "pointer-events-none absolute left-1/2 z-0 aspect-square w-3/4 -translate-x-1/2 rounded-full opacity-50 blur-3xl",
736
+ position === "top" ? "-top-1/4" : "-bottom-1/4"
737
+ ),
738
+ style: {
739
+ background: "radial-gradient(circle, hsl(var(--primary)) 0%, transparent 70%)"
740
+ }
741
+ }
742
+ );
743
+ var spotlight = (position) => /* @__PURE__ */ jsxRuntime.jsx(
744
+ "div",
745
+ {
746
+ className: cn(
747
+ "pointer-events-none absolute top-1/2 z-0 aspect-square w-3/4 -translate-y-1/2 rounded-full opacity-40 blur-3xl",
748
+ position === "left" ? "-left-1/4" : "-right-1/4"
749
+ ),
750
+ style: {
751
+ background: "radial-gradient(circle, hsl(var(--primary)) 0%, transparent 70%)"
752
+ }
753
+ }
754
+ );
755
+ var patternOverlays = {
756
+ circuitBoardBasic: () => circuitBoardPattern("circuit-board-basic"),
757
+ circuitBoardFadeTop: () => circuitBoardPattern("circuit-board-fade-top", maskTop),
758
+ circuitBoardFadeBottom: () => circuitBoardPattern("circuit-board-fade-bottom", maskBottom),
759
+ circuitBoardFadeCenter: () => circuitBoardPattern("circuit-board-fade-center", maskCenter),
760
+ circuitBoardFadeTopLeft: () => circuitBoardPattern("circuit-board-fade-top-left", maskTopLeft),
761
+ circuitBoardFadeTopRight: () => circuitBoardPattern("circuit-board-fade-top-right", maskTopRight),
762
+ circuitBoardFadeBottomLeft: () => circuitBoardPattern("circuit-board-fade-bottom-left", maskBottomLeft),
763
+ circuitBoardFadeBottomRight: () => circuitBoardPattern("circuit-board-fade-bottom-right", maskBottomRight),
764
+ dashedGridBasic: () => dashedGridPattern(),
765
+ dashedGridFadeTop: () => dashedGridPattern(maskTop),
766
+ dashedGridFadeBottom: () => dashedGridPattern(maskBottom),
767
+ dashedGridFadeCenter: () => dashedGridPattern(maskCenter),
768
+ dashedGridFadeTopLeft: () => dashedGridPattern(maskTopLeft),
769
+ dashedGridFadeTopRight: () => dashedGridPattern(maskTopRight),
770
+ dashedGridFadeBottomLeft: () => dashedGridPattern(maskBottomLeft),
771
+ dashedGridFadeBottomRight: () => dashedGridPattern(maskBottomRight),
772
+ diagonalCrossBasic: () => diagonalCrossPattern(),
773
+ diagonalCrossFadeTop: () => diagonalCrossPattern(maskTop),
774
+ diagonalCrossFadeBottom: () => diagonalCrossPattern(maskBottom),
775
+ diagonalCrossFadeCenter: () => diagonalCrossPattern(maskCenter),
776
+ diagonalCrossFadeTopLeft: () => diagonalCrossPattern(maskTopLeft),
777
+ diagonalCrossFadeTopRight: () => diagonalCrossPattern(maskTopRight),
778
+ diagonalCrossFadeBottomLeft: () => diagonalCrossPattern(maskBottomLeft),
779
+ diagonalCrossFadeBottomRight: () => diagonalCrossPattern(maskBottomRight),
780
+ gridBasic: () => gridPattern(40),
781
+ gridFadeTop: () => gridPattern(32, maskTop),
782
+ gridFadeBottom: () => gridPattern(32, maskBottom),
783
+ gridFadeCenter: () => gridPattern(40, maskCenter),
784
+ gridFadeTopLeft: () => gridPattern(32, maskTopLeft),
785
+ gridFadeTopRight: () => gridPattern(32, maskTopRight),
786
+ gridFadeBottomLeft: () => gridPattern(32, maskBottomLeft),
787
+ gridFadeBottomRight: () => gridPattern(32, maskBottomRight),
788
+ gridDotsBasic: () => gridDotsPattern("grid-dots-basic"),
789
+ gridDotsFadeCenter: () => gridDotsPattern("grid-dots-fade-center", maskCenter),
790
+ gradientGlowTop: () => gradientGlow("top"),
791
+ gradientGlowBottom: () => gradientGlow("bottom"),
792
+ spotlightLeft: () => spotlight("left"),
793
+ spotlightRight: () => spotlight("right")
794
+ };
795
+ var inlinePatternStyles = {
796
+ radialGradientTop: {
797
+ background: "radial-gradient(125% 125% at 50% 10%, hsl(var(--background)) 40%, hsl(var(--primary)) 100%)"
798
+ },
799
+ radialGradientBottom: {
800
+ background: "radial-gradient(125% 125% at 50% 90%, hsl(var(--background)) 40%, hsl(var(--primary)) 100%)"
801
+ }
802
+ };
803
+ function PatternBackground({
804
+ pattern,
805
+ opacity = 0.08,
806
+ className,
807
+ style
808
+ }) {
809
+ if (!pattern) {
810
+ return null;
811
+ }
812
+ if (pattern in inlinePatternStyles) {
813
+ const inlineStyle = inlinePatternStyles[pattern];
814
+ return /* @__PURE__ */ jsxRuntime.jsx(
815
+ "div",
816
+ {
817
+ className: cn("pointer-events-none absolute inset-0 z-0", className),
818
+ style: { ...inlineStyle, opacity, ...style },
819
+ "aria-hidden": "true"
820
+ }
821
+ );
822
+ }
823
+ if (pattern in patternOverlays) {
824
+ const Overlay = patternOverlays[pattern];
825
+ return /* @__PURE__ */ jsxRuntime.jsx(
826
+ "div",
827
+ {
828
+ className: cn("pointer-events-none absolute inset-0 z-0", className),
829
+ style: { opacity, ...style },
830
+ "aria-hidden": "true",
831
+ children: Overlay()
832
+ }
833
+ );
834
+ }
835
+ const patternUrl = pattern in patternSvgs ? patternSvgs[pattern] : pattern;
836
+ return /* @__PURE__ */ jsxRuntime.jsx(
837
+ "div",
838
+ {
839
+ className: cn("pointer-events-none absolute inset-0 z-0", className),
840
+ style: {
841
+ backgroundImage: `url(${patternUrl})`,
842
+ backgroundRepeat: "repeat",
843
+ backgroundSize: "auto",
844
+ opacity,
845
+ ...style
846
+ },
847
+ "aria-hidden": "true"
848
+ }
849
+ );
850
+ }
851
+ var backgroundStyles = {
852
+ default: "bg-background text-foreground",
853
+ white: "bg-white text-dark",
854
+ gray: "bg-muted/30 text-foreground",
855
+ dark: "bg-foreground text-background",
856
+ transparent: "bg-transparent text-foreground",
857
+ gradient: "bg-linear-to-br from-primary via-primary/90 to-foreground text-primary-foreground",
858
+ primary: "bg-primary text-primary-foreground",
859
+ secondary: "bg-secondary text-secondary-foreground",
860
+ muted: "bg-muted text-muted-foreground"
861
+ };
862
+ var spacingStyles = {
863
+ none: "py-0 md:py-0",
864
+ sm: "py-12 md:py-16",
865
+ md: "py-16 md:py-24",
866
+ lg: "py-20 md:py-32",
867
+ xl: "py-24 md:py-40"
868
+ };
869
+ var predefinedSpacings = ["none", "sm", "md", "lg", "xl"];
870
+ var isPredefinedSpacing = (spacing) => predefinedSpacings.includes(spacing);
871
+ var Section = React__namespace.default.forwardRef(
872
+ ({
873
+ id,
874
+ title,
875
+ subtitle,
876
+ children,
877
+ className,
878
+ style,
879
+ background = "default",
880
+ spacing = "lg",
881
+ pattern,
882
+ patternOpacity,
883
+ patternClassName,
884
+ containerClassName,
885
+ containerMaxWidth = "xl",
886
+ ...props
887
+ }, ref) => {
888
+ const effectivePatternOpacity = patternOpacity !== void 0 ? patternOpacity : pattern ? 1 : 0;
889
+ return /* @__PURE__ */ jsxRuntime.jsxs(
890
+ "section",
891
+ {
892
+ ref,
893
+ id,
894
+ className: cn(
895
+ "relative",
896
+ pattern ? "overflow-hidden" : null,
897
+ backgroundStyles[background],
898
+ isPredefinedSpacing(spacing) ? spacingStyles[spacing] : spacing,
899
+ className
900
+ ),
901
+ style,
902
+ ...props,
903
+ children: [
904
+ /* @__PURE__ */ jsxRuntime.jsx(
905
+ PatternBackground,
906
+ {
907
+ pattern,
908
+ opacity: effectivePatternOpacity,
909
+ className: patternClassName
910
+ }
911
+ ),
912
+ /* @__PURE__ */ jsxRuntime.jsxs(
913
+ Container,
914
+ {
915
+ maxWidth: containerMaxWidth,
916
+ className: cn("relative z-10", containerClassName),
917
+ children: [
918
+ (title || subtitle) && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mb-6 text-center md:mb-16", children: [
919
+ subtitle && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "mb-2 text-sm font-semibold uppercase tracking-wider", children: subtitle }),
920
+ title && /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-3xl font-bold tracking-tight md:text-4xl lg:text-5xl", children: title })
921
+ ] }),
922
+ children
923
+ ]
924
+ }
925
+ )
926
+ ]
927
+ }
928
+ );
929
+ }
930
+ );
931
+ Section.displayName = "Section";
932
+ function PricingAddonsFeatured({
933
+ heading,
934
+ subtitle,
935
+ featuredAddons,
936
+ featuredAddonsSlot,
937
+ additionalAddons,
938
+ additionalAddonsSlot,
939
+ additionalHeading,
940
+ featureIcon,
941
+ featureIconName,
942
+ background,
943
+ spacing,
944
+ pattern,
945
+ patternOpacity,
946
+ patternClassName,
947
+ className,
948
+ containerClassName,
949
+ headerClassName,
950
+ headingClassName,
951
+ subtitleClassName,
952
+ featuredGridClassName,
953
+ cardClassName,
954
+ highlightedCardClassName,
955
+ cardTitleClassName,
956
+ cardDescriptionClassName,
957
+ priceClassName,
958
+ priceDescriptionClassName,
959
+ featuresClassName,
960
+ featureItemClassName,
961
+ featureIconClassName,
962
+ featureTextClassName,
963
+ actionClassName,
964
+ additionalSectionClassName,
965
+ additionalHeadingClassName,
966
+ additionalGridClassName,
967
+ additionalItemClassName,
968
+ additionalItemTitleClassName,
969
+ additionalItemDescriptionClassName,
970
+ additionalItemPriceClassName
971
+ }) {
972
+ const renderFeatures = React.useMemo(() => {
973
+ return (addon) => {
974
+ if (addon.featuresSlot) return addon.featuresSlot;
975
+ if (!addon.features || addon.features.length === 0) return null;
976
+ return /* @__PURE__ */ jsxRuntime.jsx("ul", { className: cn("mb-6 flex-1 space-y-3", featuresClassName), children: addon.features.map((feature, featureIndex) => {
977
+ const iconName = feature.iconName || featureIconName;
978
+ const resolvedIcon = feature.icon ?? featureIcon ?? (iconName ? /* @__PURE__ */ jsxRuntime.jsx(
979
+ DynamicIcon,
980
+ {
981
+ name: iconName,
982
+ size: 16,
983
+ className: cn(
984
+ "mt-0.5 shrink-0 text-primary",
985
+ featureIconClassName,
986
+ feature.iconClassName
987
+ )
988
+ }
989
+ ) : null);
990
+ return /* @__PURE__ */ jsxRuntime.jsxs(
991
+ "li",
992
+ {
993
+ className: cn(
994
+ "flex items-start gap-3",
995
+ featureItemClassName,
996
+ feature.className
997
+ ),
998
+ children: [
999
+ resolvedIcon,
1000
+ feature.text && (typeof feature.text === "string" ? /* @__PURE__ */ jsxRuntime.jsx(
1001
+ "span",
1002
+ {
1003
+ className: cn(
1004
+ "text-sm text-muted-foreground",
1005
+ featureTextClassName,
1006
+ feature.textClassName
1007
+ ),
1008
+ children: feature.text
1009
+ }
1010
+ ) : /* @__PURE__ */ jsxRuntime.jsx(
1011
+ "div",
1012
+ {
1013
+ className: cn(
1014
+ "text-sm text-muted-foreground",
1015
+ featureTextClassName,
1016
+ feature.textClassName
1017
+ ),
1018
+ children: feature.text
1019
+ }
1020
+ ))
1021
+ ]
1022
+ },
1023
+ featureIndex
1024
+ );
1025
+ }) });
1026
+ };
1027
+ }, [featuresClassName, featureIcon, featureIconName, featureIconClassName, featureItemClassName, featureTextClassName]);
1028
+ const renderAction = React.useMemo(() => {
1029
+ return (addon) => {
1030
+ if (addon.actionSlot) return addon.actionSlot;
1031
+ if (!addon.action) return null;
1032
+ const {
1033
+ label,
1034
+ icon,
1035
+ iconAfter,
1036
+ children,
1037
+ className: actionItemClassName,
1038
+ ...pressableProps
1039
+ } = addon.action;
1040
+ return /* @__PURE__ */ jsxRuntime.jsx(
1041
+ Pressable,
1042
+ {
1043
+ asButton: true,
1044
+ className: cn(
1045
+ "w-full justify-center",
1046
+ actionClassName,
1047
+ actionItemClassName
1048
+ ),
1049
+ ...pressableProps,
1050
+ children: children ?? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
1051
+ icon,
1052
+ label,
1053
+ iconAfter
1054
+ ] })
1055
+ }
1056
+ );
1057
+ };
1058
+ }, [actionClassName]);
1059
+ const renderFeatured = React.useMemo(() => {
1060
+ if (featuredAddonsSlot) return featuredAddonsSlot;
1061
+ if (!featuredAddons || featuredAddons.length === 0) return null;
1062
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("grid gap-6 md:grid-cols-3", featuredGridClassName), children: featuredAddons.map((addon, index) => /* @__PURE__ */ jsxRuntime.jsxs(
1063
+ "div",
1064
+ {
1065
+ className: cn(
1066
+ "flex flex-col rounded-2xl border p-6",
1067
+ addon.isHighlighted ? "border-primary bg-primary/5 shadow-lg" : "border-border",
1068
+ cardClassName,
1069
+ addon.isHighlighted ? highlightedCardClassName : null,
1070
+ addon.className
1071
+ ),
1072
+ children: [
1073
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mb-4", children: [
1074
+ addon.name && (typeof addon.name === "string" ? /* @__PURE__ */ jsxRuntime.jsx(
1075
+ "h3",
1076
+ {
1077
+ className: cn("text-lg font-semibold", cardTitleClassName),
1078
+ children: addon.name
1079
+ }
1080
+ ) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: cardTitleClassName, children: addon.name })),
1081
+ addon.description && (typeof addon.description === "string" ? /* @__PURE__ */ jsxRuntime.jsx(
1082
+ "p",
1083
+ {
1084
+ className: cn(
1085
+ "mt-2 text-sm text-muted-foreground",
1086
+ cardDescriptionClassName
1087
+ ),
1088
+ children: addon.description
1089
+ }
1090
+ ) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: cardDescriptionClassName, children: addon.description }))
1091
+ ] }),
1092
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mb-6", children: [
1093
+ addon.price && /* @__PURE__ */ jsxRuntime.jsx("span", { className: cn("text-3xl font-bold", priceClassName), children: addon.price }),
1094
+ addon.priceDescription && /* @__PURE__ */ jsxRuntime.jsx(
1095
+ "span",
1096
+ {
1097
+ className: cn(
1098
+ "text-muted-foreground",
1099
+ priceDescriptionClassName
1100
+ ),
1101
+ children: addon.priceDescription
1102
+ }
1103
+ )
1104
+ ] }),
1105
+ renderFeatures(addon),
1106
+ renderAction(addon)
1107
+ ]
1108
+ },
1109
+ index
1110
+ )) });
1111
+ }, [featuredAddonsSlot, featuredAddons, featuredGridClassName, cardClassName, highlightedCardClassName, cardTitleClassName, cardDescriptionClassName, priceClassName, priceDescriptionClassName, renderFeatures, renderAction]);
1112
+ const renderAdditional = React.useMemo(() => {
1113
+ if (additionalAddonsSlot) return additionalAddonsSlot;
1114
+ if (!additionalAddons || additionalAddons.length === 0) return null;
1115
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("mt-16", additionalSectionClassName), children: [
1116
+ additionalHeading && (typeof additionalHeading === "string" ? /* @__PURE__ */ jsxRuntime.jsx(
1117
+ "h3",
1118
+ {
1119
+ className: cn(
1120
+ "mb-6 text-xl font-semibold",
1121
+ additionalHeadingClassName
1122
+ ),
1123
+ children: additionalHeading
1124
+ }
1125
+ ) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: additionalHeadingClassName, children: additionalHeading })),
1126
+ /* @__PURE__ */ jsxRuntime.jsx(
1127
+ "div",
1128
+ {
1129
+ className: cn("grid gap-4 md:grid-cols-2", additionalGridClassName),
1130
+ children: additionalAddons.map((addon, index) => /* @__PURE__ */ jsxRuntime.jsxs(
1131
+ "div",
1132
+ {
1133
+ className: cn(
1134
+ "flex items-center justify-between rounded-lg border p-4",
1135
+ additionalItemClassName,
1136
+ addon.className
1137
+ ),
1138
+ children: [
1139
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
1140
+ addon.name && (typeof addon.name === "string" ? /* @__PURE__ */ jsxRuntime.jsx(
1141
+ "h4",
1142
+ {
1143
+ className: cn(
1144
+ "font-medium",
1145
+ additionalItemTitleClassName
1146
+ ),
1147
+ children: addon.name
1148
+ }
1149
+ ) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: additionalItemTitleClassName, children: addon.name })),
1150
+ addon.description && (typeof addon.description === "string" ? /* @__PURE__ */ jsxRuntime.jsx(
1151
+ "p",
1152
+ {
1153
+ className: cn(
1154
+ "text-sm text-muted-foreground",
1155
+ additionalItemDescriptionClassName
1156
+ ),
1157
+ children: addon.description
1158
+ }
1159
+ ) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: additionalItemDescriptionClassName, children: addon.description }))
1160
+ ] }),
1161
+ addon.price && /* @__PURE__ */ jsxRuntime.jsx(
1162
+ "div",
1163
+ {
1164
+ className: cn(
1165
+ "ml-4 text-right",
1166
+ additionalItemPriceClassName
1167
+ ),
1168
+ children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-semibold", children: addon.price })
1169
+ }
1170
+ )
1171
+ ]
1172
+ },
1173
+ index
1174
+ ))
1175
+ }
1176
+ )
1177
+ ] });
1178
+ }, [additionalAddonsSlot, additionalAddons, additionalSectionClassName, additionalHeading, additionalHeadingClassName, additionalGridClassName, additionalItemClassName, additionalItemTitleClassName, additionalItemDescriptionClassName, additionalItemPriceClassName]);
1179
+ return /* @__PURE__ */ jsxRuntime.jsx(
1180
+ Section,
1181
+ {
1182
+ background,
1183
+ spacing,
1184
+ pattern,
1185
+ patternOpacity,
1186
+ patternClassName,
1187
+ className,
1188
+ children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("mx-auto", containerClassName), children: [
1189
+ /* @__PURE__ */ jsxRuntime.jsxs(
1190
+ "div",
1191
+ {
1192
+ className: cn("mx-auto mb-12 max-w-2xl text-center", headerClassName),
1193
+ children: [
1194
+ heading && (typeof heading === "string" ? /* @__PURE__ */ jsxRuntime.jsx(
1195
+ "h2",
1196
+ {
1197
+ className: cn(
1198
+ "text-3xl font-bold tracking-tight sm:text-4xl",
1199
+ headingClassName
1200
+ ),
1201
+ children: heading
1202
+ }
1203
+ ) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: headingClassName, children: heading })),
1204
+ subtitle && (typeof subtitle === "string" ? /* @__PURE__ */ jsxRuntime.jsx(
1205
+ "p",
1206
+ {
1207
+ className: cn(
1208
+ "mt-4 text-lg text-muted-foreground",
1209
+ subtitleClassName
1210
+ ),
1211
+ children: subtitle
1212
+ }
1213
+ ) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: subtitleClassName, children: subtitle }))
1214
+ ]
1215
+ }
1216
+ ),
1217
+ renderFeatured,
1218
+ renderAdditional
1219
+ ] })
1220
+ }
1221
+ );
1222
+ }
1223
+
1224
+ exports.PricingAddonsFeatured = PricingAddonsFeatured;