@levo-so/blocks 0.1.60 → 0.1.62
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +13 -14
- package/src/blocks/about-us/about-us-1.schema.ts +15 -30
- package/src/blocks/about-us/about-us-1.tsx +2 -4
- package/src/blocks/about-us/about-us-2.schema.ts +24 -48
- package/src/blocks/about-us/about-us-2.tsx +7 -13
- package/src/blocks/blogs/blog-listing-1.schema.ts +7 -14
- package/src/blocks/blogs/blog-listing-1.tsx +10 -21
- package/src/blocks/blogs/blog-listing-2.schema.ts +17 -34
- package/src/blocks/blogs/blog-listing-2.tsx +4 -12
- package/src/blocks/blogs/blog-listing-3.schema.ts +32 -64
- package/src/blocks/blogs/blog-listing-3.tsx +4 -12
- package/src/blocks/blogs/blog-post-1.schema.ts +9 -18
- package/src/blocks/blogs/blog-post-1.tsx +3 -14
- package/src/blocks/calendar/calendar-1.schema.ts +95 -6
- package/src/blocks/calendar/calendar-1.tsx +33 -29
- package/src/blocks/cards/cards-10.schema.ts +62 -124
- package/src/blocks/cards/cards-10.tsx +9 -14
- package/src/blocks/cards/cards-11.schema.ts +69 -138
- package/src/blocks/cards/cards-11.tsx +5 -11
- package/src/blocks/cards/cards-12.schema.ts +7 -14
- package/src/blocks/cards/cards-12.tsx +4 -10
- package/src/blocks/cards/cards-13.schema.ts +40 -80
- package/src/blocks/cards/cards-13.tsx +4 -6
- package/src/blocks/cards/cards-14.schema.ts +7 -14
- package/src/blocks/cards/cards-14.tsx +5 -11
- package/src/blocks/cards/cards-15.schema.ts +7 -14
- package/src/blocks/cards/cards-15.tsx +2 -4
- package/src/blocks/cards/cards-2.schema.ts +7 -14
- package/src/blocks/cards/cards-2.tsx +2 -15
- package/src/blocks/cards/cards-3.schema.ts +7 -14
- package/src/blocks/cards/cards-3.tsx +7 -13
- package/src/blocks/cards/cards-4.schema.ts +13 -26
- package/src/blocks/cards/cards-4.tsx +9 -15
- package/src/blocks/cards/cards-5.schema.ts +17 -34
- package/src/blocks/cards/cards-5.tsx +1 -9
- package/src/blocks/cards/cards-6.schema.ts +52 -104
- package/src/blocks/cards/cards-6.tsx +12 -20
- package/src/blocks/cards/cards-7.schema.ts +48 -96
- package/src/blocks/cards/cards-7.tsx +8 -27
- package/src/blocks/cards/cards-8.schema.ts +9 -20
- package/src/blocks/cards/cards-8.tsx +5 -11
- package/src/blocks/cards/cards-9.schema.ts +41 -82
- package/src/blocks/cards/cards-9.tsx +14 -22
- package/src/blocks/carousel/carousel-1.schema.ts +64 -128
- package/src/blocks/carousel/carousel-1.tsx +6 -8
- package/src/blocks/carousel/carousel-2.schema.ts +26 -52
- package/src/blocks/carousel/carousel-2.tsx +11 -23
- package/src/blocks/community/community-1.schema.ts +78 -32
- package/src/blocks/community/community-1.tsx +417 -550
- package/src/blocks/community/community-post-1.schema.ts +21 -30
- package/src/blocks/community/community-post-1.tsx +334 -84
- package/src/blocks/contact-us/contact-us-1.schema.ts +8 -16
- package/src/blocks/contact-us/contact-us-1.tsx +2 -12
- package/src/blocks/contact-us/contact-us-2.tsx +20 -31
- package/src/blocks/content/content-1.schema.ts +21 -42
- package/src/blocks/content/content-1.tsx +10 -17
- package/src/blocks/content/content-2.schema.ts +29 -58
- package/src/blocks/content/content-2.tsx +4 -4
- package/src/blocks/content/content-3.tsx +13 -29
- package/src/blocks/content/content-4.schema.ts +23 -46
- package/src/blocks/content/content-4.tsx +8 -17
- package/src/blocks/content/content-5.schema.ts +29 -24
- package/src/blocks/content/content-5.tsx +13 -27
- package/src/blocks/content/content-6.schema.ts +46 -94
- package/src/blocks/content/content-6.tsx +14 -31
- package/src/blocks/content/content-7.schema.ts +35 -72
- package/src/blocks/content/content-7.tsx +15 -31
- package/src/blocks/content/content-8.schema.ts +1 -6
- package/src/blocks/content/content-8.tsx +3 -3
- package/src/blocks/content/content-9.tsx +26 -41
- package/src/blocks/cta/cta-1.schema.ts +10 -20
- package/src/blocks/cta/cta-2.schema.ts +14 -28
- package/src/blocks/cta/cta-2.tsx +2 -6
- package/src/blocks/cta/cta-3.schema.ts +24 -50
- package/src/blocks/cta/cta-3.tsx +2 -6
- package/src/blocks/embed/embed-1.tsx +1 -9
- package/src/blocks/event/ClientOnly.tsx +1 -4
- package/src/blocks/event/event-details.schema.ts +16 -32
- package/src/blocks/event/event-details.tsx +8 -23
- package/src/blocks/event/event-listing-2.schema.ts +19 -38
- package/src/blocks/event/event-listing-2.tsx +12 -23
- package/src/blocks/event/event-listing-3.schema.ts +10 -20
- package/src/blocks/event/event-listing-3.tsx +9 -15
- package/src/blocks/event/event-listing-4.schema.ts +40 -80
- package/src/blocks/event/event-listing-4.tsx +5 -13
- package/src/blocks/event/event-listing.schema.ts +12 -24
- package/src/blocks/event/event-listing.tsx +9 -15
- package/src/blocks/faq/faq-1.schema.ts +8 -16
- package/src/blocks/faq/faq-1.tsx +19 -30
- package/src/blocks/faq/faq-2.schema.ts +8 -16
- package/src/blocks/faq/faq-2.tsx +11 -10
- package/src/blocks/faq/faq-3.schema.ts +9 -18
- package/src/blocks/faq/faq-3.tsx +11 -19
- package/src/blocks/features/features-1/features-1.tsx +2 -4
- package/src/blocks/features/features-1/variants/default.ts +4 -8
- package/src/blocks/features/features-1/variants/index.ts +1 -1
- package/src/blocks/features/features-2.schema.ts +32 -64
- package/src/blocks/features/features-2.tsx +8 -10
- package/src/blocks/features/features-3.schema.ts +32 -64
- package/src/blocks/features/features-3.tsx +7 -16
- package/src/blocks/features/features-4.schema.ts +16 -32
- package/src/blocks/features/features-4.tsx +3 -7
- package/src/blocks/features/features-5.schema.ts +1 -2
- package/src/blocks/features/features-5.tsx +6 -17
- package/src/blocks/features/features-6.schema.ts +32 -64
- package/src/blocks/features/features-6.tsx +16 -36
- package/src/blocks/filter-listing/filter-listing-1.tsx +12 -36
- package/src/blocks/floating-buttons/floating-button-1.schema.ts +5 -10
- package/src/blocks/floating-buttons/floating-button-1.tsx +3 -9
- package/src/blocks/footer/footer-1.schema.ts +8 -16
- package/src/blocks/footer/footer-1.tsx +15 -30
- package/src/blocks/footer/footer-2.schema.ts +8 -16
- package/src/blocks/footer/footer-2.tsx +17 -28
- package/src/blocks/footer/footer-3.schema.ts +1 -2
- package/src/blocks/footer/footer-3.tsx +9 -25
- package/src/blocks/footer/footer-4.schema.ts +8 -16
- package/src/blocks/footer/footer-4.tsx +35 -54
- package/src/blocks/footer/footer-5.schema.ts +10 -24
- package/src/blocks/footer/footer-5.tsx +14 -29
- package/src/blocks/footer/footer-6.schema.ts +10 -25
- package/src/blocks/footer/footer-6.tsx +29 -44
- package/src/blocks/form/form-1.schema.ts +144 -0
- package/src/blocks/form/form-1.tsx +33 -0
- package/src/blocks/hero/hero-1.schema.ts +45 -90
- package/src/blocks/hero/hero-1.tsx +4 -4
- package/src/blocks/hero/hero-10.schema.ts +1 -2
- package/src/blocks/hero/hero-10.tsx +4 -4
- package/src/blocks/hero/hero-11.schema.ts +18 -14
- package/src/blocks/hero/hero-11.tsx +4 -9
- package/src/blocks/hero/hero-12.schema.ts +18 -36
- package/src/blocks/hero/hero-12.tsx +3 -6
- package/src/blocks/hero/hero-13.schema.ts +8 -16
- package/src/blocks/hero/hero-13.tsx +1 -1
- package/src/blocks/hero/hero-2.schema.ts +3 -6
- package/src/blocks/hero/hero-2.tsx +3 -21
- package/src/blocks/hero/hero-3.schema.ts +28 -56
- package/src/blocks/hero/hero-3.tsx +6 -15
- package/src/blocks/hero/hero-4.schema.ts +22 -44
- package/src/blocks/hero/hero-4.tsx +16 -27
- package/src/blocks/hero/hero-5.schema.ts +21 -42
- package/src/blocks/hero/hero-5.tsx +15 -18
- package/src/blocks/hero/hero-6.schema.ts +35 -70
- package/src/blocks/hero/hero-6.tsx +6 -6
- package/src/blocks/hero/hero-7.schema.ts +24 -48
- package/src/blocks/hero/hero-7.tsx +2 -3
- package/src/blocks/hero/hero-8.schema.ts +24 -50
- package/src/blocks/hero/hero-8.tsx +5 -19
- package/src/blocks/hero/hero-9.schema.ts +8 -16
- package/src/blocks/hero/hero-9.tsx +3 -3
- package/src/blocks/index.ts +8 -11
- package/src/blocks/jobs/jobs-1.schema.ts +990 -0
- package/src/blocks/jobs/jobs-1.tsx +145 -0
- package/src/blocks/logos/logos-1.schema.ts +53 -113
- package/src/blocks/logos/logos-1.tsx +7 -7
- package/src/blocks/navbar/navbar-1.schema.ts +15 -28
- package/src/blocks/navbar/navbar-1.tsx +24 -60
- package/src/blocks/navbar/navbar-2.schema.ts +14 -28
- package/src/blocks/navbar/navbar-2.tsx +26 -56
- package/src/blocks/navbar/navbar-3.schema.ts +11 -22
- package/src/blocks/navbar/navbar-3.tsx +33 -82
- package/src/blocks/navbar/navbar-4.schema.ts +14343 -0
- package/src/blocks/navbar/navbar-4.tsx +546 -0
- package/src/blocks/polling/polling-1.schema.ts +1 -2
- package/src/blocks/polling/polling-1.tsx +24 -39
- package/src/blocks/pricing/pricing-1.schema.ts +13 -26
- package/src/blocks/pricing/pricing-1.tsx +20 -44
- package/src/blocks/products/products-listing-1.schema.ts +32 -64
- package/src/blocks/products/products-listing-1.tsx +6 -12
- package/src/blocks/products/products-listing-2.schema.ts +26 -54
- package/src/blocks/products/products-listing-2.tsx +8 -17
- package/src/blocks/products/products-listing-3.schema.ts +25 -52
- package/src/blocks/products/products-listing-3.tsx +87 -93
- package/src/blocks/profile/profile-1.schema.ts +7 -14
- package/src/blocks/profile/profile-1.tsx +2 -8
- package/src/blocks/profile/profile-2.schema.ts +9 -18
- package/src/blocks/profile/profile-2.tsx +4 -6
- package/src/blocks/profile/profile-3.schema.ts +21 -42
- package/src/blocks/profile/profile-3.tsx +18 -40
- package/src/blocks/{blogs/blog-post-2.schema.ts → profile/profile-4.schema.ts} +75 -97
- package/src/blocks/{blogs/blog-post-2.tsx → profile/profile-4.tsx} +32 -61
- package/src/blocks/{blogs/blog-post-3.schema.ts → profile/profile-5.schema.ts} +6 -6
- package/src/blocks/{blogs/blog-post-3.tsx → profile/profile-5.tsx} +6 -11
- package/src/blocks/services/service-1.schema.ts +20 -40
- package/src/blocks/services/service-1.tsx +45 -71
- package/src/blocks/services/service-2.schema.ts +8 -16
- package/src/blocks/services/service-2.tsx +4 -6
- package/src/blocks/services/service-3.schema.ts +12 -24
- package/src/blocks/services/service-3.tsx +4 -6
- package/src/blocks/stats/stats-1.tsx +3 -14
- package/src/blocks/stats/stats-2.tsx +3 -14
- package/src/blocks/stats/variants/index.ts +1 -1
- package/src/blocks/tabs/tab-1.schema.ts +4 -8
- package/src/blocks/tabs/tab-1.tsx +47 -64
- package/src/blocks/tabs/tab-2.schema.ts +13 -26
- package/src/blocks/tabs/tab-2.tsx +14 -15
- package/src/blocks/team/team-1.schema.ts +28 -56
- package/src/blocks/team/team-1.tsx +7 -21
- package/src/blocks/team/team-2.schema.ts +104 -208
- package/src/blocks/team/team-2.tsx +15 -33
- package/src/blocks/team/team-3.schema.ts +24 -48
- package/src/blocks/team/team-3.tsx +8 -14
- package/src/blocks/team/team-4.schema.ts +25 -50
- package/src/blocks/team/team-4.tsx +15 -24
- package/src/blocks/team/team-5.schema.ts +14 -28
- package/src/blocks/team/team-5.tsx +1 -1
- package/src/blocks/termsAndPrivacy/terms-and-conditions-1.tsx +3 -5
- package/src/blocks/testimonial/testimonial-1.schema.ts +1 -2
- package/src/blocks/testimonial/testimonial-1.tsx +10 -19
- package/src/blocks/testimonial/testimonial-2.schema.ts +16 -32
- package/src/blocks/testimonial/testimonial-2.tsx +17 -36
- package/src/blocks/testimonial/testimonial-3.schema.ts +8 -16
- package/src/blocks/testimonial/testimonial-3.tsx +13 -26
- package/src/blocks/testimonial/testimonial-4.schema.ts +94 -188
- package/src/blocks/testimonial/testimonial-4.tsx +12 -33
- package/src/blocks/testimonial/testimonial-5/variants/default.ts +24 -48
- package/src/blocks/testimonial/testimonial-5/variants/index.ts +1 -1
- package/src/blocks/testimonial/testimonial-5/variants/testimonialWithLogo.ts +4 -8
- package/src/blocks/testimonial/testimonial-5/variants/testimonialWithRatings.ts +24 -48
- package/src/blocks/testimonial/testimonial-5.schema.ts +2 -6
- package/src/blocks/testimonial/testimonial-5.tsx +15 -25
- package/src/blocks/testimonial/testimonial-6.schema.ts +26 -52
- package/src/blocks/testimonial/testimonial-6.tsx +9 -25
- package/src/blocks/testimonial/testimonial-7.tsx +15 -26
- package/src/blocks/timeline/timeline-1.schema.ts +34 -68
- package/src/blocks/timeline/timeline-1.tsx +2 -6
- package/src/blocks/users/edit-profile.tsx +10 -22
- package/src/constants/index.ts +3 -6
- package/src/index.ts +1 -1
- package/src/schemas/blocks.ts +14 -8
- package/src/schemas/categories.ts +14 -2
|
@@ -37,23 +37,15 @@ const DEFAULT_CONTENT = {
|
|
|
37
37
|
id: "pKkMlt5KY774",
|
|
38
38
|
filename: "image.png",
|
|
39
39
|
kind: "image",
|
|
40
|
-
location:
|
|
41
|
-
"https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo.png",
|
|
40
|
+
location: "https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo.png",
|
|
42
41
|
srcset: {
|
|
43
|
-
"1080w":
|
|
44
|
-
|
|
45
|
-
"
|
|
46
|
-
|
|
47
|
-
"
|
|
48
|
-
|
|
49
|
-
"
|
|
50
|
-
"https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-320w.webp",
|
|
51
|
-
"640w":
|
|
52
|
-
"https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-640w.webp",
|
|
53
|
-
"750w":
|
|
54
|
-
"https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-750w.webp",
|
|
55
|
-
"828w":
|
|
56
|
-
"https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-828w.webp",
|
|
42
|
+
"1080w": "https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-1080w.webp",
|
|
43
|
+
"1200w": "https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-1200w.webp",
|
|
44
|
+
"1920w": "https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-1920w.webp",
|
|
45
|
+
"320w": "https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-320w.webp",
|
|
46
|
+
"640w": "https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-640w.webp",
|
|
47
|
+
"750w": "https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-750w.webp",
|
|
48
|
+
"828w": "https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-828w.webp",
|
|
57
49
|
path: "https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-828w.webp 828w, https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-750w.webp 750w, https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-1080w.webp 1080w, https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-1200w.webp 1200w, https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-1920w.webp 1920w, https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-320w.webp 320w, https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-640w.webp 640w",
|
|
58
50
|
},
|
|
59
51
|
mimetype: "image/png",
|
|
@@ -117,23 +109,15 @@ const DEFAULT_CONTENT = {
|
|
|
117
109
|
id: "pKkMlt5KY774",
|
|
118
110
|
filename: "image.png",
|
|
119
111
|
kind: "image",
|
|
120
|
-
location:
|
|
121
|
-
"https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo.png",
|
|
112
|
+
location: "https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo.png",
|
|
122
113
|
srcset: {
|
|
123
|
-
"1080w":
|
|
124
|
-
|
|
125
|
-
"
|
|
126
|
-
|
|
127
|
-
"
|
|
128
|
-
|
|
129
|
-
"
|
|
130
|
-
"https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-320w.webp",
|
|
131
|
-
"640w":
|
|
132
|
-
"https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-640w.webp",
|
|
133
|
-
"750w":
|
|
134
|
-
"https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-750w.webp",
|
|
135
|
-
"828w":
|
|
136
|
-
"https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-828w.webp",
|
|
114
|
+
"1080w": "https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-1080w.webp",
|
|
115
|
+
"1200w": "https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-1200w.webp",
|
|
116
|
+
"1920w": "https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-1920w.webp",
|
|
117
|
+
"320w": "https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-320w.webp",
|
|
118
|
+
"640w": "https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-640w.webp",
|
|
119
|
+
"750w": "https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-750w.webp",
|
|
120
|
+
"828w": "https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-828w.webp",
|
|
137
121
|
path: "https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-828w.webp 828w, https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-750w.webp 750w, https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-1080w.webp 1080w, https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-1200w.webp 1200w, https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-1920w.webp 1920w, https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-320w.webp 320w, https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-640w.webp 640w",
|
|
138
122
|
},
|
|
139
123
|
mimetype: "image/png",
|
|
@@ -197,23 +181,15 @@ const DEFAULT_CONTENT = {
|
|
|
197
181
|
id: "pKkMlt5KY774",
|
|
198
182
|
filename: "image.png",
|
|
199
183
|
kind: "image",
|
|
200
|
-
location:
|
|
201
|
-
"https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo.png",
|
|
184
|
+
location: "https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo.png",
|
|
202
185
|
srcset: {
|
|
203
|
-
"1080w":
|
|
204
|
-
|
|
205
|
-
"
|
|
206
|
-
|
|
207
|
-
"
|
|
208
|
-
|
|
209
|
-
"
|
|
210
|
-
"https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-320w.webp",
|
|
211
|
-
"640w":
|
|
212
|
-
"https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-640w.webp",
|
|
213
|
-
"750w":
|
|
214
|
-
"https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-750w.webp",
|
|
215
|
-
"828w":
|
|
216
|
-
"https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-828w.webp",
|
|
186
|
+
"1080w": "https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-1080w.webp",
|
|
187
|
+
"1200w": "https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-1200w.webp",
|
|
188
|
+
"1920w": "https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-1920w.webp",
|
|
189
|
+
"320w": "https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-320w.webp",
|
|
190
|
+
"640w": "https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-640w.webp",
|
|
191
|
+
"750w": "https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-750w.webp",
|
|
192
|
+
"828w": "https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-828w.webp",
|
|
217
193
|
path: "https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-828w.webp 828w, https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-750w.webp 750w, https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-1080w.webp 1080w, https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-1200w.webp 1200w, https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-1920w.webp 1920w, https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-320w.webp 320w, https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-640w.webp 640w",
|
|
218
194
|
},
|
|
219
195
|
mimetype: "image/png",
|
|
@@ -277,23 +253,15 @@ const DEFAULT_CONTENT = {
|
|
|
277
253
|
id: "pKkMlt5KY774",
|
|
278
254
|
filename: "image.png",
|
|
279
255
|
kind: "image",
|
|
280
|
-
location:
|
|
281
|
-
"https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo.png",
|
|
256
|
+
location: "https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo.png",
|
|
282
257
|
srcset: {
|
|
283
|
-
"1080w":
|
|
284
|
-
|
|
285
|
-
"
|
|
286
|
-
|
|
287
|
-
"
|
|
288
|
-
|
|
289
|
-
"
|
|
290
|
-
"https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-320w.webp",
|
|
291
|
-
"640w":
|
|
292
|
-
"https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-640w.webp",
|
|
293
|
-
"750w":
|
|
294
|
-
"https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-750w.webp",
|
|
295
|
-
"828w":
|
|
296
|
-
"https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-828w.webp",
|
|
258
|
+
"1080w": "https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-1080w.webp",
|
|
259
|
+
"1200w": "https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-1200w.webp",
|
|
260
|
+
"1920w": "https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-1920w.webp",
|
|
261
|
+
"320w": "https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-320w.webp",
|
|
262
|
+
"640w": "https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-640w.webp",
|
|
263
|
+
"750w": "https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-750w.webp",
|
|
264
|
+
"828w": "https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-828w.webp",
|
|
297
265
|
path: "https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-828w.webp 828w, https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-750w.webp 750w, https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-1080w.webp 1080w, https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-1200w.webp 1200w, https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-1920w.webp 1920w, https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-320w.webp 320w, https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-640w.webp 640w",
|
|
298
266
|
},
|
|
299
267
|
mimetype: "image/png",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
|
-
type ILevoBlockBaseProps,
|
|
3
2
|
Box,
|
|
4
3
|
Button,
|
|
5
4
|
Container,
|
|
6
5
|
Heading,
|
|
7
6
|
Icon,
|
|
7
|
+
type ILevoBlockBaseProps,
|
|
8
8
|
Media,
|
|
9
9
|
Section,
|
|
10
10
|
Typography,
|
|
@@ -14,9 +14,7 @@ import dayjs from "dayjs";
|
|
|
14
14
|
|
|
15
15
|
import type { IBlogListing3Content } from "./blog-listing-3.schema";
|
|
16
16
|
|
|
17
|
-
const BlogListing3: React.FC<
|
|
18
|
-
ILevoBlockBaseProps<IBlogListing3Content>
|
|
19
|
-
> = ({}) => {
|
|
17
|
+
const BlogListing3: React.FC<ILevoBlockBaseProps<IBlogListing3Content>> = ({}) => {
|
|
20
18
|
const { data, query, setQuery, meta } = useContentEngine("blogs");
|
|
21
19
|
|
|
22
20
|
const handleNext = () => setQuery({ page: (query?.page || 0) + 1 });
|
|
@@ -34,11 +32,7 @@ const BlogListing3: React.FC<
|
|
|
34
32
|
</Box>
|
|
35
33
|
<Box elementKey="blogs_levoGroup" data-levo_group>
|
|
36
34
|
{(data || [])?.map((item: any, index: number) => (
|
|
37
|
-
<Box
|
|
38
|
-
key={`blogs.${index}`}
|
|
39
|
-
data-levo_group_item
|
|
40
|
-
elementKey={`blogs.${index}.blog`}
|
|
41
|
-
>
|
|
35
|
+
<Box key={`blogs.${index}`} data-levo_group_item elementKey={`blogs.${index}.blog`}>
|
|
42
36
|
<Media elementKey={`blogs.${index}.media`} alt="Blog Media" />
|
|
43
37
|
<Box elementKey={`blogs.${index}.blog-info-wrapper`}>
|
|
44
38
|
<Box elementKey={`blogs.${index}.blog-content`}>
|
|
@@ -47,9 +41,7 @@ const BlogListing3: React.FC<
|
|
|
47
41
|
<Typography elementKey={`blogs.${index}.blog-type`}>
|
|
48
42
|
{data?.[index]?.["publish-date"] &&
|
|
49
43
|
dayjs(data?.[index]?.["publish-date"]).isValid()
|
|
50
|
-
? dayjs(data?.[index]?.["publish-date"]).format(
|
|
51
|
-
"DD MMM, YYYY",
|
|
52
|
-
)
|
|
44
|
+
? dayjs(data?.[index]?.["publish-date"]).format("DD MMM, YYYY")
|
|
53
45
|
: " "}
|
|
54
46
|
</Typography>
|
|
55
47
|
</Box>
|
|
@@ -7,20 +7,13 @@ const MEDIA = {
|
|
|
7
7
|
kind: "image",
|
|
8
8
|
mimetype: "image/png",
|
|
9
9
|
srcset: {
|
|
10
|
-
"1080w":
|
|
11
|
-
|
|
12
|
-
"
|
|
13
|
-
|
|
14
|
-
"
|
|
15
|
-
|
|
16
|
-
"
|
|
17
|
-
"https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-320w.webp",
|
|
18
|
-
"640w":
|
|
19
|
-
"https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-640w.webp",
|
|
20
|
-
"750w":
|
|
21
|
-
"https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-750w.webp",
|
|
22
|
-
"828w":
|
|
23
|
-
"https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-828w.webp",
|
|
10
|
+
"1080w": "https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-1080w.webp",
|
|
11
|
+
"1200w": "https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-1200w.webp",
|
|
12
|
+
"1920w": "https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-1920w.webp",
|
|
13
|
+
"320w": "https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-320w.webp",
|
|
14
|
+
"640w": "https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-640w.webp",
|
|
15
|
+
"750w": "https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-750w.webp",
|
|
16
|
+
"828w": "https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-828w.webp",
|
|
24
17
|
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",
|
|
25
18
|
},
|
|
26
19
|
},
|
|
@@ -74,8 +67,7 @@ export const BlogPost1: IBlock = {
|
|
|
74
67
|
label: "Layout",
|
|
75
68
|
field_interface: "LayoutWidget",
|
|
76
69
|
hint: {
|
|
77
|
-
prompt_description:
|
|
78
|
-
"Defines the overall page structure and layout. No content needed.",
|
|
70
|
+
prompt_description: "Defines the overall page structure and layout. No content needed.",
|
|
79
71
|
},
|
|
80
72
|
},
|
|
81
73
|
{
|
|
@@ -131,8 +123,7 @@ export const BlogPost1: IBlock = {
|
|
|
131
123
|
label: "Title Section",
|
|
132
124
|
field_interface: "BoxWidget",
|
|
133
125
|
hint: {
|
|
134
|
-
prompt_description:
|
|
135
|
-
"Container for the main blog post headline. No content needed here.",
|
|
126
|
+
prompt_description: "Container for the main blog post headline. No content needed here.",
|
|
136
127
|
},
|
|
137
128
|
},
|
|
138
129
|
{
|
|
@@ -1,21 +1,11 @@
|
|
|
1
1
|
import type { ILevoBlockBaseProps } from "@levo-so/studio";
|
|
2
|
-
import {
|
|
3
|
-
Box,
|
|
4
|
-
Container,
|
|
5
|
-
Heading,
|
|
6
|
-
Icon,
|
|
7
|
-
Media,
|
|
8
|
-
Section,
|
|
9
|
-
Typography,
|
|
10
|
-
} from "@levo-so/studio";
|
|
2
|
+
import { Box, Container, Heading, Icon, Media, Section, Typography } from "@levo-so/studio";
|
|
11
3
|
import dayjs from "dayjs";
|
|
12
4
|
import type React from "react";
|
|
13
5
|
|
|
14
6
|
import type { IBlogPost1Content } from "./blog-post-1.schema";
|
|
15
7
|
|
|
16
|
-
const BlogPost1: React.FC<ILevoBlockBaseProps<IBlogPost1Content>> = ({
|
|
17
|
-
content,
|
|
18
|
-
}) => (
|
|
8
|
+
const BlogPost1: React.FC<ILevoBlockBaseProps<IBlogPost1Content>> = ({ content }) => (
|
|
19
9
|
<Section elementKey="layout">
|
|
20
10
|
<Container elementKey="container">
|
|
21
11
|
<Box elementKey="header-section">
|
|
@@ -31,8 +21,7 @@ const BlogPost1: React.FC<ILevoBlockBaseProps<IBlogPost1Content>> = ({
|
|
|
31
21
|
<Heading elementKey="author-name" />
|
|
32
22
|
</Box>
|
|
33
23
|
<Typography elementKey="publish-date">
|
|
34
|
-
{content?.["publish-date"] &&
|
|
35
|
-
dayjs(content?.["publish-date"]).isValid()
|
|
24
|
+
{content?.["publish-date"] && dayjs(content?.["publish-date"]).isValid()
|
|
36
25
|
? dayjs(content?.["publish-date"]).format("DD MMM, YYYY")
|
|
37
26
|
: " "}
|
|
38
27
|
</Typography>
|
|
@@ -61,6 +61,8 @@ const DEFAULT_CONTENT = {
|
|
|
61
61
|
event_starts_date: randomStartDate,
|
|
62
62
|
event_ends_date: randomEndDate,
|
|
63
63
|
}),
|
|
64
|
+
starts_at: randomStartDate,
|
|
65
|
+
ends_at: randomEndDate,
|
|
64
66
|
};
|
|
65
67
|
}),
|
|
66
68
|
empty_state: null,
|
|
@@ -77,7 +79,7 @@ const DEFAULT_CONTENT = {
|
|
|
77
79
|
empty_state_title: "No Events",
|
|
78
80
|
empty_state_description:
|
|
79
81
|
"There are no events scheduled for this month. Check back later or select a different month to view upcoming events.",
|
|
80
|
-
empty_state_cta: "
|
|
82
|
+
empty_state_cta: "Reset Calendar",
|
|
81
83
|
calendar_section: null,
|
|
82
84
|
calendar_header: null,
|
|
83
85
|
calendar_title: "Events Calendar",
|
|
@@ -86,16 +88,50 @@ const DEFAULT_CONTENT = {
|
|
|
86
88
|
calendar: null,
|
|
87
89
|
calendar_ctas_levoGroup: null,
|
|
88
90
|
calendar_ctas: [
|
|
89
|
-
{
|
|
90
|
-
|
|
91
|
+
{
|
|
92
|
+
calendar_cta: "View all events",
|
|
93
|
+
calendar_cta_leftIcon: {
|
|
94
|
+
kind: "icon",
|
|
95
|
+
data: {
|
|
96
|
+
id: "export-3",
|
|
97
|
+
label: "Export 3",
|
|
98
|
+
tags: ["arrow", "custom", "directional", "export"],
|
|
99
|
+
svgCode:
|
|
100
|
+
'<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M13.0004 11.75C12.8104 11.75 12.6204 11.68 12.4704 11.53C12.1804 11.24 12.1804 10.76 12.4704 10.47L20.6704 2.26999C20.9604 1.97999 21.4404 1.97999 21.7304 2.26999C22.0204 2.55999 22.0204 3.03999 21.7304 3.32999L13.5304 11.53C13.3804 11.68 13.1904 11.75 13.0004 11.75Z" fill="currentColor"/>\n<path d="M22.0002 7.55C21.5902 7.55 21.2502 7.21 21.2502 6.8V2.75H17.2002C16.7902 2.75 16.4502 2.41 16.4502 2C16.4502 1.59 16.7902 1.25 17.2002 1.25H22.0002C22.4102 1.25 22.7502 1.59 22.7502 2V6.8C22.7502 7.21 22.4102 7.55 22.0002 7.55Z" fill="currentColor"/>\n<path d="M15 22.75H9C3.57 22.75 1.25 20.43 1.25 15V9C1.25 3.57 3.57 1.25 9 1.25H11C11.41 1.25 11.75 1.59 11.75 2C11.75 2.41 11.41 2.75 11 2.75H9C4.39 2.75 2.75 4.39 2.75 9V15C2.75 19.61 4.39 21.25 9 21.25H15C19.61 21.25 21.25 19.61 21.25 15V13C21.25 12.59 21.59 12.25 22 12.25C22.41 12.25 22.75 12.59 22.75 13V15C22.75 20.43 20.43 22.75 15 22.75Z" fill="currentColor"/>\n</svg>',
|
|
101
|
+
},
|
|
102
|
+
},
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
calendar_cta: "Search Events",
|
|
106
|
+
calendar_cta_leftIcon: {
|
|
107
|
+
kind: "icon",
|
|
108
|
+
data: {
|
|
109
|
+
id: "search-normal-1",
|
|
110
|
+
label: "Search Normal 1",
|
|
111
|
+
tags: ["custom", "directional", "normal", "search"],
|
|
112
|
+
svgCode:
|
|
113
|
+
'<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M11.5 21.75C5.85 21.75 1.25 17.15 1.25 11.5C1.25 5.85 5.85 1.25 11.5 1.25C17.15 1.25 21.75 5.85 21.75 11.5C21.75 17.15 17.15 21.75 11.5 21.75ZM11.5 2.75C6.67 2.75 2.75 6.68 2.75 11.5C2.75 16.32 6.67 20.25 11.5 20.25C16.33 20.25 20.25 16.32 20.25 11.5C20.25 6.68 16.33 2.75 11.5 2.75Z" fill="currentColor"/>\n<path d="M22.0004 22.7499C21.8104 22.7499 21.6204 22.6799 21.4704 22.5299L19.4704 20.5299C19.1804 20.2399 19.1804 19.7599 19.4704 19.4699C19.7604 19.1799 20.2404 19.1799 20.5304 19.4699L22.5304 21.4699C22.8204 21.7599 22.8204 22.2399 22.5304 22.5299C22.3804 22.6799 22.1904 22.7499 22.0004 22.7499Z" fill="currentColor"/>\n</svg>',
|
|
114
|
+
},
|
|
115
|
+
},
|
|
116
|
+
},
|
|
91
117
|
],
|
|
118
|
+
empty_state_cta_leftIcon: {
|
|
119
|
+
kind: "icon",
|
|
120
|
+
data: {
|
|
121
|
+
id: "refresh-2",
|
|
122
|
+
label: "Refresh 2",
|
|
123
|
+
tags: ["arrow", "custom", "outlined", "refresh"],
|
|
124
|
+
svgCode:
|
|
125
|
+
'<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M22 12C22 17.52 17.52 22 12 22C6.48 22 3.11 16.44 3.11 16.44M3.11 16.44H7.63M3.11 16.44V21.44M2 12C2 6.48 6.44 2 12 2C18.67 2 22 7.56 22 7.56M22 7.56V2.56M22 7.56H17.56" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>\n</svg>',
|
|
126
|
+
},
|
|
127
|
+
},
|
|
92
128
|
};
|
|
93
129
|
|
|
94
130
|
export type ICalendar1Content = typeof DEFAULT_CONTENT;
|
|
95
131
|
|
|
96
132
|
export const Calendar1: IBlock = {
|
|
97
133
|
category_id: "calendar",
|
|
98
|
-
title: "
|
|
134
|
+
title: "Calendar 1",
|
|
99
135
|
key: "calendar-1",
|
|
100
136
|
version: "v1",
|
|
101
137
|
content_schema: [
|
|
@@ -155,6 +191,11 @@ export const Calendar1: IBlock = {
|
|
|
155
191
|
label: "Event Starts Date",
|
|
156
192
|
field_interface: "HeadingWidget",
|
|
157
193
|
},
|
|
194
|
+
{
|
|
195
|
+
key: "starts_at",
|
|
196
|
+
label: "Start Time",
|
|
197
|
+
field_interface: "TypographyWidget",
|
|
198
|
+
},
|
|
158
199
|
{
|
|
159
200
|
key: "event_starts_month",
|
|
160
201
|
label: "Event Starts Month",
|
|
@@ -175,6 +216,11 @@ export const Calendar1: IBlock = {
|
|
|
175
216
|
label: "Event Ends Date",
|
|
176
217
|
field_interface: "HeadingWidget",
|
|
177
218
|
},
|
|
219
|
+
{
|
|
220
|
+
key: "ends_at",
|
|
221
|
+
label: "End Time",
|
|
222
|
+
field_interface: "TypographyWidget",
|
|
223
|
+
},
|
|
178
224
|
{
|
|
179
225
|
key: "event_ends_month",
|
|
180
226
|
label: "Event Ends Month",
|
|
@@ -469,7 +515,11 @@ export const Calendar1: IBlock = {
|
|
|
469
515
|
"line-height": 1.6,
|
|
470
516
|
"margin-bottom": "24px",
|
|
471
517
|
},
|
|
472
|
-
empty_state_cta: {
|
|
518
|
+
empty_state_cta: {
|
|
519
|
+
"text-decoration": "none",
|
|
520
|
+
display: "flex",
|
|
521
|
+
"column-gap": "xs",
|
|
522
|
+
},
|
|
473
523
|
calendar_section: {
|
|
474
524
|
width: "100%",
|
|
475
525
|
display: "flex",
|
|
@@ -516,7 +566,12 @@ export const Calendar1: IBlock = {
|
|
|
516
566
|
},
|
|
517
567
|
calendar_ctas: Array(2)
|
|
518
568
|
.fill(0)
|
|
519
|
-
.map(() => ({
|
|
569
|
+
.map(() => ({
|
|
570
|
+
calendar_cta: {
|
|
571
|
+
display: "flex",
|
|
572
|
+
"column-gap": "xs",
|
|
573
|
+
},
|
|
574
|
+
})),
|
|
520
575
|
},
|
|
521
576
|
content: DEFAULT_CONTENT,
|
|
522
577
|
config: {
|
|
@@ -613,6 +668,40 @@ export const Calendar1: IBlock = {
|
|
|
613
668
|
Typography_Variants: "Body",
|
|
614
669
|
},
|
|
615
670
|
},
|
|
671
|
+
empty_state_cta: {
|
|
672
|
+
selectedVariants: {
|
|
673
|
+
Button_Variants: "Link",
|
|
674
|
+
},
|
|
675
|
+
button_icons: {
|
|
676
|
+
left: {
|
|
677
|
+
enabled: true,
|
|
678
|
+
},
|
|
679
|
+
},
|
|
680
|
+
},
|
|
681
|
+
calendar_ctas: [
|
|
682
|
+
{
|
|
683
|
+
calendar_cta: {
|
|
684
|
+
selectedVariants: {},
|
|
685
|
+
button_icons: {
|
|
686
|
+
left: {
|
|
687
|
+
enabled: true,
|
|
688
|
+
},
|
|
689
|
+
},
|
|
690
|
+
},
|
|
691
|
+
},
|
|
692
|
+
{
|
|
693
|
+
calendar_cta: {
|
|
694
|
+
selectedVariants: {
|
|
695
|
+
Button_Variants: "Secondary",
|
|
696
|
+
},
|
|
697
|
+
button_icons: {
|
|
698
|
+
left: {
|
|
699
|
+
enabled: true,
|
|
700
|
+
},
|
|
701
|
+
},
|
|
702
|
+
},
|
|
703
|
+
},
|
|
704
|
+
],
|
|
616
705
|
},
|
|
617
706
|
},
|
|
618
707
|
],
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
|
-
type ILevoBlockBaseProps,
|
|
3
2
|
Box,
|
|
4
3
|
Button,
|
|
4
|
+
Calendar,
|
|
5
5
|
Container,
|
|
6
6
|
Heading,
|
|
7
|
+
Icon,
|
|
8
|
+
type ILevoBlockBaseProps,
|
|
7
9
|
Section,
|
|
8
10
|
Typography,
|
|
9
11
|
useContentEngine,
|
|
10
|
-
Calendar,
|
|
11
|
-
Icon,
|
|
12
12
|
} from "@levo-so/studio";
|
|
13
13
|
import dayjs from "dayjs";
|
|
14
14
|
import { useState } from "react";
|
|
@@ -20,10 +20,17 @@ const EventCard: React.FC<{
|
|
|
20
20
|
index: number;
|
|
21
21
|
}> = ({ event, index }) => {
|
|
22
22
|
const isEndDateValid = !!(
|
|
23
|
-
dayjs(event?.event_ends_date).isValid() &&
|
|
24
|
-
|
|
23
|
+
dayjs(event?.event_ends_date).isValid() && dayjs(event?.event_ends_month).isValid()
|
|
24
|
+
);
|
|
25
|
+
|
|
26
|
+
const isStartDateIsSameAsEndDate = dayjs(event?.event_starts_date).isSame(
|
|
27
|
+
event?.event_ends_date,
|
|
28
|
+
"day",
|
|
25
29
|
);
|
|
26
30
|
|
|
31
|
+
const isStartTimeValid = dayjs(event?.starts_at).isValid();
|
|
32
|
+
const isEndTimeValid = dayjs(event?.ends_at).isValid();
|
|
33
|
+
|
|
27
34
|
return (
|
|
28
35
|
<Box elementKey={`listing_section.${index}.event`}>
|
|
29
36
|
<Box elementKey={`listing_section.${index}.event_timing`}>
|
|
@@ -31,26 +38,36 @@ const EventCard: React.FC<{
|
|
|
31
38
|
<Heading elementKey={`listing_section.${index}.event_starts_date`}>
|
|
32
39
|
{dayjs(event?.event_starts_date).format("DD")}
|
|
33
40
|
</Heading>
|
|
34
|
-
<Typography
|
|
35
|
-
elementKey={`listing_section.${index}.event_starts_month`}
|
|
36
|
-
>
|
|
41
|
+
<Typography elementKey={`listing_section.${index}.event_starts_month`}>
|
|
37
42
|
{dayjs(event?.event_starts_date).format("MMMM")}
|
|
38
43
|
</Typography>
|
|
39
44
|
</Box>
|
|
40
|
-
{isEndDateValid && (
|
|
45
|
+
{isEndDateValid && !isStartDateIsSameAsEndDate ? (
|
|
41
46
|
<>
|
|
42
47
|
<Typography elementKey={`listing_section.${index}.event_to`} />
|
|
43
48
|
<Box elementKey={`listing_section.${index}.event_ends`}>
|
|
44
49
|
<Heading elementKey={`listing_section.${index}.event_ends_date`}>
|
|
45
50
|
{dayjs(event?.event_ends_date).format("DD")}
|
|
46
51
|
</Heading>
|
|
47
|
-
<Typography
|
|
48
|
-
elementKey={`listing_section.${index}.event_ends_month`}
|
|
49
|
-
>
|
|
52
|
+
<Typography elementKey={`listing_section.${index}.event_ends_month`}>
|
|
50
53
|
{dayjs(event?.event_ends_month).format("MMMM")}
|
|
51
54
|
</Typography>
|
|
52
55
|
</Box>
|
|
53
56
|
</>
|
|
57
|
+
) : (
|
|
58
|
+
<>
|
|
59
|
+
{isStartTimeValid && (
|
|
60
|
+
<Typography elementKey={`listing_section.${index}.starts_at`}>
|
|
61
|
+
{dayjs(event?.starts_at).format("hh:mm a")}
|
|
62
|
+
</Typography>
|
|
63
|
+
)}
|
|
64
|
+
|
|
65
|
+
{isEndTimeValid && (
|
|
66
|
+
<Typography elementKey={`listing_section.${index}.ends_at`}>
|
|
67
|
+
{dayjs(event?.ends_at).format("hh:mm a")}
|
|
68
|
+
</Typography>
|
|
69
|
+
)}
|
|
70
|
+
</>
|
|
54
71
|
)}
|
|
55
72
|
</Box>
|
|
56
73
|
<Box elementKey={`listing_section.${index}.divider`} />
|
|
@@ -58,18 +75,14 @@ const EventCard: React.FC<{
|
|
|
58
75
|
<Heading elementKey={`listing_section.${index}.event_category`} />
|
|
59
76
|
<Box elementKey={`listing_section.${index}.event_sub_content`}>
|
|
60
77
|
<Heading elementKey={`listing_section.${index}.event_title`} />
|
|
61
|
-
<Typography
|
|
62
|
-
elementKey={`listing_section.${index}.event_description`}
|
|
63
|
-
/>
|
|
78
|
+
<Typography elementKey={`listing_section.${index}.event_description`} />
|
|
64
79
|
</Box>
|
|
65
80
|
</Box>
|
|
66
81
|
</Box>
|
|
67
82
|
);
|
|
68
83
|
};
|
|
69
84
|
|
|
70
|
-
const Calendar1: React.FC<ILevoBlockBaseProps<ICalendar1Content>> = ({
|
|
71
|
-
content,
|
|
72
|
-
}) => {
|
|
85
|
+
const Calendar1: React.FC<ILevoBlockBaseProps<ICalendar1Content>> = ({ content }) => {
|
|
73
86
|
const { data, query, setQuery } = useContentEngine("listing_section");
|
|
74
87
|
|
|
75
88
|
const [calendarMonth, setCalendarMonth] = useState<Date>(new Date());
|
|
@@ -121,13 +134,7 @@ const Calendar1: React.FC<ILevoBlockBaseProps<ICalendar1Content>> = ({
|
|
|
121
134
|
<Box elementKey="listing_section_levoGroup" data-levo_group>
|
|
122
135
|
{data && data.length > 0 ? (
|
|
123
136
|
data?.map((item: any, index: number) => {
|
|
124
|
-
return
|
|
125
|
-
<EventCard
|
|
126
|
-
key={`listing_section.${index}`}
|
|
127
|
-
index={index}
|
|
128
|
-
event={item}
|
|
129
|
-
/>
|
|
130
|
-
);
|
|
137
|
+
return <EventCard key={`listing_section.${index}`} index={index} event={item} />;
|
|
131
138
|
})
|
|
132
139
|
) : (
|
|
133
140
|
<Box elementKey="empty_state">
|
|
@@ -161,10 +168,7 @@ const Calendar1: React.FC<ILevoBlockBaseProps<ICalendar1Content>> = ({
|
|
|
161
168
|
data-levo_group_item
|
|
162
169
|
/>
|
|
163
170
|
))}
|
|
164
|
-
<Button
|
|
165
|
-
elementKey="empty_state_cta"
|
|
166
|
-
onClick={handleResetFilter}
|
|
167
|
-
/>
|
|
171
|
+
<Button elementKey="empty_state_cta" onClick={handleResetFilter} />
|
|
168
172
|
</Box>
|
|
169
173
|
</Box>
|
|
170
174
|
</Box>
|