@stackshift-ui/features 6.0.3 → 6.0.5-beta.0

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 (47) hide show
  1. package/dist/{chunk-5WUEW27K.mjs → chunk-AN3PFBVX.mjs} +1 -1
  2. package/dist/{chunk-BD6NAK3H.mjs → chunk-CH65ARWJ.mjs} +1 -1
  3. package/dist/chunk-EZOHFSWE.mjs +1 -0
  4. package/dist/chunk-J5AVUHPT.mjs +1 -0
  5. package/dist/chunk-UZBEJEEL.mjs +1 -0
  6. package/dist/{chunk-GL45B7XR.mjs → chunk-VMJMULYP.mjs} +1 -1
  7. package/dist/chunk-WGYOMYCJ.mjs +1 -0
  8. package/dist/features.d.ts +1 -1
  9. package/dist/features.js +1 -1
  10. package/dist/features.mjs +1 -1
  11. package/dist/features_a.d.ts +1 -1
  12. package/dist/features_a.js +1 -1
  13. package/dist/features_a.mjs +1 -1
  14. package/dist/features_c.d.ts +1 -1
  15. package/dist/features_c.js +1 -1
  16. package/dist/features_c.mjs +1 -1
  17. package/dist/features_d.d.ts +1 -1
  18. package/dist/features_d.js +1 -1
  19. package/dist/features_d.mjs +1 -1
  20. package/dist/features_e.js +1 -1
  21. package/dist/features_e.mjs +1 -1
  22. package/dist/features_f.js +1 -1
  23. package/dist/features_f.mjs +1 -1
  24. package/dist/features_g.js +1 -1
  25. package/dist/features_g.mjs +1 -1
  26. package/dist/features_h.js +1 -1
  27. package/dist/features_h.mjs +1 -1
  28. package/dist/index.js +1 -1
  29. package/dist/index.mjs +1 -1
  30. package/package.json +12 -11
  31. package/src/features.test.tsx +13 -0
  32. package/src/features.tsx +64 -0
  33. package/src/features_a.tsx +108 -0
  34. package/src/features_b.tsx +119 -0
  35. package/src/features_c.tsx +89 -0
  36. package/src/features_d.tsx +87 -0
  37. package/src/features_e.tsx +143 -0
  38. package/src/features_f.tsx +120 -0
  39. package/src/features_g.tsx +138 -0
  40. package/src/features_h.tsx +135 -0
  41. package/src/index.ts +12 -0
  42. package/src/types.ts +412 -0
  43. package/dist/chunk-GGPLBP3I.mjs +0 -1
  44. package/dist/chunk-L75Y6DJF.mjs +0 -1
  45. package/dist/chunk-PLE2ZDCT.mjs +0 -1
  46. package/dist/chunk-VJX6I62Q.mjs +0 -1
  47. /package/dist/{chunk-KVUWMIYP.mjs → chunk-GDVSJ2UR.mjs} +0 -0
package/src/types.ts ADDED
@@ -0,0 +1,412 @@
1
+ export type StyleVariants<T extends string> = Record<T, string>;
2
+
3
+ export type Socials = "facebook" | "instagram" | "youtube" | "linkedin" | "twitter";
4
+ export interface MainImage {
5
+ image: string;
6
+ alt?: string;
7
+ }
8
+
9
+ export interface LabeledRoute extends ConditionalLink {
10
+ ariaLabel?: string;
11
+ label?: string;
12
+ linkTarget?: string;
13
+ linkType?: string;
14
+ _type?: string;
15
+ linkInternal?: any;
16
+ }
17
+ export interface ConditionalLink {
18
+ type?: string;
19
+ internalLink?: string | null;
20
+ externalLink?: string | null;
21
+ }
22
+
23
+ export interface StatItems {
24
+ label?: string;
25
+ mainImage?: MainImage;
26
+ value?: string;
27
+ _key?: string;
28
+ _type?: string;
29
+ }
30
+
31
+ export interface Logo extends ConditionalLink {
32
+ alt?: string;
33
+ linkTarget?: string;
34
+ image?: string;
35
+ }
36
+
37
+ export interface Images {
38
+ image?: string;
39
+ _key?: string;
40
+ _type?: string;
41
+ alt?: string;
42
+ }
43
+
44
+ export interface ContactDetails {
45
+ addressInfo?: string;
46
+ contactInfo?: string;
47
+ emailInfo?: string;
48
+ _key?: string;
49
+ }
50
+
51
+ export interface SocialLink {
52
+ socialMedia?: string | null;
53
+ socialMediaLink?: string | null;
54
+ _key?: string | null;
55
+ _type?: string | null;
56
+ socialMediaIcon?: {
57
+ alt?: string;
58
+ image?: string;
59
+ } | null;
60
+ socialMediaPlatform?: string | null;
61
+ }
62
+
63
+ export interface LabeledRouteWithKey extends LabeledRoute {
64
+ _key?: string;
65
+ }
66
+
67
+ export interface ArrayOfImageTitleAndText {
68
+ mainImage?: {
69
+ alt?: string;
70
+ image?: string;
71
+ };
72
+ plainText?: string;
73
+ title?: string;
74
+ _key?: string;
75
+ _type?: string;
76
+ }
77
+
78
+ export interface FeaturedItem {
79
+ description?: string;
80
+ mainImage?: MainImage;
81
+ title?: string;
82
+ subtitle?: string;
83
+ _key?: string;
84
+ _type?: string;
85
+ }
86
+
87
+ export interface ArrayOfTitleAndText {
88
+ _key?: string;
89
+ plainText?: string;
90
+ title?: string;
91
+ }
92
+
93
+ export interface BlogPost extends SanityBody {
94
+ authors?: Author[] | null;
95
+ body?: any;
96
+ categories?: Category[] | null;
97
+ excerpt?: string | null;
98
+ link?: string | null;
99
+ mainImage?: string | null;
100
+ publishedAt?: string;
101
+ seo?: Seo | null;
102
+ slug?: SanitySlug | null;
103
+ title?: string;
104
+ }
105
+
106
+ export interface Seo {
107
+ _type?: string;
108
+ seoTitle?: string;
109
+ seoDescription?: string;
110
+ seoImage?: string;
111
+ seoKeywords?: string;
112
+ seoSynonyms?: string;
113
+ }
114
+
115
+ export interface SanitySlug {
116
+ current?: string;
117
+ _type?: "slug";
118
+ }
119
+
120
+ export interface SanityBody {
121
+ _createdAt?: string;
122
+ _id?: string;
123
+ _rev?: string;
124
+ _type?: string;
125
+ _updatedAt?: string;
126
+ }
127
+
128
+ export interface Author extends SanityBody {
129
+ link?: string | null;
130
+ bio?: string | null;
131
+ name?: string | null;
132
+ slug?: SanitySlug | null;
133
+ image?: string | null;
134
+ profile?: {
135
+ alt: string;
136
+ image: string;
137
+ } | null;
138
+ }
139
+
140
+ export interface Category extends SanityBody {
141
+ title?: string;
142
+ }
143
+
144
+ export interface Form {
145
+ id?: string | null;
146
+ buttonLabel?: string | null;
147
+ name?: string | null;
148
+ subtitle?: string | null;
149
+ fields?: FormFields[] | null;
150
+ thankYouPage?: ThankYouPage | null;
151
+ }
152
+
153
+ export interface FormFields {
154
+ name?: string;
155
+ placeholder?: string;
156
+ pricingType?: string;
157
+ type?: FormTypes;
158
+ _key?: string;
159
+ _type?: string;
160
+ isRequired?: boolean;
161
+ label?: string;
162
+ items?: string[];
163
+ }
164
+
165
+ export type FormTypes =
166
+ | "inputText"
167
+ | "inputEmail"
168
+ | "inputPassword"
169
+ | "inputNumber"
170
+ | "textarea"
171
+ | "inputFile"
172
+ | "inputRadio"
173
+ | "inputCheckbox"
174
+ | "inputSelect";
175
+
176
+ export interface ThankYouPage {
177
+ externalLink?: string | null;
178
+ internalLink?: string | null;
179
+ linkInternal?: any;
180
+ linkTarget?: string;
181
+ linkType?: string;
182
+ type?: string;
183
+ }
184
+
185
+ //Used on different sections
186
+ export interface SectionsProps {
187
+ template?: Template;
188
+ data?: Sections;
189
+ variant?: string | null | undefined;
190
+ schema?: Variants;
191
+ }
192
+
193
+ export interface Sections extends SanityBody {
194
+ label?: string;
195
+ variant?: string;
196
+ variants?: Variants;
197
+ _key?: string;
198
+ }
199
+
200
+ //*EDIT THIS SECTION WHEN CREATING/UPDATING SCHEMAS ON STUDIO */
201
+ export interface Variants {
202
+ template?: Template;
203
+ multipleMenus?: any;
204
+ arrayOfTitleAndText?: ArrayOfTitleAndText[] | null;
205
+ logo?: Logo | null;
206
+ primaryButton?: LabeledRoute | null;
207
+ secondaryButton?: LabeledRoute | null;
208
+ routes?: LabeledRouteWithKey[] | null;
209
+ menu?: LabeledRouteWithKey[] | null;
210
+ plans?: Plans[] | null;
211
+ formLinks?: LabeledRouteWithKey[] | null;
212
+ portfolios?: Portfolios[] | null;
213
+ portfoliosWithCategories?: PortfoliosWithCategories[] | null;
214
+ length?: number;
215
+ signInLink?: LabeledRoute | null;
216
+ signinLink?: LabeledRoute | null;
217
+ tags?: string[] | null;
218
+ posts?: BlogPost[] | null;
219
+ blogsPerPage?: number | null;
220
+ form?: Form | null;
221
+ collections?: Collection | null;
222
+ products?: CollectionProduct | null;
223
+ allProducts?: Collection[];
224
+ subtitle?: string | null;
225
+ caption?: string | null;
226
+ title?: string | null;
227
+ plainText?: string | null;
228
+ contactDescription?: string | null;
229
+ officeInformation?: string | null;
230
+ contactEmail?: string | null;
231
+ contactNumber?: string | null;
232
+ socialLinks?: SocialLink[] | null;
233
+ block?: any;
234
+ heading?: string | null;
235
+ acceptButtonLabel?: string | null;
236
+ declineButtonLabel?: string | null;
237
+ faqsWithCategories?: FaqsWithCategory[] | null;
238
+ faqs?: AskedQuestion[] | null;
239
+ arrayOfImageTitleAndText?: ArrayOfImageTitleAndText[] | null;
240
+ description?: string | null;
241
+ featuredItems?: FeaturedItem[] | null;
242
+ images?: Images[] | null;
243
+ contactDetails?: ContactDetails[] | null;
244
+ copyright?: string | null;
245
+ mainImage?: MainImage | null;
246
+ youtubeLink?: string | null;
247
+ banner?: any;
248
+ stats?: StatItems[] | null;
249
+ teams?: Team[] | null;
250
+ testimonials?: Testimonial[] | null;
251
+ selectStripeAccount?: string;
252
+ annualBilling?: string;
253
+ monthlyBilling?: string;
254
+ productDetails?: ProductDetail[];
255
+ btnLabel?: string;
256
+ selectAccount?: string;
257
+ hashtags?: string[];
258
+ numberOfPosts?: number;
259
+ text?: string;
260
+ button?: LabeledRoute;
261
+ features?: string[];
262
+ config?: {
263
+ enableAnalytics: boolean;
264
+ cookiePolicy?: {
265
+ siteName: string;
266
+ cookiePolicyPage: Reference;
267
+ };
268
+ consentModalPosition?: string;
269
+ };
270
+ contactLink?: LabeledRoute;
271
+ }
272
+
273
+ export interface Template {
274
+ bg?: string;
275
+ color?: string;
276
+ }
277
+
278
+ export type Plans = {
279
+ _key?: string | null;
280
+ _type?: "planItems" | null;
281
+ checkoutButtonName?: string | null;
282
+ description?: string | null;
283
+ monthlyPrice?: string | null;
284
+ planType?: string | null;
285
+ yearlyPrice?: string | null;
286
+ planIncludes?: string[] | null;
287
+ primaryButton?: LabeledRoute | null;
288
+ } & Record<string, string>;
289
+
290
+ export interface Portfolios {
291
+ dateAdded?: string | null;
292
+ mainImage?: {
293
+ image?: string | null;
294
+ alt?: string | null;
295
+ } | null;
296
+ primaryButton?: LabeledRoute | null;
297
+ title?: string | null;
298
+ _key?: string | null;
299
+ _type?: string | null;
300
+ }
301
+
302
+ export interface PortfoliosWithCategories {
303
+ category?: string | null;
304
+ content?: Content[] | null;
305
+ primaryButton?: LabeledRoute | null;
306
+ _key?: string | null;
307
+ _type?: string | null;
308
+ }
309
+
310
+ export interface Content extends Portfolios {
311
+ description?: string | null;
312
+ subtitle?: string | null;
313
+ }
314
+
315
+ export interface Collection extends SanityBody {
316
+ collectionInfoVariant?: {
317
+ variant?: string;
318
+ } | null;
319
+ name?: string | null;
320
+ products?: CollectionProduct[] | null;
321
+ sections?: any; //todo
322
+ seo?: Seo | null;
323
+ slug?: SanitySlug | null;
324
+ }
325
+
326
+ export interface CollectionProduct extends SanityBody {
327
+ compareToPrice?: number | null;
328
+ description?: string | null;
329
+ ecwidProductId?: number | null;
330
+ name?: string | null;
331
+ price?: number | null;
332
+ productInfo?: ProductInfo | null;
333
+ productInfoVariant?: {
334
+ variant?: string;
335
+ } | null;
336
+ sections?: any; //todo
337
+ seo?: Seo | null;
338
+ slug?: SanitySlug | null;
339
+ }
340
+
341
+ //TODO, RECHECK PRODUCT INFO DATA FROM SANITY
342
+ interface ProductInfo {
343
+ btnLabel?: string | null;
344
+ images?: ProductInfoImage[] | null;
345
+ productDetails?: ProductDetail[] | null;
346
+ socialLinks?: SocialLink[] | null;
347
+ subtitle?: string | null;
348
+ }
349
+
350
+ //TODO, RECHECK PRODUCT INFO DATA FROM SANITY
351
+ export interface ProductDetail {
352
+ blockContent?: any;
353
+ contentType?: string;
354
+ tabName?: string;
355
+ _key?: string;
356
+ [key: string]: any;
357
+ }
358
+ interface ProductInfoImage {
359
+ alt?: string | null;
360
+ _key: string;
361
+ _type: string;
362
+ image?: string | null;
363
+ }
364
+
365
+ export interface FaqsWithCategory {
366
+ askedQuestions?: AskedQuestion[] | null;
367
+ category?: string | null;
368
+ _key?: string;
369
+ _type?: string;
370
+ }
371
+
372
+ export interface AskedQuestion {
373
+ answer?: string | null;
374
+ question?: string | null;
375
+ hidden?: boolean;
376
+ _key?: string;
377
+ _type?: string;
378
+ }
379
+
380
+ export interface Team {
381
+ jobTitle?: string;
382
+ mainImage?: MainImage;
383
+ name?: string;
384
+ plainText?: string;
385
+ _key?: string;
386
+ _type?: string;
387
+ }
388
+
389
+ export interface Testimonial {
390
+ jobTitle?: string;
391
+ mainImage?: MainImage;
392
+ name?: string;
393
+ rating?: string;
394
+ testimony?: string;
395
+ _key?: string;
396
+ _type?: string;
397
+ }
398
+
399
+ export declare interface Reference {
400
+ _type: string;
401
+ _ref: string;
402
+ _key?: string;
403
+ _weak?: boolean;
404
+ _strengthenOnPublish?: {
405
+ type: string;
406
+ weak?: boolean;
407
+ template?: {
408
+ id: string;
409
+ params: Record<string, string | number | boolean>;
410
+ };
411
+ };
412
+ }
@@ -1 +0,0 @@
1
- import{Container as g}from"@stackshift-ui/container";import{Flex as s}from"@stackshift-ui/flex";import{Heading as p}from"@stackshift-ui/heading";import{Image as c}from"@stackshift-ui/image";import{Section as d}from"@stackshift-ui/section";import{Text as l}from"@stackshift-ui/text";import e from"react";import{jsx as m,jsxs as o}from"react/jsx-runtime";function x({caption:n,title:i,features:t}){return m(d,{className:"py-20 bg-background",children:o(g,{maxWidth:1280,children:[m(g,{maxWidth:448,className:"mb-16 text-center ",children:m(I,{caption:n,title:i})}),m(s,{wrap:!0,children:m(F,{features:t})})]})})}function I({caption:n,title:i}){return o(e.Fragment,{children:[n?m(l,{weight:"bold",className:"text-secondary",children:n}):null,i?m(p,{fontSize:"3xl",children:i}):null]})}function F({features:n}){return n?m(e.Fragment,{children:n==null?void 0:n.map(i=>m(b,{feature:i},i._key))}):null}function b({feature:n}){var i;return o("div",{className:"w-full px-4 mt-16 mb-12 md:w-1/2 lg:mb-0 lg:w-1/4",children:[(i=n==null?void 0:n.mainImage)!=null&&i.image?m(T,{feature:n}):null,n!=null&&n.title?m(l,{weight:"bold",className:"mb-4 text-gray-500",fontSize:"xl",children:n==null?void 0:n.title}):null,n!=null&&n.plainText?m(l,{muted:!0,className:"leading-loose",children:n==null?void 0:n.plainText}):null]})}function T({feature:n}){var i,t,a,r;return(i=n==null?void 0:n.mainImage)!=null&&i.image?m("span",{className:"inline-block p-3 mb-4 rounded bg-secondary-foreground text-primary-foreground md:mb-6",children:m(c,{className:"object-scale-down",src:`${(t=n==null?void 0:n.mainImage)==null?void 0:t.image}`,width:40,height:40,alt:(r=(a=n==null?void 0:n.mainImage)==null?void 0:a.alt)!=null?r:"features-image-"})}):null}export{x as a};
@@ -1 +0,0 @@
1
- import{Button as p}from"@stackshift-ui/button";import{Card as w}from"@stackshift-ui/card";import{Container as v}from"@stackshift-ui/container";import{Flex as b}from"@stackshift-ui/flex";import{Heading as e}from"@stackshift-ui/heading";import{Image as N}from"@stackshift-ui/image";import{Section as F}from"@stackshift-ui/section";import{Text as s}from"@stackshift-ui/text";import h from"react";import{jsx as l,jsxs as c}from"react/jsx-runtime";function k({featuredItems:o}){let[i,n]=h.useState(0);return l(F,{className:"py-20 overflow-x-auto bg-background",children:l(v,{maxWidth:1280,children:l(b,{className:"relative",children:l(d,{featuredItems:o,slider:r=>{o&&(r==="next"?i!==o.length-1?n(t=>t+1):n(0):i>=1?n(t=>t-1):n(o.length-1))},children:c("div",{className:"order-1 w-full ml-auto xl:w-4/5",children:[l(C,{featuredItems:o,item:i}),l(S,{featuredItems:o,item:i})]})})})})})}function C({featuredItems:o,item:i}){var n,x,r,t,m,a,g;return(x=(n=o==null?void 0:o[i])==null?void 0:n.mainImage)!=null&&x.image?l("div",{className:"mx-auto overflow-hidden rounded-md md:max-w-xl xl:max-w-4xl",children:l(N,{className:"relative object-cover rounded-global",src:`${(t=(r=o==null?void 0:o[i])==null?void 0:r.mainImage)==null?void 0:t.image}`,sizes:"100vw",width:896,height:575,alt:(g=(a=(m=o==null?void 0:o[i])==null?void 0:m.mainImage)==null?void 0:a.alt)!=null?g:`features-image-${i}`})}):null}function S({featuredItems:o,item:i}){var n,x,r,t,m,a;return o?c(w,{className:"top-0 left-0 max-w-xl p-6 mx-auto text-center bg-white md:mt-12 md:p-10 lg:mt-12 lg:p-10 xl:absolute xl:mx-0 xl:mt-20 xl:py-24",children:[l(s,{weight:"bold",className:"text-xs lg:text-md md:text-sm xl:text-lg text-secondary",children:((n=o==null?void 0:o[i])==null?void 0:n.subtitle)&&((x=o==null?void 0:o[i])==null?void 0:x.subtitle)}),l(e,{fontSize:"3xl",children:((r=o==null?void 0:o[i])==null?void 0:r.title)&&((t=o==null?void 0:o[i])==null?void 0:t.title)}),l(s,{muted:!0,className:"text-xs leading-loose text-center md:mt-5 md:text-sm lg:mt-5 lg:text-sm",children:((m=o==null?void 0:o[i])==null?void 0:m.description)&&((a=o==null?void 0:o[i])==null?void 0:a.description)})]}):null}function d({featuredItems:o,children:i,slider:n}){return o?c(h.Fragment,{children:[l("div",{className:"absolute left-0 z-40 items-center mt-20 -mx-3 order-0 md:mt-40 lg:mt-60 xl:-mx-6 xl:flex",children:(o==null?void 0:o.length)>=2&&l(p,{as:"button",ariaLabel:"Show Previous Feature",className:"z-10 p-4 text-white ",onClick:()=>n("prev"),children:l("svg",{className:"w-4 h-4",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:l("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M10 19l-7-7m0 0l7-7m-7 7h18"})})})}),i,l("div",{className:"absolute right-0 z-40 items-center order-2 mt-20 -mx-3 md:mt-40 lg:mt-60 xl:-mx-6 xl:flex",children:(o==null?void 0:o.length)>=2&&l(p,{as:"button",ariaLabel:"Show Next Feature",className:"p-4 text-white ",onClick:()=>n("next"),children:l("svg",{className:"w-4 h-4",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:l("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M14 5l7 7m0 0l-7 7m7-7H3"})})})})]}):null}export{k as a};
@@ -1 +0,0 @@
1
- import{Card as s}from"@stackshift-ui/card";import{Container as l}from"@stackshift-ui/container";import{Flex as g}from"@stackshift-ui/flex";import{Heading as p}from"@stackshift-ui/heading";import{Image as c}from"@stackshift-ui/image";import{Section as d}from"@stackshift-ui/section";import{Text as o}from"@stackshift-ui/text";import x from"react";import{jsx as i,jsxs as e}from"react/jsx-runtime";function T({caption:t,title:m,features:n}){return i(d,{className:"py-20 bg-background",children:e(l,{maxWidth:1280,children:[i(l,{maxWidth:448,className:"mb-8 text-center",children:i(b,{caption:t,title:m})}),i(y,{features:n})]})})}function b({caption:t,title:m}){return e(x.Fragment,{children:[t?i(o,{weight:"bold",className:"text-primary",children:t}):null,m?i(p,{fontSize:"3xl",children:m}):null]})}function y({features:t}){return t?i(g,{wrap:!0,justify:"center",children:t.map(m=>i(F,{feature:m},m._key))}):null}function F({feature:t}){var m,n,r,a;return i("div",{className:"w-full px-4 mt-8 lg:mb-0 lg:w-1/3",children:e(s,{className:"h-full px-6 py-12 text-center",children:[i("div",{className:"self-start inline-block p-3 mb-6 rounded-lg bg-secondary-foreground md:p-5",children:((m=t==null?void 0:t.mainImage)==null?void 0:m.image)&&i(c,{className:"object-scale-down",src:`${(n=t==null?void 0:t.mainImage)==null?void 0:n.image}`,width:40,height:40,alt:(a=(r=t==null?void 0:t.mainImage)==null?void 0:r.alt)!=null?a:"features-image-"})}),i(o,{fontSize:"xl",weight:"bold",className:"px-8 mb-4 text-gray-500",children:t==null?void 0:t.title}),i(o,{muted:!0,children:t==null?void 0:t.plainText})]})})}export{T as a};
@@ -1 +0,0 @@
1
- import{Card as s}from"@stackshift-ui/card";import{Container as r}from"@stackshift-ui/container";import{Flex as d}from"@stackshift-ui/flex";import{Heading as g}from"@stackshift-ui/heading";import{Image as c}from"@stackshift-ui/image";import{Section as p}from"@stackshift-ui/section";import{Text as o}from"@stackshift-ui/text";import x from"react";import{jsx as m,jsxs as a}from"react/jsx-runtime";function b({caption:t,title:i,features:n}){return m(p,{className:"py-20 bg-background",children:a(r,{maxWidth:1280,children:[m(r,{maxWidth:448,className:"mb-16 text-center ",children:m(T,{caption:t,title:i})}),m(w,{features:n})]})})}function T({caption:t,title:i}){return a(x.Fragment,{children:[t?m(o,{weight:"bold",className:"text-secondary",children:t}):null,i?m(g,{fontSize:"3xl",children:i}):null]})}function w({features:t}){return t?m(d,{wrap:!0,justify:"start",className:"-mx-3",children:t.map(i=>m(y,{feature:i},i._key))}):null}function y({feature:t}){var i,n,e,l;return m("div",{className:"w-full px-3 mb-6 lg:w-1/2",children:a(s,{className:"flex flex-wrap h-full p-6",children:[m("div",{className:"self-start inline-block p-3 mb-4 mr-6 rounded-lg bg-secondary-foreground md:p-5 lg:mb-0",children:((i=t==null?void 0:t.mainImage)==null?void 0:i.image)&&m(c,{className:"object-scale-down",src:`${(n=t==null?void 0:t.mainImage)==null?void 0:n.image}`,width:40,height:40,alt:(l=(e=t==null?void 0:t.mainImage)==null?void 0:e.alt)!=null?l:"features-main-image"})}),a("div",{className:"w-full lg:w-2/3",children:[m(o,{fontSize:"2xl",weight:"bold",className:"mb-2 text-gray-500",children:t==null?void 0:t.title}),m(o,{muted:!0,children:t==null?void 0:t.plainText})]})]})})}export{b as a};
File without changes