@dcodegroup-au/page-builder 0.8.2 → 0.8.3

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.
@@ -1252,6 +1252,9 @@ select {
1252
1252
  .transform {
1253
1253
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
1254
1254
  }
1255
+ .cursor-default {
1256
+ cursor: default;
1257
+ }
1255
1258
  .cursor-pointer {
1256
1259
  cursor: pointer;
1257
1260
  }
@@ -1388,9 +1391,6 @@ select {
1388
1391
  .rounded-\[24px\] {
1389
1392
  border-radius: 24px;
1390
1393
  }
1391
- .rounded-\[6px\] {
1392
- border-radius: 6px;
1393
- }
1394
1394
  .rounded-\[8px\] {
1395
1395
  border-radius: 8px;
1396
1396
  }
@@ -1465,10 +1465,6 @@ select {
1465
1465
  .border-none {
1466
1466
  border-style: none;
1467
1467
  }
1468
- .border-brand-200 {
1469
- --tw-border-opacity: 1;
1470
- border-color: rgb(217 176 200 / var(--tw-border-opacity, 1));
1471
- }
1472
1468
  .border-brand-300 {
1473
1469
  --tw-border-opacity: 1;
1474
1470
  border-color: rgb(199 138 173 / var(--tw-border-opacity, 1));
@@ -1505,22 +1501,18 @@ select {
1505
1501
  --tw-border-opacity: 1;
1506
1502
  border-color: rgb(209 213 219 / var(--tw-border-opacity, 1));
1507
1503
  }
1508
- .border-navy-100 {
1504
+ .border-gray-blue-200 {
1509
1505
  --tw-border-opacity: 1;
1510
- border-color: rgb(169 184 198 / var(--tw-border-opacity, 1));
1506
+ border-color: rgb(213 217 235 / var(--tw-border-opacity, 1));
1511
1507
  }
1512
- .border-navy-200 {
1508
+ .border-navy-100 {
1513
1509
  --tw-border-opacity: 1;
1514
- border-color: rgb(148 166 184 / var(--tw-border-opacity, 1));
1510
+ border-color: rgb(169 184 198 / var(--tw-border-opacity, 1));
1515
1511
  }
1516
1512
  .border-navy-25 {
1517
1513
  --tw-border-opacity: 1;
1518
1514
  border-color: rgb(239 242 245 / var(--tw-border-opacity, 1));
1519
1515
  }
1520
- .border-orange-200 {
1521
- --tw-border-opacity: 1;
1522
- border-color: rgb(249 219 175 / var(--tw-border-opacity, 1));
1523
- }
1524
1516
  .border-transparent {
1525
1517
  border-color: transparent;
1526
1518
  }
@@ -1564,10 +1556,6 @@ select {
1564
1556
  --tw-bg-opacity: 1;
1565
1557
  background-color: rgb(245 239 243 / var(--tw-bg-opacity, 1));
1566
1558
  }
1567
- .bg-brand-50 {
1568
- --tw-bg-opacity: 1;
1569
- background-color: rgb(237 222 231 / var(--tw-bg-opacity, 1));
1570
- }
1571
1559
  .bg-brand-500 {
1572
1560
  --tw-bg-opacity: 1;
1573
1561
  background-color: rgb(169 73 129 / var(--tw-bg-opacity, 1));
@@ -1600,6 +1588,10 @@ select {
1600
1588
  --tw-bg-opacity: 1;
1601
1589
  background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));
1602
1590
  }
1591
+ .bg-gray-blue-50 {
1592
+ --tw-bg-opacity: 1;
1593
+ background-color: rgb(248 249 252 / var(--tw-bg-opacity, 1));
1594
+ }
1603
1595
  .bg-navy-25 {
1604
1596
  --tw-bg-opacity: 1;
1605
1597
  background-color: rgb(239 242 245 / var(--tw-bg-opacity, 1));
@@ -1620,10 +1612,6 @@ select {
1620
1612
  --tw-bg-opacity: 1;
1621
1613
  background-color: rgb(32 62 90 / var(--tw-bg-opacity, 1));
1622
1614
  }
1623
- .bg-orange-50 {
1624
- --tw-bg-opacity: 1;
1625
- background-color: rgb(254 246 238 / var(--tw-bg-opacity, 1));
1626
- }
1627
1615
  .bg-pale-100 {
1628
1616
  --tw-bg-opacity: 1;
1629
1617
  background-color: rgb(251 245 244 / var(--tw-bg-opacity, 1));
@@ -1687,6 +1675,10 @@ select {
1687
1675
  padding-left: 0px;
1688
1676
  padding-right: 0px;
1689
1677
  }
1678
+ .px-1\.5 {
1679
+ padding-left: 0.375rem;
1680
+ padding-right: 0.375rem;
1681
+ }
1690
1682
  .px-12 {
1691
1683
  padding-left: 3rem;
1692
1684
  padding-right: 3rem;
@@ -2034,6 +2026,10 @@ select {
2034
2026
  --tw-text-opacity: 1;
2035
2027
  color: rgb(17 24 39 / var(--tw-text-opacity, 1));
2036
2028
  }
2029
+ .text-gray-blue-700 {
2030
+ --tw-text-opacity: 1;
2031
+ color: rgb(54 63 114 / var(--tw-text-opacity, 1));
2032
+ }
2037
2033
  .text-navy-25 {
2038
2034
  --tw-text-opacity: 1;
2039
2035
  color: rgb(239 242 245 / var(--tw-text-opacity, 1));
@@ -2042,18 +2038,10 @@ select {
2042
2038
  --tw-text-opacity: 1;
2043
2039
  color: rgb(223 229 236 / var(--tw-text-opacity, 1));
2044
2040
  }
2045
- .text-navy-700 {
2046
- --tw-text-opacity: 1;
2047
- color: rgb(40 77 112 / var(--tw-text-opacity, 1));
2048
- }
2049
2041
  .text-navy-800 {
2050
2042
  --tw-text-opacity: 1;
2051
2043
  color: rgb(32 62 90 / var(--tw-text-opacity, 1));
2052
2044
  }
2053
- .text-orange-700 {
2054
- --tw-text-opacity: 1;
2055
- color: rgb(185 56 21 / var(--tw-text-opacity, 1));
2056
- }
2057
2045
  .text-success-500 {
2058
2046
  --tw-text-opacity: 1;
2059
2047
  color: rgb(23 178 106 / var(--tw-text-opacity, 1));
@@ -3907,7 +3895,7 @@ select {
3907
3895
  -webkit-line-clamp: 4; /* Limit the text to 3 lines */
3908
3896
  }
3909
3897
 
3910
- .card[data-v-77dcb437] {
3898
+ .card[data-v-aab1688f] {
3911
3899
  display: flex;
3912
3900
  flex-direction: column;
3913
3901
  align-items: center;
@@ -45235,8 +45235,8 @@ const _hoisted_15$7 = {
45235
45235
  class: "flex flex-col gap-1.5"
45236
45236
  };
45237
45237
  const _hoisted_16$4 = ["onUpdate:modelValue", "maxlength"];
45238
- const _hoisted_17$2 = ["onUpdate:modelValue", "maxlength"];
45239
- const _hoisted_18$2 = { key: 2 };
45238
+ const _hoisted_17$3 = ["onUpdate:modelValue", "maxlength"];
45239
+ const _hoisted_18$3 = { key: 2 };
45240
45240
  const _sfc_main$C = {
45241
45241
  __name: "Links",
45242
45242
  props: {
@@ -45416,7 +45416,7 @@ const _sfc_main$C = {
45416
45416
  maxlength: ((_b2 = componentData.value) == null ? void 0 : _b2.max_title) ?? 200,
45417
45417
  rows: "4",
45418
45418
  class: "border-1 border-solid border-gray-300 rounded-lg bg-white w-full"
45419
- }, null, 8, _hoisted_17$2)), [
45419
+ }, null, 8, _hoisted_17$3)), [
45420
45420
  [vModelText, item.title]
45421
45421
  ]) : createCommentVNode("", true)
45422
45422
  ];
@@ -45436,7 +45436,7 @@ const _sfc_main$C = {
45436
45436
  sites: _ctx.sites,
45437
45437
  forms: __props.forms
45438
45438
  }, null, 8, ["name", "type", "onUpdate:type", "url", "onUpdate:url", "openInNewTab", "onUpdate:openInNewTab", "sites", "forms"])) : createCommentVNode("", true)
45439
- ])) : (openBlock(), createElementBlock("div", _hoisted_18$2, [
45439
+ ])) : (openBlock(), createElementBlock("div", _hoisted_18$3, [
45440
45440
  createVNode(_sfc_main$P, {
45441
45441
  "is-vertical": "",
45442
45442
  field: "image",
@@ -46194,8 +46194,8 @@ const _hoisted_15$6 = {
46194
46194
  class: "mb-4 px-6 py-5 rounded-xl bg-gray-50"
46195
46195
  };
46196
46196
  const _hoisted_16$3 = { class: "flex flex-col gap-1 pt-6 text-gray-600" };
46197
- const _hoisted_17$1 = ["value"];
46198
- const _hoisted_18$1 = {
46197
+ const _hoisted_17$2 = ["value"];
46198
+ const _hoisted_18$2 = {
46199
46199
  key: 1,
46200
46200
  class: "rounded-xl bg-gray-50 px-6 py-5"
46201
46201
  };
@@ -46349,7 +46349,7 @@ const _sfc_main$t = {
46349
46349
  name: "url"
46350
46350
  }, [
46351
46351
  (openBlock(true), createElementBlock(Fragment, null, renderList(__props.breadcrumbs, (b) => {
46352
- return openBlock(), createElementBlock("option", { value: b }, toDisplayString(b), 9, _hoisted_17$1);
46352
+ return openBlock(), createElementBlock("option", { value: b }, toDisplayString(b), 9, _hoisted_17$2);
46353
46353
  }), 256))
46354
46354
  ], 512), [
46355
46355
  [vModelSelect, __props.modelValue.breadcrumb]
@@ -46360,7 +46360,7 @@ const _sfc_main$t = {
46360
46360
  _cache[2] || (_cache[2] = createElementVNode("p", null, "This sets the section name shown in the breadcrumb (e.g. Home / Who We Are / Page). Leave blank to skip the section.", -1))
46361
46361
  ])
46362
46362
  ])) : createCommentVNode("", true),
46363
- !unref(selected) ? (openBlock(), createElementBlock("div", _hoisted_18$1, [
46363
+ !unref(selected) ? (openBlock(), createElementBlock("div", _hoisted_18$2, [
46364
46364
  createVNode(Instructions)
46365
46365
  ])) : createCommentVNode("", true),
46366
46366
  (openBlock(), createBlock(resolveDynamicComponent(currentComponent.value), {
@@ -48459,7 +48459,7 @@ const _hoisted_2$h = {
48459
48459
  const _hoisted_3$g = ["src"];
48460
48460
  const _hoisted_4$g = {
48461
48461
  key: 1,
48462
- class: "flex gap-2"
48462
+ class: "flex gap-2 mb-2"
48463
48463
  };
48464
48464
  const _hoisted_5$g = { class: "mb-2" };
48465
48465
  const _hoisted_6$g = ["href"];
@@ -48568,7 +48568,7 @@ const _sfc_main$j = {
48568
48568
  (openBlock(true), createElementBlock(Fragment, null, renderList(slide.tags, (tag) => {
48569
48569
  return openBlock(), createElementBlock("span", {
48570
48570
  key: tag,
48571
- class: "bg-navy-50 border border-navy-200 text-navy-700 px-2 py-0.5 rounded-[6px] text-sm"
48571
+ class: "border py-0.5 px-1.5 text-xs font-medium bg-gray-blue-50 border-gray-blue-200 text-gray-blue-700 rounded-md"
48572
48572
  }, toDisplayString(tag), 1);
48573
48573
  }), 128))
48574
48574
  ])) : createCommentVNode("", true),
@@ -48711,27 +48711,24 @@ const _hoisted_3$f = {
48711
48711
  const _hoisted_4$f = ["src"];
48712
48712
  const _hoisted_5$f = ["onClick"];
48713
48713
  const _hoisted_6$f = ["src"];
48714
- const _hoisted_7$e = ["src"];
48715
- const _hoisted_8$d = {
48716
- key: 2,
48717
- class: "w-full h-[281px] object-cover rounded-lg md:rounded-2xl mb-4",
48718
- alt: "No Available",
48719
- src: _imports_0
48720
- };
48721
- const _hoisted_9$d = { class: "flex flex-col gap-2 items-start text-left w-full" };
48722
- const _hoisted_10$9 = {
48714
+ const _hoisted_7$e = ["href"];
48715
+ const _hoisted_8$d = ["src"];
48716
+ const _hoisted_9$d = ["href"];
48717
+ const _hoisted_10$9 = { class: "flex flex-col gap-2 items-start text-left w-full" };
48718
+ const _hoisted_11$8 = {
48723
48719
  key: 0,
48724
48720
  class: "flex gap-2"
48725
48721
  };
48726
- const _hoisted_11$8 = ["href"];
48727
- const _hoisted_12$6 = { class: "flex justify-between" };
48728
- const _hoisted_13$6 = ["innerHTML"];
48729
- const _hoisted_14$5 = { class: "text-gray-500 text-sm mb-4" };
48730
- const _hoisted_15$4 = {
48722
+ const _hoisted_12$6 = ["href"];
48723
+ const _hoisted_13$6 = ["href"];
48724
+ const _hoisted_14$5 = { class: "flex justify-between" };
48725
+ const _hoisted_15$4 = ["innerHTML"];
48726
+ const _hoisted_16$1 = { class: "text-gray-500 text-sm mb-4" };
48727
+ const _hoisted_17$1 = {
48731
48728
  key: 0,
48732
48729
  class: "flex justify-center"
48733
48730
  };
48734
- const _hoisted_16$1 = ["href", "target"];
48731
+ const _hoisted_18$1 = ["href", "target"];
48735
48732
  const _sfc_main$h = {
48736
48733
  __name: "CollectionGridPresenter",
48737
48734
  props: {
@@ -48815,23 +48812,39 @@ const _sfc_main$h = {
48815
48812
  onClick: ($event) => togglePlayPause(index)
48816
48813
  }, null, 8, ["onClick"])) : createCommentVNode("", true)
48817
48814
  ], 64))
48818
- ])) : card.image ? (openBlock(), createElementBlock("img", {
48815
+ ])) : card.image ? (openBlock(), createElementBlock("a", {
48819
48816
  key: 1,
48820
- src: card.image,
48821
- alt: "Card Image",
48822
- class: "w-full h-[281px] object-cover rounded-lg md:rounded-2xl mb-4"
48823
- }, null, 8, _hoisted_7$e)) : (openBlock(), createElementBlock("img", _hoisted_8$d)),
48824
- createElementVNode("div", _hoisted_9$d, [
48825
- card.categories && card.categories.length ? (openBlock(), createElementBlock("div", _hoisted_10$9, [
48817
+ href: (card == null ? void 0 : card.link) ? unref(formatUrl)(card.link) : "javascript:void(0)",
48818
+ class: "mb-4 w-full",
48819
+ target: "_blank",
48820
+ rel: "noopener noreferrer"
48821
+ }, [
48822
+ createElementVNode("img", {
48823
+ src: card.image,
48824
+ alt: "Card Image",
48825
+ class: "w-full h-[281px] object-cover rounded-lg md:rounded-2xl"
48826
+ }, null, 8, _hoisted_8$d)
48827
+ ], 8, _hoisted_7$e)) : (openBlock(), createElementBlock("a", {
48828
+ key: 2,
48829
+ href: (card == null ? void 0 : card.link) ? unref(formatUrl)(card.link) : "javascript:void(0)",
48830
+ class: "mb-4 w-full",
48831
+ target: "_blank",
48832
+ rel: "noopener noreferrer"
48833
+ }, _cache[0] || (_cache[0] = [
48834
+ createElementVNode("img", {
48835
+ class: "w-full h-[281px] object-cover rounded-lg md:rounded-2xl",
48836
+ alt: "No Available",
48837
+ src: _imports_0
48838
+ }, null, -1)
48839
+ ]), 8, _hoisted_9$d)),
48840
+ createElementVNode("div", _hoisted_10$9, [
48841
+ card.categories && card.categories.length ? (openBlock(), createElementBlock("div", _hoisted_11$8, [
48826
48842
  (openBlock(true), createElementBlock(Fragment, null, renderList(card.categories, (tag) => {
48827
- return openBlock(), createElementBlock("span", {
48843
+ return openBlock(), createElementBlock("a", {
48828
48844
  key: tag,
48829
- class: normalizeClass(["border px-2 py-0.5 rounded-[6px] text-sm", {
48830
- "bg-navy-50 border-navy-200 text-navy-700": tag.style === "navy",
48831
- "bg-brand-50 border-brand-200 text-brand-700": tag.style === "brand",
48832
- "bg-orange-50 border-orange-200 text-orange-700": tag.style === "orange"
48833
- }])
48834
- }, toDisplayString(tag.name), 3);
48845
+ href: tag.link ? unref(formatUrl)(tag.link) : "javascript:void(0)",
48846
+ class: normalizeClass(["border py-0.5 px-1.5 text-xs font-medium bg-gray-blue-50 border-gray-blue-200 text-gray-blue-700 rounded-md", tag.link ? "hover:bg-gray-200" : "cursor-default"])
48847
+ }, toDisplayString(tag.name), 11, _hoisted_12$6);
48835
48848
  }), 128))
48836
48849
  ])) : createCommentVNode("", true),
48837
48850
  (card == null ? void 0 : card.link) ? (openBlock(), createElementBlock("a", {
@@ -48841,20 +48854,20 @@ const _sfc_main$h = {
48841
48854
  target: "_blank",
48842
48855
  rel: "noopener noreferrer"
48843
48856
  }, [
48844
- createElementVNode("div", _hoisted_12$6, [
48857
+ createElementVNode("div", _hoisted_14$5, [
48845
48858
  createElementVNode("span", {
48846
48859
  class: "w-5/6 leading-[28px]",
48847
48860
  innerHTML: card.title
48848
- }, null, 8, _hoisted_13$6),
48861
+ }, null, 8, _hoisted_15$4),
48849
48862
  createVNode(unref(ArrowUpRight), { class: "w-5 h-5 mt-1" })
48850
48863
  ])
48851
- ], 8, _hoisted_11$8)) : createCommentVNode("", true),
48852
- createElementVNode("p", _hoisted_14$5, toDisplayString(card.dateTime), 1)
48864
+ ], 8, _hoisted_13$6)) : createCommentVNode("", true),
48865
+ createElementVNode("p", _hoisted_16$1, toDisplayString(card.dateTime), 1)
48853
48866
  ])
48854
48867
  ]);
48855
48868
  }), 128))
48856
48869
  ]),
48857
- Object.keys(unref(button)).length && ((_b2 = unref(button)) == null ? void 0 : _b2.show) ? (openBlock(), createElementBlock("div", _hoisted_15$4, [
48870
+ Object.keys(unref(button)).length && ((_b2 = unref(button)) == null ? void 0 : _b2.show) ? (openBlock(), createElementBlock("div", _hoisted_17$1, [
48858
48871
  createElementVNode("a", {
48859
48872
  class: "border-brand-300 hover:border-brand-700 border text-brand-700 h-[44px] rounded-full px-[14px] py-[10px] inline-flex gap-1.5 items-center font-semibold text-base",
48860
48873
  href: unref(formatUrl)(unref(button).url),
@@ -48862,13 +48875,13 @@ const _sfc_main$h = {
48862
48875
  }, [
48863
48876
  createTextVNode(toDisplayString(unref(button).title) + " ", 1),
48864
48877
  createVNode(unref(ArrowUpRight), { class: "w-5 h-5" })
48865
- ], 8, _hoisted_16$1)
48878
+ ], 8, _hoisted_18$1)
48866
48879
  ])) : createCommentVNode("", true)
48867
48880
  ], 2);
48868
48881
  };
48869
48882
  }
48870
48883
  };
48871
- const CollectionGridPresenter = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-77dcb437"]]);
48884
+ const CollectionGridPresenter = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-aab1688f"]]);
48872
48885
  const _hoisted_1$u = { class: "overflow-hidden" };
48873
48886
  const _sfc_main$g = {
48874
48887
  __name: "CollectionGrid",
@@ -45238,8 +45238,8 @@ ${escapeText(this.code(index, length))}
45238
45238
  class: "flex flex-col gap-1.5"
45239
45239
  };
45240
45240
  const _hoisted_16$4 = ["onUpdate:modelValue", "maxlength"];
45241
- const _hoisted_17$2 = ["onUpdate:modelValue", "maxlength"];
45242
- const _hoisted_18$2 = { key: 2 };
45241
+ const _hoisted_17$3 = ["onUpdate:modelValue", "maxlength"];
45242
+ const _hoisted_18$3 = { key: 2 };
45243
45243
  const _sfc_main$C = {
45244
45244
  __name: "Links",
45245
45245
  props: {
@@ -45419,7 +45419,7 @@ ${escapeText(this.code(index, length))}
45419
45419
  maxlength: ((_b2 = componentData.value) == null ? void 0 : _b2.max_title) ?? 200,
45420
45420
  rows: "4",
45421
45421
  class: "border-1 border-solid border-gray-300 rounded-lg bg-white w-full"
45422
- }, null, 8, _hoisted_17$2)), [
45422
+ }, null, 8, _hoisted_17$3)), [
45423
45423
  [vue.vModelText, item.title]
45424
45424
  ]) : vue.createCommentVNode("", true)
45425
45425
  ];
@@ -45439,7 +45439,7 @@ ${escapeText(this.code(index, length))}
45439
45439
  sites: _ctx.sites,
45440
45440
  forms: __props.forms
45441
45441
  }, null, 8, ["name", "type", "onUpdate:type", "url", "onUpdate:url", "openInNewTab", "onUpdate:openInNewTab", "sites", "forms"])) : vue.createCommentVNode("", true)
45442
- ])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_18$2, [
45442
+ ])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_18$3, [
45443
45443
  vue.createVNode(_sfc_main$P, {
45444
45444
  "is-vertical": "",
45445
45445
  field: "image",
@@ -46197,8 +46197,8 @@ ${escapeText(this.code(index, length))}
46197
46197
  class: "mb-4 px-6 py-5 rounded-xl bg-gray-50"
46198
46198
  };
46199
46199
  const _hoisted_16$3 = { class: "flex flex-col gap-1 pt-6 text-gray-600" };
46200
- const _hoisted_17$1 = ["value"];
46201
- const _hoisted_18$1 = {
46200
+ const _hoisted_17$2 = ["value"];
46201
+ const _hoisted_18$2 = {
46202
46202
  key: 1,
46203
46203
  class: "rounded-xl bg-gray-50 px-6 py-5"
46204
46204
  };
@@ -46352,7 +46352,7 @@ ${escapeText(this.code(index, length))}
46352
46352
  name: "url"
46353
46353
  }, [
46354
46354
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.breadcrumbs, (b) => {
46355
- return vue.openBlock(), vue.createElementBlock("option", { value: b }, vue.toDisplayString(b), 9, _hoisted_17$1);
46355
+ return vue.openBlock(), vue.createElementBlock("option", { value: b }, vue.toDisplayString(b), 9, _hoisted_17$2);
46356
46356
  }), 256))
46357
46357
  ], 512), [
46358
46358
  [vue.vModelSelect, __props.modelValue.breadcrumb]
@@ -46363,7 +46363,7 @@ ${escapeText(this.code(index, length))}
46363
46363
  _cache[2] || (_cache[2] = vue.createElementVNode("p", null, "This sets the section name shown in the breadcrumb (e.g. Home / Who We Are / Page). Leave blank to skip the section.", -1))
46364
46364
  ])
46365
46365
  ])) : vue.createCommentVNode("", true),
46366
- !vue.unref(selected) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_18$1, [
46366
+ !vue.unref(selected) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_18$2, [
46367
46367
  vue.createVNode(Instructions)
46368
46368
  ])) : vue.createCommentVNode("", true),
46369
46369
  (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(currentComponent.value), {
@@ -48462,7 +48462,7 @@ ${escapeText(this.code(index, length))}
48462
48462
  const _hoisted_3$g = ["src"];
48463
48463
  const _hoisted_4$g = {
48464
48464
  key: 1,
48465
- class: "flex gap-2"
48465
+ class: "flex gap-2 mb-2"
48466
48466
  };
48467
48467
  const _hoisted_5$g = { class: "mb-2" };
48468
48468
  const _hoisted_6$g = ["href"];
@@ -48571,7 +48571,7 @@ ${escapeText(this.code(index, length))}
48571
48571
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(slide.tags, (tag) => {
48572
48572
  return vue.openBlock(), vue.createElementBlock("span", {
48573
48573
  key: tag,
48574
- class: "bg-navy-50 border border-navy-200 text-navy-700 px-2 py-0.5 rounded-[6px] text-sm"
48574
+ class: "border py-0.5 px-1.5 text-xs font-medium bg-gray-blue-50 border-gray-blue-200 text-gray-blue-700 rounded-md"
48575
48575
  }, vue.toDisplayString(tag), 1);
48576
48576
  }), 128))
48577
48577
  ])) : vue.createCommentVNode("", true),
@@ -48714,27 +48714,24 @@ ${escapeText(this.code(index, length))}
48714
48714
  const _hoisted_4$f = ["src"];
48715
48715
  const _hoisted_5$f = ["onClick"];
48716
48716
  const _hoisted_6$f = ["src"];
48717
- const _hoisted_7$e = ["src"];
48718
- const _hoisted_8$d = {
48719
- key: 2,
48720
- class: "w-full h-[281px] object-cover rounded-lg md:rounded-2xl mb-4",
48721
- alt: "No Available",
48722
- src: _imports_0
48723
- };
48724
- const _hoisted_9$d = { class: "flex flex-col gap-2 items-start text-left w-full" };
48725
- const _hoisted_10$9 = {
48717
+ const _hoisted_7$e = ["href"];
48718
+ const _hoisted_8$d = ["src"];
48719
+ const _hoisted_9$d = ["href"];
48720
+ const _hoisted_10$9 = { class: "flex flex-col gap-2 items-start text-left w-full" };
48721
+ const _hoisted_11$8 = {
48726
48722
  key: 0,
48727
48723
  class: "flex gap-2"
48728
48724
  };
48729
- const _hoisted_11$8 = ["href"];
48730
- const _hoisted_12$6 = { class: "flex justify-between" };
48731
- const _hoisted_13$6 = ["innerHTML"];
48732
- const _hoisted_14$5 = { class: "text-gray-500 text-sm mb-4" };
48733
- const _hoisted_15$4 = {
48725
+ const _hoisted_12$6 = ["href"];
48726
+ const _hoisted_13$6 = ["href"];
48727
+ const _hoisted_14$5 = { class: "flex justify-between" };
48728
+ const _hoisted_15$4 = ["innerHTML"];
48729
+ const _hoisted_16$1 = { class: "text-gray-500 text-sm mb-4" };
48730
+ const _hoisted_17$1 = {
48734
48731
  key: 0,
48735
48732
  class: "flex justify-center"
48736
48733
  };
48737
- const _hoisted_16$1 = ["href", "target"];
48734
+ const _hoisted_18$1 = ["href", "target"];
48738
48735
  const _sfc_main$h = {
48739
48736
  __name: "CollectionGridPresenter",
48740
48737
  props: {
@@ -48818,23 +48815,39 @@ ${escapeText(this.code(index, length))}
48818
48815
  onClick: ($event) => togglePlayPause(index)
48819
48816
  }, null, 8, ["onClick"])) : vue.createCommentVNode("", true)
48820
48817
  ], 64))
48821
- ])) : card.image ? (vue.openBlock(), vue.createElementBlock("img", {
48818
+ ])) : card.image ? (vue.openBlock(), vue.createElementBlock("a", {
48822
48819
  key: 1,
48823
- src: card.image,
48824
- alt: "Card Image",
48825
- class: "w-full h-[281px] object-cover rounded-lg md:rounded-2xl mb-4"
48826
- }, null, 8, _hoisted_7$e)) : (vue.openBlock(), vue.createElementBlock("img", _hoisted_8$d)),
48827
- vue.createElementVNode("div", _hoisted_9$d, [
48828
- card.categories && card.categories.length ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_10$9, [
48820
+ href: (card == null ? void 0 : card.link) ? vue.unref(formatUrl)(card.link) : "javascript:void(0)",
48821
+ class: "mb-4 w-full",
48822
+ target: "_blank",
48823
+ rel: "noopener noreferrer"
48824
+ }, [
48825
+ vue.createElementVNode("img", {
48826
+ src: card.image,
48827
+ alt: "Card Image",
48828
+ class: "w-full h-[281px] object-cover rounded-lg md:rounded-2xl"
48829
+ }, null, 8, _hoisted_8$d)
48830
+ ], 8, _hoisted_7$e)) : (vue.openBlock(), vue.createElementBlock("a", {
48831
+ key: 2,
48832
+ href: (card == null ? void 0 : card.link) ? vue.unref(formatUrl)(card.link) : "javascript:void(0)",
48833
+ class: "mb-4 w-full",
48834
+ target: "_blank",
48835
+ rel: "noopener noreferrer"
48836
+ }, _cache[0] || (_cache[0] = [
48837
+ vue.createElementVNode("img", {
48838
+ class: "w-full h-[281px] object-cover rounded-lg md:rounded-2xl",
48839
+ alt: "No Available",
48840
+ src: _imports_0
48841
+ }, null, -1)
48842
+ ]), 8, _hoisted_9$d)),
48843
+ vue.createElementVNode("div", _hoisted_10$9, [
48844
+ card.categories && card.categories.length ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_11$8, [
48829
48845
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(card.categories, (tag) => {
48830
- return vue.openBlock(), vue.createElementBlock("span", {
48846
+ return vue.openBlock(), vue.createElementBlock("a", {
48831
48847
  key: tag,
48832
- class: vue.normalizeClass(["border px-2 py-0.5 rounded-[6px] text-sm", {
48833
- "bg-navy-50 border-navy-200 text-navy-700": tag.style === "navy",
48834
- "bg-brand-50 border-brand-200 text-brand-700": tag.style === "brand",
48835
- "bg-orange-50 border-orange-200 text-orange-700": tag.style === "orange"
48836
- }])
48837
- }, vue.toDisplayString(tag.name), 3);
48848
+ href: tag.link ? vue.unref(formatUrl)(tag.link) : "javascript:void(0)",
48849
+ class: vue.normalizeClass(["border py-0.5 px-1.5 text-xs font-medium bg-gray-blue-50 border-gray-blue-200 text-gray-blue-700 rounded-md", tag.link ? "hover:bg-gray-200" : "cursor-default"])
48850
+ }, vue.toDisplayString(tag.name), 11, _hoisted_12$6);
48838
48851
  }), 128))
48839
48852
  ])) : vue.createCommentVNode("", true),
48840
48853
  (card == null ? void 0 : card.link) ? (vue.openBlock(), vue.createElementBlock("a", {
@@ -48844,20 +48857,20 @@ ${escapeText(this.code(index, length))}
48844
48857
  target: "_blank",
48845
48858
  rel: "noopener noreferrer"
48846
48859
  }, [
48847
- vue.createElementVNode("div", _hoisted_12$6, [
48860
+ vue.createElementVNode("div", _hoisted_14$5, [
48848
48861
  vue.createElementVNode("span", {
48849
48862
  class: "w-5/6 leading-[28px]",
48850
48863
  innerHTML: card.title
48851
- }, null, 8, _hoisted_13$6),
48864
+ }, null, 8, _hoisted_15$4),
48852
48865
  vue.createVNode(vue.unref(ArrowUpRight), { class: "w-5 h-5 mt-1" })
48853
48866
  ])
48854
- ], 8, _hoisted_11$8)) : vue.createCommentVNode("", true),
48855
- vue.createElementVNode("p", _hoisted_14$5, vue.toDisplayString(card.dateTime), 1)
48867
+ ], 8, _hoisted_13$6)) : vue.createCommentVNode("", true),
48868
+ vue.createElementVNode("p", _hoisted_16$1, vue.toDisplayString(card.dateTime), 1)
48856
48869
  ])
48857
48870
  ]);
48858
48871
  }), 128))
48859
48872
  ]),
48860
- Object.keys(vue.unref(button)).length && ((_b2 = vue.unref(button)) == null ? void 0 : _b2.show) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_15$4, [
48873
+ Object.keys(vue.unref(button)).length && ((_b2 = vue.unref(button)) == null ? void 0 : _b2.show) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_17$1, [
48861
48874
  vue.createElementVNode("a", {
48862
48875
  class: "border-brand-300 hover:border-brand-700 border text-brand-700 h-[44px] rounded-full px-[14px] py-[10px] inline-flex gap-1.5 items-center font-semibold text-base",
48863
48876
  href: vue.unref(formatUrl)(vue.unref(button).url),
@@ -48865,13 +48878,13 @@ ${escapeText(this.code(index, length))}
48865
48878
  }, [
48866
48879
  vue.createTextVNode(vue.toDisplayString(vue.unref(button).title) + " ", 1),
48867
48880
  vue.createVNode(vue.unref(ArrowUpRight), { class: "w-5 h-5" })
48868
- ], 8, _hoisted_16$1)
48881
+ ], 8, _hoisted_18$1)
48869
48882
  ])) : vue.createCommentVNode("", true)
48870
48883
  ], 2);
48871
48884
  };
48872
48885
  }
48873
48886
  };
48874
- const CollectionGridPresenter = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-77dcb437"]]);
48887
+ const CollectionGridPresenter = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-aab1688f"]]);
48875
48888
  const _hoisted_1$u = { class: "overflow-hidden" };
48876
48889
  const _sfc_main$g = {
48877
48890
  __name: "CollectionGrid",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcodegroup-au/page-builder",
3
- "version": "0.8.2",
3
+ "version": "0.8.3",
4
4
  "exports": {
5
5
  ".": {
6
6
  "import": "./dist/page-builder.es.js"
@@ -20,11 +20,11 @@
20
20
  class="rounded-[8px] h-[220px] w-full object-cover"
21
21
  />
22
22
  </div>
23
- <div v-if="slide.tags && slide.tags.length" class="flex gap-2">
23
+ <div v-if="slide.tags && slide.tags.length" class="flex gap-2 mb-2">
24
24
  <span
25
25
  v-for="tag in slide.tags"
26
26
  :key="tag"
27
- class="bg-navy-50 border border-navy-200 text-navy-700 px-2 py-0.5 rounded-[6px] text-sm"
27
+ class="border py-0.5 px-1.5 text-xs font-medium bg-gray-blue-50 border-gray-blue-200 text-gray-blue-700 rounded-md"
28
28
  >
29
29
  {{ tag }}
30
30
  </span>
@@ -31,27 +31,33 @@
31
31
  </PlayButton>
32
32
  </template>
33
33
  </div>
34
- <img
35
- v-else-if="card.image"
36
- :src="card.image"
37
- alt="Card Image"
38
- class="w-full h-[281px] object-cover rounded-lg md:rounded-2xl mb-4"
39
- />
40
- <img v-else class="w-full h-[281px] object-cover rounded-lg md:rounded-2xl mb-4" alt="No Available" src="@/assets/img/no_image_available.jpeg">
34
+ <a v-else-if="card.image"
35
+ :href="card?.link ? formatUrl(card.link) : 'javascript:void(0)'"
36
+ class="mb-4 w-full"
37
+ target="_blank"
38
+ rel="noopener noreferrer"
39
+ >
40
+ <img :src="card.image" alt="Card Image" class="w-full h-[281px] object-cover rounded-lg md:rounded-2xl" />
41
+ </a>
42
+ <a v-else
43
+ :href="card?.link ? formatUrl(card.link) : 'javascript:void(0)'"
44
+ class="mb-4 w-full"
45
+ target="_blank"
46
+ rel="noopener noreferrer"
47
+ >
48
+ <img class="w-full h-[281px] object-cover rounded-lg md:rounded-2xl" alt="No Available" src="@/assets/img/no_image_available.jpeg">
49
+ </a>
41
50
  <div class="flex flex-col gap-2 items-start text-left w-full">
42
51
  <div v-if="card.categories && card.categories.length" class="flex gap-2">
43
- <span
52
+ <a
44
53
  v-for="tag in card.categories"
45
54
  :key="tag"
46
- class="border px-2 py-0.5 rounded-[6px] text-sm"
47
- :class="{
48
- 'bg-navy-50 border-navy-200 text-navy-700': tag.style === 'navy',
49
- 'bg-brand-50 border-brand-200 text-brand-700': tag.style === 'brand',
50
- 'bg-orange-50 border-orange-200 text-orange-700': tag.style === 'orange',
51
- }"
55
+ :href="tag.link ? formatUrl(tag.link) : 'javascript:void(0)'"
56
+ class="border py-0.5 px-1.5 text-xs font-medium bg-gray-blue-50 border-gray-blue-200 text-gray-blue-700 rounded-md"
57
+ :class="tag.link ? 'hover:bg-gray-200' : 'cursor-default'"
52
58
  >
53
59
  {{ tag.name }}
54
- </span>
60
+ </a>
55
61
  </div>
56
62
  <a
57
63
  v-if="card?.link"
@@ -78,12 +78,26 @@ module.exports = {
78
78
  },
79
79
  yellow: {
80
80
  100: '#DAAA00',
81
- }
81
+ },
82
+ "gray-blue": {
83
+ 25: "#FCFCFD",
84
+ 50: "#F8F9FC",
85
+ 100: "#EAECF5",
86
+ 200: "#D5D9EB",
87
+ 300: "#B3B8DB",
88
+ 400: "#717BBC",
89
+ 500: "#4E5BA6",
90
+ 600: "#3E4784",
91
+ 700: "#363F72",
92
+ 800: "#293056",
93
+ 900: "#101323",
94
+ 950: "#0D0F1C",
95
+ },
82
96
  },
83
97
  },
84
98
  },
85
99
  safelist: [
86
- "md:grid-cols-2",
100
+ "md:grid-cols-2", "bg-gray-blue-50", "border-gray-blue-200", "text-gray-blue-700"
87
101
  ],
88
102
  plugins: [require("@tailwindcss/forms"), require("@tailwindcss/typography")],
89
103
  };