@dcodegroup-au/page-builder 0.6.3 → 0.6.5

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;
@@ -922,11 +918,17 @@ select {
922
918
  .mt-\[40px\] {
923
919
  margin-top: 40px;
924
920
  }
925
- .line-clamp-6 {
921
+ .line-clamp-3 {
922
+ overflow: hidden;
923
+ display: -webkit-box;
924
+ -webkit-box-orient: vertical;
925
+ -webkit-line-clamp: 3;
926
+ }
927
+ .line-clamp-4 {
926
928
  overflow: hidden;
927
929
  display: -webkit-box;
928
930
  -webkit-box-orient: vertical;
929
- -webkit-line-clamp: 6;
931
+ -webkit-line-clamp: 4;
930
932
  }
931
933
  .\!block {
932
934
  display: block !important;
@@ -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;
@@ -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-6",
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, [
@@ -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-6",
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, [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcodegroup-au/page-builder",
3
- "version": "0.6.3",
3
+ "version": "0.6.5",
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-6"
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">