@levo-so/blocks 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +5 -9
- package/src/blocks/about-us/about-us-1.schema.ts +563 -0
- package/src/blocks/about-us/about-us-1.tsx +53 -0
- package/src/blocks/blogs/blog-listing-1.schema.ts +419 -0
- package/src/blocks/blogs/blog-listing-1.tsx +79 -0
- package/src/blocks/blogs/blog-listing-2.schema.ts +608 -0
- package/src/blocks/blogs/blog-listing-2.tsx +83 -0
- package/src/blocks/blogs/blog-post-1.schema.ts +392 -0
- package/src/blocks/blogs/blog-post-1.tsx +52 -0
- package/src/blocks/blogs/blog-post-2.schema.ts +834 -0
- package/src/blocks/blogs/blog-post-2.tsx +131 -0
- package/src/blocks/cards/cards-10.schema.ts +433 -0
- package/src/blocks/cards/cards-10.tsx +46 -0
- package/src/blocks/cards/cards-11.schema.ts +440 -0
- package/src/blocks/cards/cards-11.tsx +50 -0
- package/src/blocks/cards/cards-12.schema.ts +578 -0
- package/src/blocks/cards/cards-12.tsx +54 -0
- package/src/blocks/cards/cards-2.schema.ts +293 -0
- package/src/blocks/cards/cards-2.tsx +42 -0
- package/src/blocks/cards/cards-3.schema.ts +365 -0
- package/src/blocks/cards/cards-3.tsx +49 -0
- package/src/blocks/cards/cards-4.schema.ts +677 -0
- package/src/blocks/cards/cards-4.tsx +50 -0
- package/src/blocks/cards/cards-5.schema.ts +264 -0
- package/src/blocks/cards/cards-5.tsx +34 -0
- package/src/blocks/cards/cards-6.schema.ts +639 -0
- package/src/blocks/cards/cards-6.tsx +136 -0
- package/src/blocks/cards/cards-7.schema.ts +1793 -0
- package/src/blocks/cards/cards-7.tsx +165 -0
- package/src/blocks/cards/cards-8.schema.ts +691 -0
- package/src/blocks/cards/cards-8.tsx +43 -0
- package/src/blocks/cards/cards-9.schema.ts +827 -0
- package/src/blocks/cards/cards-9.tsx +54 -0
- package/src/blocks/carousel/carousel-1.schema.ts +250 -0
- package/src/blocks/carousel/carousel-1.tsx +79 -0
- package/src/blocks/contact-us/contact-us-1.schema.ts +226 -0
- package/src/blocks/contact-us/contact-us-1.tsx +39 -0
- package/src/blocks/contact-us/contact-us-2.schema.ts +524 -0
- package/src/blocks/contact-us/contact-us-2.tsx +71 -0
- package/src/blocks/content/content-1.schema.ts +884 -0
- package/src/blocks/content/content-1.tsx +69 -0
- package/src/blocks/content/content-2.schema.ts +209 -0
- package/src/blocks/content/content-2.tsx +32 -0
- package/src/blocks/content/content-3.schema.ts +864 -0
- package/src/blocks/content/content-3.tsx +54 -0
- package/src/blocks/content/content-4.schema.ts +287 -0
- package/src/blocks/content/content-4.tsx +47 -0
- package/src/blocks/content/content-5.schema.ts +944 -0
- package/src/blocks/content/content-5.tsx +58 -0
- package/src/blocks/content/content-6.schema.ts +991 -0
- package/src/blocks/content/content-6.tsx +61 -0
- package/src/blocks/cta/cta-1.schema.ts +361 -0
- package/src/blocks/cta/cta-1.tsx +33 -0
- package/src/blocks/cta/cta-2.schema.ts +209 -0
- package/src/blocks/cta/cta-2.tsx +28 -0
- package/src/blocks/cta/cta-3.schema.ts +156 -0
- package/src/blocks/cta/cta-3.tsx +48 -0
- package/src/blocks/embed/embed-1.schema.ts +153 -0
- package/src/blocks/embed/embed-1.tsx +38 -0
- package/src/blocks/event/event-details.schema.ts +737 -0
- package/src/blocks/event/event-details.tsx +107 -0
- package/src/blocks/event/event-listing-2.schema.ts +496 -0
- package/src/blocks/event/event-listing-2.tsx +70 -0
- package/src/blocks/event/event-listing-3.schema.ts +605 -0
- package/src/blocks/event/event-listing-3.tsx +95 -0
- package/src/blocks/event/event-listing.schema.ts +1358 -0
- package/src/blocks/event/event-listing.tsx +90 -0
- package/src/blocks/faq/faq-1.schema.ts +357 -0
- package/src/blocks/faq/faq-1.tsx +65 -0
- package/src/blocks/faq/faq-2.schema.ts +356 -0
- package/src/blocks/faq/faq-2.tsx +84 -0
- package/src/blocks/faq/faq-3.schema.ts +475 -0
- package/src/blocks/faq/faq-3.tsx +70 -0
- package/src/blocks/features/features-1/features-1.schema.ts +165 -0
- package/src/blocks/features/features-1/features-1.tsx +48 -0
- package/src/blocks/features/features-1/variants/default.ts +197 -0
- package/{dist/blocks/features/features-1/variants/index.js → src/blocks/features/features-1/variants/index.ts} +7 -1
- package/src/blocks/features/features-1/variants/stylized-cards-v1.ts +138 -0
- package/src/blocks/features/features-1/variants/stylized-cards-v2.ts +487 -0
- package/src/blocks/features/features-2.schema.ts +338 -0
- package/src/blocks/features/features-2.tsx +66 -0
- package/src/blocks/features/features-3.schema.ts +438 -0
- package/src/blocks/features/features-3.tsx +56 -0
- package/src/blocks/features/features-4.schema.ts +631 -0
- package/src/blocks/features/features-4.tsx +75 -0
- package/src/blocks/features/features-5.schema.ts +747 -0
- package/src/blocks/features/features-5.tsx +49 -0
- package/src/blocks/features/features-6.schema.ts +849 -0
- package/src/blocks/features/features-6.tsx +125 -0
- package/src/blocks/footer/footer-1.schema.ts +589 -0
- package/src/blocks/footer/footer-1.tsx +90 -0
- package/src/blocks/footer/footer-2.schema.ts +898 -0
- package/src/blocks/footer/footer-2.tsx +77 -0
- package/src/blocks/footer/footer-3.schema.ts +487 -0
- package/src/blocks/footer/footer-3.tsx +100 -0
- package/src/blocks/footer/footer-4.schema.ts +644 -0
- package/src/blocks/footer/footer-4.tsx +97 -0
- package/src/blocks/footer/footer-5.schema.ts +425 -0
- package/src/blocks/footer/footer-5.tsx +91 -0
- package/src/blocks/hero/hero-1.schema.ts +766 -0
- package/src/blocks/hero/hero-1.tsx +52 -0
- package/src/blocks/hero/hero-2.schema.ts +316 -0
- package/src/blocks/hero/hero-2.tsx +49 -0
- package/src/blocks/hero/hero-3.schema.ts +415 -0
- package/src/blocks/hero/hero-3.tsx +50 -0
- package/src/blocks/hero/hero-4.schema.ts +325 -0
- package/src/blocks/hero/hero-4.tsx +89 -0
- package/src/blocks/hero/hero-5.schema.ts +192 -0
- package/src/blocks/hero/hero-5.tsx +86 -0
- package/src/blocks/hero/hero-6.schema.ts +703 -0
- package/src/blocks/hero/hero-6.tsx +62 -0
- package/src/blocks/hero/hero-7.schema.ts +508 -0
- package/src/blocks/hero/hero-7.tsx +115 -0
- package/src/blocks/hero/hero-8.schema.ts +372 -0
- package/src/blocks/hero/hero-8.tsx +113 -0
- package/src/blocks/hero/hero-9.schema.ts +379 -0
- package/src/blocks/hero/hero-9.tsx +49 -0
- package/src/blocks/index.ts +78 -0
- package/src/blocks/logos/logos-1.schema.ts +264 -0
- package/src/blocks/logos/logos-1.tsx +60 -0
- package/src/blocks/navbar/navbar-1.schema.ts +961 -0
- package/src/blocks/navbar/navbar-1.tsx +398 -0
- package/src/blocks/navbar/navbar-2.schema.ts +1226 -0
- package/src/blocks/navbar/navbar-2.tsx +417 -0
- package/src/blocks/pricing/pricing-1.schema.ts +1002 -0
- package/src/blocks/pricing/pricing-1.tsx +88 -0
- package/src/blocks/products/products-listing-1.schema.ts +274 -0
- package/src/blocks/products/products-listing-1.tsx +48 -0
- package/src/blocks/stats/stats-1.schema.ts +231 -0
- package/src/blocks/stats/stats-1.tsx +38 -0
- package/src/blocks/stats/stats-2.schema.ts +111 -0
- package/src/blocks/stats/stats-2.tsx +52 -0
- package/src/blocks/stats/variants/default.ts +190 -0
- package/src/blocks/stats/variants/hero.ts +153 -0
- package/{dist/blocks/stats/variants/index.js → src/blocks/stats/variants/index.ts} +1 -0
- package/src/blocks/team/team-1.schema.ts +516 -0
- package/src/blocks/team/team-1.tsx +80 -0
- package/src/blocks/team/team-2.schema.ts +2813 -0
- package/src/blocks/team/team-2.tsx +74 -0
- package/src/blocks/team/team-3.schema.ts +707 -0
- package/src/blocks/team/team-3.tsx +103 -0
- package/src/blocks/termsAndPrivacy/terms-and-conditions-1.schema.ts +168 -0
- package/src/blocks/termsAndPrivacy/terms-and-conditions-1.tsx +29 -0
- package/src/blocks/testimonial/testimonial-1.schema.ts +345 -0
- package/src/blocks/testimonial/testimonial-1.tsx +79 -0
- package/src/blocks/testimonial/testimonial-2.schema.ts +816 -0
- package/src/blocks/testimonial/testimonial-2.tsx +161 -0
- package/src/blocks/testimonial/testimonial-3.schema.ts +279 -0
- package/src/blocks/testimonial/testimonial-3.tsx +128 -0
- package/src/blocks/testimonial/testimonial-4.schema.ts +3373 -0
- package/src/blocks/testimonial/testimonial-4.tsx +202 -0
- package/src/blocks/testimonial/testimonial-5.schema.ts +434 -0
- package/src/blocks/testimonial/testimonial-5.tsx +106 -0
- package/src/blocks/testimonial/testimonial-6.schema.ts +709 -0
- package/src/blocks/testimonial/testimonial-6.tsx +128 -0
- package/{dist/index.js → src/index.ts} +5 -2
- package/{dist/schemas/blocks.js → src/schemas/blocks.ts} +75 -72
- package/src/schemas/categories.ts +134 -0
- package/src/styles.d.ts +4 -0
- package/dist/blocks/about-us/about-us-1.d.ts +0 -5
- package/dist/blocks/about-us/about-us-1.js +0 -5
- package/dist/blocks/about-us/about-us-1.schema.d.ts +0 -38
- package/dist/blocks/about-us/about-us-1.schema.js +0 -537
- package/dist/blocks/blogs/blog-listing-1.d.ts +0 -5
- package/dist/blocks/blogs/blog-listing-1.js +0 -12
- package/dist/blocks/blogs/blog-listing-1.schema.d.ts +0 -59
- package/dist/blocks/blogs/blog-listing-1.schema.js +0 -387
- package/dist/blocks/blogs/blog-listing-2.d.ts +0 -5
- package/dist/blocks/blogs/blog-listing-2.js +0 -9
- package/dist/blocks/blogs/blog-listing-2.schema.d.ts +0 -104
- package/dist/blocks/blogs/blog-listing-2.schema.js +0 -572
- package/dist/blocks/blogs/blog-post-1.d.ts +0 -6
- package/dist/blocks/blogs/blog-post-1.js +0 -8
- package/dist/blocks/blogs/blog-post-1.schema.d.ts +0 -48
- package/dist/blocks/blogs/blog-post-1.schema.js +0 -358
- package/dist/blocks/blogs/blog-post-2.d.ts +0 -6
- package/dist/blocks/blogs/blog-post-2.js +0 -8
- package/dist/blocks/blogs/blog-post-2.schema.d.ts +0 -74
- package/dist/blocks/blogs/blog-post-2.schema.js +0 -779
- package/dist/blocks/cards/cards-10.d.ts +0 -6
- package/dist/blocks/cards/cards-10.js +0 -4
- package/dist/blocks/cards/cards-10.schema.d.ts +0 -44
- package/dist/blocks/cards/cards-10.schema.js +0 -405
- package/dist/blocks/cards/cards-11.d.ts +0 -6
- package/dist/blocks/cards/cards-11.js +0 -4
- package/dist/blocks/cards/cards-11.schema.d.ts +0 -58
- package/dist/blocks/cards/cards-11.schema.js +0 -406
- package/dist/blocks/cards/cards-12.d.ts +0 -6
- package/dist/blocks/cards/cards-12.js +0 -4
- package/dist/blocks/cards/cards-12.schema.d.ts +0 -38
- package/dist/blocks/cards/cards-12.schema.js +0 -545
- package/dist/blocks/cards/cards-2.d.ts +0 -5
- package/dist/blocks/cards/cards-2.js +0 -4
- package/dist/blocks/cards/cards-2.schema.d.ts +0 -46
- package/dist/blocks/cards/cards-2.schema.js +0 -260
- package/dist/blocks/cards/cards-3.d.ts +0 -6
- package/dist/blocks/cards/cards-3.js +0 -5
- package/dist/blocks/cards/cards-3.schema.d.ts +0 -36
- package/dist/blocks/cards/cards-3.schema.js +0 -351
- package/dist/blocks/cards/cards-4.d.ts +0 -6
- package/dist/blocks/cards/cards-4.js +0 -4
- package/dist/blocks/cards/cards-4.schema.d.ts +0 -40
- package/dist/blocks/cards/cards-4.schema.js +0 -648
- package/dist/blocks/cards/cards-5.d.ts +0 -5
- package/dist/blocks/cards/cards-5.js +0 -4
- package/dist/blocks/cards/cards-5.schema.d.ts +0 -48
- package/dist/blocks/cards/cards-5.schema.js +0 -238
- package/dist/blocks/cards/cards-6.d.ts +0 -5
- package/dist/blocks/cards/cards-6.js +0 -45
- package/dist/blocks/cards/cards-6.schema.d.ts +0 -50
- package/dist/blocks/cards/cards-6.schema.js +0 -608
- package/dist/blocks/cards/cards-7.d.ts +0 -5
- package/dist/blocks/cards/cards-7.js +0 -45
- package/dist/blocks/cards/cards-7.schema.d.ts +0 -87
- package/dist/blocks/cards/cards-7.schema.js +0 -1732
- package/dist/blocks/cards/cards-8.d.ts +0 -6
- package/dist/blocks/cards/cards-8.js +0 -4
- package/dist/blocks/cards/cards-8.schema.d.ts +0 -40
- package/dist/blocks/cards/cards-8.schema.js +0 -660
- package/dist/blocks/cards/cards-9.d.ts +0 -5
- package/dist/blocks/cards/cards-9.js +0 -4
- package/dist/blocks/cards/cards-9.schema.d.ts +0 -55
- package/dist/blocks/cards/cards-9.schema.js +0 -798
- package/dist/blocks/carousel/carousel-1.d.ts +0 -5
- package/dist/blocks/carousel/carousel-1.js +0 -12
- package/dist/blocks/carousel/carousel-1.schema.d.ts +0 -51
- package/dist/blocks/carousel/carousel-1.schema.js +0 -236
- package/dist/blocks/contact-us/contact-us-1.d.ts +0 -5
- package/dist/blocks/contact-us/contact-us-1.js +0 -4
- package/dist/blocks/contact-us/contact-us-1.schema.d.ts +0 -31
- package/dist/blocks/contact-us/contact-us-1.schema.js +0 -202
- package/dist/blocks/contact-us/contact-us-2.d.ts +0 -5
- package/dist/blocks/contact-us/contact-us-2.js +0 -4
- package/dist/blocks/contact-us/contact-us-2.schema.d.ts +0 -59
- package/dist/blocks/contact-us/contact-us-2.schema.js +0 -512
- package/dist/blocks/content/content-1.d.ts +0 -6
- package/dist/blocks/content/content-1.js +0 -4
- package/dist/blocks/content/content-1.schema.d.ts +0 -56
- package/dist/blocks/content/content-1.schema.js +0 -807
- package/dist/blocks/content/content-2.d.ts +0 -5
- package/dist/blocks/content/content-2.js +0 -4
- package/dist/blocks/content/content-2.schema.d.ts +0 -78
- package/dist/blocks/content/content-2.schema.js +0 -200
- package/dist/blocks/content/content-3.d.ts +0 -6
- package/dist/blocks/content/content-3.js +0 -5
- package/dist/blocks/content/content-3.schema.d.ts +0 -23
- package/dist/blocks/content/content-3.schema.js +0 -850
- package/dist/blocks/content/content-4.d.ts +0 -6
- package/dist/blocks/content/content-4.js +0 -6
- package/dist/blocks/content/content-4.schema.d.ts +0 -33
- package/dist/blocks/content/content-4.schema.js +0 -252
- package/dist/blocks/content/content-5.d.ts +0 -6
- package/dist/blocks/content/content-5.js +0 -5
- package/dist/blocks/content/content-5.schema.d.ts +0 -37
- package/dist/blocks/content/content-5.schema.js +0 -932
- package/dist/blocks/content/content-6.d.ts +0 -6
- package/dist/blocks/content/content-6.js +0 -5
- package/dist/blocks/content/content-6.schema.d.ts +0 -41
- package/dist/blocks/content/content-6.schema.js +0 -976
- package/dist/blocks/cta/cta-1.d.ts +0 -5
- package/dist/blocks/cta/cta-1.js +0 -4
- package/dist/blocks/cta/cta-1.schema.d.ts +0 -40
- package/dist/blocks/cta/cta-1.schema.js +0 -339
- package/dist/blocks/cta/cta-2.d.ts +0 -5
- package/dist/blocks/cta/cta-2.js +0 -4
- package/dist/blocks/cta/cta-2.schema.d.ts +0 -45
- package/dist/blocks/cta/cta-2.schema.js +0 -183
- package/dist/blocks/cta/cta-3.d.ts +0 -5
- package/dist/blocks/cta/cta-3.js +0 -4
- package/dist/blocks/cta/cta-3.schema.d.ts +0 -34
- package/dist/blocks/cta/cta-3.schema.js +0 -137
- package/dist/blocks/embed/embed-1.d.ts +0 -5
- package/dist/blocks/embed/embed-1.js +0 -5
- package/dist/blocks/embed/embed-1.schema.d.ts +0 -13
- package/dist/blocks/embed/embed-1.schema.js +0 -146
- package/dist/blocks/event/event-details.d.ts +0 -5
- package/dist/blocks/event/event-details.js +0 -9
- package/dist/blocks/event/event-details.schema.d.ts +0 -112
- package/dist/blocks/event/event-details.schema.js +0 -685
- package/dist/blocks/event/event-listing-2.d.ts +0 -5
- package/dist/blocks/event/event-listing-2.js +0 -4
- package/dist/blocks/event/event-listing-2.schema.d.ts +0 -84
- package/dist/blocks/event/event-listing-2.schema.js +0 -455
- package/dist/blocks/event/event-listing-3.d.ts +0 -5
- package/dist/blocks/event/event-listing-3.js +0 -10
- package/dist/blocks/event/event-listing-3.schema.d.ts +0 -77
- package/dist/blocks/event/event-listing-3.schema.js +0 -570
- package/dist/blocks/event/event-listing.d.ts +0 -5
- package/dist/blocks/event/event-listing.js +0 -10
- package/dist/blocks/event/event-listing.schema.d.ts +0 -51
- package/dist/blocks/event/event-listing.schema.js +0 -1297
- package/dist/blocks/faq/faq-1.d.ts +0 -5
- package/dist/blocks/faq/faq-1.js +0 -4
- package/dist/blocks/faq/faq-1.schema.d.ts +0 -47
- package/dist/blocks/faq/faq-1.schema.js +0 -325
- package/dist/blocks/faq/faq-2.d.ts +0 -6
- package/dist/blocks/faq/faq-2.js +0 -19
- package/dist/blocks/faq/faq-2.schema.d.ts +0 -47
- package/dist/blocks/faq/faq-2.schema.js +0 -329
- package/dist/blocks/faq/faq-3.d.ts +0 -5
- package/dist/blocks/faq/faq-3.js +0 -4
- package/dist/blocks/faq/faq-3.schema.d.ts +0 -40
- package/dist/blocks/faq/faq-3.schema.js +0 -444
- package/dist/blocks/features/features-1/features-1.d.ts +0 -5
- package/dist/blocks/features/features-1/features-1.js +0 -4
- package/dist/blocks/features/features-1/features-1.schema.d.ts +0 -5
- package/dist/blocks/features/features-1/features-1.schema.js +0 -142
- package/dist/blocks/features/features-1/variants/default.d.ts +0 -37
- package/dist/blocks/features/features-1/variants/default.js +0 -185
- package/dist/blocks/features/features-1/variants/index.d.ts +0 -5
- package/dist/blocks/features/features-1/variants/stylized-cards-v1.d.ts +0 -3
- package/dist/blocks/features/features-1/variants/stylized-cards-v1.js +0 -132
- package/dist/blocks/features/features-1/variants/stylized-cards-v2.d.ts +0 -3
- package/dist/blocks/features/features-1/variants/stylized-cards-v2.js +0 -484
- package/dist/blocks/features/features-2.d.ts +0 -5
- package/dist/blocks/features/features-2.js +0 -8
- package/dist/blocks/features/features-2.schema.d.ts +0 -41
- package/dist/blocks/features/features-2.schema.js +0 -321
- package/dist/blocks/features/features-3.d.ts +0 -5
- package/dist/blocks/features/features-3.js +0 -4
- package/dist/blocks/features/features-3.schema.d.ts +0 -40
- package/dist/blocks/features/features-3.schema.js +0 -424
- package/dist/blocks/features/features-4.d.ts +0 -5
- package/dist/blocks/features/features-4.js +0 -4
- package/dist/blocks/features/features-4.schema.d.ts +0 -60
- package/dist/blocks/features/features-4.schema.js +0 -594
- package/dist/blocks/features/features-5.d.ts +0 -6
- package/dist/blocks/features/features-5.js +0 -5
- package/dist/blocks/features/features-5.schema.d.ts +0 -28
- package/dist/blocks/features/features-5.schema.js +0 -727
- package/dist/blocks/features/features-6.d.ts +0 -5
- package/dist/blocks/features/features-6.js +0 -31
- package/dist/blocks/features/features-6.schema.d.ts +0 -74
- package/dist/blocks/features/features-6.schema.js +0 -814
- package/dist/blocks/footer/footer-1.d.ts +0 -6
- package/dist/blocks/footer/footer-1.js +0 -5
- package/dist/blocks/footer/footer-1.schema.d.ts +0 -62
- package/dist/blocks/footer/footer-1.schema.js +0 -565
- package/dist/blocks/footer/footer-2.d.ts +0 -5
- package/dist/blocks/footer/footer-2.js +0 -4
- package/dist/blocks/footer/footer-2.schema.d.ts +0 -76
- package/dist/blocks/footer/footer-2.schema.js +0 -876
- package/dist/blocks/footer/footer-3.d.ts +0 -6
- package/dist/blocks/footer/footer-3.js +0 -15
- package/dist/blocks/footer/footer-3.schema.d.ts +0 -48
- package/dist/blocks/footer/footer-3.schema.js +0 -475
- package/dist/blocks/footer/footer-4.d.ts +0 -6
- package/dist/blocks/footer/footer-4.js +0 -5
- package/dist/blocks/footer/footer-4.schema.d.ts +0 -71
- package/dist/blocks/footer/footer-4.schema.js +0 -620
- package/dist/blocks/footer/footer-5.d.ts +0 -6
- package/dist/blocks/footer/footer-5.js +0 -5
- package/dist/blocks/footer/footer-5.schema.d.ts +0 -52
- package/dist/blocks/footer/footer-5.schema.js +0 -400
- package/dist/blocks/hero/hero-1.d.ts +0 -5
- package/dist/blocks/hero/hero-1.js +0 -4
- package/dist/blocks/hero/hero-1.schema.d.ts +0 -35
- package/dist/blocks/hero/hero-1.schema.js +0 -742
- package/dist/blocks/hero/hero-2.d.ts +0 -5
- package/dist/blocks/hero/hero-2.js +0 -4
- package/dist/blocks/hero/hero-2.schema.d.ts +0 -46
- package/dist/blocks/hero/hero-2.schema.js +0 -282
- package/dist/blocks/hero/hero-3.d.ts +0 -5
- package/dist/blocks/hero/hero-3.js +0 -4
- package/dist/blocks/hero/hero-3.schema.d.ts +0 -54
- package/dist/blocks/hero/hero-3.schema.js +0 -378
- package/dist/blocks/hero/hero-4.d.ts +0 -5
- package/dist/blocks/hero/hero-4.js +0 -30
- package/dist/blocks/hero/hero-4.schema.d.ts +0 -33
- package/dist/blocks/hero/hero-4.schema.js +0 -316
- package/dist/blocks/hero/hero-5.d.ts +0 -5
- package/dist/blocks/hero/hero-5.js +0 -30
- package/dist/blocks/hero/hero-5.schema.d.ts +0 -32
- package/dist/blocks/hero/hero-5.schema.js +0 -183
- package/dist/blocks/hero/hero-6.d.ts +0 -5
- package/dist/blocks/hero/hero-6.js +0 -8
- package/dist/blocks/hero/hero-6.schema.d.ts +0 -36
- package/dist/blocks/hero/hero-6.schema.js +0 -617
- package/dist/blocks/hero/hero-7.d.ts +0 -5
- package/dist/blocks/hero/hero-7.js +0 -40
- package/dist/blocks/hero/hero-7.schema.d.ts +0 -12
- package/dist/blocks/hero/hero-7.schema.js +0 -471
- package/dist/blocks/hero/hero-8.d.ts +0 -5
- package/dist/blocks/hero/hero-8.js +0 -39
- package/dist/blocks/hero/hero-8.schema.d.ts +0 -17
- package/dist/blocks/hero/hero-8.schema.js +0 -343
- package/dist/blocks/hero/hero-9.d.ts +0 -6
- package/dist/blocks/hero/hero-9.js +0 -4
- package/dist/blocks/hero/hero-9.schema.d.ts +0 -39
- package/dist/blocks/hero/hero-9.schema.js +0 -355
- package/dist/blocks/index.d.ts +0 -3
- package/dist/blocks/index.js +0 -74
- package/dist/blocks/logos/logos-1.d.ts +0 -5
- package/dist/blocks/logos/logos-1.js +0 -10
- package/dist/blocks/logos/logos-1.schema.d.ts +0 -34
- package/dist/blocks/logos/logos-1.schema.js +0 -239
- package/dist/blocks/navbar/navbar-1.d.ts +0 -6
- package/dist/blocks/navbar/navbar-1.js +0 -100
- package/dist/blocks/navbar/navbar-1.schema.d.ts +0 -117
- package/dist/blocks/navbar/navbar-1.schema.js +0 -938
- package/dist/blocks/navbar/navbar-2.d.ts +0 -6
- package/dist/blocks/navbar/navbar-2.js +0 -99
- package/dist/blocks/navbar/navbar-2.schema.d.ts +0 -134
- package/dist/blocks/navbar/navbar-2.schema.js +0 -1200
- package/dist/blocks/pricing/pricing-1.d.ts +0 -5
- package/dist/blocks/pricing/pricing-1.js +0 -4
- package/dist/blocks/pricing/pricing-1.schema.d.ts +0 -87
- package/dist/blocks/pricing/pricing-1.schema.js +0 -976
- package/dist/blocks/products/products-listing-1.d.ts +0 -5
- package/dist/blocks/products/products-listing-1.js +0 -4
- package/dist/blocks/products/products-listing-1.schema.d.ts +0 -36
- package/dist/blocks/products/products-listing-1.schema.js +0 -264
- package/dist/blocks/stats/stats-1.d.ts +0 -6
- package/dist/blocks/stats/stats-1.js +0 -6
- package/dist/blocks/stats/stats-1.schema.d.ts +0 -25
- package/dist/blocks/stats/stats-1.schema.js +0 -213
- package/dist/blocks/stats/stats-2.d.ts +0 -6
- package/dist/blocks/stats/stats-2.js +0 -6
- package/dist/blocks/stats/stats-2.schema.d.ts +0 -5
- package/dist/blocks/stats/stats-2.schema.js +0 -104
- package/dist/blocks/stats/variants/default.d.ts +0 -22
- package/dist/blocks/stats/variants/default.js +0 -185
- package/dist/blocks/stats/variants/hero.d.ts +0 -3
- package/dist/blocks/stats/variants/hero.js +0 -151
- package/dist/blocks/stats/variants/index.d.ts +0 -4
- package/dist/blocks/team/team-1.d.ts +0 -6
- package/dist/blocks/team/team-1.js +0 -6
- package/dist/blocks/team/team-1.schema.d.ts +0 -65
- package/dist/blocks/team/team-1.schema.js +0 -476
- package/dist/blocks/team/team-2.d.ts +0 -6
- package/dist/blocks/team/team-2.js +0 -6
- package/dist/blocks/team/team-2.schema.d.ts +0 -52
- package/dist/blocks/team/team-2.schema.js +0 -2732
- package/dist/blocks/team/team-3.d.ts +0 -5
- package/dist/blocks/team/team-3.js +0 -30
- package/dist/blocks/team/team-3.schema.d.ts +0 -32
- package/dist/blocks/team/team-3.schema.js +0 -679
- package/dist/blocks/termsAndPrivacy/terms-and-conditions-1.d.ts +0 -6
- package/dist/blocks/termsAndPrivacy/terms-and-conditions-1.js +0 -4
- package/dist/blocks/termsAndPrivacy/terms-and-conditions-1.schema.d.ts +0 -14
- package/dist/blocks/termsAndPrivacy/terms-and-conditions-1.schema.js +0 -154
- package/dist/blocks/testimonial/testimonial-1.d.ts +0 -5
- package/dist/blocks/testimonial/testimonial-1.js +0 -10
- package/dist/blocks/testimonial/testimonial-1.schema.d.ts +0 -16
- package/dist/blocks/testimonial/testimonial-1.schema.js +0 -314
- package/dist/blocks/testimonial/testimonial-2.d.ts +0 -5
- package/dist/blocks/testimonial/testimonial-2.js +0 -42
- package/dist/blocks/testimonial/testimonial-2.schema.d.ts +0 -54
- package/dist/blocks/testimonial/testimonial-2.schema.js +0 -771
- package/dist/blocks/testimonial/testimonial-3.d.ts +0 -5
- package/dist/blocks/testimonial/testimonial-3.js +0 -38
- package/dist/blocks/testimonial/testimonial-3.schema.d.ts +0 -56
- package/dist/blocks/testimonial/testimonial-3.schema.js +0 -260
- package/dist/blocks/testimonial/testimonial-4.d.ts +0 -5
- package/dist/blocks/testimonial/testimonial-4.js +0 -51
- package/dist/blocks/testimonial/testimonial-4.schema.d.ts +0 -145
- package/dist/blocks/testimonial/testimonial-4.schema.js +0 -3214
- package/dist/blocks/testimonial/testimonial-5.d.ts +0 -5
- package/dist/blocks/testimonial/testimonial-5.js +0 -31
- package/dist/blocks/testimonial/testimonial-5.schema.d.ts +0 -33
- package/dist/blocks/testimonial/testimonial-5.schema.js +0 -401
- package/dist/blocks/testimonial/testimonial-6.d.ts +0 -5
- package/dist/blocks/testimonial/testimonial-6.js +0 -39
- package/dist/blocks/testimonial/testimonial-6.schema.d.ts +0 -60
- package/dist/blocks/testimonial/testimonial-6.schema.js +0 -695
- package/dist/index.d.ts +0 -6
- package/dist/schemas/blocks.d.ts +0 -3
- package/dist/schemas/categories.d.ts +0 -3
- package/dist/schemas/categories.js +0 -129
- package/dist/schemas/index.d.ts +0 -3
- /package/{dist/schemas/index.js → src/schemas/index.ts} +0 -0
|
@@ -0,0 +1,356 @@
|
|
|
1
|
+
import type { IBlock } from "@levo-so/studio";
|
|
2
|
+
|
|
3
|
+
const DUMMY_IMAGE = {
|
|
4
|
+
kind: "icon",
|
|
5
|
+
data: {
|
|
6
|
+
id: "archive-minus",
|
|
7
|
+
label: "Archive Minus",
|
|
8
|
+
tags: ["archive", "custom", "directional", "minus"],
|
|
9
|
+
svgCode:
|
|
10
|
+
'<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M14.5 11.4H9.5C9.09 11.4 8.75 11.06 8.75 10.65C8.75 10.24 9.09 9.90002 9.5 9.90002H14.5C14.91 9.90002 15.25 10.24 15.25 10.65C15.25 11.06 14.91 11.4 14.5 11.4Z" fill="var(--color-icon-primary)"/>\n<path d="M4.92957 22.75C4.50957 22.75 4.11957 22.65 3.76957 22.45C2.99957 22 2.55957 21.09 2.55957 19.96V5.86C2.55957 3.32 4.62957 1.25 7.16957 1.25H16.8196C19.3596 1.25 21.4296 3.32 21.4296 5.86V19.95C21.4296 21.08 20.9896 21.99 20.2196 22.44C19.4496 22.89 18.4396 22.84 17.4496 22.29L12.5696 19.58C12.2796 19.42 11.7096 19.42 11.4196 19.58L6.53957 22.29C5.99957 22.59 5.44957 22.75 4.92957 22.75ZM7.17957 2.75C5.46957 2.75 4.06957 4.15 4.06957 5.86V19.95C4.06957 20.54 4.23957 20.98 4.53957 21.15C4.83957 21.33 5.30957 21.27 5.81957 20.98L10.6996 18.27C11.4396 17.86 12.5596 17.86 13.2996 18.27L18.1796 20.98C18.6896 21.27 19.1596 21.33 19.4596 21.15C19.7596 20.97 19.9296 20.53 19.9296 19.95V5.86C19.9296 4.15 18.5296 2.75 16.8196 2.75H7.17957Z" fill="var(--color-icon-primary)"/>\n</svg>',
|
|
11
|
+
},
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
const FAQ_IMAGE = {
|
|
15
|
+
id: "7141014160938075687",
|
|
16
|
+
location: "https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH.png",
|
|
17
|
+
kind: "image",
|
|
18
|
+
mimetype: "image/png",
|
|
19
|
+
srcset: {
|
|
20
|
+
"1080w":
|
|
21
|
+
"https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-1080w.webp",
|
|
22
|
+
"1200w":
|
|
23
|
+
"https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-1200w.webp",
|
|
24
|
+
"1920w":
|
|
25
|
+
"https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-1920w.webp",
|
|
26
|
+
"320w": "https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-320w.webp",
|
|
27
|
+
"640w": "https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-640w.webp",
|
|
28
|
+
"750w": "https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-750w.webp",
|
|
29
|
+
"828w": "https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-828w.webp",
|
|
30
|
+
path: "https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-640w.webp 640w, https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-1080w.webp 1080w, https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-1200w.webp 1200w, https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-1920w.webp 1920w, https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-320w.webp 320w, https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-750w.webp 750w, https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-828w.webp 828w",
|
|
31
|
+
},
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
const DEFAULT_CONTENT = {
|
|
35
|
+
layout: null,
|
|
36
|
+
container: null,
|
|
37
|
+
|
|
38
|
+
// text and accordions wrapper
|
|
39
|
+
content_container: null,
|
|
40
|
+
|
|
41
|
+
// text wrapper
|
|
42
|
+
text_container: null,
|
|
43
|
+
faq_label: "FAQ's",
|
|
44
|
+
title: "Legal Queries Solved",
|
|
45
|
+
|
|
46
|
+
faqs: [
|
|
47
|
+
{
|
|
48
|
+
wrapper: null,
|
|
49
|
+
trigger: null,
|
|
50
|
+
content: null,
|
|
51
|
+
iconQuestionWrapper: null,
|
|
52
|
+
triggerIcon: DUMMY_IMAGE,
|
|
53
|
+
question: "How do I initiate a legal consultation with your team?",
|
|
54
|
+
answer:
|
|
55
|
+
"Simply reach out through our contact page, and our team will promptly schedule a confidential consultation to address your legal concerns",
|
|
56
|
+
media: FAQ_IMAGE,
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
wrapper: null,
|
|
60
|
+
trigger: null,
|
|
61
|
+
content: null,
|
|
62
|
+
iconQuestionWrapper: null,
|
|
63
|
+
triggerIcon: DUMMY_IMAGE,
|
|
64
|
+
question: "What areas of law does your firm specialize in?",
|
|
65
|
+
answer:
|
|
66
|
+
"Simply reach out through our contact page, and our team will promptly schedule a confidential consultation to address your legal concerns",
|
|
67
|
+
media: FAQ_IMAGE,
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
wrapper: null,
|
|
71
|
+
trigger: null,
|
|
72
|
+
content: null,
|
|
73
|
+
iconQuestionWrapper: null,
|
|
74
|
+
triggerIcon: DUMMY_IMAGE,
|
|
75
|
+
question: "How does your fee structure work?",
|
|
76
|
+
answer:
|
|
77
|
+
"Simply reach out through our contact page, and our team will promptly schedule a confidential consultation to address your legal concerns",
|
|
78
|
+
media: FAQ_IMAGE,
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
wrapper: null,
|
|
82
|
+
trigger: null,
|
|
83
|
+
content: null,
|
|
84
|
+
iconQuestionWrapper: null,
|
|
85
|
+
triggerIcon: DUMMY_IMAGE,
|
|
86
|
+
question: "What sets your legal team apart from others?",
|
|
87
|
+
answer:
|
|
88
|
+
"Simply reach out through our contact page, and our team will promptly schedule a confidential consultation to address your legal concerns",
|
|
89
|
+
media: FAQ_IMAGE,
|
|
90
|
+
},
|
|
91
|
+
],
|
|
92
|
+
|
|
93
|
+
cta: "More about us",
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
export type IFaq2Content = typeof DEFAULT_CONTENT;
|
|
97
|
+
|
|
98
|
+
export const Faq2: IBlock = {
|
|
99
|
+
category_id: "faqs",
|
|
100
|
+
title: "FAQ 2",
|
|
101
|
+
key: "faq-2",
|
|
102
|
+
version: "v1",
|
|
103
|
+
prompt_description:
|
|
104
|
+
"Two-column layout with a prominent FAQ heading and accordion-style list of questions on the left, paired with a large illustrative image on the right.",
|
|
105
|
+
content_schema: [
|
|
106
|
+
{
|
|
107
|
+
key: "layout",
|
|
108
|
+
label: "Layout",
|
|
109
|
+
field_interface: "LayoutWidget",
|
|
110
|
+
// Layout widgets typically structure the page; no hint required unless the layout is content-driven.
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
key: "container",
|
|
114
|
+
label: "Container",
|
|
115
|
+
field_interface: "ContainerWidget",
|
|
116
|
+
// Outer container for spacing/alignment; no direct hint needed.
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
key: "content_container",
|
|
120
|
+
label: "Content Container",
|
|
121
|
+
field_interface: "BoxWidget",
|
|
122
|
+
// Section container; structural, not content-driven.
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
key: "text_container",
|
|
126
|
+
label: "Text Container",
|
|
127
|
+
field_interface: "BoxWidget",
|
|
128
|
+
// Container for stacked text; no content hint.
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
key: "faq_label",
|
|
132
|
+
label: "Label",
|
|
133
|
+
field_interface: "TypographyWidget",
|
|
134
|
+
hint: {
|
|
135
|
+
prompt_description:
|
|
136
|
+
"Section label introducing the FAQ block. Brief and clear, indicating this section is for frequently asked questions. Use a neutral, professional, approachable tone.",
|
|
137
|
+
min_characters: 4,
|
|
138
|
+
max_characters: 16,
|
|
139
|
+
},
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
key: "title",
|
|
143
|
+
label: "Title",
|
|
144
|
+
field_interface: "HeadingWidget",
|
|
145
|
+
hint: {
|
|
146
|
+
prompt_description:
|
|
147
|
+
"The main headline for the FAQ section, reassuring visitors that their legal questions will be answered. Use a confident, helpful, and direct tone.",
|
|
148
|
+
min_characters: 16,
|
|
149
|
+
max_characters: 40,
|
|
150
|
+
},
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
key: "faqs",
|
|
154
|
+
label: "FAQs",
|
|
155
|
+
field_interface: "BoxWidget",
|
|
156
|
+
kind: "group",
|
|
157
|
+
fields: [
|
|
158
|
+
{
|
|
159
|
+
key: "wrapper",
|
|
160
|
+
label: "Wrapper",
|
|
161
|
+
field_interface: "BoxWidget",
|
|
162
|
+
// Accordion item wrapper; no hint needed.
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
key: "trigger",
|
|
166
|
+
label: "Trigger",
|
|
167
|
+
field_interface: "BoxWidget",
|
|
168
|
+
// Container for question; no content hint.
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
key: "iconQuestionWrapper",
|
|
172
|
+
label: "Question Wrapper",
|
|
173
|
+
field_interface: "BoxWidget",
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
key: "triggerIcon",
|
|
177
|
+
label: "Icon",
|
|
178
|
+
field_interface: "IconWidget",
|
|
179
|
+
hint: {
|
|
180
|
+
prompt_description:
|
|
181
|
+
"Small icon displayed next to each FAQ question, representing the expandable nature or category of the question.",
|
|
182
|
+
orientation: "square",
|
|
183
|
+
size: "icon",
|
|
184
|
+
usecase: "icon",
|
|
185
|
+
},
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
key: "question",
|
|
189
|
+
label: "Question",
|
|
190
|
+
field_interface: "TypographyWidget",
|
|
191
|
+
hint: {
|
|
192
|
+
prompt_description:
|
|
193
|
+
"A frequently asked legal question. Should be direct, clear, and phrased from the client's perspective. Professional, sincere tone.",
|
|
194
|
+
min_characters: 32,
|
|
195
|
+
max_characters: 90,
|
|
196
|
+
},
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
key: "content",
|
|
200
|
+
label: "Content",
|
|
201
|
+
field_interface: "BoxWidget",
|
|
202
|
+
// Content wrapper for the answer; no direct content hint.
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
key: "answer",
|
|
206
|
+
label: "Answer",
|
|
207
|
+
field_interface: "TypographyWidget",
|
|
208
|
+
hint: {
|
|
209
|
+
prompt_description:
|
|
210
|
+
"Concise, helpful answer to the legal FAQ. Reassure the client, provide next steps or informative details. Tone should be clear, supportive, and professional.",
|
|
211
|
+
min_characters: 56,
|
|
212
|
+
max_characters: 220,
|
|
213
|
+
},
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
key: "media",
|
|
217
|
+
label: "Media",
|
|
218
|
+
field_interface: "MediaWidget",
|
|
219
|
+
hint: {
|
|
220
|
+
prompt_description:
|
|
221
|
+
"A large, clean illustration or icon supporting the FAQ section visually. Typically abstract, law-related, or brand-aligned. Should convey trust and clarity, used as a visual balance opposite the FAQs.",
|
|
222
|
+
orientation: "portrait",
|
|
223
|
+
size: "large",
|
|
224
|
+
usecase: "other",
|
|
225
|
+
},
|
|
226
|
+
},
|
|
227
|
+
],
|
|
228
|
+
hint: {
|
|
229
|
+
prompt_description:
|
|
230
|
+
"A group of collapsible FAQ items, each featuring a legal question and informative answer for clients and site visitors.",
|
|
231
|
+
min_items: 4,
|
|
232
|
+
max_items: 8,
|
|
233
|
+
},
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
key: "cta",
|
|
237
|
+
label: "CTA",
|
|
238
|
+
field_interface: "ButtonWidget",
|
|
239
|
+
},
|
|
240
|
+
],
|
|
241
|
+
layouts: [
|
|
242
|
+
{
|
|
243
|
+
key: "default",
|
|
244
|
+
title: "Default",
|
|
245
|
+
styles: {
|
|
246
|
+
layout: {
|
|
247
|
+
padding: "112px",
|
|
248
|
+
width: "100%",
|
|
249
|
+
tablet: {
|
|
250
|
+
padding: "50px",
|
|
251
|
+
},
|
|
252
|
+
mobile: {
|
|
253
|
+
padding: "40px",
|
|
254
|
+
},
|
|
255
|
+
},
|
|
256
|
+
container: {
|
|
257
|
+
display: "flex",
|
|
258
|
+
width: "100%",
|
|
259
|
+
"align-items": "center",
|
|
260
|
+
"justify-content": "between",
|
|
261
|
+
"column-gap": "12xl",
|
|
262
|
+
tablet: {
|
|
263
|
+
"column-gap": "6xl",
|
|
264
|
+
},
|
|
265
|
+
mobile: {
|
|
266
|
+
"flex-direction": "column",
|
|
267
|
+
},
|
|
268
|
+
},
|
|
269
|
+
content_container: {
|
|
270
|
+
display: "flex",
|
|
271
|
+
flex: "1",
|
|
272
|
+
"flex-direction": "column",
|
|
273
|
+
"row-gap": "xl",
|
|
274
|
+
tablet: {
|
|
275
|
+
"row-gap": "md",
|
|
276
|
+
},
|
|
277
|
+
},
|
|
278
|
+
text_container: {
|
|
279
|
+
display: "flex",
|
|
280
|
+
"flex-direction": "column",
|
|
281
|
+
"row-gap": "md",
|
|
282
|
+
tablet: {
|
|
283
|
+
"row-gap": "2xs",
|
|
284
|
+
},
|
|
285
|
+
},
|
|
286
|
+
faq_image: {
|
|
287
|
+
height: "479px",
|
|
288
|
+
width: "356px",
|
|
289
|
+
tablet: {
|
|
290
|
+
width: "300px",
|
|
291
|
+
height: "403px",
|
|
292
|
+
},
|
|
293
|
+
mobile: {
|
|
294
|
+
display: "none",
|
|
295
|
+
},
|
|
296
|
+
},
|
|
297
|
+
faq_label: {
|
|
298
|
+
"font-size": "lg",
|
|
299
|
+
"font-weight": 600,
|
|
300
|
+
tablet: {
|
|
301
|
+
"font-size": "base",
|
|
302
|
+
},
|
|
303
|
+
},
|
|
304
|
+
title: {
|
|
305
|
+
"font-size": "4xl",
|
|
306
|
+
tablet: {
|
|
307
|
+
"font-size": "2xl",
|
|
308
|
+
},
|
|
309
|
+
},
|
|
310
|
+
cta: {
|
|
311
|
+
width: "fit-content",
|
|
312
|
+
},
|
|
313
|
+
faqs: Array(4)
|
|
314
|
+
.fill(4)
|
|
315
|
+
.map((v) => {
|
|
316
|
+
return {
|
|
317
|
+
wrapper: {
|
|
318
|
+
"padding-top": "none",
|
|
319
|
+
"padding-bottom": "none",
|
|
320
|
+
"border-color": "var(--color-border)",
|
|
321
|
+
"border-bottom-width": "1px",
|
|
322
|
+
"border-style": "solid",
|
|
323
|
+
},
|
|
324
|
+
question: {
|
|
325
|
+
"font-size": "xl",
|
|
326
|
+
"font-weight": 600,
|
|
327
|
+
color: "black",
|
|
328
|
+
tablet: {
|
|
329
|
+
"text-align": "left",
|
|
330
|
+
},
|
|
331
|
+
},
|
|
332
|
+
content: {
|
|
333
|
+
"padding-top": "none",
|
|
334
|
+
"padding-bottom": "lg",
|
|
335
|
+
},
|
|
336
|
+
trigger: {
|
|
337
|
+
width: "100%",
|
|
338
|
+
display: "flex",
|
|
339
|
+
"align-items": "center",
|
|
340
|
+
"justify-content": "space-between",
|
|
341
|
+
"padding-top": "base",
|
|
342
|
+
"padding-bottom": "base",
|
|
343
|
+
},
|
|
344
|
+
iconQuestionWrapper: {
|
|
345
|
+
display: "flex",
|
|
346
|
+
"align-items": "center",
|
|
347
|
+
"column-gap": "base",
|
|
348
|
+
},
|
|
349
|
+
};
|
|
350
|
+
}),
|
|
351
|
+
},
|
|
352
|
+
content: DEFAULT_CONTENT,
|
|
353
|
+
config: {},
|
|
354
|
+
},
|
|
355
|
+
],
|
|
356
|
+
};
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import React, { useState } from "react";
|
|
2
|
+
import {
|
|
3
|
+
type ILevoBlockBaseProps,
|
|
4
|
+
Heading,
|
|
5
|
+
Icon,
|
|
6
|
+
Image,
|
|
7
|
+
Typography,
|
|
8
|
+
Container,
|
|
9
|
+
Section,
|
|
10
|
+
Box,
|
|
11
|
+
AccordionRoot,
|
|
12
|
+
AccordionItem,
|
|
13
|
+
AccordionTrigger,
|
|
14
|
+
AccordionContent,
|
|
15
|
+
Button,
|
|
16
|
+
Media,
|
|
17
|
+
} from "@levo-so/studio";
|
|
18
|
+
|
|
19
|
+
import type { IFaq2Content } from "./faq-2.schema";
|
|
20
|
+
|
|
21
|
+
const Faq2: React.FC<ILevoBlockBaseProps<IFaq2Content>> = ({ content }) => {
|
|
22
|
+
const [activeIndex, setActiveIndex] = useState<number>(0);
|
|
23
|
+
|
|
24
|
+
const handleValueChange = (value: string | undefined) => {
|
|
25
|
+
if (typeof value === "string" && value.includes("-")) {
|
|
26
|
+
const parts = value.split("-");
|
|
27
|
+
if (parts.length > 1) {
|
|
28
|
+
const index = parseInt(parts?.[1] ?? "0", 10);
|
|
29
|
+
if (!isNaN(index)) {
|
|
30
|
+
setActiveIndex(index);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
return (
|
|
37
|
+
<Section elementKey="layout">
|
|
38
|
+
<Container elementKey="container">
|
|
39
|
+
<Box elementKey="content_container">
|
|
40
|
+
<Box elementKey="text_container">
|
|
41
|
+
<Typography elementKey="faq_label" />
|
|
42
|
+
<Heading elementKey="title" />
|
|
43
|
+
</Box>
|
|
44
|
+
|
|
45
|
+
<AccordionRoot
|
|
46
|
+
type="single"
|
|
47
|
+
elementKey="faqs_levoGroup"
|
|
48
|
+
data-levo_group
|
|
49
|
+
defaultValue={`item-0`}
|
|
50
|
+
onValueChange={handleValueChange}
|
|
51
|
+
>
|
|
52
|
+
{(content.faqs ?? []).map((_, index) => (
|
|
53
|
+
<AccordionItem
|
|
54
|
+
value={`item-${index}`}
|
|
55
|
+
key={index}
|
|
56
|
+
elementKey={`faqs.${index}.wrapper`}
|
|
57
|
+
data-levo_group_item
|
|
58
|
+
>
|
|
59
|
+
<AccordionTrigger elementKey={`faqs.${index}.trigger`}>
|
|
60
|
+
<Box elementKey={`faqs.${index}.iconQuestionWrapper`}>
|
|
61
|
+
<Icon elementKey={`faqs.${index}.triggerIcon`} />
|
|
62
|
+
<Typography elementKey={`faqs.${index}.question`} />
|
|
63
|
+
</Box>
|
|
64
|
+
</AccordionTrigger>
|
|
65
|
+
<AccordionContent elementKey={`faqs.${index}.content`}>
|
|
66
|
+
<Typography elementKey={`faqs.${index}.answer`} />
|
|
67
|
+
</AccordionContent>
|
|
68
|
+
</AccordionItem>
|
|
69
|
+
))}
|
|
70
|
+
</AccordionRoot>
|
|
71
|
+
<Button elementKey="cta" />
|
|
72
|
+
</Box>
|
|
73
|
+
<Media
|
|
74
|
+
elementKey={`faqs.${activeIndex}.media`}
|
|
75
|
+
width={356}
|
|
76
|
+
height={479}
|
|
77
|
+
alt={`FAQ ${activeIndex + 1} Media`}
|
|
78
|
+
/>
|
|
79
|
+
</Container>
|
|
80
|
+
</Section>
|
|
81
|
+
);
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
export default Faq2;
|