@dcodegroup-au/page-builder 0.6.4 → 0.6.6

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.
@@ -796,10 +796,6 @@ select {
796
796
  margin-left: auto;
797
797
  margin-right: auto;
798
798
  }
799
- .my-3 {
800
- margin-top: 0.75rem;
801
- margin-bottom: 0.75rem;
802
- }
803
799
  .my-4 {
804
800
  margin-top: 1rem;
805
801
  margin-bottom: 1rem;
@@ -928,6 +924,12 @@ select {
928
924
  -webkit-box-orient: vertical;
929
925
  -webkit-line-clamp: 3;
930
926
  }
927
+ .line-clamp-4 {
928
+ overflow: hidden;
929
+ display: -webkit-box;
930
+ -webkit-box-orient: vertical;
931
+ -webkit-line-clamp: 4;
932
+ }
931
933
  .\!block {
932
934
  display: block !important;
933
935
  }
@@ -1015,8 +1017,8 @@ select {
1015
1017
  .h-\[28px\] {
1016
1018
  height: 28px;
1017
1019
  }
1018
- .h-\[309px\] {
1019
- height: 309px;
1020
+ .h-\[318px\] {
1021
+ height: 318px;
1020
1022
  }
1021
1023
  .h-\[32px\] {
1022
1024
  height: 32px;
@@ -1061,6 +1063,9 @@ select {
1061
1063
  .max-h-\[200px\] {
1062
1064
  max-height: 200px;
1063
1065
  }
1066
+ .max-h-\[48px\] {
1067
+ max-height: 48px;
1068
+ }
1064
1069
  .max-h-screen {
1065
1070
  max-height: 100vh;
1066
1071
  }
@@ -1197,9 +1202,6 @@ select {
1197
1202
  .min-w-\[480px\] {
1198
1203
  min-width: 480px;
1199
1204
  }
1200
- .min-w-\[48px\] {
1201
- min-width: 48px;
1202
- }
1203
1205
  .min-w-\[50\%\] {
1204
1206
  min-width: 50%;
1205
1207
  }
@@ -48408,22 +48408,25 @@ const _sfc_main$k = {
48408
48408
  }
48409
48409
  };
48410
48410
  const _hoisted_1$y = { class: "relative" };
48411
- const _hoisted_2$h = { class: "mb-4" };
48411
+ const _hoisted_2$h = {
48412
+ key: 0,
48413
+ class: "mb-4"
48414
+ };
48412
48415
  const _hoisted_3$g = ["src"];
48413
48416
  const _hoisted_4$g = {
48414
- key: 0,
48417
+ key: 1,
48415
48418
  class: "flex gap-2"
48416
48419
  };
48417
- const _hoisted_5$g = { class: "my-3" };
48420
+ const _hoisted_5$g = { class: "mb-2" };
48418
48421
  const _hoisted_6$g = ["href"];
48419
48422
  const _hoisted_7$f = ["innerHTML"];
48420
48423
  const _hoisted_8$e = {
48421
- key: 1,
48424
+ key: 2,
48422
48425
  class: "flex gap-2 text-gray-600 mt-6 font-semibold"
48423
48426
  };
48424
48427
  const _hoisted_9$e = ["innerHTML"];
48425
48428
  const _hoisted_10$b = {
48426
- key: 2,
48429
+ key: 3,
48427
48430
  class: "flex gap-2 text-gray-600 mt-2 font-semibold"
48428
48431
  };
48429
48432
  const _hoisted_11$a = ["innerHTML"];
@@ -48474,20 +48477,19 @@ const _sfc_main$j = {
48474
48477
  (openBlock(), createElementBlock(Fragment, null, renderList(slides, (slide, index) => {
48475
48478
  return createElementVNode("div", {
48476
48479
  key: index,
48477
- class: normalizeClass(["slider-item flex-shrink-0 flex-1 mr-6 min-w-[480px]", { "h-[309px]": !__props.hasBackground, "h-full": __props.hasBackground }])
48480
+ class: normalizeClass(["slider-item flex-shrink-0 flex-1 mr-6 min-w-[480px]", { "h-[318px]": !__props.hasBackground, "h-full": __props.hasBackground }])
48478
48481
  }, [
48479
48482
  createElementVNode("div", {
48480
48483
  class: normalizeClass(["w-full p-4 rounded-[16px]", { "bg-gray-50 h-full flex flex-col justify-between": !__props.hasBackground, "bg-white": __props.hasBackground }])
48481
48484
  }, [
48482
48485
  createElementVNode("div", null, [
48483
- createElementVNode("div", _hoisted_2$h, [
48484
- slide.image ? (openBlock(), createElementBlock("img", {
48485
- key: 0,
48486
+ slide.image ? (openBlock(), createElementBlock("div", _hoisted_2$h, [
48487
+ createElementVNode("img", {
48486
48488
  src: slide.image,
48487
48489
  alt: "Slide Image",
48488
48490
  class: "rounded-[8px] h-[220px] w-full object-cover"
48489
- }, null, 8, _hoisted_3$g)) : createCommentVNode("", true)
48490
- ]),
48491
+ }, null, 8, _hoisted_3$g)
48492
+ ])) : createCommentVNode("", true),
48491
48493
  slide.tags && slide.tags.length ? (openBlock(), createElementBlock("div", _hoisted_4$g, [
48492
48494
  (openBlock(true), createElementBlock(Fragment, null, renderList(slide.tags, (tag) => {
48493
48495
  return openBlock(), createElementBlock("span", {
@@ -48498,13 +48500,13 @@ const _sfc_main$j = {
48498
48500
  ])) : createCommentVNode("", true),
48499
48501
  createElementVNode("h3", _hoisted_5$g, [
48500
48502
  createElementVNode("a", {
48501
- class: "text-[24px] font-semibold text-gray-900 leading-[32px] hover:underline",
48503
+ class: "text-[24px] font-semibold text-gray-900 leading-[32px] hover:underline line-clamp-3",
48502
48504
  href: unref(formatUrl)(slide.url),
48503
48505
  target: "_blank"
48504
48506
  }, toDisplayString(slide == null ? void 0 : slide.title), 9, _hoisted_6$g)
48505
48507
  ]),
48506
48508
  createElementVNode("p", {
48507
- class: "text-base font-normal text-gray-600 leading-[24px] line-clamp-3",
48509
+ class: "text-base font-normal text-gray-600 leading-[24px] line-clamp-4",
48508
48510
  innerHTML: slide == null ? void 0 : slide.description
48509
48511
  }, null, 8, _hoisted_7$f),
48510
48512
  (slide == null ? void 0 : slide.type) === "event" ? (openBlock(), createElementBlock("div", _hoisted_8$e, [
@@ -48881,7 +48883,7 @@ const _sfc_main$f = {
48881
48883
  ], 8, _hoisted_4$e)) : createCommentVNode("", true),
48882
48884
  headerComponent.value.primary_button.show ? (openBlock(), createElementBlock("a", {
48883
48885
  key: 1,
48884
- class: "bg-brand-600 hover:bg-brand-800 text-white h-[40px] rounded-full px-[14px] py-[10px] inline-flex gap-1.5 items-center shadow-xs text-base",
48886
+ class: "font-semibold bg-brand-600 hover:bg-brand-800 text-white h-[40px] rounded-full px-[14px] py-[10px] inline-flex gap-1.5 items-center shadow-xs text-base",
48885
48887
  href: unref(formatUrl)(headerComponent.value.primary_button.url),
48886
48888
  target: headerComponent.value.primary_button.open_in_new_tab ? "_blank" : ""
48887
48889
  }, [
@@ -49037,7 +49039,7 @@ const _hoisted_9$b = { class: "text-[36px] text-gray-900 font-semibold" };
49037
49039
  const _hoisted_10$9 = ["innerHTML"];
49038
49040
  const _hoisted_11$8 = {
49039
49041
  key: 0,
49040
- class: "max-w-[48px] min-w-[48px] w-full h-[48px] bg-brand-100 border-[8px] border-brand-50 rounded-full flex items-center justify-center"
49042
+ class: "max-w-[48px] w-full max-h-[48px] h-full bg-brand-100 border-[8px] border-brand-50 rounded-full flex items-center justify-center"
49041
49043
  };
49042
49044
  const _hoisted_12$6 = { class: "font-semibold text-[20px] text-gray-900" };
49043
49045
  const _hoisted_13$4 = ["innerHTML"];
@@ -49167,7 +49169,7 @@ const _sfc_main$d = {
49167
49169
  }, null, 8, _hoisted_13$4),
49168
49170
  ((_c2 = item == null ? void 0 : item.primary_button) == null ? void 0 : _c2.show) ? (openBlock(), createElementBlock("a", {
49169
49171
  key: 0,
49170
- class: "text-brand-700 inline-flex gap-1.5 items-center font-semibold text-base mt-4",
49172
+ class: "cursor-pointer text-brand-700 inline-flex gap-1.5 items-center font-semibold text-base mt-4",
49171
49173
  href: unref(formatUrl)(item.primary_button.url),
49172
49174
  target: item.primary_button.open_in_new_tab ? "_blank" : ""
49173
49175
  }, [
@@ -48411,22 +48411,25 @@ ${escapeText(this.code(index, length))}
48411
48411
  }
48412
48412
  };
48413
48413
  const _hoisted_1$y = { class: "relative" };
48414
- const _hoisted_2$h = { class: "mb-4" };
48414
+ const _hoisted_2$h = {
48415
+ key: 0,
48416
+ class: "mb-4"
48417
+ };
48415
48418
  const _hoisted_3$g = ["src"];
48416
48419
  const _hoisted_4$g = {
48417
- key: 0,
48420
+ key: 1,
48418
48421
  class: "flex gap-2"
48419
48422
  };
48420
- const _hoisted_5$g = { class: "my-3" };
48423
+ const _hoisted_5$g = { class: "mb-2" };
48421
48424
  const _hoisted_6$g = ["href"];
48422
48425
  const _hoisted_7$f = ["innerHTML"];
48423
48426
  const _hoisted_8$e = {
48424
- key: 1,
48427
+ key: 2,
48425
48428
  class: "flex gap-2 text-gray-600 mt-6 font-semibold"
48426
48429
  };
48427
48430
  const _hoisted_9$e = ["innerHTML"];
48428
48431
  const _hoisted_10$b = {
48429
- key: 2,
48432
+ key: 3,
48430
48433
  class: "flex gap-2 text-gray-600 mt-2 font-semibold"
48431
48434
  };
48432
48435
  const _hoisted_11$a = ["innerHTML"];
@@ -48477,20 +48480,19 @@ ${escapeText(this.code(index, length))}
48477
48480
  (vue.openBlock(), vue.createElementBlock(vue.Fragment, null, vue.renderList(slides, (slide, index) => {
48478
48481
  return vue.createElementVNode("div", {
48479
48482
  key: index,
48480
- class: vue.normalizeClass(["slider-item flex-shrink-0 flex-1 mr-6 min-w-[480px]", { "h-[309px]": !__props.hasBackground, "h-full": __props.hasBackground }])
48483
+ class: vue.normalizeClass(["slider-item flex-shrink-0 flex-1 mr-6 min-w-[480px]", { "h-[318px]": !__props.hasBackground, "h-full": __props.hasBackground }])
48481
48484
  }, [
48482
48485
  vue.createElementVNode("div", {
48483
48486
  class: vue.normalizeClass(["w-full p-4 rounded-[16px]", { "bg-gray-50 h-full flex flex-col justify-between": !__props.hasBackground, "bg-white": __props.hasBackground }])
48484
48487
  }, [
48485
48488
  vue.createElementVNode("div", null, [
48486
- vue.createElementVNode("div", _hoisted_2$h, [
48487
- slide.image ? (vue.openBlock(), vue.createElementBlock("img", {
48488
- key: 0,
48489
+ slide.image ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$h, [
48490
+ vue.createElementVNode("img", {
48489
48491
  src: slide.image,
48490
48492
  alt: "Slide Image",
48491
48493
  class: "rounded-[8px] h-[220px] w-full object-cover"
48492
- }, null, 8, _hoisted_3$g)) : vue.createCommentVNode("", true)
48493
- ]),
48494
+ }, null, 8, _hoisted_3$g)
48495
+ ])) : vue.createCommentVNode("", true),
48494
48496
  slide.tags && slide.tags.length ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$g, [
48495
48497
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(slide.tags, (tag) => {
48496
48498
  return vue.openBlock(), vue.createElementBlock("span", {
@@ -48501,13 +48503,13 @@ ${escapeText(this.code(index, length))}
48501
48503
  ])) : vue.createCommentVNode("", true),
48502
48504
  vue.createElementVNode("h3", _hoisted_5$g, [
48503
48505
  vue.createElementVNode("a", {
48504
- class: "text-[24px] font-semibold text-gray-900 leading-[32px] hover:underline",
48506
+ class: "text-[24px] font-semibold text-gray-900 leading-[32px] hover:underline line-clamp-3",
48505
48507
  href: vue.unref(formatUrl)(slide.url),
48506
48508
  target: "_blank"
48507
48509
  }, vue.toDisplayString(slide == null ? void 0 : slide.title), 9, _hoisted_6$g)
48508
48510
  ]),
48509
48511
  vue.createElementVNode("p", {
48510
- class: "text-base font-normal text-gray-600 leading-[24px] line-clamp-3",
48512
+ class: "text-base font-normal text-gray-600 leading-[24px] line-clamp-4",
48511
48513
  innerHTML: slide == null ? void 0 : slide.description
48512
48514
  }, null, 8, _hoisted_7$f),
48513
48515
  (slide == null ? void 0 : slide.type) === "event" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_8$e, [
@@ -48884,7 +48886,7 @@ ${escapeText(this.code(index, length))}
48884
48886
  ], 8, _hoisted_4$e)) : vue.createCommentVNode("", true),
48885
48887
  headerComponent.value.primary_button.show ? (vue.openBlock(), vue.createElementBlock("a", {
48886
48888
  key: 1,
48887
- class: "bg-brand-600 hover:bg-brand-800 text-white h-[40px] rounded-full px-[14px] py-[10px] inline-flex gap-1.5 items-center shadow-xs text-base",
48889
+ class: "font-semibold bg-brand-600 hover:bg-brand-800 text-white h-[40px] rounded-full px-[14px] py-[10px] inline-flex gap-1.5 items-center shadow-xs text-base",
48888
48890
  href: vue.unref(formatUrl)(headerComponent.value.primary_button.url),
48889
48891
  target: headerComponent.value.primary_button.open_in_new_tab ? "_blank" : ""
48890
48892
  }, [
@@ -49040,7 +49042,7 @@ ${escapeText(this.code(index, length))}
49040
49042
  const _hoisted_10$9 = ["innerHTML"];
49041
49043
  const _hoisted_11$8 = {
49042
49044
  key: 0,
49043
- class: "max-w-[48px] min-w-[48px] w-full h-[48px] bg-brand-100 border-[8px] border-brand-50 rounded-full flex items-center justify-center"
49045
+ class: "max-w-[48px] w-full max-h-[48px] h-full bg-brand-100 border-[8px] border-brand-50 rounded-full flex items-center justify-center"
49044
49046
  };
49045
49047
  const _hoisted_12$6 = { class: "font-semibold text-[20px] text-gray-900" };
49046
49048
  const _hoisted_13$4 = ["innerHTML"];
@@ -49170,7 +49172,7 @@ ${escapeText(this.code(index, length))}
49170
49172
  }, null, 8, _hoisted_13$4),
49171
49173
  ((_c2 = item == null ? void 0 : item.primary_button) == null ? void 0 : _c2.show) ? (vue.openBlock(), vue.createElementBlock("a", {
49172
49174
  key: 0,
49173
- class: "text-brand-700 inline-flex gap-1.5 items-center font-semibold text-base mt-4",
49175
+ class: "cursor-pointer text-brand-700 inline-flex gap-1.5 items-center font-semibold text-base mt-4",
49174
49176
  href: vue.unref(formatUrl)(item.primary_button.url),
49175
49177
  target: item.primary_button.open_in_new_tab ? "_blank" : ""
49176
49178
  }, [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcodegroup-au/page-builder",
3
- "version": "0.6.4",
3
+ "version": "0.6.6",
4
4
  "exports": {
5
5
  ".": {
6
6
  "import": "./dist/page-builder.es.js"
@@ -9,13 +9,12 @@
9
9
  v-for="(slide, index) in slides"
10
10
  :key="index"
11
11
  class="slider-item flex-shrink-0 flex-1 mr-6 min-w-[480px]"
12
- :class="{'h-[309px]': !hasBackground, 'h-full': hasBackground}"
12
+ :class="{'h-[318px]': !hasBackground, 'h-full': hasBackground}"
13
13
  >
14
14
  <div class="w-full p-4 rounded-[16px]" :class="{'bg-gray-50 h-full flex flex-col justify-between': !hasBackground, 'bg-white': hasBackground}">
15
15
  <div>
16
- <div class="mb-4">
16
+ <div class="mb-4" v-if="slide.image">
17
17
  <img
18
- v-if="slide.image"
19
18
  :src="slide.image"
20
19
  alt="Slide Image"
21
20
  class="rounded-[8px] h-[220px] w-full object-cover"
@@ -30,14 +29,14 @@
30
29
  {{ tag }}
31
30
  </span>
32
31
  </div>
33
- <h3 class="my-3">
34
- <a class="text-[24px] font-semibold text-gray-900 leading-[32px] hover:underline"
32
+ <h3 class="mb-2">
33
+ <a class="text-[24px] font-semibold text-gray-900 leading-[32px] hover:underline line-clamp-3"
35
34
  :href="formatUrl(slide.url)" target="_blank">
36
35
  {{ slide?.title }}
37
36
  </a>
38
37
  </h3>
39
38
  <p
40
- class="text-base font-normal text-gray-600 leading-[24px] line-clamp-3"
39
+ class="text-base font-normal text-gray-600 leading-[24px] line-clamp-4"
41
40
  v-html="slide?.description"
42
41
  ></p>
43
42
  <div v-if="slide?.type === 'event'" class="flex gap-2 text-gray-600 mt-6 font-semibold">
@@ -14,7 +14,7 @@
14
14
  :target="headerComponent.secondary_button.open_in_new_tab ? '_blank' : ''">
15
15
  <span>{{ headerComponent.secondary_button.label }}</span>
16
16
  </a>
17
- <a class="bg-brand-600 hover:bg-brand-800 text-white h-[40px] rounded-full px-[14px] py-[10px] inline-flex gap-1.5 items-center shadow-xs text-base"
17
+ <a class="font-semibold bg-brand-600 hover:bg-brand-800 text-white h-[40px] rounded-full px-[14px] py-[10px] inline-flex gap-1.5 items-center shadow-xs text-base"
18
18
  :href="formatUrl(headerComponent.primary_button.url)"
19
19
  v-if="headerComponent.primary_button.show"
20
20
  :target="headerComponent.primary_button.open_in_new_tab ? '_blank' : ''">
@@ -33,15 +33,15 @@
33
33
  }">
34
34
  <template v-if="item.title">
35
35
  <div v-if="item?.icon"
36
- class="max-w-[48px] min-w-[48px] w-full h-[48px] bg-brand-100 border-[8px] border-brand-50 rounded-full flex items-center justify-center">
36
+ class="max-w-[48px] w-full max-h-[48px] h-full bg-brand-100 border-[8px] border-brand-50 rounded-full flex items-center justify-center">
37
37
  <IconComponent :icon="item.icon" icon-classes="w-5 h-5 text-brand-600"></IconComponent>
38
38
  </div>
39
39
  <div class="max-w-[324px] ql-editor" :class="{'max-w-full': featureItemsComponent?.has_background}">
40
40
  <h3 class="font-semibold text-[20px] text-gray-900">{{ item.title }}</h3>
41
- <p class="mt-2 text-md font-normal text-gray-600 leading-[24px]" v-html="item.supporting_text ?? item.description"></p>
41
+ <p class=" mt-2 text-md font-normal text-gray-600 leading-[24px]" v-html="item.supporting_text ?? item.description"></p>
42
42
  <a
43
43
  v-if="item?.primary_button?.show"
44
- class="text-brand-700 inline-flex gap-1.5 items-center font-semibold text-base mt-4"
44
+ class="cursor-pointer text-brand-700 inline-flex gap-1.5 items-center font-semibold text-base mt-4"
45
45
  :href="formatUrl(item.primary_button.url)"
46
46
  :target="item.primary_button.open_in_new_tab ? '_blank' : ''">
47
47
  {{ item.primary_button.label }}