@levo-so/blocks 0.1.52 → 0.1.58

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 (117) hide show
  1. package/package.json +4 -4
  2. package/src/blocks/about-us/about-us-1.schema.ts +14 -0
  3. package/src/blocks/about-us/about-us-1.tsx +4 -2
  4. package/src/blocks/about-us/about-us-2.schema.ts +48 -0
  5. package/src/blocks/about-us/about-us-2.tsx +6 -0
  6. package/src/blocks/blogs/blog-listing-1.schema.ts +10 -0
  7. package/src/blocks/blogs/blog-listing-2.schema.ts +42 -162
  8. package/src/blocks/blogs/blog-listing-2.tsx +7 -0
  9. package/src/blocks/blogs/blog-listing-3.schema.ts +9 -0
  10. package/src/blocks/blogs/blog-post-1.schema.ts +7 -1
  11. package/src/blocks/blogs/blog-post-1.tsx +1 -1
  12. package/src/blocks/blogs/blog-post-2.schema.ts +464 -28
  13. package/src/blocks/blogs/blog-post-2.tsx +6 -13
  14. package/src/blocks/blogs/blog-post-3.schema.ts +42 -0
  15. package/src/blocks/blogs/blog-post-3.tsx +4 -1
  16. package/src/blocks/calendar/calendar-1.schema.ts +537 -0
  17. package/src/blocks/calendar/calendar-1.tsx +145 -0
  18. package/src/blocks/cards/cards-10.schema.ts +52 -4
  19. package/src/blocks/cards/cards-10.tsx +13 -1
  20. package/src/blocks/cards/cards-14.schema.ts +532 -0
  21. package/src/blocks/cards/cards-14.tsx +54 -0
  22. package/src/blocks/cards/cards-15.schema.ts +277 -0
  23. package/src/blocks/cards/cards-15.tsx +40 -0
  24. package/src/blocks/cards/cards-6.schema.ts +46 -0
  25. package/src/blocks/cards/cards-6.tsx +27 -1
  26. package/src/blocks/cards/cards-7.tsx +2 -0
  27. package/src/blocks/carousel/carousel-2.schema.ts +1128 -0
  28. package/src/blocks/carousel/carousel-2.tsx +159 -0
  29. package/src/blocks/content/content-5.schema.ts +112 -6
  30. package/src/blocks/content/content-5.tsx +19 -3
  31. package/src/blocks/content/content-6.schema.ts +16 -3
  32. package/src/blocks/content/content-6.tsx +1 -0
  33. package/src/blocks/content/content-8.schema.ts +125 -0
  34. package/src/blocks/content/content-8.tsx +27 -0
  35. package/src/blocks/content/content-9.schema.ts +2729 -0
  36. package/src/blocks/content/content-9.tsx +91 -0
  37. package/src/blocks/cta/cta-2.schema.ts +46 -4
  38. package/src/blocks/cta/cta-2.tsx +9 -1
  39. package/src/blocks/embed/embed-1.schema.ts +100 -0
  40. package/src/blocks/event/ClientOnly.tsx +27 -0
  41. package/src/blocks/event/event-details.tsx +10 -3
  42. package/src/blocks/event/event-listing-3.tsx +9 -2
  43. package/src/blocks/event/event-listing-4.tsx +11 -2
  44. package/src/blocks/event/event-listing.tsx +11 -4
  45. package/src/blocks/faq/faq-1.schema.ts +58 -1
  46. package/src/blocks/faq/faq-1.tsx +18 -1
  47. package/src/blocks/faq/faq-2.tsx +2 -1
  48. package/src/blocks/faq/faq-3.schema.ts +6 -1
  49. package/src/blocks/faq/faq-3.tsx +1 -0
  50. package/src/blocks/features/features-1/features-1.schema.ts +2 -0
  51. package/src/blocks/features/features-1/variants/index.ts +2 -0
  52. package/src/blocks/features/features-1/variants/stylized-cards-v3.ts +451 -0
  53. package/src/blocks/features/features-4.schema.ts +358 -20
  54. package/src/blocks/features/features-4.tsx +3 -1
  55. package/src/blocks/features/features-6.tsx +2 -0
  56. package/src/blocks/filter-listing/filter-listing-1.schema.ts +614 -0
  57. package/src/blocks/filter-listing/filter-listing-1.tsx +128 -0
  58. package/src/blocks/footer/footer-6.schema.ts +2 -2
  59. package/src/blocks/hero/hero-11.schema.ts +849 -0
  60. package/src/blocks/hero/hero-11.tsx +59 -0
  61. package/src/blocks/hero/hero-12.schema.ts +712 -0
  62. package/src/blocks/hero/hero-12.tsx +76 -0
  63. package/src/blocks/hero/hero-13.schema.ts +238 -0
  64. package/src/blocks/hero/hero-13.tsx +31 -0
  65. package/src/blocks/hero/hero-4.tsx +2 -0
  66. package/src/blocks/hero/hero-5.tsx +2 -0
  67. package/src/blocks/hero/hero-7.tsx +2 -1
  68. package/src/blocks/hero/hero-8.tsx +2 -0
  69. package/src/blocks/hero/hero-9.schema.ts +5 -0
  70. package/src/blocks/hero/hero-9.tsx +2 -0
  71. package/src/blocks/index.ts +27 -0
  72. package/src/blocks/navbar/navbar-1.schema.ts +6 -6
  73. package/src/blocks/navbar/navbar-1.tsx +6 -7
  74. package/src/blocks/navbar/navbar-2.schema.ts +9 -9
  75. package/src/blocks/navbar/navbar-2.tsx +7 -8
  76. package/src/blocks/navbar/navbar-3.schema.ts +9 -9
  77. package/src/blocks/navbar/navbar-3.tsx +139 -114
  78. package/src/blocks/polling/polling-1.schema.ts +134 -0
  79. package/src/blocks/polling/polling-1.tsx +466 -0
  80. package/src/blocks/products/products-listing-2.schema.ts +596 -0
  81. package/src/blocks/products/products-listing-2.tsx +56 -0
  82. package/src/blocks/products/products-listing-3.schema.ts +818 -0
  83. package/src/blocks/products/products-listing-3.tsx +125 -0
  84. package/src/blocks/profile/profile-2.schema.ts +505 -0
  85. package/src/blocks/profile/profile-2.tsx +64 -0
  86. package/src/blocks/profile/profile-3.schema.ts +867 -0
  87. package/src/blocks/profile/profile-3.tsx +98 -0
  88. package/src/blocks/services/service-1.schema.ts +1743 -0
  89. package/src/blocks/services/service-1.tsx +139 -0
  90. package/src/blocks/services/service-2.schema.ts +433 -0
  91. package/src/blocks/services/service-2.tsx +98 -0
  92. package/src/blocks/services/service-3.schema.ts +631 -0
  93. package/src/blocks/services/service-3.tsx +135 -0
  94. package/src/blocks/tabs/tab-1.schema.ts +831 -0
  95. package/src/blocks/tabs/tab-1.tsx +126 -0
  96. package/src/blocks/tabs/tab-2.schema.ts +767 -0
  97. package/src/blocks/tabs/tab-2.tsx +60 -0
  98. package/src/blocks/team/team-3.schema.ts +5 -1
  99. package/src/blocks/team/team-3.tsx +7 -0
  100. package/src/blocks/team/team-4.schema.ts +17 -13
  101. package/src/blocks/team/team-4.tsx +4 -1
  102. package/src/blocks/team/team-5.schema.ts +369 -0
  103. package/src/blocks/team/team-5.tsx +38 -0
  104. package/src/blocks/testimonial/testimonial-1.tsx +0 -1
  105. package/src/blocks/testimonial/testimonial-2.tsx +2 -1
  106. package/src/blocks/testimonial/testimonial-3.tsx +2 -0
  107. package/src/blocks/testimonial/testimonial-4.tsx +2 -1
  108. package/src/blocks/testimonial/testimonial-5.tsx +2 -0
  109. package/src/blocks/testimonial/testimonial-6.tsx +2 -1
  110. package/src/blocks/testimonial/testimonial-7.schema.ts +438 -0
  111. package/src/blocks/testimonial/testimonial-7.tsx +125 -0
  112. package/src/blocks/timeline/timeline-1.schema.ts +741 -0
  113. package/src/blocks/timeline/timeline-1.tsx +52 -0
  114. package/src/blocks/users/edit-profile.schema.ts +294 -0
  115. package/src/blocks/users/edit-profile.tsx +184 -0
  116. package/src/schemas/blocks.ts +64 -12
  117. package/src/schemas/categories.ts +36 -0
@@ -11,26 +11,6 @@ const DUMMY_ICON = {
11
11
  },
12
12
  };
13
13
 
14
- const ICON_IMAGE = {
15
- id: "7141014160938075687",
16
- location: "https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH.png",
17
- kind: "image",
18
- mimetype: "image/png",
19
- srcset: {
20
- "1080w":
21
- "https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-1080w.webp",
22
- "1200w":
23
- "https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-1200w.webp",
24
- "1920w":
25
- "https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-1920w.webp",
26
- "320w": "https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-320w.webp",
27
- "640w": "https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-640w.webp",
28
- "750w": "https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-750w.webp",
29
- "828w": "https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-828w.webp",
30
- path: "https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-640w.webp 640w, https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-1080w.webp 1080w, https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-1200w.webp 1200w, https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-1920w.webp 1920w, https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-320w.webp 320w, https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-750w.webp 750w, https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-828w.webp 828w",
31
- },
32
- };
33
-
34
14
  const PRODUCT_IMAGE = {
35
15
  id: "7141014160938075687",
36
16
  location: "https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH.png",
@@ -103,6 +83,8 @@ const DEFAULT_CONTENT = {
103
83
  // Specifications 2 section
104
84
  specifications_2_wrapper: null,
105
85
  specifications_2_title: "Service Level Agreements",
86
+ specifications_2_description:
87
+ "We believe in simple, science-backed nutrition that creates lasting change. Here’s what sets us apart:",
106
88
  specifications_2: [
107
89
  {
108
90
  spec_2_item: null,
@@ -267,6 +249,17 @@ export const Features4: IBlock = {
267
249
  max_characters: 50,
268
250
  },
269
251
  },
252
+ {
253
+ key: "specifications_2_description",
254
+ label: "Specifications 2 Description",
255
+ field_interface: "TypographyWidget",
256
+ hint: {
257
+ prompt_description:
258
+ "Description for the specifications 2 section (e.g., 'Service Level Agreements'). Provide clear context for the additional specifications.",
259
+ min_characters: 15,
260
+ max_characters: 50,
261
+ },
262
+ },
270
263
  {
271
264
  key: "specifications_2",
272
265
  label: "Specifications 2",
@@ -315,6 +308,11 @@ export const Features4: IBlock = {
315
308
  },
316
309
  ],
317
310
  },
311
+ {
312
+ key: "cta",
313
+ label: "CTA",
314
+ field_interface: "ButtonWidget",
315
+ },
318
316
  {
319
317
  key: "product_image",
320
318
  label: "Product Image",
@@ -612,5 +610,345 @@ export const Features4: IBlock = {
612
610
  },
613
611
  },
614
612
  },
613
+ {
614
+ title: "Variant 1",
615
+ key: "Variant 1",
616
+ styles: {
617
+ layout: {
618
+ width: "100%",
619
+ "padding-top": "5xl",
620
+ "padding-bottom": "5xl",
621
+ "padding-left": "8xl",
622
+ "padding-right": "8xl",
623
+ tablet: {
624
+ "padding-top": "3xl",
625
+ "padding-bottom": "3xl",
626
+ "padding-left": "4xl",
627
+ "padding-right": "4xl",
628
+ },
629
+ },
630
+ container: {
631
+ "margin-left": "auto",
632
+ "margin-right": "auto",
633
+ mobile: {
634
+ filter: "none",
635
+ },
636
+ filter: "none",
637
+ "max-width": "auto",
638
+ },
639
+ content_wrapper: {
640
+ display: "flex",
641
+ "align-items": "center",
642
+ "column-gap": "4xl",
643
+ tablet: {
644
+ "flex-direction": "column",
645
+ "row-gap": "3xl",
646
+ filter: "none",
647
+ },
648
+ "flex-direction": "row-reverse",
649
+ },
650
+ header_section: {
651
+ "text-align": "center",
652
+ "margin-bottom": "4xl",
653
+ display: "none",
654
+ },
655
+ title: {
656
+ color: "text-1",
657
+ "margin-bottom": "sm",
658
+ },
659
+ subtitle: {
660
+ color: "text-2",
661
+ },
662
+ specifications_wrapper: {
663
+ flex: "1",
664
+ "max-width": "50%",
665
+ width: "100%",
666
+ tablet: {
667
+ flex: "auto",
668
+ "max-width": "100%",
669
+ filter: "none",
670
+ },
671
+ filter: "none",
672
+ mobile: {
673
+ filter: "none",
674
+ },
675
+ },
676
+ specifications_levoGroup: {
677
+ display: "none",
678
+ "grid-template-columns": "repeat(2, 1fr)",
679
+ gap: "xl",
680
+ "margin-bottom": "3xl",
681
+ mobile: {
682
+ "grid-template-columns": "1fr",
683
+ gap: "lg",
684
+ },
685
+ },
686
+ specifications: [
687
+ {
688
+ spec_item: {
689
+ display: "flex",
690
+ "align-items": "start",
691
+ "column-gap": "sm",
692
+ },
693
+ icon: {
694
+ width: "1.5rem",
695
+ height: "1.5rem",
696
+ "margin-top": "2xs",
697
+ color: "brand",
698
+ },
699
+ value: {
700
+ color: "text-1",
701
+ "margin-bottom": "3xs",
702
+ },
703
+ label: {
704
+ color: "text-2",
705
+ },
706
+ },
707
+ {
708
+ spec_item: {
709
+ display: "flex",
710
+ "align-items": "start",
711
+ "column-gap": "sm",
712
+ },
713
+ icon: {
714
+ width: "1.5rem",
715
+ height: "1.5rem",
716
+ "margin-top": "2xs",
717
+ color: "brand",
718
+ },
719
+ value: {
720
+ color: "text-1",
721
+ "margin-bottom": "3xs",
722
+ },
723
+ label: {
724
+ color: "text-2",
725
+ },
726
+ },
727
+ {
728
+ spec_item: {
729
+ display: "flex",
730
+ "align-items": "start",
731
+ "column-gap": "sm",
732
+ },
733
+ icon: {
734
+ width: "1.5rem",
735
+ height: "1.5rem",
736
+ "margin-top": "2xs",
737
+ color: "brand",
738
+ },
739
+ value: {
740
+ color: "text-1",
741
+ "margin-bottom": "3xs",
742
+ },
743
+ label: {
744
+ color: "text-2",
745
+ },
746
+ },
747
+ {
748
+ spec_item: {
749
+ display: "flex",
750
+ "align-items": "start",
751
+ "column-gap": "sm",
752
+ },
753
+ icon: {
754
+ width: "1.5rem",
755
+ height: "1.5rem",
756
+ "margin-top": "2xs",
757
+ color: "brand",
758
+ },
759
+ value: {
760
+ color: "text-1",
761
+ "margin-bottom": "3xs",
762
+ },
763
+ label: {
764
+ color: "text-2",
765
+ },
766
+ },
767
+ {
768
+ spec_item: {
769
+ display: "flex",
770
+ "align-items": "start",
771
+ "column-gap": "sm",
772
+ },
773
+ icon: {
774
+ width: "1.5rem",
775
+ height: "1.5rem",
776
+ "margin-top": "2xs",
777
+ color: "brand",
778
+ },
779
+ value: {
780
+ color: "text-1",
781
+ "margin-bottom": "3xs",
782
+ },
783
+ label: {
784
+ color: "text-2",
785
+ },
786
+ },
787
+ {
788
+ spec_item: {
789
+ display: "flex",
790
+ "align-items": "start",
791
+ "column-gap": "sm",
792
+ },
793
+ icon: {
794
+ width: "1.5rem",
795
+ height: "1.5rem",
796
+ "margin-top": "2xs",
797
+ color: "brand",
798
+ },
799
+ value: {
800
+ color: "text-1",
801
+ "margin-bottom": "3xs",
802
+ },
803
+ label: {
804
+ color: "text-2",
805
+ },
806
+ },
807
+ ],
808
+ specifications_2_wrapper: {
809
+ "background-color": "white",
810
+ padding: "lg",
811
+ },
812
+ specifications_2_title: {
813
+ color: "text-1",
814
+ "margin-bottom": "base",
815
+ "font-size": "3xl",
816
+ },
817
+ specifications_2_levoGroup: {
818
+ display: "flex",
819
+ "flex-direction": "column",
820
+ gap: "base",
821
+ "row-gap": "3xs",
822
+ "margin-top": "base",
823
+ },
824
+ specifications_2: [
825
+ {
826
+ spec_2_item: {
827
+ display: "flex",
828
+ "align-items": "center",
829
+ "column-gap": "sm",
830
+ "justify-content": "start",
831
+ },
832
+ icon: {
833
+ width: "22px",
834
+ height: "22px",
835
+ "margin-top": "none",
836
+ color: "brand",
837
+ "font-size": "22px",
838
+ },
839
+ value: {
840
+ "margin-bottom": "3xs",
841
+ "font-size": "base",
842
+ "font-weight": 400,
843
+ },
844
+ label: {
845
+ color: "text-2",
846
+ display: "none",
847
+ },
848
+ },
849
+ {
850
+ spec_2_item: {
851
+ display: "flex",
852
+ "align-items": "center",
853
+ "column-gap": "sm",
854
+ "justify-content": "start",
855
+ },
856
+ icon: {
857
+ width: "22px",
858
+ height: "22px",
859
+ "margin-top": "none",
860
+ color: "brand",
861
+ "font-size": "22px",
862
+ },
863
+ value: {
864
+ "margin-bottom": "3xs",
865
+ "font-size": "base",
866
+ "font-weight": 400,
867
+ },
868
+ label: {
869
+ color: "text-2",
870
+ display: "none",
871
+ },
872
+ },
873
+ {
874
+ spec_2_item: {
875
+ display: "flex",
876
+ "align-items": "center",
877
+ "column-gap": "sm",
878
+ "justify-content": "start",
879
+ },
880
+ icon: {
881
+ width: "22px",
882
+ height: "22px",
883
+ "margin-top": "none",
884
+ color: "brand",
885
+ "font-size": "22px",
886
+ },
887
+ value: {
888
+ "margin-bottom": "3xs",
889
+ "font-size": "base",
890
+ "font-weight": 400,
891
+ },
892
+ label: {
893
+ color: "text-2",
894
+ display: "none",
895
+ },
896
+ },
897
+ {
898
+ spec_2_item: {
899
+ display: "flex",
900
+ "align-items": "start",
901
+ "column-gap": "sm",
902
+ },
903
+ icon: {
904
+ width: "22px",
905
+ height: "22px",
906
+ "margin-top": "2xs",
907
+ color: "brand",
908
+ "font-size": "22px",
909
+ },
910
+ value: {
911
+ color: "text-1",
912
+ "margin-bottom": "3xs",
913
+ "font-size": "lg",
914
+ "font-weight": 400,
915
+ },
916
+ label: {
917
+ color: "text-2",
918
+ display: "none",
919
+ },
920
+ },
921
+ ],
922
+ product_image: {
923
+ width: "50%",
924
+ height: "100%",
925
+ "border-radius": "base",
926
+ "object-fit": "cover",
927
+ tablet: {
928
+ filter: "none",
929
+ width: "100%",
930
+ },
931
+ },
932
+ },
933
+ content: DEFAULT_CONTENT,
934
+ config: {
935
+ title: {
936
+ selectedVariants: {
937
+ Heading_Level: "H2",
938
+ },
939
+ heading: {
940
+ level: 2,
941
+ },
942
+ },
943
+ specifications_2_title: {
944
+ selectedVariants: {
945
+ Heading_Level: "H2",
946
+ },
947
+ heading: {
948
+ level: 2,
949
+ },
950
+ },
951
+ },
952
+ },
615
953
  ],
616
954
  };
@@ -1,6 +1,7 @@
1
1
  import {
2
2
  type ILevoBlockBaseProps,
3
3
  Box,
4
+ Button,
4
5
  Container,
5
6
  Heading,
6
7
  Icon,
@@ -41,6 +42,7 @@ const Features4: React.FC<ILevoBlockBaseProps<IFeatures4Content>> = ({
41
42
 
42
43
  <Box elementKey="specifications_2_wrapper">
43
44
  <Heading elementKey="specifications_2_title" />
45
+ <Typography elementKey={`specifications_2_description`} />
44
46
  <Box elementKey="specifications_2_levoGroup" data-levo_group>
45
47
  {(content?.specifications_2 ?? [])?.map((_, index) => (
46
48
  <Box
@@ -58,9 +60,9 @@ const Features4: React.FC<ILevoBlockBaseProps<IFeatures4Content>> = ({
58
60
  </Box>
59
61
  ))}
60
62
  </Box>
63
+ <Button elementKey={`cta`} />
61
64
  </Box>
62
65
  </Box>
63
-
64
66
  <Media
65
67
  elementKey="product_image"
66
68
  alt="Product specification image"
@@ -1,3 +1,5 @@
1
+ "use client";
2
+
1
3
  import type { CarouselApi } from "@levo-so/studio";
2
4
  import {
3
5
  type ILevoBlockBaseProps,