@levo-so/blocks 0.1.75 → 0.1.76

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 (58) hide show
  1. package/package.json +4 -4
  2. package/src/blocks/about-us/about-us-1.schema.ts +0 -3
  3. package/src/blocks/blogs/ClientOnly.tsx +24 -0
  4. package/src/blocks/blogs/blog-listing-1.schema.ts +750 -111
  5. package/src/blocks/blogs/blog-listing-1.tsx +123 -41
  6. package/src/blocks/blogs/blog-listing-2.schema.ts +1127 -2640
  7. package/src/blocks/blogs/blog-listing-2.tsx +110 -23
  8. package/src/blocks/blogs/blog-listing-3.schema.ts +713 -2010
  9. package/src/blocks/blogs/blog-listing-3.tsx +118 -20
  10. package/src/blocks/blogs/blog-post-1.schema.ts +262 -32
  11. package/src/blocks/blogs/blog-post-1.tsx +217 -28
  12. package/src/blocks/cards/cards-16.schema.ts +947 -0
  13. package/src/blocks/cards/cards-16.tsx +106 -0
  14. package/src/blocks/cards/cards-17.schema.ts +1945 -0
  15. package/src/blocks/cards/cards-17.tsx +112 -0
  16. package/src/blocks/cards/cards-18.schema.ts +1040 -0
  17. package/src/blocks/cards/cards-18.tsx +102 -0
  18. package/src/blocks/cards/cards-2.schema.ts +2 -2
  19. package/src/blocks/cards/cards-3.schema.ts +3 -16
  20. package/src/blocks/cards/cards-4.schema.ts +3 -28
  21. package/src/blocks/cards/cards-7.schema.ts +4 -7
  22. package/src/blocks/cards/cards-8.schema.ts +1 -10
  23. package/src/blocks/carousel/carousel-2.schema.ts +1 -2
  24. package/src/blocks/content/content-10.schema.ts +450 -0
  25. package/src/blocks/content/content-10.tsx +43 -0
  26. package/src/blocks/content/content-3.schema.ts +22 -28
  27. package/src/blocks/content/content-5.schema.ts +0 -4
  28. package/src/blocks/cta/cta-1.schema.ts +0 -3
  29. package/src/blocks/event/event-details.schema.ts +41 -175
  30. package/src/blocks/event/event-details.tsx +45 -50
  31. package/src/blocks/event/event-listing-2.schema.ts +437 -202
  32. package/src/blocks/event/event-listing-2.tsx +86 -22
  33. package/src/blocks/event/event-listing-3.schema.ts +232 -196
  34. package/src/blocks/event/event-listing-3.tsx +62 -29
  35. package/src/blocks/event/event-listing-4.schema.ts +314 -2824
  36. package/src/blocks/event/event-listing-4.tsx +68 -32
  37. package/src/blocks/event/event-listing.schema.ts +176 -1032
  38. package/src/blocks/event/event-listing.tsx +59 -25
  39. package/src/blocks/features/features-1/variants/stylized-cards-v2.ts +0 -1
  40. package/src/blocks/features/features-4.schema.ts +4 -14
  41. package/src/blocks/features/features-5.schema.ts +30 -51
  42. package/src/blocks/features/features-6.schema.ts +0 -1
  43. package/src/blocks/filter-listing/filter-listing-1.schema.ts +1 -3
  44. package/src/blocks/footer/footer-3.schema.ts +6 -14
  45. package/src/blocks/hero/hero-11.schema.ts +25 -54
  46. package/src/blocks/hero/hero-5.schema.ts +2 -6
  47. package/src/blocks/hero/hero-6.schema.ts +1 -10
  48. package/src/blocks/index.ts +4 -0
  49. package/src/blocks/logos/logos-1.schema.ts +0 -30
  50. package/src/blocks/pricing/pricing-1.schema.ts +0 -3
  51. package/src/blocks/stats/variants/default.ts +4 -5
  52. package/src/blocks/team/team-2.schema.ts +57 -154
  53. package/src/blocks/team/team-3.schema.ts +14 -31
  54. package/src/blocks/testimonial/testimonial-4.schema.ts +67 -152
  55. package/src/blocks/testimonial/testimonial-5/variants/default.ts +0 -1
  56. package/src/blocks/testimonial/testimonial-5/variants/testimonialWithLogo.ts +0 -1
  57. package/src/blocks/testimonial/testimonial-5/variants/testimonialWithRatings.ts +0 -1
  58. package/src/schemas/blocks.ts +8 -0
@@ -32,7 +32,8 @@ const DEFAULT_CONTENT = {
32
32
  container: null,
33
33
  "header-container": null,
34
34
  title: "Upcoming Events",
35
- "cta-button": "View All Events",
35
+ description: "Upcoming Events Upcoming Events Upcoming Events Upcoming Events ",
36
+ "cta-buttons": [{ "cta-button": "Learn More" }, { "cta-button": "View All" }],
36
37
  events: [
37
38
  {
38
39
  eventWrapper: null,
@@ -116,6 +117,11 @@ export const EventListing3: IBlock = {
116
117
  label: "Container",
117
118
  field_interface: "ContainerWidget",
118
119
  },
120
+ {
121
+ key: "header",
122
+ label: "Header",
123
+ field_interface: "BoxWidget",
124
+ },
119
125
  {
120
126
  key: "header-container",
121
127
  label: "Header Container",
@@ -133,21 +139,45 @@ export const EventListing3: IBlock = {
133
139
  },
134
140
  },
135
141
  {
136
- key: "cta-button",
137
- label: "Header CTA Button",
138
- field_interface: "ButtonWidget",
142
+ key: "description",
143
+ label: "Description",
144
+ field_interface: "TypographyWidget",
139
145
  hint: {
140
146
  prompt_description:
141
- "Call-to-action button displayed next to the main heading. Should encourage exploration, such as 'View all' or 'See more events'.",
142
- min_characters: 6,
143
- max_characters: 15,
147
+ "Block headline centered at the top of the Events section. Should clearly state the purpose of the section, such as 'Events' or a similarly concise title.",
148
+ min_characters: 5,
149
+ max_characters: 18,
144
150
  },
145
151
  },
152
+ {
153
+ key: "cta-buttons",
154
+ label: "CTA Buttons",
155
+ field_interface: "BoxWidget",
156
+ kind: "group",
157
+ fields: [
158
+ {
159
+ key: "cta-button",
160
+ label: "CTA Button",
161
+ field_interface: "ButtonWidget",
162
+ hint: {
163
+ prompt_description:
164
+ "Call-to-action button that encourages users to explore more events. Should be action-oriented.",
165
+ min_characters: 6,
166
+ max_characters: 15,
167
+ },
168
+ },
169
+ ],
170
+ },
146
171
  {
147
172
  key: "events",
148
173
  label: "Events",
149
174
  kind: "group",
150
175
  field_interface: "BoxWidget",
176
+ options: {
177
+ module_field: {
178
+ module: "event",
179
+ },
180
+ },
151
181
  hint: {
152
182
  prompt_description:
153
183
  "A group representing a grid of event cards. Each card highlights an upcoming or featured event with enhanced metadata. Intended for listing multiple events at a glance.",
@@ -171,6 +201,12 @@ export const EventListing3: IBlock = {
171
201
  size: "medium",
172
202
  usecase: "hero",
173
203
  },
204
+ options: {
205
+ module_field: {
206
+ module: "event",
207
+ key: "cover_image",
208
+ },
209
+ },
174
210
  },
175
211
  {
176
212
  key: "text-wrapper",
@@ -205,10 +241,16 @@ export const EventListing3: IBlock = {
205
241
  field_interface: "TypographyWidget",
206
242
  hint: {
207
243
  prompt_description:
208
- "Displays the date and time of the event. Format as 'Month DD, YYYY HH:MM AM/PM'. Keep it short, clear, and easily readable.",
244
+ "Displays the date and time of the event. Format as 'Month DD, YYYY HH:MM AM/PM'. Keep it short, clear, and easily readable.",
209
245
  min_characters: 16,
210
246
  max_characters: 28,
211
247
  },
248
+ options: {
249
+ module_field: {
250
+ module: "event",
251
+ key: "starts_at",
252
+ },
253
+ },
212
254
  },
213
255
  {
214
256
  key: "author-wrapper",
@@ -256,13 +298,19 @@ export const EventListing3: IBlock = {
256
298
  {
257
299
  key: "title",
258
300
  label: "Event Title",
259
- field_interface: "TypographyWidget",
301
+ field_interface: "HeadingWidget",
260
302
  hint: {
261
303
  prompt_description:
262
304
  "Event card headline. Should be the name or title of the event, immediately catching the user's attention. Aim for clarity and engagement.",
263
305
  min_characters: 8,
264
306
  max_characters: 32,
265
307
  },
308
+ options: {
309
+ module_field: {
310
+ module: "event",
311
+ key: "title",
312
+ },
313
+ },
266
314
  },
267
315
  {
268
316
  key: "description",
@@ -274,6 +322,12 @@ export const EventListing3: IBlock = {
274
322
  min_characters: 40,
275
323
  max_characters: 120,
276
324
  },
325
+ options: {
326
+ module_field: {
327
+ module: "event",
328
+ key: "description",
329
+ },
330
+ },
277
331
  },
278
332
  {
279
333
  key: "publishedAt",
@@ -285,6 +339,12 @@ export const EventListing3: IBlock = {
285
339
  min_characters: 16,
286
340
  max_characters: 28,
287
341
  },
342
+ options: {
343
+ module_field: {
344
+ module: "event",
345
+ key: "starts_at",
346
+ },
347
+ },
288
348
  },
289
349
  {
290
350
  key: "cta",
@@ -353,64 +413,52 @@ export const EventListing3: IBlock = {
353
413
  },
354
414
  },
355
415
  ],
416
+ source: [{ required: true, module: "event", type: "block", field_key: "events" }],
356
417
  layouts: [
357
418
  {
358
419
  key: "default",
359
420
  title: "Default",
360
421
  styles: {
361
- layout: {
362
- "padding-left": "10xl",
363
- "padding-right": "10xl",
364
- "padding-top": "5xl",
365
- "padding-bottom": "5xl",
366
- tablet: {
367
- "padding-left": "8xl",
368
- "padding-right": "8xl",
369
- "padding-top": "4xl",
370
- "padding-bottom": "4xl",
371
- },
372
- mobile: {
373
- "padding-left": "6xl",
374
- "padding-right": "6xl",
375
- "padding-top": "3xl",
376
- "padding-bottom": "3xl",
377
- },
378
- filter: "none",
379
- },
422
+ layout: {},
380
423
  container: {
381
424
  display: "flex",
382
425
  "flex-direction": "column",
383
426
  "align-items": "center",
384
427
  "row-gap": "2xl",
385
- filter: "none",
386
428
  },
387
429
  "header-container": {
388
430
  display: "flex",
389
431
  width: "100%",
390
432
  "justify-content": "space-between",
391
- "align-items": "center",
392
- "margin-bottom": "3xl",
433
+ "align-items": "start",
393
434
  mobile: {
394
435
  "flex-direction": "column",
395
- "align-items": "flex-start",
436
+ "align-items": "center",
396
437
  "row-gap": "lg",
397
438
  },
439
+ tablet: {
440
+ "flex-direction": "column",
441
+ },
442
+ "flex-direction": "column",
398
443
  },
399
- title: {
400
- color: "text-1",
401
- margin: "0",
402
- },
403
- "cta-button": {
404
- "background-color": "transparent",
405
- color: "color-brand",
406
-
407
- "text-decoration": "none",
408
- border: "none",
409
- cursor: "pointer",
444
+ title: {},
445
+ "cta-buttons_levoGroup": {
410
446
  display: "flex",
447
+ "column-gap": "md",
411
448
  "align-items": "center",
412
- "column-gap": "xs",
413
449
  },
450
+ "cta-buttons": [
451
+ {
452
+ "cta-button": {
453
+ "white-space": "nowrap",
454
+ },
455
+ },
456
+ {
457
+ "cta-button": {
458
+ "white-space": "nowrap",
459
+ },
460
+ },
461
+ ],
414
462
  events_levoGroup: {
415
463
  display: "grid",
416
464
  width: "100%",
@@ -419,137 +467,119 @@ export const EventListing3: IBlock = {
419
467
  "column-gap": "5xl",
420
468
  tablet: {
421
469
  "grid-template-columns": "repeat(1, minmax(0, 1fr))",
422
- filter: "none",
423
470
  "column-gap": "base",
424
471
  },
425
472
  mobile: {
426
473
  "grid-template-columns": "repeat(1, 1fr)",
427
474
  "row-gap": "lg",
428
- filter: "none",
429
475
  },
430
- filter: "none",
431
476
  },
432
-
433
- events: Array(3)
434
- .fill(0)
435
- ?.map((v) => {
436
- return {
437
- eventWrapper: {
438
- "border-radius": "xl",
439
- overflow: "hidden",
440
- "box-shadow": "0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",
441
- position: "relative",
442
- },
443
- image: {
444
- width: "100%",
445
- height: "200px",
446
- "object-fit": "cover",
447
- },
448
- "text-wrapper": {
449
- "padding-left": "none",
450
- "padding-top": "none",
451
- "padding-right": "none",
452
- "padding-bottom": "2xl",
453
- display: "flex",
454
- "flex-direction": "column",
455
- "row-gap": "lg",
456
- filter: "none",
457
- },
458
- "text-container": {
459
- display: "flex",
460
- "justify-content": "start",
461
- "align-items": "center",
462
- "column-gap": "lg",
463
- "margin-bottom": "base",
464
- filter: "none",
465
- "border-bottom": "1px solid",
466
- "padding-top": "xs",
467
- "padding-bottom": "xs",
468
- "padding-left": "base",
469
- "padding-right": "base",
470
- },
471
- "caption-text": {
472
- color: "white",
473
- "font-size": "xs",
474
- "background-color": "var(--color-brand)",
475
- "font-weight": 500,
476
- "padding-left": "sm",
477
- "padding-right": "sm",
478
- "padding-top": "2xs",
479
- "padding-bottom": "2xs",
480
- "border-radius": "3xl",
481
- },
482
- "date-wrapper": {
483
- display: "flex",
484
- "align-items": "center",
485
- "column-gap": "xs",
486
- },
487
- "date-icon": {
488
- width: "16px",
489
- height: "16px",
490
- },
491
- "publishedAt-header": {
492
- "font-size": "sm",
493
- color: "var(--color-text-2)",
494
- "font-weight": 500,
495
- },
496
- "author-wrapper": {
497
- display: "flex",
498
- "align-items": "center",
499
- "column-gap": "xs",
500
- },
501
- "author-image": {
502
- height: "24px",
503
- width: "24px",
504
- "border-radius": "100%",
505
- "object-fit": "cover",
506
- },
507
- "author-name": {
508
- "font-size": "sm",
509
- "font-weight": 500,
510
- color: "var(--color-text-1)",
511
- },
512
- title: {
513
- "font-weight": 600,
514
- "font-size": "xl",
515
- "margin-bottom": "xs",
516
- color: "var(--color-text-1)",
517
- filter: "none",
518
- },
519
- description: {
520
- overflow: "hidden",
521
- display: "-webkit-box",
522
- "-webkit-box-orient": "vertical",
523
- "-webkit-line-clamp": 3,
524
- color: "var(--color-text-2)",
525
- "line-height": 1.5,
526
- "margin-bottom": "base",
527
- filter: "none",
528
- },
529
- publishedAt: {
530
- display: "none",
531
- },
532
- cta: {
533
- "background-color": "var(--color-brand)",
534
- color: "white",
535
- "padding-top": "xs",
536
- "padding-bottom": "xs",
537
- "padding-left": "base",
538
- "padding-right": "base",
539
- "border-radius": "md",
540
- "font-size": "sm",
541
- "font-weight": 500,
542
- border: "none",
543
- cursor: "pointer",
544
- "align-self": "flex-start",
545
- },
546
- "content-container": {
547
- filter: "none",
548
- "padding-left": "base",
549
- "padding-right": "base",
550
- },
551
- };
552
- }),
477
+ events_levoGroupItem: {
478
+ eventWrapper: {
479
+ "border-radius": "xl",
480
+ overflow: "hidden",
481
+ "box-shadow": "0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",
482
+ position: "relative",
483
+ },
484
+ image: {
485
+ width: "100%",
486
+ height: "200px",
487
+ "object-fit": "cover",
488
+ },
489
+ "text-wrapper": {
490
+ "padding-left": "xl",
491
+ "padding-top": "xl",
492
+ "padding-right": "xl",
493
+ "padding-bottom": "xl",
494
+ display: "flex",
495
+ "flex-direction": "column",
496
+ "row-gap": "base",
497
+ },
498
+ "text-container": {
499
+ display: "flex",
500
+ "justify-content": "start",
501
+ "align-items": "center",
502
+ "column-gap": "lg",
503
+ "margin-bottom": "base",
504
+ "border-bottom": "1px solid",
505
+ "padding-top": "xs",
506
+ "padding-bottom": "xs",
507
+ "padding-left": "base",
508
+ "padding-right": "base",
509
+ },
510
+ "caption-text": {
511
+ color: "white",
512
+ "font-size": "xs",
513
+ "background-color": "var(--color-brand)",
514
+ "font-weight": 500,
515
+ "padding-left": "sm",
516
+ "padding-right": "sm",
517
+ "padding-top": "2xs",
518
+ "padding-bottom": "2xs",
519
+ "border-radius": "3xl",
520
+ },
521
+ "date-wrapper": {
522
+ display: "flex",
523
+ "align-items": "center",
524
+ "column-gap": "xs",
525
+ },
526
+ "date-icon": {
527
+ width: "16px",
528
+ height: "16px",
529
+ },
530
+ "publishedAt-header": {
531
+ "font-weight": 500,
532
+ },
533
+ "author-wrapper": {
534
+ display: "flex",
535
+ "align-items": "center",
536
+ "column-gap": "xs",
537
+ },
538
+ "author-image": {
539
+ height: "24px",
540
+ width: "24px",
541
+ "border-radius": "100%",
542
+ "object-fit": "cover",
543
+ },
544
+ "author-name": {
545
+ "font-size": "sm",
546
+ "font-weight": 500,
547
+ color: "var(--color-text-1)",
548
+ },
549
+ title: {
550
+ "font-weight": 600,
551
+ "font-size": "xl",
552
+ "margin-bottom": "xs",
553
+ },
554
+ description: {
555
+ overflow: "hidden",
556
+ display: "-webkit-box",
557
+ "-webkit-box-orient": "vertical",
558
+ "-webkit-line-clamp": 3,
559
+ "margin-bottom": "none",
560
+ },
561
+ publishedAt: {
562
+ display: "none",
563
+ },
564
+ cta: {
565
+ "background-color": "var(--color-brand)",
566
+ color: "white",
567
+ "padding-top": "xs",
568
+ "padding-bottom": "xs",
569
+ "padding-left": "base",
570
+ "padding-right": "base",
571
+ "border-radius": "md",
572
+ "font-size": "sm",
573
+ "font-weight": 500,
574
+ border: "none",
575
+ cursor: "pointer",
576
+ "align-self": "flex-start",
577
+ },
578
+ "content-container": {
579
+ "padding-left": "none",
580
+ "padding-right": "none",
581
+ },
582
+ },
553
583
  paginationWrapper: {
554
584
  width: "100%",
555
585
  display: "flex",
@@ -557,29 +587,9 @@ export const EventListing3: IBlock = {
557
587
  "column-gap": "lg",
558
588
  "align-items": "center",
559
589
  },
560
- paginationLeftButton: {
561
- "background-color": "transparent",
562
- border: "1px solid var(--color-border)",
563
- "border-radius": "md",
564
- "padding-top": "xs",
565
- "padding-bottom": "xs",
566
- "padding-left": "base",
567
- "padding-right": "base",
568
- cursor: "pointer",
569
- },
570
- paginationText: {
571
- color: "text-1",
572
- },
573
- paginationRightButton: {
574
- "background-color": "transparent",
575
- border: "1px solid var(--color-border)",
576
- "border-radius": "md",
577
- "padding-top": "xs",
578
- "padding-bottom": "xs",
579
- "padding-left": "base",
580
- "padding-right": "base",
581
- cursor: "pointer",
582
- },
590
+ paginationLeftButton: {},
591
+ paginationText: {},
592
+ paginationRightButton: {},
583
593
  paginationLeftIcon: {
584
594
  height: "16px",
585
595
  width: "16px",
@@ -588,6 +598,24 @@ export const EventListing3: IBlock = {
588
598
  height: "16px",
589
599
  width: "16px",
590
600
  },
601
+ description: {
602
+ "max-width": "600px",
603
+ mobile: {
604
+ "text-align": "center",
605
+ },
606
+ },
607
+ header: {
608
+ mobile: {
609
+ display: "flex",
610
+ "flex-direction": "column",
611
+ "align-items": "center",
612
+ "row-gap": "base",
613
+ },
614
+ width: "100%",
615
+ display: "flex",
616
+ "column-gap": "base",
617
+ "margin-bottom": "3xl",
618
+ },
591
619
  },
592
620
  content: DEFAULT_CONTENT,
593
621
  config: {
@@ -599,12 +627,20 @@ export const EventListing3: IBlock = {
599
627
  level: 2,
600
628
  },
601
629
  },
602
-
603
- "cta-button": {
604
- selectedVariants: {
605
- Button_Variants: "Secondary",
630
+ "cta-buttons": [
631
+ {
632
+ "cta-button": {
633
+ selectedVariants: {},
634
+ },
606
635
  },
607
- },
636
+ {
637
+ "cta-button": {
638
+ selectedVariants: {
639
+ Button_Variants: "Secondary",
640
+ },
641
+ },
642
+ },
643
+ ],
608
644
  },
609
645
  },
610
646
  ],