@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.
Files changed (245) hide show
  1. package/package.json +6 -6
  2. package/src/blocks/about-us/about-us-1.schema.ts +60 -58
  3. package/src/blocks/about-us/about-us-1.tsx +2 -4
  4. package/src/blocks/about-us/about-us-2.schema.ts +165 -42
  5. package/src/blocks/about-us/about-us-2.tsx +7 -13
  6. package/src/blocks/blogs/blog-listing-1.schema.ts +7 -14
  7. package/src/blocks/blogs/blog-listing-1.tsx +27 -36
  8. package/src/blocks/blogs/blog-listing-2.schema.ts +17 -34
  9. package/src/blocks/blogs/blog-listing-2.tsx +21 -27
  10. package/src/blocks/blogs/blog-listing-3.schema.ts +32 -64
  11. package/src/blocks/blogs/blog-listing-3.tsx +21 -27
  12. package/src/blocks/blogs/blog-post-1.schema.ts +9 -18
  13. package/src/blocks/blogs/blog-post-1.tsx +3 -14
  14. package/src/blocks/calendar/calendar-1.schema.ts +351 -180
  15. package/src/blocks/calendar/calendar-1.tsx +60 -25
  16. package/src/blocks/cards/cards-10.schema.ts +278 -331
  17. package/src/blocks/cards/cards-10.tsx +18 -15
  18. package/src/blocks/cards/cards-11.schema.ts +178 -356
  19. package/src/blocks/cards/cards-11.tsx +5 -11
  20. package/src/blocks/cards/cards-12.schema.ts +110 -196
  21. package/src/blocks/cards/cards-12.tsx +4 -10
  22. package/src/blocks/cards/cards-13.schema.ts +131 -120
  23. package/src/blocks/cards/cards-13.tsx +4 -6
  24. package/src/blocks/cards/cards-14.schema.ts +51 -154
  25. package/src/blocks/cards/cards-14.tsx +5 -11
  26. package/src/blocks/cards/cards-15.schema.ts +48 -32
  27. package/src/blocks/cards/cards-15.tsx +15 -6
  28. package/src/blocks/cards/cards-2.schema.ts +76 -88
  29. package/src/blocks/cards/cards-2.tsx +12 -17
  30. package/src/blocks/cards/cards-3.schema.ts +68 -70
  31. package/src/blocks/cards/cards-3.tsx +7 -13
  32. package/src/blocks/cards/cards-4.schema.ts +160 -115
  33. package/src/blocks/cards/cards-4.tsx +22 -17
  34. package/src/blocks/cards/cards-5.schema.ts +76 -70
  35. package/src/blocks/cards/cards-5.tsx +10 -10
  36. package/src/blocks/cards/cards-6.schema.ts +755 -985
  37. package/src/blocks/cards/cards-6.tsx +17 -9
  38. package/src/blocks/cards/cards-7.schema.ts +754 -2250
  39. package/src/blocks/cards/cards-7.tsx +18 -24
  40. package/src/blocks/cards/cards-8.schema.ts +171 -363
  41. package/src/blocks/cards/cards-8.tsx +15 -8
  42. package/src/blocks/cards/cards-9.schema.ts +283 -329
  43. package/src/blocks/cards/cards-9.tsx +28 -12
  44. package/src/blocks/carousel/carousel-1.schema.ts +418 -49
  45. package/src/blocks/carousel/carousel-1.tsx +8 -8
  46. package/src/blocks/carousel/carousel-2.schema.ts +153 -127
  47. package/src/blocks/carousel/carousel-2.tsx +16 -20
  48. package/src/blocks/community/community-1.schema.ts +612 -0
  49. package/src/blocks/community/community-1.tsx +557 -0
  50. package/src/blocks/community/community-post-1.schema.ts +408 -0
  51. package/src/blocks/community/community-post-1.tsx +405 -0
  52. package/src/blocks/contact-us/contact-us-1.schema.ts +25 -43
  53. package/src/blocks/contact-us/contact-us-1.tsx +2 -12
  54. package/src/blocks/contact-us/contact-us-2.schema.ts +39 -17
  55. package/src/blocks/contact-us/contact-us-2.tsx +21 -32
  56. package/src/blocks/content/content-1.schema.ts +163 -234
  57. package/src/blocks/content/content-1.tsx +46 -43
  58. package/src/blocks/content/content-2.schema.ts +117 -35
  59. package/src/blocks/content/content-2.tsx +19 -7
  60. package/src/blocks/content/content-3.schema.ts +215 -205
  61. package/src/blocks/content/content-3.tsx +14 -18
  62. package/src/blocks/content/content-4.schema.ts +105 -89
  63. package/src/blocks/content/content-4.tsx +10 -18
  64. package/src/blocks/content/content-5.schema.ts +301 -278
  65. package/src/blocks/content/content-5.tsx +23 -16
  66. package/src/blocks/content/content-6.schema.ts +432 -250
  67. package/src/blocks/content/content-6.tsx +24 -19
  68. package/src/blocks/content/content-7.schema.ts +200 -197
  69. package/src/blocks/content/content-7.tsx +29 -21
  70. package/src/blocks/content/content-8.schema.ts +28 -23
  71. package/src/blocks/content/content-8.tsx +3 -3
  72. package/src/blocks/content/content-9.schema.ts +64 -2208
  73. package/src/blocks/content/content-9.tsx +31 -43
  74. package/src/blocks/cta/cta-1.schema.ts +23 -128
  75. package/src/blocks/cta/cta-2.schema.ts +46 -69
  76. package/src/blocks/cta/cta-2.tsx +2 -6
  77. package/src/blocks/cta/cta-3.schema.ts +77 -72
  78. package/src/blocks/cta/cta-3.tsx +2 -6
  79. package/src/blocks/embed/embed-1.schema.ts +30 -52
  80. package/src/blocks/embed/embed-1.tsx +1 -9
  81. package/src/blocks/event/ClientOnly.tsx +1 -4
  82. package/src/blocks/event/event-details.schema.ts +23 -32
  83. package/src/blocks/event/event-details.tsx +9 -23
  84. package/src/blocks/event/event-listing-2.schema.ts +19 -38
  85. package/src/blocks/event/event-listing-2.tsx +29 -38
  86. package/src/blocks/event/event-listing-3.schema.ts +10 -20
  87. package/src/blocks/event/event-listing-3.tsx +26 -30
  88. package/src/blocks/event/event-listing-4.schema.ts +40 -80
  89. package/src/blocks/event/event-listing-4.tsx +22 -28
  90. package/src/blocks/event/event-listing.schema.ts +12 -24
  91. package/src/blocks/event/event-listing.tsx +26 -30
  92. package/src/blocks/faq/faq-1.schema.ts +150 -112
  93. package/src/blocks/faq/faq-1.tsx +31 -33
  94. package/src/blocks/faq/faq-2.schema.ts +132 -77
  95. package/src/blocks/faq/faq-2.tsx +21 -11
  96. package/src/blocks/faq/faq-3.schema.ts +178 -107
  97. package/src/blocks/faq/faq-3.tsx +30 -22
  98. package/src/blocks/features/features-1/features-1.schema.ts +11 -3
  99. package/src/blocks/features/features-1/features-1.tsx +12 -5
  100. package/src/blocks/features/features-1/variants/default.ts +176 -62
  101. package/src/blocks/features/features-1/variants/index.ts +1 -1
  102. package/src/blocks/features/features-1/variants/stylized-cards-v1.ts +392 -54
  103. package/src/blocks/features/features-1/variants/stylized-cards-v2.ts +119 -103
  104. package/src/blocks/features/features-1/variants/stylized-cards-v3.ts +16 -199
  105. package/src/blocks/features/features-2.schema.ts +149 -48
  106. package/src/blocks/features/features-2.tsx +18 -12
  107. package/src/blocks/features/features-3.schema.ts +255 -68
  108. package/src/blocks/features/features-3.tsx +25 -15
  109. package/src/blocks/features/features-4.schema.ts +367 -188
  110. package/src/blocks/features/features-4.tsx +12 -8
  111. package/src/blocks/features/features-5.schema.ts +195 -200
  112. package/src/blocks/features/features-5.tsx +14 -14
  113. package/src/blocks/features/features-6.schema.ts +230 -215
  114. package/src/blocks/features/features-6.tsx +28 -34
  115. package/src/blocks/filter-listing/filter-listing-1.tsx +12 -36
  116. package/src/blocks/floating-buttons/floating-button-1.schema.ts +100 -0
  117. package/src/blocks/floating-buttons/floating-button-1.tsx +14 -0
  118. package/src/blocks/footer/footer-1.schema.ts +110 -48
  119. package/src/blocks/footer/footer-1.tsx +17 -31
  120. package/src/blocks/footer/footer-2.schema.ts +230 -34
  121. package/src/blocks/footer/footer-2.tsx +19 -29
  122. package/src/blocks/footer/footer-3.schema.ts +335 -59
  123. package/src/blocks/footer/footer-3.tsx +11 -26
  124. package/src/blocks/footer/footer-4.schema.ts +139 -76
  125. package/src/blocks/footer/footer-4.tsx +37 -55
  126. package/src/blocks/footer/footer-5.schema.ts +138 -60
  127. package/src/blocks/footer/footer-5.tsx +16 -30
  128. package/src/blocks/footer/footer-6.schema.ts +62 -149
  129. package/src/blocks/footer/footer-6.tsx +30 -44
  130. package/src/blocks/form/form-1.schema.ts +144 -0
  131. package/src/blocks/form/form-1.tsx +33 -0
  132. package/src/blocks/hero/hero-1.schema.ts +153 -101
  133. package/src/blocks/hero/hero-1.tsx +4 -4
  134. package/src/blocks/hero/hero-10.schema.ts +9 -31
  135. package/src/blocks/hero/hero-10.tsx +4 -4
  136. package/src/blocks/hero/hero-11.schema.ts +196 -89
  137. package/src/blocks/hero/hero-11.tsx +5 -10
  138. package/src/blocks/hero/hero-12.schema.ts +111 -192
  139. package/src/blocks/hero/hero-12.tsx +4 -7
  140. package/src/blocks/hero/hero-13.schema.ts +36 -30
  141. package/src/blocks/hero/hero-13.tsx +1 -1
  142. package/src/blocks/hero/hero-2.schema.ts +30 -58
  143. package/src/blocks/hero/hero-2.tsx +3 -21
  144. package/src/blocks/hero/hero-3.schema.ts +70 -90
  145. package/src/blocks/hero/hero-3.tsx +6 -15
  146. package/src/blocks/hero/hero-4.schema.ts +246 -73
  147. package/src/blocks/hero/hero-4.tsx +22 -16
  148. package/src/blocks/hero/hero-5.schema.ts +104 -47
  149. package/src/blocks/hero/hero-5.tsx +21 -12
  150. package/src/blocks/hero/hero-6.schema.ts +127 -258
  151. package/src/blocks/hero/hero-6.tsx +6 -6
  152. package/src/blocks/hero/hero-7.schema.ts +90 -43
  153. package/src/blocks/hero/hero-7.tsx +6 -4
  154. package/src/blocks/hero/hero-8.schema.ts +342 -138
  155. package/src/blocks/hero/hero-8.tsx +23 -13
  156. package/src/blocks/hero/hero-9.schema.ts +111 -86
  157. package/src/blocks/hero/hero-9.tsx +12 -4
  158. package/src/blocks/index.ts +12 -8
  159. package/src/blocks/jobs/jobs-1.schema.ts +990 -0
  160. package/src/blocks/jobs/jobs-1.tsx +145 -0
  161. package/src/blocks/logos/logos-1.schema.ts +370 -36
  162. package/src/blocks/logos/logos-1.tsx +7 -7
  163. package/src/blocks/navbar/navbar-1.schema.ts +15 -28
  164. package/src/blocks/navbar/navbar-1.tsx +24 -60
  165. package/src/blocks/navbar/navbar-2.schema.ts +14 -28
  166. package/src/blocks/navbar/navbar-2.tsx +26 -56
  167. package/src/blocks/navbar/navbar-3.schema.ts +11 -22
  168. package/src/blocks/navbar/navbar-3.tsx +33 -82
  169. package/src/blocks/navbar/navbar-4.schema.ts +14343 -0
  170. package/src/blocks/navbar/navbar-4.tsx +546 -0
  171. package/src/blocks/polling/polling-1.schema.ts +2 -21
  172. package/src/blocks/polling/polling-1.tsx +24 -39
  173. package/src/blocks/pricing/pricing-1.schema.ts +307 -290
  174. package/src/blocks/pricing/pricing-1.tsx +32 -42
  175. package/src/blocks/products/products-listing-1.schema.ts +115 -36
  176. package/src/blocks/products/products-listing-1.tsx +15 -13
  177. package/src/blocks/products/products-listing-2.schema.ts +178 -220
  178. package/src/blocks/products/products-listing-2.tsx +29 -16
  179. package/src/blocks/products/products-listing-3.schema.ts +412 -154
  180. package/src/blocks/products/products-listing-3.tsx +102 -73
  181. package/src/blocks/profile/profile-1.schema.ts +60 -49
  182. package/src/blocks/profile/profile-1.tsx +5 -10
  183. package/src/blocks/profile/profile-2.schema.ts +71 -92
  184. package/src/blocks/profile/profile-2.tsx +6 -7
  185. package/src/blocks/profile/profile-3.schema.ts +141 -529
  186. package/src/blocks/profile/profile-3.tsx +19 -41
  187. package/src/blocks/{blogs/blog-post-2.schema.ts → profile/profile-4.schema.ts} +75 -97
  188. package/src/blocks/{blogs/blog-post-2.tsx → profile/profile-4.tsx} +32 -61
  189. package/src/blocks/{blogs/blog-post-3.schema.ts → profile/profile-5.schema.ts} +6 -6
  190. package/src/blocks/{blogs/blog-post-3.tsx → profile/profile-5.tsx} +6 -11
  191. package/src/blocks/services/service-1.schema.ts +210 -830
  192. package/src/blocks/services/service-1.tsx +46 -59
  193. package/src/blocks/services/service-2.schema.ts +92 -80
  194. package/src/blocks/services/service-2.tsx +13 -7
  195. package/src/blocks/services/service-3.schema.ts +74 -86
  196. package/src/blocks/services/service-3.tsx +44 -45
  197. package/src/blocks/stats/stats-1.schema.ts +225 -21
  198. package/src/blocks/stats/stats-1.tsx +7 -14
  199. package/src/blocks/stats/stats-2.schema.ts +13 -5
  200. package/src/blocks/stats/stats-2.tsx +12 -15
  201. package/src/blocks/stats/variants/default.ts +59 -41
  202. package/src/blocks/stats/variants/hero.ts +64 -31
  203. package/src/blocks/stats/variants/index.ts +1 -1
  204. package/src/blocks/tabs/tab-1.schema.ts +103 -409
  205. package/src/blocks/tabs/tab-1.tsx +47 -53
  206. package/src/blocks/tabs/tab-2.schema.ts +207 -290
  207. package/src/blocks/tabs/tab-2.tsx +20 -9
  208. package/src/blocks/team/team-1.schema.ts +593 -76
  209. package/src/blocks/team/team-1.tsx +16 -22
  210. package/src/blocks/team/team-2.schema.ts +621 -1453
  211. package/src/blocks/team/team-2.tsx +19 -34
  212. package/src/blocks/team/team-3.schema.ts +127 -78
  213. package/src/blocks/team/team-3.tsx +9 -14
  214. package/src/blocks/team/team-4.schema.ts +197 -63
  215. package/src/blocks/team/team-4.tsx +25 -26
  216. package/src/blocks/team/team-5.schema.ts +65 -54
  217. package/src/blocks/team/team-5.tsx +13 -4
  218. package/src/blocks/termsAndPrivacy/terms-and-conditions-1.schema.ts +9 -26
  219. package/src/blocks/termsAndPrivacy/terms-and-conditions-1.tsx +4 -6
  220. package/src/blocks/testimonial/testimonial-1.schema.ts +713 -65
  221. package/src/blocks/testimonial/testimonial-1.tsx +12 -23
  222. package/src/blocks/testimonial/testimonial-2.schema.ts +1316 -354
  223. package/src/blocks/testimonial/testimonial-2.tsx +21 -37
  224. package/src/blocks/testimonial/testimonial-3.schema.ts +210 -74
  225. package/src/blocks/testimonial/testimonial-3.tsx +17 -27
  226. package/src/blocks/testimonial/testimonial-4.schema.ts +353 -1049
  227. package/src/blocks/testimonial/testimonial-4.tsx +16 -34
  228. package/src/blocks/testimonial/testimonial-5/variants/default.ts +155 -171
  229. package/src/blocks/testimonial/testimonial-5/variants/index.ts +1 -1
  230. package/src/blocks/testimonial/testimonial-5/variants/testimonialWithLogo.ts +201 -501
  231. package/src/blocks/testimonial/testimonial-5/variants/testimonialWithRatings.ts +166 -316
  232. package/src/blocks/testimonial/testimonial-5.schema.ts +2 -6
  233. package/src/blocks/testimonial/testimonial-5.tsx +15 -25
  234. package/src/blocks/testimonial/testimonial-6.schema.ts +226 -315
  235. package/src/blocks/testimonial/testimonial-6.tsx +9 -25
  236. package/src/blocks/testimonial/testimonial-7.schema.ts +74 -45
  237. package/src/blocks/testimonial/testimonial-7.tsx +16 -27
  238. package/src/blocks/timeline/timeline-1.schema.ts +166 -153
  239. package/src/blocks/timeline/timeline-1.tsx +6 -7
  240. package/src/blocks/users/edit-profile.schema.ts +56 -44
  241. package/src/blocks/users/edit-profile.tsx +23 -28
  242. package/src/constants/index.ts +16 -0
  243. package/src/index.ts +1 -1
  244. package/src/schemas/blocks.ts +17 -5
  245. package/src/schemas/categories.ts +26 -2
@@ -2,7 +2,6 @@
2
2
 
3
3
  import type { CarouselApi } from "@levo-so/studio";
4
4
  import {
5
- type ILevoBlockBaseProps,
6
5
  Box,
7
6
  Button,
8
7
  Carousel,
@@ -11,6 +10,7 @@ import {
11
10
  Container,
12
11
  Heading,
13
12
  Icon,
13
+ type ILevoBlockBaseProps,
14
14
  Section,
15
15
  Typography,
16
16
  } from "@levo-so/studio";
@@ -18,9 +18,7 @@ import { useEffect, useState } from "react";
18
18
 
19
19
  import type { ITestimonial6Content } from "./testimonial-6.schema";
20
20
 
21
- const Testimonial6: React.FC<ILevoBlockBaseProps<ITestimonial6Content>> = ({
22
- content,
23
- }) => {
21
+ const Testimonial6: React.FC<ILevoBlockBaseProps<ITestimonial6Content>> = ({ content }) => {
24
22
  const [api, setApi] = useState<CarouselApi>();
25
23
  const [current, setCurrent] = useState(0);
26
24
  const [count, setCount] = useState(0);
@@ -83,27 +81,15 @@ const Testimonial6: React.FC<ILevoBlockBaseProps<ITestimonial6Content>> = ({
83
81
  <Icon elementKey={`testimonials.${index}.icon`} />
84
82
  </Box>
85
83
  <Box elementKey={`testimonials.${index}.content-container`}>
86
- <Box
87
- elementKey={`testimonials.${index}.testimonial-content`}
88
- >
89
- <Typography
90
- elementKey={`testimonials.${index}.testimonial-text`}
91
- />
84
+ <Box elementKey={`testimonials.${index}.testimonial-content`}>
85
+ <Typography elementKey={`testimonials.${index}.testimonial-text`} />
92
86
  </Box>
93
87
  <Box elementKey={`testimonials.${index}.bottom-section`}>
94
- <Box
95
- elementKey={`testimonials.${index}.author-section`}
96
- >
97
- <Icon
98
- elementKey={`testimonials.${index}.author-avatar`}
99
- />
88
+ <Box elementKey={`testimonials.${index}.author-section`}>
89
+ <Icon elementKey={`testimonials.${index}.author-avatar`} />
100
90
  <Box elementKey={`testimonials.${index}.author-info`}>
101
- <Heading
102
- elementKey={`testimonials.${index}.author-name`}
103
- />
104
- <Typography
105
- elementKey={`testimonials.${index}.author-position`}
106
- />
91
+ <Heading elementKey={`testimonials.${index}.author-name`} />
92
+ <Typography elementKey={`testimonials.${index}.author-position`} />
107
93
  </Box>
108
94
  </Box>
109
95
  {count > 0 && index === current && (
@@ -114,9 +100,7 @@ const Testimonial6: React.FC<ILevoBlockBaseProps<ITestimonial6Content>> = ({
114
100
  disabled={isFirstSlide}
115
101
  style={{
116
102
  opacity: isFirstSlide ? 0.5 : 1,
117
- cursor: isFirstSlide
118
- ? "not-allowed"
119
- : "pointer",
103
+ cursor: isFirstSlide ? "not-allowed" : "pointer",
120
104
  }}
121
105
  ></Button>
122
106
  <Button
@@ -166,7 +166,7 @@ export const Testimonial7: IBlock = {
166
166
  {
167
167
  key: "title",
168
168
  label: "Title",
169
- field_interface: "TypographyWidget",
169
+ field_interface: "HeadingWidget",
170
170
  },
171
171
  {
172
172
  key: "description",
@@ -181,7 +181,7 @@ export const Testimonial7: IBlock = {
181
181
  {
182
182
  key: "persona_name",
183
183
  label: "Persona Name",
184
- field_interface: "TypographyWidget",
184
+ field_interface: "HeadingWidget",
185
185
  },
186
186
  {
187
187
  key: "designation",
@@ -224,27 +224,16 @@ export const Testimonial7: IBlock = {
224
224
  key: "default",
225
225
  title: "Default",
226
226
  styles: {
227
- layout: {
228
- "padding-top": "3xl",
229
- "padding-bottom": "3xl",
230
- },
231
- container: {
232
- "max-width": "1280px",
233
- "margin-left": "auto",
234
- "margin-right": "auto",
235
- "padding-left": "lg",
236
- "padding-right": "lg",
237
- },
227
+ layout: {},
228
+ container: {},
238
229
  header_container: {
239
230
  "text-align": "center",
240
231
  "margin-bottom": "2xl",
241
232
  },
242
233
  title: {
243
- color: "text-1",
244
234
  "margin-bottom": "base",
245
235
  },
246
236
  description: {
247
- color: "text-2",
248
237
  "max-width": "600px",
249
238
  "margin-left": "auto",
250
239
  "margin-right": "auto",
@@ -273,15 +262,10 @@ export const Testimonial7: IBlock = {
273
262
  "text-align": "center",
274
263
  },
275
264
  title: {
276
- color: "text-1",
277
- "font-size": "lg",
278
- "font-weight": "600",
265
+ "font-weight": 600,
279
266
  "margin-bottom": "sm",
280
267
  },
281
- description: {
282
- color: "text-2",
283
- "line-height": "1.6",
284
- },
268
+ description: {},
285
269
  persona_container: {
286
270
  display: "flex",
287
271
  "flex-direction": "column",
@@ -289,9 +273,7 @@ export const Testimonial7: IBlock = {
289
273
  gap: "sm",
290
274
  },
291
275
  persona_name: {
292
- color: "text-1",
293
- "font-weight": "600",
294
- "text-align": "center",
276
+ "font-weight": 600,
295
277
  },
296
278
  stars: {
297
279
  display: "flex",
@@ -323,15 +305,10 @@ export const Testimonial7: IBlock = {
323
305
  "text-align": "center",
324
306
  },
325
307
  title: {
326
- color: "text-1",
327
- "font-size": "lg",
328
- "font-weight": "600",
308
+ "font-weight": 600,
329
309
  "margin-bottom": "sm",
330
310
  },
331
- description: {
332
- color: "text-2",
333
- "line-height": "1.6",
334
- },
311
+ description: {},
335
312
  persona_container: {
336
313
  display: "flex",
337
314
  "flex-direction": "column",
@@ -339,9 +316,7 @@ export const Testimonial7: IBlock = {
339
316
  gap: "sm",
340
317
  },
341
318
  persona_name: {
342
- color: "text-1",
343
- "font-weight": "600",
344
- "text-align": "center",
319
+ "font-weight": 600,
345
320
  },
346
321
  stars: {
347
322
  display: "flex",
@@ -373,15 +348,10 @@ export const Testimonial7: IBlock = {
373
348
  "text-align": "center",
374
349
  },
375
350
  title: {
376
- color: "text-1",
377
- "font-size": "lg",
378
- "font-weight": "600",
351
+ "font-weight": 600,
379
352
  "margin-bottom": "sm",
380
353
  },
381
- description: {
382
- color: "text-2",
383
- "line-height": "1.6",
384
- },
354
+ description: {},
385
355
  persona_container: {
386
356
  display: "flex",
387
357
  "flex-direction": "column",
@@ -389,9 +359,7 @@ export const Testimonial7: IBlock = {
389
359
  gap: "sm",
390
360
  },
391
361
  persona_name: {
392
- color: "text-1",
393
- "font-weight": "600",
394
- "text-align": "center",
362
+ "font-weight": 600,
395
363
  },
396
364
  stars: {
397
365
  display: "flex",
@@ -432,6 +400,67 @@ export const Testimonial7: IBlock = {
432
400
  loop: true,
433
401
  },
434
402
  },
403
+ title: {
404
+ selectedVariants: {
405
+ Heading_Level: "H2",
406
+ },
407
+ },
408
+ testimonials: [
409
+ {
410
+ description: {
411
+ selectedVariants: {},
412
+ },
413
+ title: {
414
+ selectedVariants: {
415
+ Typography_Variants: "Lead",
416
+ },
417
+ },
418
+ persona_name: {
419
+ heading: {
420
+ level: "5",
421
+ },
422
+ selectedVariants: {
423
+ Heading_Level: "H6",
424
+ },
425
+ },
426
+ },
427
+ {
428
+ description: {
429
+ selectedVariants: {},
430
+ },
431
+ title: {
432
+ selectedVariants: {
433
+ Typography_Variants: "Lead",
434
+ },
435
+ },
436
+ persona_name: {
437
+ selectedVariants: {
438
+ Heading_Level: "H6",
439
+ },
440
+ heading: {
441
+ level: "5",
442
+ },
443
+ },
444
+ },
445
+ {
446
+ description: {
447
+ selectedVariants: {},
448
+ },
449
+ title: {
450
+ selectedVariants: {
451
+ Typography_Variants: "Lead",
452
+ },
453
+ },
454
+ persona_name: {
455
+ selectedVariants: {
456
+ Heading_Level: "H6",
457
+ },
458
+ heading: {
459
+ level: "5",
460
+ },
461
+ },
462
+ },
463
+ ],
435
464
  },
436
465
  },
437
466
  ],
@@ -2,7 +2,6 @@
2
2
 
3
3
  import type { CarouselApi } from "@levo-so/studio";
4
4
  import {
5
- type ILevoBlockBaseProps,
6
5
  Box,
7
6
  Carousel,
8
7
  CarouselContent,
@@ -10,6 +9,7 @@ import {
10
9
  Container,
11
10
  Heading,
12
11
  Icon,
12
+ type ILevoBlockBaseProps,
13
13
  Section,
14
14
  Typography,
15
15
  } from "@levo-so/studio";
@@ -17,9 +17,7 @@ import { useEffect, useState } from "react";
17
17
 
18
18
  import type { ITestimonial7Content } from "./testimonial-7.schema";
19
19
 
20
- const Testimonial7: React.FC<ILevoBlockBaseProps<ITestimonial7Content>> = ({
21
- content,
22
- }) => {
20
+ const Testimonial7: React.FC<ILevoBlockBaseProps<ITestimonial7Content>> = ({ content }) => {
23
21
  const [api, setApi] = useState<CarouselApi>();
24
22
  const [current, setCurrent] = useState(0);
25
23
  const [count, setCount] = useState(0);
@@ -56,31 +54,22 @@ const Testimonial7: React.FC<ILevoBlockBaseProps<ITestimonial7Content>> = ({
56
54
  <Box elementKey={`testimonials.${index}.card`}>
57
55
  <Box elementKey={`testimonials.${index}.content_container`}>
58
56
  <Box elementKey={`testimonials.${index}.title_desc_box`}>
59
- <Typography elementKey={`testimonials.${index}.title`} />
60
- <Typography
61
- elementKey={`testimonials.${index}.description`}
62
- />
57
+ <Heading elementKey={`testimonials.${index}.title`} />
58
+ <Typography elementKey={`testimonials.${index}.description`} />
63
59
  </Box>
64
60
  <Box elementKey={`testimonials.${index}.persona_container`}>
65
- <Typography
66
- elementKey={`testimonials.${index}.persona_name`}
67
- />
68
- <Typography
69
- elementKey={`testimonials.${index}.designation`}
70
- />
71
- <Box
72
- elementKey={`testimonials.${index}.stars_levoGroup`}
73
- data-levo_group
74
- >
75
- {(
76
- (content?.testimonials?.[index] as any)?.stars ?? []
77
- ).map((_: any, starIndex: number) => (
78
- <Icon
79
- key={`star-${starIndex}`}
80
- data-levo_group_item
81
- elementKey={`testimonials.${index}.stars.${starIndex}.star`}
82
- />
83
- ))}
61
+ <Heading elementKey={`testimonials.${index}.persona_name`} />
62
+ <Typography elementKey={`testimonials.${index}.designation`} />
63
+ <Box elementKey={`testimonials.${index}.stars_levoGroup`} data-levo_group>
64
+ {((content?.testimonials?.[index] as any)?.stars ?? []).map(
65
+ (_: any, starIndex: number) => (
66
+ <Icon
67
+ key={`star-${starIndex}`}
68
+ data-levo_group_item
69
+ elementKey={`testimonials.${index}.stars.${starIndex}.star`}
70
+ />
71
+ ),
72
+ )}
84
73
  </Box>
85
74
  </Box>
86
75
  </Box>