@levo-so/blocks 0.1.59 → 0.1.60
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 +16 -15
- package/src/blocks/about-us/about-us-1.schema.ts +75 -58
- package/src/blocks/about-us/about-us-2.schema.ts +186 -39
- package/src/blocks/blogs/blog-listing-1.tsx +17 -15
- package/src/blocks/blogs/blog-listing-2.tsx +17 -15
- package/src/blocks/blogs/blog-listing-3.tsx +17 -15
- package/src/blocks/calendar/calendar-1.schema.ts +263 -181
- package/src/blocks/calendar/calendar-1.tsx +42 -11
- package/src/blocks/cards/cards-10.schema.ts +322 -313
- package/src/blocks/cards/cards-10.tsx +9 -1
- package/src/blocks/cards/cards-11.schema.ts +139 -248
- package/src/blocks/cards/cards-12.schema.ts +117 -196
- package/src/blocks/cards/cards-13.schema.ts +107 -56
- package/src/blocks/cards/cards-14.schema.ts +58 -154
- package/src/blocks/cards/cards-15.schema.ts +54 -31
- package/src/blocks/cards/cards-15.tsx +13 -2
- package/src/blocks/cards/cards-2.schema.ts +83 -88
- package/src/blocks/cards/cards-2.tsx +10 -2
- package/src/blocks/cards/cards-3.schema.ts +75 -70
- package/src/blocks/cards/cards-4.schema.ts +149 -91
- package/src/blocks/cards/cards-4.tsx +13 -2
- package/src/blocks/cards/cards-5.schema.ts +91 -68
- package/src/blocks/cards/cards-5.tsx +9 -1
- package/src/blocks/cards/cards-6.schema.ts +794 -972
- package/src/blocks/cards/cards-6.tsx +18 -2
- package/src/blocks/cards/cards-7.schema.ts +802 -2250
- package/src/blocks/cards/cards-7.tsx +14 -1
- package/src/blocks/cards/cards-8.schema.ts +166 -347
- package/src/blocks/cards/cards-8.tsx +14 -1
- package/src/blocks/cards/cards-9.schema.ts +300 -305
- package/src/blocks/cards/cards-9.tsx +27 -3
- package/src/blocks/carousel/carousel-1.schema.ts +479 -46
- package/src/blocks/carousel/carousel-1.tsx +2 -0
- package/src/blocks/carousel/carousel-2.schema.ts +170 -118
- package/src/blocks/carousel/carousel-2.tsx +10 -2
- package/src/blocks/community/community-1.schema.ts +566 -0
- package/src/blocks/community/community-1.tsx +690 -0
- package/src/blocks/community/community-post-1.schema.ts +417 -0
- package/src/blocks/community/community-post-1.tsx +155 -0
- package/src/blocks/contact-us/contact-us-1.schema.ts +33 -43
- package/src/blocks/contact-us/contact-us-2.schema.ts +39 -17
- package/src/blocks/contact-us/contact-us-2.tsx +1 -1
- package/src/blocks/content/content-1.schema.ts +184 -234
- package/src/blocks/content/content-1.tsx +48 -38
- package/src/blocks/content/content-2.schema.ts +143 -32
- package/src/blocks/content/content-2.tsx +15 -3
- package/src/blocks/content/content-3.schema.ts +215 -205
- package/src/blocks/content/content-3.tsx +13 -1
- package/src/blocks/content/content-4.schema.ts +124 -85
- package/src/blocks/content/content-4.tsx +2 -1
- package/src/blocks/content/content-5.schema.ts +296 -278
- package/src/blocks/content/content-5.tsx +23 -2
- package/src/blocks/content/content-6.schema.ts +474 -244
- package/src/blocks/content/content-6.tsx +23 -1
- package/src/blocks/content/content-7.schema.ts +173 -133
- package/src/blocks/content/content-7.tsx +27 -3
- package/src/blocks/content/content-8.schema.ts +27 -17
- package/src/blocks/content/content-9.schema.ts +64 -2208
- package/src/blocks/content/content-9.tsx +6 -3
- package/src/blocks/cta/cta-1.schema.ts +13 -108
- package/src/blocks/cta/cta-2.schema.ts +60 -69
- package/src/blocks/cta/cta-3.schema.ts +97 -66
- package/src/blocks/embed/embed-1.schema.ts +30 -52
- package/src/blocks/event/event-details.schema.ts +7 -0
- package/src/blocks/event/event-details.tsx +1 -0
- package/src/blocks/event/event-listing-2.tsx +17 -15
- package/src/blocks/event/event-listing-3.tsx +17 -15
- package/src/blocks/event/event-listing-4.tsx +17 -15
- package/src/blocks/event/event-listing.tsx +17 -15
- package/src/blocks/faq/faq-1.schema.ts +158 -112
- package/src/blocks/faq/faq-1.tsx +12 -3
- package/src/blocks/faq/faq-2.schema.ts +137 -74
- package/src/blocks/faq/faq-2.tsx +10 -1
- package/src/blocks/faq/faq-3.schema.ts +185 -105
- package/src/blocks/faq/faq-3.tsx +19 -3
- package/src/blocks/features/features-1/features-1.schema.ts +11 -3
- package/src/blocks/features/features-1/features-1.tsx +10 -1
- package/src/blocks/features/features-1/variants/default.ts +172 -54
- 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 +178 -45
- package/src/blocks/features/features-2.tsx +10 -2
- package/src/blocks/features/features-3.schema.ts +284 -65
- package/src/blocks/features/features-3.tsx +22 -3
- package/src/blocks/features/features-4.schema.ts +380 -185
- package/src/blocks/features/features-4.tsx +9 -1
- package/src/blocks/features/features-5.schema.ts +194 -198
- package/src/blocks/features/features-5.tsx +12 -1
- package/src/blocks/features/features-6.schema.ts +240 -193
- package/src/blocks/features/features-6.tsx +16 -2
- package/src/blocks/floating-buttons/floating-button-1.schema.ts +105 -0
- package/src/blocks/floating-buttons/floating-button-1.tsx +20 -0
- package/src/blocks/footer/footer-1.schema.ts +118 -48
- package/src/blocks/footer/footer-1.tsx +2 -1
- package/src/blocks/footer/footer-2.schema.ts +235 -31
- package/src/blocks/footer/footer-2.tsx +2 -1
- package/src/blocks/footer/footer-3.schema.ts +334 -57
- package/src/blocks/footer/footer-3.tsx +2 -1
- package/src/blocks/footer/footer-4.schema.ts +147 -76
- package/src/blocks/footer/footer-4.tsx +2 -1
- package/src/blocks/footer/footer-5.schema.ts +144 -52
- package/src/blocks/footer/footer-5.tsx +2 -1
- package/src/blocks/footer/footer-6.schema.ts +68 -140
- package/src/blocks/footer/footer-6.tsx +2 -1
- package/src/blocks/hero/hero-1.schema.ts +184 -87
- package/src/blocks/hero/hero-10.schema.ts +8 -29
- package/src/blocks/hero/hero-11.schema.ts +192 -89
- package/src/blocks/hero/hero-11.tsx +1 -1
- package/src/blocks/hero/hero-12.schema.ts +107 -170
- package/src/blocks/hero/hero-12.tsx +1 -1
- package/src/blocks/hero/hero-13.schema.ts +42 -28
- package/src/blocks/hero/hero-2.schema.ts +33 -58
- package/src/blocks/hero/hero-3.schema.ts +42 -34
- package/src/blocks/hero/hero-4.schema.ts +265 -70
- package/src/blocks/hero/hero-4.tsx +19 -2
- package/src/blocks/hero/hero-5.schema.ts +122 -44
- package/src/blocks/hero/hero-5.tsx +14 -2
- package/src/blocks/hero/hero-6.schema.ts +159 -255
- package/src/blocks/hero/hero-7.schema.ts +105 -34
- package/src/blocks/hero/hero-7.tsx +4 -1
- package/src/blocks/hero/hero-8.schema.ts +363 -133
- package/src/blocks/hero/hero-8.tsx +27 -3
- package/src/blocks/hero/hero-9.schema.ts +116 -83
- package/src/blocks/hero/hero-9.tsx +9 -1
- package/src/blocks/index.ts +7 -0
- package/src/blocks/logos/logos-1.schema.ts +424 -30
- package/src/blocks/polling/polling-1.schema.ts +1 -19
- package/src/blocks/pricing/pricing-1.schema.ts +296 -266
- package/src/blocks/pricing/pricing-1.tsx +16 -2
- package/src/blocks/products/products-listing-1.schema.ts +144 -33
- package/src/blocks/products/products-listing-1.tsx +9 -1
- package/src/blocks/products/products-listing-2.schema.ts +199 -213
- package/src/blocks/products/products-listing-2.tsx +25 -3
- package/src/blocks/products/products-listing-3.schema.ts +439 -154
- package/src/blocks/products/products-listing-3.tsx +43 -8
- package/src/blocks/profile/profile-1.schema.ts +67 -49
- package/src/blocks/profile/profile-1.tsx +3 -2
- package/src/blocks/profile/profile-2.schema.ts +73 -85
- package/src/blocks/profile/profile-2.tsx +2 -1
- package/src/blocks/profile/profile-3.schema.ts +162 -529
- package/src/blocks/profile/profile-3.tsx +2 -2
- package/src/blocks/services/service-1.schema.ts +204 -804
- package/src/blocks/services/service-1.tsx +15 -2
- package/src/blocks/services/service-2.schema.ts +95 -75
- package/src/blocks/services/service-2.tsx +9 -1
- package/src/blocks/services/service-3.schema.ts +73 -73
- package/src/blocks/services/service-3.tsx +40 -39
- package/src/blocks/stats/stats-1.schema.ts +225 -21
- package/src/blocks/stats/stats-1.tsx +4 -0
- package/src/blocks/stats/stats-2.schema.ts +13 -5
- package/src/blocks/stats/stats-2.tsx +9 -1
- package/src/blocks/stats/variants/default.ts +59 -41
- package/src/blocks/stats/variants/hero.ts +64 -31
- package/src/blocks/tabs/tab-1.schema.ts +105 -407
- package/src/blocks/tabs/tab-1.tsx +15 -4
- package/src/blocks/tabs/tab-2.schema.ts +208 -278
- package/src/blocks/tabs/tab-2.tsx +14 -2
- package/src/blocks/team/team-1.schema.ts +621 -76
- package/src/blocks/team/team-1.tsx +9 -1
- package/src/blocks/team/team-2.schema.ts +693 -1421
- package/src/blocks/team/team-2.tsx +4 -1
- package/src/blocks/team/team-3.schema.ts +147 -74
- package/src/blocks/team/team-3.tsx +1 -0
- package/src/blocks/team/team-4.schema.ts +216 -57
- package/src/blocks/team/team-4.tsx +10 -2
- package/src/blocks/team/team-5.schema.ts +67 -42
- package/src/blocks/team/team-5.tsx +12 -3
- package/src/blocks/termsAndPrivacy/terms-and-conditions-1.schema.ts +9 -26
- package/src/blocks/termsAndPrivacy/terms-and-conditions-1.tsx +1 -1
- package/src/blocks/testimonial/testimonial-1.schema.ts +712 -63
- package/src/blocks/testimonial/testimonial-1.tsx +2 -4
- package/src/blocks/testimonial/testimonial-2.schema.ts +1332 -354
- package/src/blocks/testimonial/testimonial-2.tsx +4 -1
- package/src/blocks/testimonial/testimonial-3.schema.ts +215 -71
- package/src/blocks/testimonial/testimonial-3.tsx +5 -2
- package/src/blocks/testimonial/testimonial-4.schema.ts +331 -933
- package/src/blocks/testimonial/testimonial-4.tsx +4 -1
- package/src/blocks/testimonial/testimonial-5/variants/default.ts +179 -171
- package/src/blocks/testimonial/testimonial-5/variants/testimonialWithLogo.ts +205 -501
- package/src/blocks/testimonial/testimonial-5/variants/testimonialWithRatings.ts +190 -316
- package/src/blocks/testimonial/testimonial-6.schema.ts +204 -267
- package/src/blocks/testimonial/testimonial-7.schema.ts +74 -45
- package/src/blocks/testimonial/testimonial-7.tsx +2 -2
- package/src/blocks/timeline/timeline-1.schema.ts +196 -149
- package/src/blocks/timeline/timeline-1.tsx +4 -1
- package/src/blocks/users/edit-profile.schema.ts +56 -44
- package/src/blocks/users/edit-profile.tsx +13 -6
- package/src/constants/index.ts +19 -0
- package/src/schemas/blocks.ts +6 -0
- package/src/schemas/categories.ts +12 -0
|
@@ -3,11 +3,18 @@ import type { IBlock } from "@levo-so/studio";
|
|
|
3
3
|
const DEFAULT_CONTENT = {
|
|
4
4
|
layout: null,
|
|
5
5
|
container: null,
|
|
6
|
-
|
|
7
6
|
contentWrapper: null,
|
|
8
7
|
title: "Check out this amazing content",
|
|
9
8
|
description: "We've got something special to share with you. Take a look!",
|
|
10
9
|
embed: "",
|
|
10
|
+
ctas: [
|
|
11
|
+
{
|
|
12
|
+
cta: "Learn More",
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
cta: "Explore",
|
|
16
|
+
},
|
|
17
|
+
],
|
|
11
18
|
};
|
|
12
19
|
const DEFAULT_CONTENT_2 = {
|
|
13
20
|
layout: null,
|
|
@@ -89,24 +96,7 @@ export const Embed1: IBlock = {
|
|
|
89
96
|
key: "default",
|
|
90
97
|
title: "Default",
|
|
91
98
|
styles: {
|
|
92
|
-
layout: {
|
|
93
|
-
"padding-left": "8xl",
|
|
94
|
-
"padding-right": "8xl",
|
|
95
|
-
"padding-top": "8xl",
|
|
96
|
-
"padding-bottom": "8xl",
|
|
97
|
-
tablet: {
|
|
98
|
-
"padding-left": "4xl",
|
|
99
|
-
"padding-right": "4xl",
|
|
100
|
-
"padding-top": "4xl",
|
|
101
|
-
"padding-bottom": "4xl",
|
|
102
|
-
},
|
|
103
|
-
mobile: {
|
|
104
|
-
"padding-left": "lg",
|
|
105
|
-
"padding-right": "lg",
|
|
106
|
-
"padding-top": "lg",
|
|
107
|
-
"padding-bottom": "lg",
|
|
108
|
-
},
|
|
109
|
-
},
|
|
99
|
+
layout: {},
|
|
110
100
|
container: {
|
|
111
101
|
display: "flex",
|
|
112
102
|
"align-items": "center",
|
|
@@ -154,38 +144,28 @@ export const Embed1: IBlock = {
|
|
|
154
144
|
"row-gap": "4xs",
|
|
155
145
|
"align-items": "center",
|
|
156
146
|
},
|
|
147
|
+
title: {},
|
|
148
|
+
ctas_levoGroup: {
|
|
149
|
+
display: "flex",
|
|
150
|
+
"column-gap": "xl",
|
|
151
|
+
"flex-direction": "row",
|
|
152
|
+
"justify-content": "center",
|
|
153
|
+
},
|
|
154
|
+
},
|
|
155
|
+
content: DEFAULT_CONTENT,
|
|
156
|
+
config: {
|
|
157
157
|
title: {
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
"font-size": "2xl",
|
|
158
|
+
selectedVariants: {
|
|
159
|
+
Heading_Level: "H2",
|
|
161
160
|
},
|
|
162
161
|
},
|
|
163
162
|
},
|
|
164
|
-
content: DEFAULT_CONTENT,
|
|
165
|
-
config: {},
|
|
166
163
|
},
|
|
167
164
|
{
|
|
168
165
|
key: "variant-1",
|
|
169
166
|
title: "Variant 1",
|
|
170
167
|
styles: {
|
|
171
|
-
layout: {
|
|
172
|
-
"padding-left": "8xl",
|
|
173
|
-
"padding-right": "8xl",
|
|
174
|
-
"padding-top": "8xl",
|
|
175
|
-
"padding-bottom": "8xl",
|
|
176
|
-
tablet: {
|
|
177
|
-
"padding-left": "4xl",
|
|
178
|
-
"padding-right": "4xl",
|
|
179
|
-
"padding-top": "4xl",
|
|
180
|
-
"padding-bottom": "4xl",
|
|
181
|
-
},
|
|
182
|
-
mobile: {
|
|
183
|
-
"padding-left": "lg",
|
|
184
|
-
"padding-right": "lg",
|
|
185
|
-
"padding-top": "lg",
|
|
186
|
-
"padding-bottom": "lg",
|
|
187
|
-
},
|
|
188
|
-
},
|
|
168
|
+
layout: {},
|
|
189
169
|
container: {
|
|
190
170
|
display: "flex",
|
|
191
171
|
"justify-content": "space-between",
|
|
@@ -199,7 +179,6 @@ export const Embed1: IBlock = {
|
|
|
199
179
|
"row-gap": "base",
|
|
200
180
|
"padding-top": "base",
|
|
201
181
|
},
|
|
202
|
-
"max-width": "auto",
|
|
203
182
|
"background-color": "background-3",
|
|
204
183
|
},
|
|
205
184
|
embed: {
|
|
@@ -235,19 +214,18 @@ export const Embed1: IBlock = {
|
|
|
235
214
|
"flex-direction": "column",
|
|
236
215
|
"row-gap": "4xs",
|
|
237
216
|
},
|
|
217
|
+
title: {},
|
|
218
|
+
description: {},
|
|
219
|
+
},
|
|
220
|
+
|
|
221
|
+
content: DEFAULT_CONTENT_2,
|
|
222
|
+
config: {
|
|
238
223
|
title: {
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
"font-size": "2xl",
|
|
224
|
+
selectedVariants: {
|
|
225
|
+
Heading_Level: "H2",
|
|
242
226
|
},
|
|
243
227
|
},
|
|
244
|
-
description: {
|
|
245
|
-
"line-height": 1.625,
|
|
246
|
-
},
|
|
247
228
|
},
|
|
248
|
-
|
|
249
|
-
content: DEFAULT_CONTENT_2,
|
|
250
|
-
config: {},
|
|
251
229
|
},
|
|
252
230
|
],
|
|
253
231
|
};
|
|
@@ -85,6 +85,8 @@ export type IEventDetailsContent = typeof DEFAULT_CONTENT & {
|
|
|
85
85
|
ends_at?: string;
|
|
86
86
|
kind?: string;
|
|
87
87
|
timing?: string;
|
|
88
|
+
id?: string;
|
|
89
|
+
external_ticketing?: string;
|
|
88
90
|
};
|
|
89
91
|
|
|
90
92
|
export const EventDetails: IBlock = {
|
|
@@ -199,6 +201,11 @@ export const EventDetails: IBlock = {
|
|
|
199
201
|
label: "Event ID",
|
|
200
202
|
field_interface: "TypographyWidget",
|
|
201
203
|
},
|
|
204
|
+
{
|
|
205
|
+
key: "external_ticketing",
|
|
206
|
+
label: "External Ticketing URL",
|
|
207
|
+
field_interface: "TypographyWidget",
|
|
208
|
+
},
|
|
202
209
|
{
|
|
203
210
|
key: "end-date-wrapper",
|
|
204
211
|
label: "End Date Wrapper",
|
|
@@ -70,22 +70,24 @@ const EventListing2: React.FC<
|
|
|
70
70
|
</Box>
|
|
71
71
|
))}
|
|
72
72
|
</Box>
|
|
73
|
-
|
|
74
|
-
<
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
73
|
+
{(meta?.pages || 0) > 1 && (
|
|
74
|
+
<Box elementKey="paginationWrapper">
|
|
75
|
+
<Button
|
|
76
|
+
elementKey="paginationLeftButton"
|
|
77
|
+
disabled={query?.page === 1}
|
|
78
|
+
onClick={handlePrevious}
|
|
79
|
+
/>
|
|
79
80
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
81
|
+
<Typography elementKey="paginationText">
|
|
82
|
+
{`${query?.page || 0}/${meta?.pages || 0}`}
|
|
83
|
+
</Typography>
|
|
84
|
+
<Button
|
|
85
|
+
elementKey="paginationRightButton"
|
|
86
|
+
onClick={handleNext}
|
|
87
|
+
disabled={query?.page === meta?.pages}
|
|
88
|
+
/>
|
|
89
|
+
</Box>
|
|
90
|
+
)}
|
|
89
91
|
</Container>
|
|
90
92
|
</Section>
|
|
91
93
|
);
|
|
@@ -73,22 +73,24 @@ const EventListing3: React.FC<ILevoBlockBaseProps<IEventListing3>> = () => {
|
|
|
73
73
|
</Box>
|
|
74
74
|
))}
|
|
75
75
|
</Box>
|
|
76
|
-
|
|
77
|
-
<
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
76
|
+
{(meta?.pages || 0) > 1 && (
|
|
77
|
+
<Box elementKey="paginationWrapper">
|
|
78
|
+
<Button
|
|
79
|
+
elementKey="paginationLeftButton"
|
|
80
|
+
disabled={query?.page === 1}
|
|
81
|
+
onClick={handlePrevious}
|
|
82
|
+
/>
|
|
82
83
|
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
84
|
+
<Typography elementKey="paginationText">
|
|
85
|
+
{`${query?.page || 0}/${meta?.pages || 0}`}
|
|
86
|
+
</Typography>
|
|
87
|
+
<Button
|
|
88
|
+
elementKey="paginationRightButton"
|
|
89
|
+
onClick={handleNext}
|
|
90
|
+
disabled={query?.page === meta?.pages}
|
|
91
|
+
/>
|
|
92
|
+
</Box>
|
|
93
|
+
)}
|
|
92
94
|
</Container>
|
|
93
95
|
</Section>
|
|
94
96
|
);
|
|
@@ -82,22 +82,24 @@ const EventListing4: React.FC<ILevoBlockBaseProps<IEventListing4>> = () => {
|
|
|
82
82
|
</Box>
|
|
83
83
|
))}
|
|
84
84
|
</Box>
|
|
85
|
-
|
|
86
|
-
<
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
85
|
+
{(meta?.pages || 0) > 1 && (
|
|
86
|
+
<Box elementKey="paginationWrapper">
|
|
87
|
+
<Button
|
|
88
|
+
elementKey="paginationLeftButton"
|
|
89
|
+
disabled={query?.page === 1}
|
|
90
|
+
onClick={handlePrevious}
|
|
91
|
+
/>
|
|
91
92
|
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
93
|
+
<Typography elementKey="paginationText">
|
|
94
|
+
{`${query?.page || 0}/${meta?.pages || 0}`}
|
|
95
|
+
</Typography>
|
|
96
|
+
<Button
|
|
97
|
+
elementKey="paginationRightButton"
|
|
98
|
+
onClick={handleNext}
|
|
99
|
+
disabled={query?.page === meta?.pages}
|
|
100
|
+
/>
|
|
101
|
+
</Box>
|
|
102
|
+
)}
|
|
101
103
|
</Container>
|
|
102
104
|
</Section>
|
|
103
105
|
);
|
|
@@ -71,22 +71,24 @@ const EventListing: React.FC<ILevoBlockBaseProps<IEventListing>> = () => {
|
|
|
71
71
|
</Box>
|
|
72
72
|
))}
|
|
73
73
|
</Box>
|
|
74
|
-
|
|
75
|
-
<
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
74
|
+
{(meta?.pages || 0) > 1 && (
|
|
75
|
+
<Box elementKey="paginationWrapper">
|
|
76
|
+
<Button
|
|
77
|
+
elementKey="paginationLeftButton"
|
|
78
|
+
disabled={query?.page === 1}
|
|
79
|
+
onClick={handlePrevious}
|
|
80
|
+
/>
|
|
80
81
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
82
|
+
<Typography elementKey="paginationText">
|
|
83
|
+
{`${query?.page || 0}/${meta?.pages || 0}`}
|
|
84
|
+
</Typography>
|
|
85
|
+
<Button
|
|
86
|
+
elementKey="paginationRightButton"
|
|
87
|
+
onClick={handleNext}
|
|
88
|
+
disabled={query?.page === meta?.pages}
|
|
89
|
+
/>
|
|
90
|
+
</Box>
|
|
91
|
+
)}
|
|
90
92
|
</Container>
|
|
91
93
|
</Section>
|
|
92
94
|
);
|
|
@@ -11,6 +11,31 @@ const DUMMY_IMAGE = {
|
|
|
11
11
|
},
|
|
12
12
|
};
|
|
13
13
|
|
|
14
|
+
const MEDIA = {
|
|
15
|
+
id: "XZbHDbcwEfNIW",
|
|
16
|
+
filename: "faq-1-1.png",
|
|
17
|
+
kind: "image",
|
|
18
|
+
location: "https://static.levocdn.com/WLZ1TXTD/faq-1-1-QsAcZ4gZy8hjO.png",
|
|
19
|
+
srcset: {
|
|
20
|
+
"1080w":
|
|
21
|
+
"https://static.levocdn.com/WLZ1TXTD/faq-1-1-QsAcZ4gZy8hjO-1080w.webp",
|
|
22
|
+
"1200w":
|
|
23
|
+
"https://static.levocdn.com/WLZ1TXTD/faq-1-1-QsAcZ4gZy8hjO-1200w.webp",
|
|
24
|
+
"1920w":
|
|
25
|
+
"https://static.levocdn.com/WLZ1TXTD/faq-1-1-QsAcZ4gZy8hjO-1920w.webp",
|
|
26
|
+
"320w":
|
|
27
|
+
"https://static.levocdn.com/WLZ1TXTD/faq-1-1-QsAcZ4gZy8hjO-320w.webp",
|
|
28
|
+
"640w":
|
|
29
|
+
"https://static.levocdn.com/WLZ1TXTD/faq-1-1-QsAcZ4gZy8hjO-640w.webp",
|
|
30
|
+
"750w":
|
|
31
|
+
"https://static.levocdn.com/WLZ1TXTD/faq-1-1-QsAcZ4gZy8hjO-750w.webp",
|
|
32
|
+
"828w":
|
|
33
|
+
"https://static.levocdn.com/WLZ1TXTD/faq-1-1-QsAcZ4gZy8hjO-828w.webp",
|
|
34
|
+
path: "https://static.levocdn.com/WLZ1TXTD/faq-1-1-QsAcZ4gZy8hjO-828w.webp 828w, https://static.levocdn.com/WLZ1TXTD/faq-1-1-QsAcZ4gZy8hjO-1080w.webp 1080w, https://static.levocdn.com/WLZ1TXTD/faq-1-1-QsAcZ4gZy8hjO-1200w.webp 1200w, https://static.levocdn.com/WLZ1TXTD/faq-1-1-QsAcZ4gZy8hjO-1920w.webp 1920w, https://static.levocdn.com/WLZ1TXTD/faq-1-1-QsAcZ4gZy8hjO-320w.webp 320w, https://static.levocdn.com/WLZ1TXTD/faq-1-1-QsAcZ4gZy8hjO-640w.webp 640w, https://static.levocdn.com/WLZ1TXTD/faq-1-1-QsAcZ4gZy8hjO-750w.webp 750w",
|
|
35
|
+
},
|
|
36
|
+
mimetype: "image/png",
|
|
37
|
+
};
|
|
38
|
+
|
|
14
39
|
const DEFAULT_CONTENT = {
|
|
15
40
|
layout: null,
|
|
16
41
|
container: null,
|
|
@@ -22,7 +47,8 @@ const DEFAULT_CONTENT = {
|
|
|
22
47
|
text_container: null,
|
|
23
48
|
faq_label: "FAQ's",
|
|
24
49
|
title: "Legal Queries Solved",
|
|
25
|
-
|
|
50
|
+
description:
|
|
51
|
+
"We're here to help you navigate the complexities of the legal system.",
|
|
26
52
|
faqs: [
|
|
27
53
|
{
|
|
28
54
|
wrapper: null,
|
|
@@ -70,31 +96,10 @@ const DEFAULT_CONTENT = {
|
|
|
70
96
|
},
|
|
71
97
|
],
|
|
72
98
|
|
|
73
|
-
|
|
99
|
+
ctas_levoGroup: null,
|
|
100
|
+
ctas: [{ cta: "More about us" }, { cta: "Contact Support" }],
|
|
74
101
|
|
|
75
|
-
faq_image:
|
|
76
|
-
id: "7141014160938075687",
|
|
77
|
-
location: "https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH.png",
|
|
78
|
-
kind: "image",
|
|
79
|
-
mimetype: "image/png",
|
|
80
|
-
srcset: {
|
|
81
|
-
"1080w":
|
|
82
|
-
"https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-1080w.webp",
|
|
83
|
-
"1200w":
|
|
84
|
-
"https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-1200w.webp",
|
|
85
|
-
"1920w":
|
|
86
|
-
"https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-1920w.webp",
|
|
87
|
-
"320w":
|
|
88
|
-
"https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-320w.webp",
|
|
89
|
-
"640w":
|
|
90
|
-
"https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-640w.webp",
|
|
91
|
-
"750w":
|
|
92
|
-
"https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-750w.webp",
|
|
93
|
-
"828w":
|
|
94
|
-
"https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-828w.webp",
|
|
95
|
-
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",
|
|
96
|
-
},
|
|
97
|
-
},
|
|
102
|
+
faq_image: MEDIA,
|
|
98
103
|
};
|
|
99
104
|
|
|
100
105
|
export type IFaq1Content = typeof DEFAULT_CONTENT;
|
|
@@ -153,6 +158,11 @@ export const Faq1: IBlock = {
|
|
|
153
158
|
max_characters: 40,
|
|
154
159
|
},
|
|
155
160
|
},
|
|
161
|
+
{
|
|
162
|
+
key: "description",
|
|
163
|
+
label: "Description",
|
|
164
|
+
field_interface: "TypographyWidget",
|
|
165
|
+
},
|
|
156
166
|
{
|
|
157
167
|
key: "faqs",
|
|
158
168
|
label: "FAQs",
|
|
@@ -191,7 +201,7 @@ export const Faq1: IBlock = {
|
|
|
191
201
|
{
|
|
192
202
|
key: "question",
|
|
193
203
|
label: "Question",
|
|
194
|
-
field_interface: "
|
|
204
|
+
field_interface: "HeadingWidget",
|
|
195
205
|
hint: {
|
|
196
206
|
prompt_description:
|
|
197
207
|
"A frequently asked legal question. Should be direct, clear, and phrased from the client's perspective. Professional, sincere tone.",
|
|
@@ -249,9 +259,17 @@ export const Faq1: IBlock = {
|
|
|
249
259
|
},
|
|
250
260
|
},
|
|
251
261
|
{
|
|
252
|
-
key: "
|
|
253
|
-
label: "CTA",
|
|
254
|
-
field_interface: "
|
|
262
|
+
key: "ctas",
|
|
263
|
+
label: "CTA Buttons Group",
|
|
264
|
+
field_interface: "BoxWidget",
|
|
265
|
+
kind: "group",
|
|
266
|
+
fields: [
|
|
267
|
+
{
|
|
268
|
+
key: "cta",
|
|
269
|
+
label: "CTA Button",
|
|
270
|
+
field_interface: "ButtonWidget",
|
|
271
|
+
},
|
|
272
|
+
],
|
|
255
273
|
},
|
|
256
274
|
{
|
|
257
275
|
key: "faq_image",
|
|
@@ -271,19 +289,9 @@ export const Faq1: IBlock = {
|
|
|
271
289
|
key: "default",
|
|
272
290
|
title: "Default",
|
|
273
291
|
styles: {
|
|
274
|
-
layout: {
|
|
275
|
-
padding: "112px",
|
|
276
|
-
width: "100%",
|
|
277
|
-
tablet: {
|
|
278
|
-
padding: "50px",
|
|
279
|
-
},
|
|
280
|
-
mobile: {
|
|
281
|
-
padding: "40px",
|
|
282
|
-
},
|
|
283
|
-
},
|
|
292
|
+
layout: {},
|
|
284
293
|
container: {
|
|
285
294
|
display: "flex",
|
|
286
|
-
width: "100%",
|
|
287
295
|
"align-items": "center",
|
|
288
296
|
"justify-content": "between",
|
|
289
297
|
"column-gap": "12xl",
|
|
@@ -323,95 +331,133 @@ export const Faq1: IBlock = {
|
|
|
323
331
|
display: "none",
|
|
324
332
|
},
|
|
325
333
|
},
|
|
326
|
-
faq_label: {
|
|
327
|
-
|
|
334
|
+
faq_label: {},
|
|
335
|
+
title: {},
|
|
336
|
+
ctas_levoGroup: {
|
|
337
|
+
display: "flex",
|
|
338
|
+
"flex-direction": "row",
|
|
339
|
+
"column-gap": "md",
|
|
340
|
+
"row-gap": "md",
|
|
341
|
+
"flex-wrap": "wrap",
|
|
342
|
+
"align-items": "center",
|
|
328
343
|
},
|
|
344
|
+
ctas: Array(2)
|
|
345
|
+
.fill(0)
|
|
346
|
+
.map(() => ({
|
|
347
|
+
width: "fit-content",
|
|
348
|
+
})),
|
|
349
|
+
faqs: Array(4)
|
|
350
|
+
.fill(0)
|
|
351
|
+
.map((v) => ({
|
|
352
|
+
wrapper: {
|
|
353
|
+
"padding-top": "none",
|
|
354
|
+
"padding-bottom": "none",
|
|
355
|
+
"border-color": "var(--color-border)",
|
|
356
|
+
"border-bottom-width": "1px",
|
|
357
|
+
"border-style": "solid",
|
|
358
|
+
},
|
|
359
|
+
question: {
|
|
360
|
+
"font-weight": 600,
|
|
361
|
+
tablet: {
|
|
362
|
+
"text-align": "left",
|
|
363
|
+
},
|
|
364
|
+
},
|
|
365
|
+
content: {
|
|
366
|
+
"padding-top": "none",
|
|
367
|
+
"padding-bottom": "lg",
|
|
368
|
+
},
|
|
369
|
+
trigger: {
|
|
370
|
+
width: "100%",
|
|
371
|
+
display: "flex",
|
|
372
|
+
"align-items": "center",
|
|
373
|
+
"justify-content": "space-between",
|
|
374
|
+
"padding-top": "base",
|
|
375
|
+
"padding-bottom": "base",
|
|
376
|
+
},
|
|
377
|
+
iconQuestionWrapper: {
|
|
378
|
+
display: "flex",
|
|
379
|
+
"align-items": "center",
|
|
380
|
+
"column-gap": "base",
|
|
381
|
+
},
|
|
382
|
+
features_list: {
|
|
383
|
+
display: "flex",
|
|
384
|
+
"flex-direction": "row",
|
|
385
|
+
"column-gap": "lg",
|
|
386
|
+
"margin-top": "base",
|
|
387
|
+
"flex-wrap": "wrap",
|
|
388
|
+
},
|
|
389
|
+
features: Array(4)
|
|
390
|
+
.fill(0)
|
|
391
|
+
.map((v) => ({
|
|
392
|
+
wrapper: {
|
|
393
|
+
display: "flex",
|
|
394
|
+
"align-items": "center",
|
|
395
|
+
"column-gap": "xs",
|
|
396
|
+
"background-color": "brand",
|
|
397
|
+
"padding-left": "sm",
|
|
398
|
+
"padding-right": "sm",
|
|
399
|
+
"padding-top": "2xs",
|
|
400
|
+
"padding-bottom": "2xs",
|
|
401
|
+
"border-radius": "md",
|
|
402
|
+
},
|
|
403
|
+
icon: {
|
|
404
|
+
width: "16px",
|
|
405
|
+
height: "16px",
|
|
406
|
+
},
|
|
407
|
+
label: {
|
|
408
|
+
color: "brandForeground",
|
|
409
|
+
},
|
|
410
|
+
})),
|
|
411
|
+
features_levoGroup: {
|
|
412
|
+
display: "flex",
|
|
413
|
+
"flex-direction": "column",
|
|
414
|
+
"row-gap": "base",
|
|
415
|
+
"margin-top": "base",
|
|
416
|
+
},
|
|
417
|
+
})),
|
|
418
|
+
},
|
|
419
|
+
content: DEFAULT_CONTENT,
|
|
420
|
+
config: {
|
|
329
421
|
title: {
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
422
|
+
title: {
|
|
423
|
+
heading: {
|
|
424
|
+
level: 2,
|
|
425
|
+
},
|
|
426
|
+
selectedVariants: {
|
|
427
|
+
Heading_Level: "H2",
|
|
428
|
+
},
|
|
429
|
+
},
|
|
334
430
|
},
|
|
335
431
|
faqs: Array(4)
|
|
336
432
|
.fill(0)
|
|
337
433
|
.map((v) => {
|
|
338
434
|
return {
|
|
339
|
-
wrapper: {
|
|
340
|
-
"padding-top": "none",
|
|
341
|
-
"padding-bottom": "none",
|
|
342
|
-
"border-color": "var(--color-border)",
|
|
343
|
-
"border-bottom-width": "1px",
|
|
344
|
-
"border-style": "solid",
|
|
345
|
-
},
|
|
346
435
|
question: {
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
436
|
+
heading: {
|
|
437
|
+
level: "4",
|
|
438
|
+
},
|
|
439
|
+
selectedVariants: {
|
|
440
|
+
Heading_Level: "H5",
|
|
352
441
|
},
|
|
353
442
|
},
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
},
|
|
358
|
-
trigger: {
|
|
359
|
-
width: "100%",
|
|
360
|
-
display: "flex",
|
|
361
|
-
"align-items": "center",
|
|
362
|
-
"justify-content": "space-between",
|
|
363
|
-
"padding-top": "base",
|
|
364
|
-
"padding-bottom": "base",
|
|
365
|
-
},
|
|
366
|
-
iconQuestionWrapper: {
|
|
367
|
-
display: "flex",
|
|
368
|
-
"align-items": "center",
|
|
369
|
-
"column-gap": "base",
|
|
370
|
-
},
|
|
371
|
-
features_list: {
|
|
372
|
-
display: "flex",
|
|
373
|
-
"flex-direction": "row",
|
|
374
|
-
"column-gap": "lg",
|
|
375
|
-
"margin-top": "base",
|
|
376
|
-
"flex-wrap": "wrap",
|
|
377
|
-
},
|
|
378
|
-
features: [
|
|
379
|
-
{
|
|
380
|
-
wrapper: {
|
|
381
|
-
display: "flex",
|
|
382
|
-
"align-items": "center",
|
|
383
|
-
"column-gap": "xs",
|
|
384
|
-
"background-color": "background-2",
|
|
385
|
-
"padding-left": "sm",
|
|
386
|
-
"padding-right": "sm",
|
|
387
|
-
"padding-top": "2xs",
|
|
388
|
-
"padding-bottom": "2xs",
|
|
389
|
-
"border-radius": "md",
|
|
390
|
-
},
|
|
443
|
+
features: Array(4)
|
|
444
|
+
.fill(0)
|
|
445
|
+
.map((v) => ({
|
|
391
446
|
icon: {
|
|
392
|
-
|
|
393
|
-
height: "16px",
|
|
447
|
+
selectedVariants: {},
|
|
394
448
|
},
|
|
395
449
|
label: {
|
|
396
|
-
|
|
397
|
-
|
|
450
|
+
selectedVariants: {
|
|
451
|
+
Typography_Variants: "Small",
|
|
452
|
+
},
|
|
398
453
|
},
|
|
399
|
-
},
|
|
400
|
-
|
|
454
|
+
})),
|
|
455
|
+
answer: {
|
|
456
|
+
selectedVariants: {},
|
|
457
|
+
},
|
|
401
458
|
};
|
|
402
459
|
}),
|
|
403
460
|
},
|
|
404
|
-
content: DEFAULT_CONTENT,
|
|
405
|
-
config: {
|
|
406
|
-
title: {
|
|
407
|
-
heading: {
|
|
408
|
-
level: 2,
|
|
409
|
-
},
|
|
410
|
-
selectedVariants: {
|
|
411
|
-
Heading_Level: "H2",
|
|
412
|
-
},
|
|
413
|
-
},
|
|
414
|
-
},
|
|
415
461
|
},
|
|
416
462
|
],
|
|
417
463
|
};
|