@levo-so/blocks 0.1.59 → 0.1.61
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 +6 -6
- package/src/blocks/about-us/about-us-1.schema.ts +60 -58
- package/src/blocks/about-us/about-us-1.tsx +2 -4
- package/src/blocks/about-us/about-us-2.schema.ts +165 -42
- package/src/blocks/about-us/about-us-2.tsx +7 -13
- package/src/blocks/blogs/blog-listing-1.schema.ts +7 -14
- package/src/blocks/blogs/blog-listing-1.tsx +27 -36
- package/src/blocks/blogs/blog-listing-2.schema.ts +17 -34
- package/src/blocks/blogs/blog-listing-2.tsx +21 -27
- package/src/blocks/blogs/blog-listing-3.schema.ts +32 -64
- package/src/blocks/blogs/blog-listing-3.tsx +21 -27
- package/src/blocks/blogs/blog-post-1.schema.ts +9 -18
- package/src/blocks/blogs/blog-post-1.tsx +3 -14
- package/src/blocks/calendar/calendar-1.schema.ts +351 -180
- package/src/blocks/calendar/calendar-1.tsx +60 -25
- package/src/blocks/cards/cards-10.schema.ts +278 -331
- package/src/blocks/cards/cards-10.tsx +18 -15
- package/src/blocks/cards/cards-11.schema.ts +178 -356
- package/src/blocks/cards/cards-11.tsx +5 -11
- package/src/blocks/cards/cards-12.schema.ts +110 -196
- package/src/blocks/cards/cards-12.tsx +4 -10
- package/src/blocks/cards/cards-13.schema.ts +131 -120
- package/src/blocks/cards/cards-13.tsx +4 -6
- package/src/blocks/cards/cards-14.schema.ts +51 -154
- package/src/blocks/cards/cards-14.tsx +5 -11
- package/src/blocks/cards/cards-15.schema.ts +48 -32
- package/src/blocks/cards/cards-15.tsx +15 -6
- package/src/blocks/cards/cards-2.schema.ts +76 -88
- package/src/blocks/cards/cards-2.tsx +12 -17
- package/src/blocks/cards/cards-3.schema.ts +68 -70
- package/src/blocks/cards/cards-3.tsx +7 -13
- package/src/blocks/cards/cards-4.schema.ts +160 -115
- package/src/blocks/cards/cards-4.tsx +22 -17
- package/src/blocks/cards/cards-5.schema.ts +76 -70
- package/src/blocks/cards/cards-5.tsx +10 -10
- package/src/blocks/cards/cards-6.schema.ts +755 -985
- package/src/blocks/cards/cards-6.tsx +17 -9
- package/src/blocks/cards/cards-7.schema.ts +754 -2250
- package/src/blocks/cards/cards-7.tsx +18 -24
- package/src/blocks/cards/cards-8.schema.ts +171 -363
- package/src/blocks/cards/cards-8.tsx +15 -8
- package/src/blocks/cards/cards-9.schema.ts +283 -329
- package/src/blocks/cards/cards-9.tsx +28 -12
- package/src/blocks/carousel/carousel-1.schema.ts +418 -49
- package/src/blocks/carousel/carousel-1.tsx +8 -8
- package/src/blocks/carousel/carousel-2.schema.ts +153 -127
- package/src/blocks/carousel/carousel-2.tsx +16 -20
- package/src/blocks/community/community-1.schema.ts +612 -0
- package/src/blocks/community/community-1.tsx +557 -0
- package/src/blocks/community/community-post-1.schema.ts +408 -0
- package/src/blocks/community/community-post-1.tsx +405 -0
- package/src/blocks/contact-us/contact-us-1.schema.ts +25 -43
- package/src/blocks/contact-us/contact-us-1.tsx +2 -12
- package/src/blocks/contact-us/contact-us-2.schema.ts +39 -17
- package/src/blocks/contact-us/contact-us-2.tsx +21 -32
- package/src/blocks/content/content-1.schema.ts +163 -234
- package/src/blocks/content/content-1.tsx +46 -43
- package/src/blocks/content/content-2.schema.ts +117 -35
- package/src/blocks/content/content-2.tsx +19 -7
- package/src/blocks/content/content-3.schema.ts +215 -205
- package/src/blocks/content/content-3.tsx +14 -18
- package/src/blocks/content/content-4.schema.ts +105 -89
- package/src/blocks/content/content-4.tsx +10 -18
- package/src/blocks/content/content-5.schema.ts +301 -278
- package/src/blocks/content/content-5.tsx +23 -16
- package/src/blocks/content/content-6.schema.ts +432 -250
- package/src/blocks/content/content-6.tsx +24 -19
- package/src/blocks/content/content-7.schema.ts +200 -197
- package/src/blocks/content/content-7.tsx +29 -21
- package/src/blocks/content/content-8.schema.ts +28 -23
- package/src/blocks/content/content-8.tsx +3 -3
- package/src/blocks/content/content-9.schema.ts +64 -2208
- package/src/blocks/content/content-9.tsx +31 -43
- package/src/blocks/cta/cta-1.schema.ts +23 -128
- package/src/blocks/cta/cta-2.schema.ts +46 -69
- package/src/blocks/cta/cta-2.tsx +2 -6
- package/src/blocks/cta/cta-3.schema.ts +77 -72
- package/src/blocks/cta/cta-3.tsx +2 -6
- package/src/blocks/embed/embed-1.schema.ts +30 -52
- package/src/blocks/embed/embed-1.tsx +1 -9
- package/src/blocks/event/ClientOnly.tsx +1 -4
- package/src/blocks/event/event-details.schema.ts +23 -32
- package/src/blocks/event/event-details.tsx +9 -23
- package/src/blocks/event/event-listing-2.schema.ts +19 -38
- package/src/blocks/event/event-listing-2.tsx +29 -38
- package/src/blocks/event/event-listing-3.schema.ts +10 -20
- package/src/blocks/event/event-listing-3.tsx +26 -30
- package/src/blocks/event/event-listing-4.schema.ts +40 -80
- package/src/blocks/event/event-listing-4.tsx +22 -28
- package/src/blocks/event/event-listing.schema.ts +12 -24
- package/src/blocks/event/event-listing.tsx +26 -30
- package/src/blocks/faq/faq-1.schema.ts +150 -112
- package/src/blocks/faq/faq-1.tsx +31 -33
- package/src/blocks/faq/faq-2.schema.ts +132 -77
- package/src/blocks/faq/faq-2.tsx +21 -11
- package/src/blocks/faq/faq-3.schema.ts +178 -107
- package/src/blocks/faq/faq-3.tsx +30 -22
- package/src/blocks/features/features-1/features-1.schema.ts +11 -3
- package/src/blocks/features/features-1/features-1.tsx +12 -5
- package/src/blocks/features/features-1/variants/default.ts +176 -62
- package/src/blocks/features/features-1/variants/index.ts +1 -1
- package/src/blocks/features/features-1/variants/stylized-cards-v1.ts +392 -54
- package/src/blocks/features/features-1/variants/stylized-cards-v2.ts +119 -103
- package/src/blocks/features/features-1/variants/stylized-cards-v3.ts +16 -199
- package/src/blocks/features/features-2.schema.ts +149 -48
- package/src/blocks/features/features-2.tsx +18 -12
- package/src/blocks/features/features-3.schema.ts +255 -68
- package/src/blocks/features/features-3.tsx +25 -15
- package/src/blocks/features/features-4.schema.ts +367 -188
- package/src/blocks/features/features-4.tsx +12 -8
- package/src/blocks/features/features-5.schema.ts +195 -200
- package/src/blocks/features/features-5.tsx +14 -14
- package/src/blocks/features/features-6.schema.ts +230 -215
- package/src/blocks/features/features-6.tsx +28 -34
- package/src/blocks/filter-listing/filter-listing-1.tsx +12 -36
- package/src/blocks/floating-buttons/floating-button-1.schema.ts +100 -0
- package/src/blocks/floating-buttons/floating-button-1.tsx +14 -0
- package/src/blocks/footer/footer-1.schema.ts +110 -48
- package/src/blocks/footer/footer-1.tsx +17 -31
- package/src/blocks/footer/footer-2.schema.ts +230 -34
- package/src/blocks/footer/footer-2.tsx +19 -29
- package/src/blocks/footer/footer-3.schema.ts +335 -59
- package/src/blocks/footer/footer-3.tsx +11 -26
- package/src/blocks/footer/footer-4.schema.ts +139 -76
- package/src/blocks/footer/footer-4.tsx +37 -55
- package/src/blocks/footer/footer-5.schema.ts +138 -60
- package/src/blocks/footer/footer-5.tsx +16 -30
- package/src/blocks/footer/footer-6.schema.ts +62 -149
- package/src/blocks/footer/footer-6.tsx +30 -44
- package/src/blocks/form/form-1.schema.ts +144 -0
- package/src/blocks/form/form-1.tsx +33 -0
- package/src/blocks/hero/hero-1.schema.ts +153 -101
- package/src/blocks/hero/hero-1.tsx +4 -4
- package/src/blocks/hero/hero-10.schema.ts +9 -31
- package/src/blocks/hero/hero-10.tsx +4 -4
- package/src/blocks/hero/hero-11.schema.ts +196 -89
- package/src/blocks/hero/hero-11.tsx +5 -10
- package/src/blocks/hero/hero-12.schema.ts +111 -192
- package/src/blocks/hero/hero-12.tsx +4 -7
- package/src/blocks/hero/hero-13.schema.ts +36 -30
- package/src/blocks/hero/hero-13.tsx +1 -1
- package/src/blocks/hero/hero-2.schema.ts +30 -58
- package/src/blocks/hero/hero-2.tsx +3 -21
- package/src/blocks/hero/hero-3.schema.ts +70 -90
- package/src/blocks/hero/hero-3.tsx +6 -15
- package/src/blocks/hero/hero-4.schema.ts +246 -73
- package/src/blocks/hero/hero-4.tsx +22 -16
- package/src/blocks/hero/hero-5.schema.ts +104 -47
- package/src/blocks/hero/hero-5.tsx +21 -12
- package/src/blocks/hero/hero-6.schema.ts +127 -258
- package/src/blocks/hero/hero-6.tsx +6 -6
- package/src/blocks/hero/hero-7.schema.ts +90 -43
- package/src/blocks/hero/hero-7.tsx +6 -4
- package/src/blocks/hero/hero-8.schema.ts +342 -138
- package/src/blocks/hero/hero-8.tsx +23 -13
- package/src/blocks/hero/hero-9.schema.ts +111 -86
- package/src/blocks/hero/hero-9.tsx +12 -4
- package/src/blocks/index.ts +12 -8
- package/src/blocks/jobs/jobs-1.schema.ts +990 -0
- package/src/blocks/jobs/jobs-1.tsx +145 -0
- package/src/blocks/logos/logos-1.schema.ts +370 -36
- package/src/blocks/logos/logos-1.tsx +7 -7
- package/src/blocks/navbar/navbar-1.schema.ts +15 -28
- package/src/blocks/navbar/navbar-1.tsx +24 -60
- package/src/blocks/navbar/navbar-2.schema.ts +14 -28
- package/src/blocks/navbar/navbar-2.tsx +26 -56
- package/src/blocks/navbar/navbar-3.schema.ts +11 -22
- package/src/blocks/navbar/navbar-3.tsx +33 -82
- package/src/blocks/navbar/navbar-4.schema.ts +14343 -0
- package/src/blocks/navbar/navbar-4.tsx +546 -0
- package/src/blocks/polling/polling-1.schema.ts +2 -21
- package/src/blocks/polling/polling-1.tsx +24 -39
- package/src/blocks/pricing/pricing-1.schema.ts +307 -290
- package/src/blocks/pricing/pricing-1.tsx +32 -42
- package/src/blocks/products/products-listing-1.schema.ts +115 -36
- package/src/blocks/products/products-listing-1.tsx +15 -13
- package/src/blocks/products/products-listing-2.schema.ts +178 -220
- package/src/blocks/products/products-listing-2.tsx +29 -16
- package/src/blocks/products/products-listing-3.schema.ts +412 -154
- package/src/blocks/products/products-listing-3.tsx +102 -73
- package/src/blocks/profile/profile-1.schema.ts +60 -49
- package/src/blocks/profile/profile-1.tsx +5 -10
- package/src/blocks/profile/profile-2.schema.ts +71 -92
- package/src/blocks/profile/profile-2.tsx +6 -7
- package/src/blocks/profile/profile-3.schema.ts +141 -529
- package/src/blocks/profile/profile-3.tsx +19 -41
- package/src/blocks/{blogs/blog-post-2.schema.ts → profile/profile-4.schema.ts} +75 -97
- package/src/blocks/{blogs/blog-post-2.tsx → profile/profile-4.tsx} +32 -61
- package/src/blocks/{blogs/blog-post-3.schema.ts → profile/profile-5.schema.ts} +6 -6
- package/src/blocks/{blogs/blog-post-3.tsx → profile/profile-5.tsx} +6 -11
- package/src/blocks/services/service-1.schema.ts +210 -830
- package/src/blocks/services/service-1.tsx +46 -59
- package/src/blocks/services/service-2.schema.ts +92 -80
- package/src/blocks/services/service-2.tsx +13 -7
- package/src/blocks/services/service-3.schema.ts +74 -86
- package/src/blocks/services/service-3.tsx +44 -45
- package/src/blocks/stats/stats-1.schema.ts +225 -21
- package/src/blocks/stats/stats-1.tsx +7 -14
- package/src/blocks/stats/stats-2.schema.ts +13 -5
- package/src/blocks/stats/stats-2.tsx +12 -15
- package/src/blocks/stats/variants/default.ts +59 -41
- package/src/blocks/stats/variants/hero.ts +64 -31
- package/src/blocks/stats/variants/index.ts +1 -1
- package/src/blocks/tabs/tab-1.schema.ts +103 -409
- package/src/blocks/tabs/tab-1.tsx +47 -53
- package/src/blocks/tabs/tab-2.schema.ts +207 -290
- package/src/blocks/tabs/tab-2.tsx +20 -9
- package/src/blocks/team/team-1.schema.ts +593 -76
- package/src/blocks/team/team-1.tsx +16 -22
- package/src/blocks/team/team-2.schema.ts +621 -1453
- package/src/blocks/team/team-2.tsx +19 -34
- package/src/blocks/team/team-3.schema.ts +127 -78
- package/src/blocks/team/team-3.tsx +9 -14
- package/src/blocks/team/team-4.schema.ts +197 -63
- package/src/blocks/team/team-4.tsx +25 -26
- package/src/blocks/team/team-5.schema.ts +65 -54
- package/src/blocks/team/team-5.tsx +13 -4
- package/src/blocks/termsAndPrivacy/terms-and-conditions-1.schema.ts +9 -26
- package/src/blocks/termsAndPrivacy/terms-and-conditions-1.tsx +4 -6
- package/src/blocks/testimonial/testimonial-1.schema.ts +713 -65
- package/src/blocks/testimonial/testimonial-1.tsx +12 -23
- package/src/blocks/testimonial/testimonial-2.schema.ts +1316 -354
- package/src/blocks/testimonial/testimonial-2.tsx +21 -37
- package/src/blocks/testimonial/testimonial-3.schema.ts +210 -74
- package/src/blocks/testimonial/testimonial-3.tsx +17 -27
- package/src/blocks/testimonial/testimonial-4.schema.ts +353 -1049
- package/src/blocks/testimonial/testimonial-4.tsx +16 -34
- package/src/blocks/testimonial/testimonial-5/variants/default.ts +155 -171
- package/src/blocks/testimonial/testimonial-5/variants/index.ts +1 -1
- package/src/blocks/testimonial/testimonial-5/variants/testimonialWithLogo.ts +201 -501
- package/src/blocks/testimonial/testimonial-5/variants/testimonialWithRatings.ts +166 -316
- package/src/blocks/testimonial/testimonial-5.schema.ts +2 -6
- package/src/blocks/testimonial/testimonial-5.tsx +15 -25
- package/src/blocks/testimonial/testimonial-6.schema.ts +226 -315
- package/src/blocks/testimonial/testimonial-6.tsx +9 -25
- package/src/blocks/testimonial/testimonial-7.schema.ts +74 -45
- package/src/blocks/testimonial/testimonial-7.tsx +16 -27
- package/src/blocks/timeline/timeline-1.schema.ts +166 -153
- package/src/blocks/timeline/timeline-1.tsx +6 -7
- package/src/blocks/users/edit-profile.schema.ts +56 -44
- package/src/blocks/users/edit-profile.tsx +23 -28
- package/src/constants/index.ts +16 -0
- package/src/index.ts +1 -1
- package/src/schemas/blocks.ts +17 -5
- package/src/schemas/categories.ts +26 -2
|
@@ -1,119 +1,148 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
Box,
|
|
3
3
|
Button,
|
|
4
|
+
Container,
|
|
4
5
|
Heading,
|
|
6
|
+
type ILevoBlockBaseProps,
|
|
5
7
|
Image,
|
|
6
|
-
Typography,
|
|
7
|
-
Container,
|
|
8
8
|
Section,
|
|
9
|
-
|
|
9
|
+
Typography,
|
|
10
10
|
} from "@levo-so/studio";
|
|
11
11
|
|
|
12
12
|
import type { IProductsListing3Content } from "./products-listing-3.schema";
|
|
13
13
|
|
|
14
|
-
const ProductsListing3: React.FC<
|
|
15
|
-
ILevoBlockBaseProps<IProductsListing3Content>
|
|
16
|
-
> = ({ content }) => (
|
|
14
|
+
const ProductsListing3: React.FC<ILevoBlockBaseProps<IProductsListing3Content>> = ({ content }) => (
|
|
17
15
|
<Section elementKey="layout">
|
|
18
16
|
<Container elementKey="container">
|
|
19
17
|
<Box elementKey="header_container">
|
|
20
|
-
<
|
|
21
|
-
|
|
18
|
+
<Box elementKey="header_content">
|
|
19
|
+
<Heading elementKey="title" />
|
|
20
|
+
<Typography elementKey="description" />
|
|
21
|
+
</Box>
|
|
22
|
+
<Box elementKey="header_ctas_levoGroup" data-levo_group>
|
|
23
|
+
{(content.header_ctas ?? []).map((_, index) => (
|
|
24
|
+
<Button
|
|
25
|
+
key={`header_ctas.${index}.header_cta`}
|
|
26
|
+
elementKey={`header_ctas.${index}.header_cta`}
|
|
27
|
+
data-levo_group_item
|
|
28
|
+
/>
|
|
29
|
+
))}
|
|
30
|
+
</Box>
|
|
22
31
|
</Box>
|
|
23
32
|
<Box data-levo_group elementKey="product_groups_levoGroup">
|
|
24
33
|
{(content?.product_groups ?? []).map((_, groupIndex) => (
|
|
25
|
-
<Box
|
|
26
|
-
key={groupIndex}
|
|
27
|
-
elementKey={`product_groups.${groupIndex}.groups_container`}
|
|
28
|
-
>
|
|
34
|
+
<Box key={groupIndex} elementKey={`product_groups.${groupIndex}.groups_container`}>
|
|
29
35
|
<Box
|
|
30
36
|
data-levo_group
|
|
31
37
|
elementKey={`product_groups.${groupIndex}.products_with_images_levoGroup`}
|
|
32
38
|
>
|
|
33
|
-
{(
|
|
34
|
-
|
|
35
|
-
).map((_, index) => (
|
|
36
|
-
<Box
|
|
37
|
-
data-levo_group_item
|
|
38
|
-
elementKey={`product_groups.${groupIndex}.products_with_images.${index}.card`}
|
|
39
|
-
key={index}
|
|
40
|
-
>
|
|
41
|
-
<Image
|
|
42
|
-
alt="product image"
|
|
43
|
-
elementKey={`product_groups.${groupIndex}.products_with_images.${index}.image`}
|
|
44
|
-
width={400}
|
|
45
|
-
height={400}
|
|
46
|
-
/>
|
|
39
|
+
{(content.product_groups?.[groupIndex]?.products_with_images ?? []).map(
|
|
40
|
+
(_, index) => (
|
|
47
41
|
<Box
|
|
48
|
-
|
|
42
|
+
data-levo_group_item
|
|
43
|
+
elementKey={`product_groups.${groupIndex}.products_with_images.${index}.card`}
|
|
44
|
+
key={index}
|
|
49
45
|
>
|
|
50
|
-
<
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
46
|
+
<Image
|
|
47
|
+
alt="product image"
|
|
48
|
+
elementKey={`product_groups.${groupIndex}.products_with_images.${index}.image`}
|
|
49
|
+
width={400}
|
|
50
|
+
height={400}
|
|
55
51
|
/>
|
|
56
52
|
<Box
|
|
57
|
-
elementKey={`product_groups.${groupIndex}.products_with_images.${index}.
|
|
53
|
+
elementKey={`product_groups.${groupIndex}.products_with_images.${index}.content_wrapper`}
|
|
58
54
|
>
|
|
59
|
-
<
|
|
60
|
-
elementKey={`product_groups.${groupIndex}.products_with_images.${index}.
|
|
55
|
+
<Heading
|
|
56
|
+
elementKey={`product_groups.${groupIndex}.products_with_images.${index}.title`}
|
|
61
57
|
/>
|
|
62
58
|
<Typography
|
|
63
|
-
elementKey={`product_groups.${groupIndex}.products_with_images.${index}.
|
|
64
|
-
/>
|
|
65
|
-
<Typography
|
|
66
|
-
elementKey={`product_groups.${groupIndex}.products_with_images.${index}.off_percent`}
|
|
59
|
+
elementKey={`product_groups.${groupIndex}.products_with_images.${index}.description`}
|
|
67
60
|
/>
|
|
61
|
+
<Box
|
|
62
|
+
elementKey={`product_groups.${groupIndex}.products_with_images.${index}.price_container`}
|
|
63
|
+
>
|
|
64
|
+
<Typography
|
|
65
|
+
elementKey={`product_groups.${groupIndex}.products_with_images.${index}.actual_price`}
|
|
66
|
+
/>
|
|
67
|
+
<Typography
|
|
68
|
+
elementKey={`product_groups.${groupIndex}.products_with_images.${index}.discount_price`}
|
|
69
|
+
/>
|
|
70
|
+
<Typography
|
|
71
|
+
elementKey={`product_groups.${groupIndex}.products_with_images.${index}.off_percent`}
|
|
72
|
+
/>
|
|
73
|
+
</Box>
|
|
74
|
+
<Box
|
|
75
|
+
elementKey={`product_groups.${groupIndex}.products_with_images.${index}.ctas_levoGroup`}
|
|
76
|
+
data-levo_group
|
|
77
|
+
>
|
|
78
|
+
{(
|
|
79
|
+
content?.product_groups?.[groupIndex]?.products_with_images?.[index]
|
|
80
|
+
?.ctas ?? []
|
|
81
|
+
).map((_, i) => (
|
|
82
|
+
<Button
|
|
83
|
+
key={`product_groups.${groupIndex}.products_with_images.${index}.ctas.${i}.cta`}
|
|
84
|
+
elementKey={`product_groups.${groupIndex}.products_with_images.${index}.ctas.${i}.cta`}
|
|
85
|
+
data-levo_group_item
|
|
86
|
+
/>
|
|
87
|
+
))}
|
|
88
|
+
</Box>
|
|
68
89
|
</Box>
|
|
69
|
-
<Button
|
|
70
|
-
elementKey={`product_groups.${groupIndex}.products_with_images.${index}.cta`}
|
|
71
|
-
/>
|
|
72
90
|
</Box>
|
|
73
|
-
|
|
74
|
-
)
|
|
91
|
+
),
|
|
92
|
+
)}
|
|
75
93
|
</Box>
|
|
76
94
|
<Box
|
|
77
95
|
data-levo_group
|
|
78
96
|
elementKey={`product_groups.${groupIndex}.products_without_images_levoGroup`}
|
|
79
97
|
>
|
|
80
|
-
{(
|
|
81
|
-
|
|
82
|
-
[]
|
|
83
|
-
).map((_, index) => (
|
|
84
|
-
<Box
|
|
85
|
-
data-levo_group_item
|
|
86
|
-
elementKey={`product_groups.${groupIndex}.products_without_images.${index}.card`}
|
|
87
|
-
key={index}
|
|
88
|
-
>
|
|
98
|
+
{(content.product_groups?.[groupIndex]?.products_without_images ?? []).map(
|
|
99
|
+
(_, index) => (
|
|
89
100
|
<Box
|
|
90
|
-
|
|
101
|
+
data-levo_group_item
|
|
102
|
+
elementKey={`product_groups.${groupIndex}.products_without_images.${index}.card`}
|
|
103
|
+
key={index}
|
|
91
104
|
>
|
|
92
|
-
<Heading
|
|
93
|
-
elementKey={`product_groups.${groupIndex}.products_without_images.${index}.title`}
|
|
94
|
-
/>
|
|
95
|
-
<Typography
|
|
96
|
-
elementKey={`product_groups.${groupIndex}.products_without_images.${index}.description`}
|
|
97
|
-
/>
|
|
98
105
|
<Box
|
|
99
|
-
elementKey={`product_groups.${groupIndex}.products_without_images.${index}.
|
|
106
|
+
elementKey={`product_groups.${groupIndex}.products_without_images.${index}.content_wrapper`}
|
|
100
107
|
>
|
|
101
|
-
<
|
|
102
|
-
elementKey={`product_groups.${groupIndex}.products_without_images.${index}.
|
|
103
|
-
/>
|
|
104
|
-
<Typography
|
|
105
|
-
elementKey={`product_groups.${groupIndex}.products_without_images.${index}.discount_price`}
|
|
108
|
+
<Heading
|
|
109
|
+
elementKey={`product_groups.${groupIndex}.products_without_images.${index}.title`}
|
|
106
110
|
/>
|
|
107
111
|
<Typography
|
|
108
|
-
elementKey={`product_groups.${groupIndex}.products_without_images.${index}.
|
|
112
|
+
elementKey={`product_groups.${groupIndex}.products_without_images.${index}.description`}
|
|
109
113
|
/>
|
|
114
|
+
<Box
|
|
115
|
+
elementKey={`product_groups.${groupIndex}.products_without_images.${index}.price_container`}
|
|
116
|
+
>
|
|
117
|
+
<Typography
|
|
118
|
+
elementKey={`product_groups.${groupIndex}.products_without_images.${index}.actual_price`}
|
|
119
|
+
/>
|
|
120
|
+
<Typography
|
|
121
|
+
elementKey={`product_groups.${groupIndex}.products_without_images.${index}.discount_price`}
|
|
122
|
+
/>
|
|
123
|
+
<Typography
|
|
124
|
+
elementKey={`product_groups.${groupIndex}.products_without_images.${index}.off_percent`}
|
|
125
|
+
/>
|
|
126
|
+
</Box>
|
|
127
|
+
<Box
|
|
128
|
+
elementKey={`product_groups.${groupIndex}.products_without_images.${index}.ctas_levoGroup`}
|
|
129
|
+
data-levo_group
|
|
130
|
+
>
|
|
131
|
+
{(
|
|
132
|
+
content?.product_groups?.[groupIndex]?.products_without_images?.[index]
|
|
133
|
+
?.ctas ?? []
|
|
134
|
+
).map((_, i) => (
|
|
135
|
+
<Button
|
|
136
|
+
key={`product_groups.${groupIndex}.products_without_images.${index}.ctas.${i}.cta`}
|
|
137
|
+
elementKey={`product_groups.${groupIndex}.products_without_images.${index}.ctas.${i}.cta`}
|
|
138
|
+
data-levo_group_item
|
|
139
|
+
/>
|
|
140
|
+
))}
|
|
141
|
+
</Box>
|
|
110
142
|
</Box>
|
|
111
|
-
<Button
|
|
112
|
-
elementKey={`product_groups.${groupIndex}.products_without_images.${index}.cta`}
|
|
113
|
-
/>
|
|
114
143
|
</Box>
|
|
115
|
-
|
|
116
|
-
)
|
|
144
|
+
),
|
|
145
|
+
)}
|
|
117
146
|
</Box>
|
|
118
147
|
</Box>
|
|
119
148
|
))}
|
|
@@ -1,34 +1,29 @@
|
|
|
1
1
|
import type { IBlock } from "@levo-so/studio";
|
|
2
2
|
|
|
3
|
+
const MEDIA = {
|
|
4
|
+
id: "lDiRGwMyorBH",
|
|
5
|
+
filename: "profile-1.png",
|
|
6
|
+
kind: "image",
|
|
7
|
+
location: "https://static.levocdn.com/WLZ1TXTD/profile-1-EBhkxBH4PWVj.png",
|
|
8
|
+
srcset: {
|
|
9
|
+
"1080w": "https://static.levocdn.com/WLZ1TXTD/profile-1-EBhkxBH4PWVj-1080w.webp",
|
|
10
|
+
"1200w": "https://static.levocdn.com/WLZ1TXTD/profile-1-EBhkxBH4PWVj-1200w.webp",
|
|
11
|
+
"1920w": "https://static.levocdn.com/WLZ1TXTD/profile-1-EBhkxBH4PWVj-1920w.webp",
|
|
12
|
+
"320w": "https://static.levocdn.com/WLZ1TXTD/profile-1-EBhkxBH4PWVj-320w.webp",
|
|
13
|
+
"640w": "https://static.levocdn.com/WLZ1TXTD/profile-1-EBhkxBH4PWVj-640w.webp",
|
|
14
|
+
"750w": "https://static.levocdn.com/WLZ1TXTD/profile-1-EBhkxBH4PWVj-750w.webp",
|
|
15
|
+
"828w": "https://static.levocdn.com/WLZ1TXTD/profile-1-EBhkxBH4PWVj-828w.webp",
|
|
16
|
+
path: "https://static.levocdn.com/WLZ1TXTD/profile-1-EBhkxBH4PWVj-320w.webp 320w, https://static.levocdn.com/WLZ1TXTD/profile-1-EBhkxBH4PWVj-640w.webp 640w, https://static.levocdn.com/WLZ1TXTD/profile-1-EBhkxBH4PWVj-750w.webp 750w, https://static.levocdn.com/WLZ1TXTD/profile-1-EBhkxBH4PWVj-828w.webp 828w, https://static.levocdn.com/WLZ1TXTD/profile-1-EBhkxBH4PWVj-1080w.webp 1080w, https://static.levocdn.com/WLZ1TXTD/profile-1-EBhkxBH4PWVj-1200w.webp 1200w, https://static.levocdn.com/WLZ1TXTD/profile-1-EBhkxBH4PWVj-1920w.webp 1920w",
|
|
17
|
+
},
|
|
18
|
+
mimetype: "image/png",
|
|
19
|
+
};
|
|
20
|
+
|
|
3
21
|
const DEFAULT_CONTENT = {
|
|
4
22
|
layout: null,
|
|
5
23
|
container: null,
|
|
6
24
|
main_container: null,
|
|
7
25
|
left_container: null,
|
|
8
|
-
image:
|
|
9
|
-
id: "CISQRrr8Fa61r",
|
|
10
|
-
filename: "image.png",
|
|
11
|
-
kind: "image",
|
|
12
|
-
location: "https://static.levostg.online/W6OEVMW8/image-gVHXsJu0gnbHV.png",
|
|
13
|
-
srcset: {
|
|
14
|
-
"1080w":
|
|
15
|
-
"https://static.levostg.online/W6OEVMW8/image-gVHXsJu0gnbHV-1080w.webp",
|
|
16
|
-
"1200w":
|
|
17
|
-
"https://static.levostg.online/W6OEVMW8/image-gVHXsJu0gnbHV-1200w.webp",
|
|
18
|
-
"1920w":
|
|
19
|
-
"https://static.levostg.online/W6OEVMW8/image-gVHXsJu0gnbHV-1920w.webp",
|
|
20
|
-
"320w":
|
|
21
|
-
"https://static.levostg.online/W6OEVMW8/image-gVHXsJu0gnbHV-320w.webp",
|
|
22
|
-
"640w":
|
|
23
|
-
"https://static.levostg.online/W6OEVMW8/image-gVHXsJu0gnbHV-640w.webp",
|
|
24
|
-
"750w":
|
|
25
|
-
"https://static.levostg.online/W6OEVMW8/image-gVHXsJu0gnbHV-750w.webp",
|
|
26
|
-
"828w":
|
|
27
|
-
"https://static.levostg.online/W6OEVMW8/image-gVHXsJu0gnbHV-828w.webp",
|
|
28
|
-
path: "https://static.levostg.online/W6OEVMW8/image-gVHXsJu0gnbHV-640w.webp 640w, https://static.levostg.online/W6OEVMW8/image-gVHXsJu0gnbHV-320w.webp 320w, https://static.levostg.online/W6OEVMW8/image-gVHXsJu0gnbHV-828w.webp 828w, https://static.levostg.online/W6OEVMW8/image-gVHXsJu0gnbHV-750w.webp 750w, https://static.levostg.online/W6OEVMW8/image-gVHXsJu0gnbHV-1080w.webp 1080w, https://static.levostg.online/W6OEVMW8/image-gVHXsJu0gnbHV-1200w.webp 1200w, https://static.levostg.online/W6OEVMW8/image-gVHXsJu0gnbHV-1920w.webp 1920w",
|
|
29
|
-
},
|
|
30
|
-
mimetype: "image/png",
|
|
31
|
-
},
|
|
26
|
+
image: MEDIA,
|
|
32
27
|
ctas: [],
|
|
33
28
|
right_container: null,
|
|
34
29
|
content_container: null,
|
|
@@ -169,7 +164,7 @@ export const Profile1: IBlock = {
|
|
|
169
164
|
{
|
|
170
165
|
key: "name",
|
|
171
166
|
label: "Name",
|
|
172
|
-
field_interface: "
|
|
167
|
+
field_interface: "HeadingWidget",
|
|
173
168
|
},
|
|
174
169
|
{
|
|
175
170
|
key: "groups",
|
|
@@ -185,7 +180,7 @@ export const Profile1: IBlock = {
|
|
|
185
180
|
{
|
|
186
181
|
key: "title",
|
|
187
182
|
label: "Label Title",
|
|
188
|
-
field_interface: "
|
|
183
|
+
field_interface: "HeadingWidget",
|
|
189
184
|
},
|
|
190
185
|
{
|
|
191
186
|
key: "description",
|
|
@@ -210,17 +205,8 @@ export const Profile1: IBlock = {
|
|
|
210
205
|
key: "default",
|
|
211
206
|
title: "Default",
|
|
212
207
|
styles: {
|
|
213
|
-
layout: {
|
|
214
|
-
|
|
215
|
-
"padding-bottom": "48px",
|
|
216
|
-
"padding-left": "48px",
|
|
217
|
-
"padding-right": "48px",
|
|
218
|
-
},
|
|
219
|
-
container: {
|
|
220
|
-
"max-width": "1280px",
|
|
221
|
-
"margin-left": "auto",
|
|
222
|
-
"margin-right": "auto",
|
|
223
|
-
},
|
|
208
|
+
layout: {},
|
|
209
|
+
container: {},
|
|
224
210
|
main_container: {
|
|
225
211
|
display: "flex",
|
|
226
212
|
"flex-direction": "row",
|
|
@@ -329,19 +315,11 @@ export const Profile1: IBlock = {
|
|
|
329
315
|
"flex-direction": "column",
|
|
330
316
|
"align-items": "flex-start",
|
|
331
317
|
},
|
|
332
|
-
content_description: {
|
|
333
|
-
|
|
334
|
-
color: "text-2",
|
|
335
|
-
"line-height": "1.6",
|
|
336
|
-
},
|
|
337
|
-
name: {
|
|
338
|
-
"font-size": "5xl",
|
|
339
|
-
"font-weight": 700,
|
|
340
|
-
},
|
|
318
|
+
content_description: {},
|
|
319
|
+
name: {},
|
|
341
320
|
groups: [
|
|
342
321
|
{
|
|
343
322
|
title: {
|
|
344
|
-
"font-size": "2xl",
|
|
345
323
|
"font-weight": 600,
|
|
346
324
|
},
|
|
347
325
|
wrapper: {
|
|
@@ -352,7 +330,6 @@ export const Profile1: IBlock = {
|
|
|
352
330
|
},
|
|
353
331
|
{
|
|
354
332
|
title: {
|
|
355
|
-
"font-size": "2xl",
|
|
356
333
|
"font-weight": 600,
|
|
357
334
|
},
|
|
358
335
|
wrapper: {
|
|
@@ -393,7 +370,41 @@ export const Profile1: IBlock = {
|
|
|
393
370
|
},
|
|
394
371
|
},
|
|
395
372
|
content: DEFAULT_CONTENT,
|
|
396
|
-
config: {
|
|
373
|
+
config: {
|
|
374
|
+
content_description: {
|
|
375
|
+
selectedVariants: {},
|
|
376
|
+
},
|
|
377
|
+
name: {
|
|
378
|
+
heading: {
|
|
379
|
+
level: "2",
|
|
380
|
+
},
|
|
381
|
+
selectedVariants: {
|
|
382
|
+
Heading_Level: "H2",
|
|
383
|
+
},
|
|
384
|
+
},
|
|
385
|
+
groups: [
|
|
386
|
+
{
|
|
387
|
+
title: {
|
|
388
|
+
heading: {
|
|
389
|
+
level: "4",
|
|
390
|
+
},
|
|
391
|
+
selectedVariants: {
|
|
392
|
+
Heading_Level: "H5",
|
|
393
|
+
},
|
|
394
|
+
},
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
title: {
|
|
398
|
+
selectedVariants: {
|
|
399
|
+
Heading_Level: "H5",
|
|
400
|
+
},
|
|
401
|
+
heading: {
|
|
402
|
+
level: "4",
|
|
403
|
+
},
|
|
404
|
+
},
|
|
405
|
+
},
|
|
406
|
+
],
|
|
407
|
+
},
|
|
397
408
|
},
|
|
398
409
|
],
|
|
399
410
|
};
|
|
@@ -2,6 +2,7 @@ import {
|
|
|
2
2
|
Box,
|
|
3
3
|
Button,
|
|
4
4
|
Container,
|
|
5
|
+
Heading,
|
|
5
6
|
Icon,
|
|
6
7
|
type ILevoBlockBaseProps,
|
|
7
8
|
Image,
|
|
@@ -11,9 +12,7 @@ import {
|
|
|
11
12
|
|
|
12
13
|
import type { IProfile1Content } from "./profile-1.schema";
|
|
13
14
|
|
|
14
|
-
const Profile1: React.FC<ILevoBlockBaseProps<IProfile1Content>> = ({
|
|
15
|
-
content,
|
|
16
|
-
}) => (
|
|
15
|
+
const Profile1: React.FC<ILevoBlockBaseProps<IProfile1Content>> = ({ content }) => (
|
|
17
16
|
<Section elementKey="layout">
|
|
18
17
|
<Container elementKey="container">
|
|
19
18
|
<Box elementKey="main_container">
|
|
@@ -39,15 +38,11 @@ const Profile1: React.FC<ILevoBlockBaseProps<IProfile1Content>> = ({
|
|
|
39
38
|
</Box>
|
|
40
39
|
</Box>
|
|
41
40
|
<Box elementKey="right_container">
|
|
42
|
-
<
|
|
41
|
+
<Heading elementKey="name" />
|
|
43
42
|
<Box elementKey="groups_levoGroup" data-levo_group>
|
|
44
43
|
{(content?.groups || [])?.map((_, index) => (
|
|
45
|
-
<Box
|
|
46
|
-
elementKey={`groups.${index}.
|
|
47
|
-
key={index}
|
|
48
|
-
data-levo_group_item
|
|
49
|
-
>
|
|
50
|
-
<Typography elementKey={`groups.${index}.title`} />
|
|
44
|
+
<Box elementKey={`groups.${index}.wrapper`} key={index} data-levo_group_item>
|
|
45
|
+
<Heading elementKey={`groups.${index}.title`} />
|
|
51
46
|
<Typography elementKey={`groups.${index}.description`} />
|
|
52
47
|
</Box>
|
|
53
48
|
))}
|