@levo-so/blocks 0.1.75 → 0.1.77

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
@@ -52,6 +52,8 @@ const DEFAULT_CONTENT = {
52
52
  title: "Building Wealth Together",
53
53
  description:
54
54
  "Our comprehensive financial services help you achieve your goals through expert guidance and innovative solutions.",
55
+ ctas_LevoGroup: null,
56
+ ctas: [{ cta: "Learn More" }, { cta: "View All" }],
55
57
  blogs: Array(3)
56
58
  ?.fill(0)
57
59
  ?.map((_) => BLOG_CONTENT),
@@ -61,95 +63,174 @@ const DEFAULT_CONTENT = {
61
63
  "pagination-right": "Next",
62
64
  };
63
65
 
64
- const BLOG_STYLE = {
65
- blog: {
66
- display: "flex",
67
- "column-gap": "lg",
68
- "border-radius": "base",
69
- "border-width": "1.5px",
70
- "border-style": "solid",
71
- "border-color": "border",
72
- "padding-left": "xl",
73
- "padding-right": "xl",
74
- "padding-top": "lg",
75
- "padding-bottom": "lg",
76
- "box-shadow": "md",
77
- },
78
- cover_image: {
79
- height: "184px",
80
- width: "64",
81
- "border-radius": "base",
82
- "object-fit": "cover",
83
- },
84
- blog_content_wrapper: {
85
- display: "flex",
86
- width: "100%",
87
- flex: "1",
88
- "align-items": "center",
89
- "column-gap": "lg",
90
- },
91
- text_content_wrapper: {
92
- display: "flex",
93
- flex: "1",
94
- "flex-direction": "column",
95
- "row-gap": "xs",
96
- },
97
- timestamp_icon: {},
98
- timestamp_wrapper: {
99
- display: "flex",
100
- width: "fit-content",
101
- "align-items": "center",
102
- "column-gap": "2xs",
103
- "border-radius": "xl",
104
- "background-color": "#e9e9eb",
105
- "padding-left": "xs",
106
- "padding-right": "xs",
107
- "padding-top": "5xs",
108
- "padding-bottom": "5xs",
109
- },
110
- timestamp: {
111
- "font-size": "sm",
112
- "font-weight": "semibold",
113
- color: "text-2",
114
- },
115
- blog_info_wrapper: {
116
- display: "flex",
117
- width: "100%",
118
- "flex-direction": "column",
119
- "row-gap": "3xs",
120
- },
121
- title: {
122
- color: "text-1",
123
- },
124
- description: {
125
- "font-size": "base",
126
- color: "text-2",
127
- },
128
- author_wrapper: {
129
- display: "flex",
130
- "align-items": "center",
131
- "column-gap": "base",
132
- },
133
- author_image: {
134
- height: "36px",
135
- width: "36px",
136
- "border-radius": "100%",
137
- "object-fit": "cover",
138
- },
139
- author_name: {
140
- color: "text-1",
141
- },
142
- author_description: {
143
- "font-size": "sm",
144
- color: "text-2",
145
- },
146
- cta: {},
66
+ const DEFAULT_CONTENT_NO_BORDER = {
67
+ layout: null,
68
+ container: null,
69
+ text_wrapper: null,
70
+ title: "Building Wealth Together",
71
+ description:
72
+ "Our comprehensive financial services help you achieve your goals through expert guidance and innovative solutions.",
73
+ ctas_LevoGroup: null,
74
+ ctas: [
75
+ {
76
+ cta: "Learn More",
77
+ },
78
+ {
79
+ cta: "View All",
80
+ },
81
+ ],
82
+ blogs: [
83
+ {
84
+ blog: null,
85
+ cover_image: {
86
+ id: "7141014160938075687",
87
+ location: "https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH.png",
88
+ kind: "image",
89
+ mimetype: "image/png",
90
+ srcset: {
91
+ "1080w": "https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-1080w.webp",
92
+ "1200w": "https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-1200w.webp",
93
+ "1920w": "https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-1920w.webp",
94
+ "320w": "https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-320w.webp",
95
+ "640w": "https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-640w.webp",
96
+ "750w": "https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-750w.webp",
97
+ "828w": "https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-828w.webp",
98
+ 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",
99
+ },
100
+ },
101
+ blog_content_wrapper: null,
102
+ text_content_wrapper: null,
103
+ timestamp_wrapper: null,
104
+ timestamp_icon: null,
105
+ timestamp: "Today, 12:00",
106
+ title:
107
+ "Our comprehensive financial services help you achieve your goals through expert guidance and innovative solutions.",
108
+ description:
109
+ "Our comprehensive financial services help you achieve your goals through expert guidance and innovative solutions.",
110
+ author_wrapper: null,
111
+ author_image: {
112
+ kind: "icon",
113
+ data: {
114
+ id: "archive-minus",
115
+ label: "Archive Minus",
116
+ tags: ["archive", "custom", "directional", "minus"],
117
+ svgCode:
118
+ '<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M14.5 11.4H9.5C9.09 11.4 8.75 11.06 8.75 10.65C8.75 10.24 9.09 9.90002 9.5 9.90002H14.5C14.91 9.90002 15.25 10.24 15.25 10.65C15.25 11.06 14.91 11.4 14.5 11.4Z" fill="var(--color-icon-primary)"/>\n<path d="M4.92957 22.75C4.50957 22.75 4.11957 22.65 3.76957 22.45C2.99957 22 2.55957 21.09 2.55957 19.96V5.86C2.55957 3.32 4.62957 1.25 7.16957 1.25H16.8196C19.3596 1.25 21.4296 3.32 21.4296 5.86V19.95C21.4296 21.08 20.9896 21.99 20.2196 22.44C19.4496 22.89 18.4396 22.84 17.4496 22.29L12.5696 19.58C12.2796 19.42 11.7096 19.42 11.4196 19.58L6.53957 22.29C5.99957 22.59 5.44957 22.75 4.92957 22.75ZM7.17957 2.75C5.46957 2.75 4.06957 4.15 4.06957 5.86V19.95C4.06957 20.54 4.23957 20.98 4.53957 21.15C4.83957 21.33 5.30957 21.27 5.81957 20.98L10.6996 18.27C11.4396 17.86 12.5596 17.86 13.2996 18.27L18.1796 20.98C18.6896 21.27 19.1596 21.33 19.4596 21.15C19.7596 20.97 19.9296 20.53 19.9296 19.95V5.86C19.9296 4.15 18.5296 2.75 16.8196 2.75H7.17957Z" fill="var(--color-icon-primary)"/>\n</svg>',
119
+ },
120
+ },
121
+ author_name: "John Doe",
122
+ author_description: "Marketing Coordinator",
123
+ cta: "Read more",
124
+ },
125
+ {
126
+ blog: null,
127
+ cover_image: {
128
+ id: "7141014160938075687",
129
+ location: "https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH.png",
130
+ kind: "image",
131
+ mimetype: "image/png",
132
+ srcset: {
133
+ "1080w": "https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-1080w.webp",
134
+ "1200w": "https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-1200w.webp",
135
+ "1920w": "https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-1920w.webp",
136
+ "320w": "https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-320w.webp",
137
+ "640w": "https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-640w.webp",
138
+ "750w": "https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-750w.webp",
139
+ "828w": "https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-828w.webp",
140
+ 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",
141
+ },
142
+ },
143
+ blog_content_wrapper: null,
144
+ text_content_wrapper: null,
145
+ timestamp_wrapper: null,
146
+ timestamp_icon: {
147
+ kind: "icon",
148
+ data: {
149
+ id: "archive-minus",
150
+ label: "Archive Minus",
151
+ tags: ["archive", "custom", "directional", "minus"],
152
+ svgCode:
153
+ '<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M14.5 11.4H9.5C9.09 11.4 8.75 11.06 8.75 10.65C8.75 10.24 9.09 9.90002 9.5 9.90002H14.5C14.91 9.90002 15.25 10.24 15.25 10.65C15.25 11.06 14.91 11.4 14.5 11.4Z" fill="var(--color-icon-primary)"/>\n<path d="M4.92957 22.75C4.50957 22.75 4.11957 22.65 3.76957 22.45C2.99957 22 2.55957 21.09 2.55957 19.96V5.86C2.55957 3.32 4.62957 1.25 7.16957 1.25H16.8196C19.3596 1.25 21.4296 3.32 21.4296 5.86V19.95C21.4296 21.08 20.9896 21.99 20.2196 22.44C19.4496 22.89 18.4396 22.84 17.4496 22.29L12.5696 19.58C12.2796 19.42 11.7096 19.42 11.4196 19.58L6.53957 22.29C5.99957 22.59 5.44957 22.75 4.92957 22.75ZM7.17957 2.75C5.46957 2.75 4.06957 4.15 4.06957 5.86V19.95C4.06957 20.54 4.23957 20.98 4.53957 21.15C4.83957 21.33 5.30957 21.27 5.81957 20.98L10.6996 18.27C11.4396 17.86 12.5596 17.86 13.2996 18.27L18.1796 20.98C18.6896 21.27 19.1596 21.33 19.4596 21.15C19.7596 20.97 19.9296 20.53 19.9296 19.95V5.86C19.9296 4.15 18.5296 2.75 16.8196 2.75H7.17957Z" fill="var(--color-icon-primary)"/>\n</svg>',
154
+ },
155
+ },
156
+ timestamp: "Today, 12:00",
157
+ title:
158
+ "Our comprehensive financial services help you achieve your goals through expert guidance and innovative solutions.",
159
+ description:
160
+ "Our comprehensive financial services help you achieve your goals through expert guidance and innovative solutions.",
161
+ author_wrapper: null,
162
+ author_image: {
163
+ kind: "icon",
164
+ data: {
165
+ id: "archive-minus",
166
+ label: "Archive Minus",
167
+ tags: ["archive", "custom", "directional", "minus"],
168
+ svgCode:
169
+ '<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M14.5 11.4H9.5C9.09 11.4 8.75 11.06 8.75 10.65C8.75 10.24 9.09 9.90002 9.5 9.90002H14.5C14.91 9.90002 15.25 10.24 15.25 10.65C15.25 11.06 14.91 11.4 14.5 11.4Z" fill="var(--color-icon-primary)"/>\n<path d="M4.92957 22.75C4.50957 22.75 4.11957 22.65 3.76957 22.45C2.99957 22 2.55957 21.09 2.55957 19.96V5.86C2.55957 3.32 4.62957 1.25 7.16957 1.25H16.8196C19.3596 1.25 21.4296 3.32 21.4296 5.86V19.95C21.4296 21.08 20.9896 21.99 20.2196 22.44C19.4496 22.89 18.4396 22.84 17.4496 22.29L12.5696 19.58C12.2796 19.42 11.7096 19.42 11.4196 19.58L6.53957 22.29C5.99957 22.59 5.44957 22.75 4.92957 22.75ZM7.17957 2.75C5.46957 2.75 4.06957 4.15 4.06957 5.86V19.95C4.06957 20.54 4.23957 20.98 4.53957 21.15C4.83957 21.33 5.30957 21.27 5.81957 20.98L10.6996 18.27C11.4396 17.86 12.5596 17.86 13.2996 18.27L18.1796 20.98C18.6896 21.27 19.1596 21.33 19.4596 21.15C19.7596 20.97 19.9296 20.53 19.9296 19.95V5.86C19.9296 4.15 18.5296 2.75 16.8196 2.75H7.17957Z" fill="var(--color-icon-primary)"/>\n</svg>',
170
+ },
171
+ },
172
+ author_name: "John Doe",
173
+ author_description: "Marketing Coordinator",
174
+ cta: "Read more",
175
+ },
176
+ {
177
+ blog: null,
178
+ cover_image: {
179
+ id: "7141014160938075687",
180
+ location: "https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH.png",
181
+ kind: "image",
182
+ mimetype: "image/png",
183
+ srcset: {
184
+ "1080w": "https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-1080w.webp",
185
+ "1200w": "https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-1200w.webp",
186
+ "1920w": "https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-1920w.webp",
187
+ "320w": "https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-320w.webp",
188
+ "640w": "https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-640w.webp",
189
+ "750w": "https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-750w.webp",
190
+ "828w": "https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-828w.webp",
191
+ 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",
192
+ },
193
+ },
194
+ blog_content_wrapper: null,
195
+ text_content_wrapper: null,
196
+ timestamp_wrapper: null,
197
+ timestamp_icon: {
198
+ kind: "icon",
199
+ data: {
200
+ id: "archive-minus",
201
+ label: "Archive Minus",
202
+ tags: ["archive", "custom", "directional", "minus"],
203
+ svgCode:
204
+ '<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M14.5 11.4H9.5C9.09 11.4 8.75 11.06 8.75 10.65C8.75 10.24 9.09 9.90002 9.5 9.90002H14.5C14.91 9.90002 15.25 10.24 15.25 10.65C15.25 11.06 14.91 11.4 14.5 11.4Z" fill="var(--color-icon-primary)"/>\n<path d="M4.92957 22.75C4.50957 22.75 4.11957 22.65 3.76957 22.45C2.99957 22 2.55957 21.09 2.55957 19.96V5.86C2.55957 3.32 4.62957 1.25 7.16957 1.25H16.8196C19.3596 1.25 21.4296 3.32 21.4296 5.86V19.95C21.4296 21.08 20.9896 21.99 20.2196 22.44C19.4496 22.89 18.4396 22.84 17.4496 22.29L12.5696 19.58C12.2796 19.42 11.7096 19.42 11.4196 19.58L6.53957 22.29C5.99957 22.59 5.44957 22.75 4.92957 22.75ZM7.17957 2.75C5.46957 2.75 4.06957 4.15 4.06957 5.86V19.95C4.06957 20.54 4.23957 20.98 4.53957 21.15C4.83957 21.33 5.30957 21.27 5.81957 20.98L10.6996 18.27C11.4396 17.86 12.5596 17.86 13.2996 18.27L18.1796 20.98C18.6896 21.27 19.1596 21.33 19.4596 21.15C19.7596 20.97 19.9296 20.53 19.9296 19.95V5.86C19.9296 4.15 18.5296 2.75 16.8196 2.75H7.17957Z" fill="var(--color-icon-primary)"/>\n</svg>',
205
+ },
206
+ },
207
+ timestamp: "Today, 12:00",
208
+ title:
209
+ "Our comprehensive financial services help you achieve your goals through expert guidance and innovative solutions.",
210
+ description:
211
+ "Our comprehensive financial services help you achieve your goals through expert guidance and innovative solutions.",
212
+ author_wrapper: null,
213
+ author_image: {
214
+ kind: "icon",
215
+ data: {
216
+ id: "archive-minus",
217
+ label: "Archive Minus",
218
+ tags: ["archive", "custom", "directional", "minus"],
219
+ svgCode:
220
+ '<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M14.5 11.4H9.5C9.09 11.4 8.75 11.06 8.75 10.65C8.75 10.24 9.09 9.90002 9.5 9.90002H14.5C14.91 9.90002 15.25 10.24 15.25 10.65C15.25 11.06 14.91 11.4 14.5 11.4Z" fill="var(--color-icon-primary)"/>\n<path d="M4.92957 22.75C4.50957 22.75 4.11957 22.65 3.76957 22.45C2.99957 22 2.55957 21.09 2.55957 19.96V5.86C2.55957 3.32 4.62957 1.25 7.16957 1.25H16.8196C19.3596 1.25 21.4296 3.32 21.4296 5.86V19.95C21.4296 21.08 20.9896 21.99 20.2196 22.44C19.4496 22.89 18.4396 22.84 17.4496 22.29L12.5696 19.58C12.2796 19.42 11.7096 19.42 11.4196 19.58L6.53957 22.29C5.99957 22.59 5.44957 22.75 4.92957 22.75ZM7.17957 2.75C5.46957 2.75 4.06957 4.15 4.06957 5.86V19.95C4.06957 20.54 4.23957 20.98 4.53957 21.15C4.83957 21.33 5.30957 21.27 5.81957 20.98L10.6996 18.27C11.4396 17.86 12.5596 17.86 13.2996 18.27L18.1796 20.98C18.6896 21.27 19.1596 21.33 19.4596 21.15C19.7596 20.97 19.9296 20.53 19.9296 19.95V5.86C19.9296 4.15 18.5296 2.75 16.8196 2.75H7.17957Z" fill="var(--color-icon-primary)"/>\n</svg>',
221
+ },
222
+ },
223
+ author_name: "John Doe",
224
+ author_description: "Marketing Coordinator",
225
+ cta: "Read more",
226
+ },
227
+ ],
228
+ "pagination-wrapper": null,
229
+ "pagination-left": "Back",
230
+ "pagination-text": "",
231
+ "pagination-right": "Next",
147
232
  };
148
233
 
149
- const BLOGS_STYLES = Array(3)
150
- ?.fill(0)
151
- ?.map((_) => BLOG_STYLE);
152
-
153
234
  export type IBlogListing1Content = typeof DEFAULT_CONTENT;
154
235
 
155
236
  export const BlogListing1: IBlock = {
@@ -170,6 +251,12 @@ export const BlogListing1: IBlock = {
170
251
  field_interface: "ContainerWidget",
171
252
  // No hint needed: visual/container only
172
253
  },
254
+ {
255
+ key: "header",
256
+ label: "Header",
257
+ field_interface: "BoxWidget",
258
+ // No hint needed: layout grouping only
259
+ },
173
260
  {
174
261
  key: "text_wrapper",
175
262
  label: "Text Wrapper",
@@ -200,6 +287,20 @@ export const BlogListing1: IBlock = {
200
287
  max_characters: 140,
201
288
  },
202
289
  },
290
+ {
291
+ key: "ctas",
292
+ label: "CTAs",
293
+ kind: "group",
294
+ field_interface: "BoxWidget",
295
+ fields: [
296
+ {
297
+ key: "cta",
298
+ label: "CTA",
299
+ field_interface: "ButtonWidget",
300
+ },
301
+ ],
302
+ // No hint needed: layout grouping only
303
+ },
203
304
  {
204
305
  key: "blogs",
205
306
  label: "Blogs",
@@ -207,9 +308,9 @@ export const BlogListing1: IBlock = {
207
308
  field_interface: "BoxWidget",
208
309
  hint: {
209
310
  prompt_description:
210
- "A repeating grid of featured blog article cards for the month. Each card highlights a blog with image, headline, excerpt, author, and meta info. Should feel lively and inviting.",
211
- min_items: 6, // as per screenshot; six visible cards in a 3x2 grid
212
- max_items: 9, // allow pagination flexibility
311
+ "Auto-populated grid of blog article cards. Each card displays real blog data (cover image, title, excerpt, published date, author info) with automatic click handling. Styling remains configurable.",
312
+ min_items: 6,
313
+ max_items: 9,
213
314
  },
214
315
  fields: [
215
316
  {
@@ -224,11 +325,17 @@ export const BlogListing1: IBlock = {
224
325
  field_interface: "ImageWidget",
225
326
  hint: {
226
327
  prompt_description:
227
- "Blog post main thumbnail image. Should clearly represent the article or theme, visually engaging, and high quality. Prefer landscape orientation to fit card.",
328
+ "Automatically populated from blog cover_image. Styling remains configurable.",
228
329
  orientation: "landscape",
229
330
  size: "large",
230
331
  usecase: "hero",
231
332
  },
333
+ options: {
334
+ module_field: {
335
+ module: "blog",
336
+ key: "cover_image",
337
+ },
338
+ },
232
339
  },
233
340
  {
234
341
  key: "blog_content_wrapper",
@@ -242,6 +349,12 @@ export const BlogListing1: IBlock = {
242
349
  field_interface: "BoxWidget",
243
350
  // No hint needed: layout only
244
351
  },
352
+ {
353
+ key: "content_header",
354
+ label: "Content Header",
355
+ field_interface: "BoxWidget",
356
+ // No hint needed: layout only
357
+ },
245
358
  {
246
359
  key: "timestamp_wrapper",
247
360
  label: "Timestamp Wrapper",
@@ -266,11 +379,46 @@ export const BlogListing1: IBlock = {
266
379
  field_interface: "TypographyWidget",
267
380
  hint: {
268
381
  prompt_description:
269
- "Publish time information for the blog post. Should be brief (e.g. 'Today', '6 minutes ago', or 'June 5'). Neutral, clear style.",
382
+ "Automatically populated from blog published_at date in 'DD MMM, YYYY' format. Styling remains configurable.",
270
383
  usecase: "date",
271
384
  min_characters: 8,
272
385
  max_characters: 20,
273
386
  },
387
+ options: {
388
+ module_field: {
389
+ module: "blog",
390
+ key: "published_at",
391
+ },
392
+ },
393
+ },
394
+ {
395
+ key: "category_wrapper",
396
+ label: "Category Wrapper",
397
+ field_interface: "BoxWidget",
398
+ // No hint needed: layout only
399
+ },
400
+ {
401
+ key: "category_icon",
402
+ label: "Category Icon",
403
+ field_interface: "IconWidget",
404
+ hint: {
405
+ prompt_description:
406
+ "Small icon representing time or date, displayed next to the category. Should be simple, clear, and easily recognizable at small sizes.",
407
+ size: "icon",
408
+ orientation: "square",
409
+ usecase: "icon",
410
+ },
411
+ },
412
+ {
413
+ key: "category",
414
+ label: "Timestamp",
415
+ field_interface: "TypographyWidget",
416
+ options: {
417
+ module_field: {
418
+ module: "blog",
419
+ key: "categories",
420
+ },
421
+ },
274
422
  },
275
423
  {
276
424
  key: "blog_info_wrapper",
@@ -284,11 +432,17 @@ export const BlogListing1: IBlock = {
284
432
  field_interface: "HeadingWidget",
285
433
  hint: {
286
434
  prompt_description:
287
- "Blog article headline. Clear, bold, and appealing. Should entice users to read. Ideally not more than one line in the card, use a friendly, magazine-like tone.",
435
+ "Automatically populated from blog title. Styling remains configurable.",
288
436
  usecase: "title",
289
437
  min_characters: 35,
290
438
  max_characters: 60,
291
439
  },
440
+ options: {
441
+ module_field: {
442
+ module: "blog",
443
+ key: "title",
444
+ },
445
+ },
292
446
  },
293
447
  {
294
448
  key: "description",
@@ -296,11 +450,17 @@ export const BlogListing1: IBlock = {
296
450
  field_interface: "TypographyWidget",
297
451
  hint: {
298
452
  prompt_description:
299
- "Short excerpt or summary of the blog post content. Should be 1-2 sentences, informative, and prompt curiosity. Keep it concise and editorial.",
453
+ "Automatically populated from blog excerpt. Styling remains configurable.",
300
454
  usecase: "description",
301
455
  min_characters: 60,
302
456
  max_characters: 130,
303
457
  },
458
+ options: {
459
+ module_field: {
460
+ module: "blog",
461
+ key: "summary",
462
+ },
463
+ },
304
464
  },
305
465
  {
306
466
  key: "author_wrapper",
@@ -332,11 +492,17 @@ export const BlogListing1: IBlock = {
332
492
  field_interface: "HeadingWidget",
333
493
  hint: {
334
494
  prompt_description:
335
- "Author's full name, as displayed in byline. Preferably real or realistic names.",
495
+ "Automatically populated from blog author data. Styling remains configurable.",
336
496
  usecase: "author",
337
497
  min_characters: 5,
338
498
  max_characters: 25,
339
499
  },
500
+ options: {
501
+ module_field: {
502
+ module: "blog",
503
+ key: "authors",
504
+ },
505
+ },
340
506
  },
341
507
  {
342
508
  key: "author_description",
@@ -344,11 +510,17 @@ export const BlogListing1: IBlock = {
344
510
  field_interface: "TypographyWidget",
345
511
  hint: {
346
512
  prompt_description:
347
- "Short description or job title of the author, e.g., 'Content Strategist', 'Lifestyle Editor'. Keep it short and professional.",
513
+ "Short description or job title of the author, e.g., 'Content Strategist', 'Lifestyle Editor'. Keep it short and professional. Automatically populated from blog author data.",
348
514
  usecase: "designation",
349
515
  min_characters: 10,
350
516
  max_characters: 30,
351
517
  },
518
+ options: {
519
+ module_field: {
520
+ module: "blog",
521
+ key: "authors",
522
+ },
523
+ },
352
524
  },
353
525
  {
354
526
  key: "cta",
@@ -356,7 +528,7 @@ export const BlogListing1: IBlock = {
356
528
  field_interface: "ButtonWidget",
357
529
  hint: {
358
530
  prompt_description:
359
- "Primary action button label for each article card. Should prompt the user to read or learn more, concise (1-3 words), action-oriented.",
531
+ "Call-to-action button for manual user interaction. Can be configured to link to blog details or other actions.",
360
532
  usecase: "button",
361
533
  min_characters: 6,
362
534
  max_characters: 16,
@@ -407,6 +579,7 @@ export const BlogListing1: IBlock = {
407
579
  },
408
580
  },
409
581
  ],
582
+ source: [{ required: true, module: "blog", type: "block", field_key: "blogs" }],
410
583
  layouts: [
411
584
  {
412
585
  key: "default",
@@ -419,39 +592,418 @@ export const BlogListing1: IBlock = {
419
592
  "justify-content": "center",
420
593
  gap: "xl",
421
594
  "border-radius": "base",
422
- "background-color": "white",
423
- "padding-left": "8xl",
424
- "padding-right": "8xl",
425
- "padding-top": "5xl",
426
- "padding-bottom": "5xl",
427
595
  "box-shadow": "lg",
428
596
  },
429
597
  container: {
430
598
  display: "flex",
431
- width: "100%",
432
- "max-width": "screen-lg",
433
599
  "flex-direction": "column",
434
600
  "row-gap": "xl",
435
601
  },
436
602
  text_wrapper: {
437
603
  display: "flex",
438
604
  "flex-direction": "column",
439
- "row-gap": "2xs",
605
+ "row-gap": "none",
440
606
  },
607
+ ctas_levoGroup: {
608
+ display: "flex",
609
+ "column-gap": "md",
610
+ "align-items": "center",
611
+ },
612
+ ctas: [],
441
613
  title: {
442
- color: "text-1",
614
+ mobile: {
615
+ "text-align": "center",
616
+ },
443
617
  },
444
618
  description: {
445
- "font-size": "base",
446
- color: "text-2",
619
+ mobile: {
620
+ "text-align": "center",
621
+ },
447
622
  },
448
623
  blogs_levoGroup: {
449
624
  display: "flex",
450
625
  width: "100%",
451
626
  "flex-direction": "column",
627
+ "row-gap": "9xl",
628
+ },
629
+ blogs_levoGroupItem: {
630
+ blog: {
631
+ display: "flex",
632
+ "column-gap": "4xl",
633
+ "border-radius": "base",
634
+ "align-items": "stretch",
635
+ },
636
+ cover_image: {
637
+ height: "auto",
638
+ "border-radius": "xl",
639
+ "object-fit": "cover",
640
+ tablet: {
641
+ width: "100%",
642
+ },
643
+ width: "100%",
644
+ "max-width": "256px",
645
+ },
646
+ blog_content_wrapper: {
647
+ display: "flex",
648
+ width: "100%",
649
+ flex: "1 1 0",
650
+ "align-items": "start",
651
+ "column-gap": "lg",
652
+ tablet: {
653
+ "flex-direction": "column",
654
+ "align-items": "start",
655
+ "row-gap": "sm",
656
+ },
657
+ },
658
+ text_content_wrapper: {
659
+ flex: "1 1 0%",
660
+ display: "flex",
661
+ "flex-direction": "column",
662
+ "row-gap": "none",
663
+ width: "auto",
664
+ },
665
+ content_header: {
666
+ display: "flex",
667
+ "column-gap": "base",
668
+ "align-items": "center",
669
+ "margin-bottom": "4xs",
670
+ },
671
+ timestamp_icon: {
672
+ display: "block",
673
+ },
674
+ timestamp_wrapper: {},
675
+ timestamp: {
676
+ "font-weight": 600,
677
+ color: "text-2",
678
+ "font-size": "xs",
679
+ },
680
+ category_wrapper: {
681
+ display: "flex",
682
+ width: "fit-content",
683
+ "align-items": "center",
684
+ "column-gap": "2px",
685
+ "border-radius": "36px",
686
+ "background-color": "brandSecondary",
687
+ color: "brandSecondaryForeground",
688
+ "padding-left": "sm",
689
+ "padding-right": "sm",
690
+ "padding-top": "3xs",
691
+ "padding-bottom": "3xs",
692
+ },
693
+ category_icon: {
694
+ display: "none",
695
+ },
696
+ category: {
697
+ "font-size": "xs",
698
+ color: "brandSecondaryForeground",
699
+ "font-weight": 600,
700
+ },
701
+ blog_info_wrapper: {
702
+ display: "flex",
703
+ width: "100%",
704
+ "flex-direction": "column",
705
+ "row-gap": "2xs",
706
+ },
707
+ title: {
708
+ "font-weight": 600,
709
+ "font-size": "lg",
710
+ },
711
+ description: {},
712
+ author_wrapper: {
713
+ display: "flex",
714
+ "align-items": "center",
715
+ "column-gap": "base",
716
+ "margin-top": "xl",
717
+ "padding-top": "md",
718
+ "border-right-width": "0px",
719
+ "border-bottom-width": "0px",
720
+ "border-left-width": "0px",
721
+ "border-top-width": "1.5px",
722
+ },
723
+ author_image: {
724
+ height: "36px",
725
+ width: "36px",
726
+ "border-radius": "100%",
727
+ "object-fit": "cover",
728
+ },
729
+ author_name: {
730
+ "font-size": "sm",
731
+ "font-weight": 600,
732
+ },
733
+ author_description: {},
734
+ cta: {
735
+ display: "none",
736
+ },
737
+ },
738
+ "pagination-wrapper": {
739
+ display: "flex",
740
+ width: "full",
741
+ "justify-content": "center",
742
+ "align-items": "center",
743
+ "column-gap": "md",
744
+ },
745
+ blogs: [],
746
+ header: {
747
+ display: "flex",
748
+ "column-gap": "base",
749
+ "justify-content": "space-between",
750
+ "align-items": "center",
751
+ tablet: {
752
+ "flex-direction": "column",
753
+ "align-items": "start",
754
+ "row-gap": "sm",
755
+ },
756
+ mobile: {
757
+ "align-items": "center",
758
+ },
759
+ "background-image": 'url("")',
760
+ "background-position": "50% 50%",
761
+ "background-size": "cover",
762
+ "margin-bottom": "4xl",
763
+ },
764
+ },
765
+ content: DEFAULT_CONTENT_NO_BORDER,
766
+ config: {
767
+ title: {
768
+ heading: {
769
+ level: 2,
770
+ },
771
+ selectedVariants: {
772
+ Heading_Level: "H4",
773
+ },
774
+ },
775
+ blogs: [
776
+ {
777
+ title: {
778
+ heading: {
779
+ level: "4",
780
+ },
781
+ selectedVariants: {
782
+ Heading_Level: "H6",
783
+ },
784
+ },
785
+ description: {
786
+ selectedVariants: {
787
+ Typography_Variants: "Small",
788
+ },
789
+ },
790
+ author_name: {
791
+ heading: {
792
+ level: "4",
793
+ },
794
+ selectedVariants: {
795
+ Heading_Level: "H6",
796
+ },
797
+ },
798
+ author_description: {
799
+ selectedVariants: {
800
+ Typography_Variants: "Small",
801
+ },
802
+ },
803
+ cover_image: {
804
+ image: {
805
+ width: 256,
806
+ },
807
+ },
808
+ timestamp: {
809
+ selectedVariants: {
810
+ Typography_Variants: "Small",
811
+ },
812
+ },
813
+ },
814
+ {
815
+ author_name: {
816
+ selectedVariants: {
817
+ Heading_Level: "H6",
818
+ },
819
+ },
820
+ },
821
+ {
822
+ author_name: {
823
+ selectedVariants: {
824
+ Heading_Level: "H6",
825
+ },
826
+ },
827
+ },
828
+ ],
829
+ ctas: [
830
+ {
831
+ cta: {
832
+ selectedVariants: {},
833
+ },
834
+ },
835
+ {
836
+ cta: {
837
+ selectedVariants: {
838
+ Button_Variants: "Secondary",
839
+ },
840
+ },
841
+ },
842
+ ],
843
+ },
844
+ },
845
+ {
846
+ key: "cards_with_border",
847
+ title: "Cards With Border",
848
+ styles: {
849
+ layout: {
850
+ display: "flex",
851
+ "flex-direction": "column",
852
+ "align-items": "center",
853
+ "justify-content": "center",
854
+ gap: "xl",
855
+ "border-radius": "base",
856
+ "box-shadow": "lg",
857
+ },
858
+ container: {
859
+ display: "flex",
860
+ "flex-direction": "column",
452
861
  "row-gap": "xl",
453
862
  },
454
- blogs: BLOGS_STYLES,
863
+ text_wrapper: {
864
+ display: "flex",
865
+ "flex-direction": "column",
866
+ "row-gap": "none",
867
+ },
868
+ ctas_levoGroup: {
869
+ display: "flex",
870
+ "column-gap": "md",
871
+ "align-items": "center",
872
+ },
873
+ ctas: [],
874
+ title: {
875
+ mobile: {
876
+ "text-align": "center",
877
+ },
878
+ },
879
+ description: {
880
+ mobile: {
881
+ "text-align": "center",
882
+ },
883
+ },
884
+ blogs_levoGroup: {
885
+ display: "flex",
886
+ width: "100%",
887
+ "flex-direction": "column",
888
+ "row-gap": "9xl",
889
+ },
890
+ blogs_levoGroupItem: {
891
+ blog: {
892
+ display: "flex",
893
+ "border-radius": "lg",
894
+ "align-items": "stretch",
895
+ "padding-left": "base",
896
+ "padding-right": "base",
897
+ "padding-top": "base",
898
+ "padding-bottom": "base",
899
+ "border-style": "solid",
900
+ "border-width": "1px",
901
+ "column-gap": "lg",
902
+ },
903
+ cover_image: {
904
+ height: "auto",
905
+ "border-radius": "lg",
906
+ "object-fit": "cover",
907
+ tablet: {
908
+ width: "100%",
909
+ },
910
+ width: "100%",
911
+ "max-width": "256px",
912
+ },
913
+ blog_content_wrapper: {
914
+ display: "flex",
915
+ width: "100%",
916
+ flex: "1 1 0",
917
+ "align-items": "start",
918
+ "column-gap": "lg",
919
+ tablet: {
920
+ "flex-direction": "column",
921
+ "align-items": "start",
922
+ "row-gap": "sm",
923
+ },
924
+ },
925
+
926
+ text_content_wrapper: {
927
+ flex: "1 1 0%",
928
+ display: "flex",
929
+
930
+ "flex-direction": "column",
931
+ "row-gap": "none",
932
+ width: "auto",
933
+ },
934
+ timestamp_icon: {
935
+ display: "block",
936
+ },
937
+ timestamp_wrapper: {},
938
+ timestamp: {
939
+ "font-weight": 600,
940
+ color: "text-2",
941
+ "font-size": "xs",
942
+ },
943
+ blog_info_wrapper: {
944
+ display: "flex",
945
+ width: "100%",
946
+ "flex-direction": "column",
947
+ "row-gap": "2xs",
948
+ },
949
+ title: {
950
+ "font-weight": 600,
951
+ "font-size": "lg",
952
+ },
953
+ description: {},
954
+ author_wrapper: {
955
+ display: "flex",
956
+ "align-items": "center",
957
+ "column-gap": "base",
958
+ "margin-top": "xl",
959
+ "padding-top": "md",
960
+ "border-right-width": "0px",
961
+ "border-bottom-width": "0px",
962
+ "border-left-width": "0px",
963
+ "border-top-width": "1.5px",
964
+ },
965
+ author_image: {
966
+ height: "36px",
967
+ width: "36px",
968
+ "border-radius": "100%",
969
+ "object-fit": "cover",
970
+ },
971
+ author_name: {
972
+ "font-weight": 600,
973
+ "font-size": "sm",
974
+ },
975
+ author_description: {},
976
+ cta: {
977
+ display: "none",
978
+ },
979
+ content_header: {
980
+ display: "flex",
981
+ "column-gap": "base",
982
+ "align-items": "center",
983
+ "margin-bottom": "4xs",
984
+ },
985
+ category_wrapper: {
986
+ display: "flex",
987
+ width: "fit-content",
988
+ "align-items": "center",
989
+ "column-gap": "2px",
990
+ "border-radius": "36px",
991
+ "background-color": "brandSecondary",
992
+ color: "brandSecondaryForeground",
993
+ "padding-left": "sm",
994
+ "padding-right": "sm",
995
+ "padding-top": "3xs",
996
+ "padding-bottom": "3xs",
997
+ },
998
+ category_icon: {
999
+ display: "none",
1000
+ },
1001
+ category: {
1002
+ "font-size": "xs",
1003
+ color: "brandSecondaryForeground",
1004
+ "font-weight": 600,
1005
+ },
1006
+ },
455
1007
  "pagination-wrapper": {
456
1008
  display: "flex",
457
1009
  width: "full",
@@ -459,17 +1011,104 @@ export const BlogListing1: IBlock = {
459
1011
  "align-items": "center",
460
1012
  "column-gap": "md",
461
1013
  },
1014
+ blogs: [],
1015
+ header: {
1016
+ display: "flex",
1017
+ "column-gap": "base",
1018
+ "justify-content": "space-between",
1019
+ "align-items": "center",
1020
+ tablet: {
1021
+ "flex-direction": "column",
1022
+ "align-items": "start",
1023
+ "row-gap": "sm",
1024
+ },
1025
+ mobile: {
1026
+ "align-items": "center",
1027
+ },
1028
+ "background-image": 'url("")',
1029
+ "background-position": "50% 50%",
1030
+ "background-size": "cover",
1031
+ "margin-bottom": "4xl",
1032
+ },
462
1033
  },
463
- content: DEFAULT_CONTENT,
1034
+ content: DEFAULT_CONTENT_NO_BORDER,
464
1035
  config: {
465
1036
  title: {
466
1037
  heading: {
467
1038
  level: 2,
468
1039
  },
469
1040
  selectedVariants: {
470
- Heading_Level: "H2",
1041
+ Heading_Level: "H4",
471
1042
  },
472
1043
  },
1044
+ blogs: [
1045
+ {
1046
+ title: {
1047
+ heading: {
1048
+ level: "4",
1049
+ },
1050
+ selectedVariants: {
1051
+ Heading_Level: "H6",
1052
+ },
1053
+ },
1054
+ description: {
1055
+ selectedVariants: {
1056
+ Typography_Variants: "Small",
1057
+ },
1058
+ },
1059
+ author_name: {
1060
+ heading: {
1061
+ level: "4",
1062
+ },
1063
+ selectedVariants: {
1064
+ Heading_Level: "H6",
1065
+ },
1066
+ },
1067
+ author_description: {
1068
+ selectedVariants: {
1069
+ Typography_Variants: "Small",
1070
+ },
1071
+ },
1072
+ cover_image: {
1073
+ image: {
1074
+ width: 256,
1075
+ },
1076
+ },
1077
+ timestamp: {
1078
+ selectedVariants: {
1079
+ Typography_Variants: "Small",
1080
+ },
1081
+ },
1082
+ },
1083
+ {
1084
+ author_name: {
1085
+ selectedVariants: {
1086
+ Heading_Level: "H6",
1087
+ },
1088
+ },
1089
+ },
1090
+ {
1091
+ author_name: {
1092
+ selectedVariants: {
1093
+ Heading_Level: "H6",
1094
+ },
1095
+ },
1096
+ },
1097
+ ],
1098
+ ctas: [
1099
+ {
1100
+ cta: {
1101
+ selectedVariants: {},
1102
+ },
1103
+ },
1104
+ {
1105
+ cta: {
1106
+ selectedVariants: {
1107
+ Button_Variants: "Secondary",
1108
+ },
1109
+ },
1110
+ },
1111
+ ],
473
1112
  },
474
1113
  },
475
1114
  ],