@dcodegroup-au/page-builder 0.7.4 → 0.7.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.
@@ -1044,6 +1044,9 @@ select {
1044
1044
  .h-\[96px\] {
1045
1045
  height: 96px;
1046
1046
  }
1047
+ .h-auto {
1048
+ height: auto;
1049
+ }
1047
1050
  .h-fit {
1048
1051
  height: -moz-fit-content;
1049
1052
  height: fit-content;
@@ -1259,6 +1262,9 @@ select {
1259
1262
  .flex-shrink-0 {
1260
1263
  flex-shrink: 0;
1261
1264
  }
1265
+ .shrink-0 {
1266
+ flex-shrink: 0;
1267
+ }
1262
1268
  .\!translate-x-3 {
1263
1269
  --tw-translate-x: 0.75rem !important;
1264
1270
  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)) !important;
@@ -1717,6 +1723,10 @@ select {
1717
1723
  .p-8 {
1718
1724
  padding: 2rem;
1719
1725
  }
1726
+ .\!px-0 {
1727
+ padding-left: 0px !important;
1728
+ padding-right: 0px !important;
1729
+ }
1720
1730
  .\!px-6 {
1721
1731
  padding-left: 1.5rem !important;
1722
1732
  padding-right: 1.5rem !important;
@@ -2993,6 +3003,13 @@ select {
2993
3003
  opacity: 1;
2994
3004
  }
2995
3005
 
3006
+ @media not all and (min-width: 1280px) {
3007
+
3008
+ .max-xl\:h-full {
3009
+ height: 100%;
3010
+ }
3011
+ }
3012
+
2996
3013
  @media not all and (min-width: 1024px) {
2997
3014
 
2998
3015
  .max-lg\:flex-col {
@@ -3020,6 +3037,14 @@ select {
3020
3037
  padding-right: 1rem;
3021
3038
  }
3022
3039
 
3040
+ .max-md\:\!pb-0 {
3041
+ padding-bottom: 0px !important;
3042
+ }
3043
+
3044
+ .max-md\:\!pt-4 {
3045
+ padding-top: 1rem !important;
3046
+ }
3047
+
3023
3048
  .max-md\:pb-4 {
3024
3049
  padding-bottom: 1rem;
3025
3050
  }
@@ -3150,6 +3175,11 @@ select {
3150
3175
  padding-right: 120px;
3151
3176
  }
3152
3177
 
3178
+ .md\:py-10 {
3179
+ padding-top: 2.5rem;
3180
+ padding-bottom: 2.5rem;
3181
+ }
3182
+
3153
3183
  .md\:pl-6 {
3154
3184
  padding-left: 1.5rem;
3155
3185
  }
@@ -3208,10 +3238,6 @@ select {
3208
3238
  height: 300px;
3209
3239
  }
3210
3240
 
3211
- .lg\:h-\[336px\] {
3212
- height: 336px;
3213
- }
3214
-
3215
3241
  .lg\:h-\[480px\] {
3216
3242
  height: 480px;
3217
3243
  }
@@ -3317,6 +3343,10 @@ select {
3317
3343
  left: 120px;
3318
3344
  }
3319
3345
 
3346
+ .xl\:h-\[336px\] {
3347
+ height: 336px;
3348
+ }
3349
+
3320
3350
  .xl\:h-\[480px\] {
3321
3351
  height: 480px;
3322
3352
  }
@@ -47941,19 +47941,19 @@ const _sfc_main$r = {
47941
47941
  const isLinkGrid = component.value.type === "link_grid";
47942
47942
  return (_ctx, _cache) => {
47943
47943
  return openBlock(), createElementBlock("div", {
47944
- class: normalizeClass(["flex flex-wrap justify-center min-h-[136px] w-full relative rounded-b-3xl md:rounded-b-[48px] bg-navy-600 -mt-12 pt-20 md:pt-12 max-md:pb-4 px-4 gap-y-2 gap-x-[60px]", { "bg-transparent !justify-start mt-8 !h-auto !gap-4": isLinkGrid }])
47944
+ class: normalizeClass(["flex flex-wrap justify-center min-h-[136px] w-full relative rounded-b-3xl md:rounded-b-[48px] bg-navy-600 -mt-12 pt-20 md:pt-12 max-md:pb-4 px-4 gap-y-2 gap-x-[60px]", { "bg-transparent !justify-start !mt-0 !h-auto !gap-4 !px-0 max-md:!pb-0 max-md:!pt-4": isLinkGrid }])
47945
47945
  }, [
47946
47946
  (openBlock(true), createElementBlock(Fragment, null, renderList(component.value.data, (link) => {
47947
47947
  return openBlock(), createElementBlock("div", {
47948
- class: normalizeClass(["flex justify-center items-center", { "!block": isLinkGrid }])
47948
+ class: normalizeClass(["flex justify-center items-center max-w-full", { "!block": isLinkGrid }])
47949
47949
  }, [
47950
47950
  createElementVNode("a", {
47951
47951
  target: link.open_in_new_tab ? "_blank" : "",
47952
47952
  href: link.url.startsWith("http") ? link.url : `//${link.url}`,
47953
- class: normalizeClass(["text-white flex gap-1.5 items-center cursor-pointer text-sm font-semibold hover:text-gray-300 h-9", { "bg-white border border-gray-300 rounded-full !text-gray-700 px-4 h-[44px] w-max !mt-0 !text-base hover:bg-gray-100": isLinkGrid }])
47953
+ class: normalizeClass(["text-white flex gap-1.5 items-center cursor-pointer text-sm font-semibold hover:text-gray-300 h-9", { "bg-white border border-gray-300 rounded-full !text-gray-700 px-4 py-2 h-auto w-max max-w-full !mt-0 !text-base hover:bg-gray-100": isLinkGrid }])
47954
47954
  }, [
47955
47955
  createElementVNode("span", null, toDisplayString(link.title), 1),
47956
- createVNode(unref(ArrowUpRight), { class: "w-5 h-5" })
47956
+ createVNode(unref(ArrowUpRight), { class: "shrink-0 w-5 h-5" })
47957
47957
  ], 10, _hoisted_1$L)
47958
47958
  ], 2);
47959
47959
  }), 256))
@@ -48085,7 +48085,7 @@ const _sfc_main$o = {
48085
48085
  return (_ctx, _cache) => {
48086
48086
  var _a, _b, _c, _d;
48087
48087
  return openBlock(), createElementBlock("div", {
48088
- class: normalizeClass(["w-full bg-navy-800 max-md:px-4 py-10 relative lg:h-[336px]", { "lg:!h-[266px]": (_a = section.value) == null ? void 0 : _a.as_cta }])
48088
+ class: normalizeClass(["w-full bg-navy-800 max-md:px-4 py-4 md:py-10 relative xl:h-[336px]", { "lg:!h-[266px]": (_a = section.value) == null ? void 0 : _a.as_cta }])
48089
48089
  }, [
48090
48090
  ((_b = section.value) == null ? void 0 : _b.as_cta) ? (openBlock(), createBlock(unref(LeftVector), {
48091
48091
  key: 0,
@@ -48093,7 +48093,7 @@ const _sfc_main$o = {
48093
48093
  })) : createCommentVNode("", true),
48094
48094
  createElementVNode("div", _hoisted_1$H, [
48095
48095
  createElementVNode("div", {
48096
- class: normalizeClass(["max-md:mx-[30px] 1xl:mx-0 relative z-10", { "text-center flex flex-col items-center": (_c = section.value) == null ? void 0 : _c.as_cta }])
48096
+ class: normalizeClass(["relative z-10", { "text-center flex flex-col items-center": (_c = section.value) == null ? void 0 : _c.as_cta }])
48097
48097
  }, [
48098
48098
  (openBlock(true), createElementBlock(Fragment, null, renderList(section.value.components, (component, index) => {
48099
48099
  var _a2;
@@ -48109,7 +48109,7 @@ const _sfc_main$o = {
48109
48109
  ]),
48110
48110
  !((_d = section.value) == null ? void 0 : _d.as_cta) ? (openBlock(), createBlock(unref(HeaderVector), {
48111
48111
  key: 1,
48112
- class: "absolute right-0 top-0"
48112
+ class: "absolute right-0 top-0 max-xl:h-full"
48113
48113
  })) : createCommentVNode("", true)
48114
48114
  ], 2);
48115
48115
  };
@@ -47944,19 +47944,19 @@ ${escapeText(this.code(index, length))}
47944
47944
  const isLinkGrid = component.value.type === "link_grid";
47945
47945
  return (_ctx, _cache) => {
47946
47946
  return vue.openBlock(), vue.createElementBlock("div", {
47947
- class: vue.normalizeClass(["flex flex-wrap justify-center min-h-[136px] w-full relative rounded-b-3xl md:rounded-b-[48px] bg-navy-600 -mt-12 pt-20 md:pt-12 max-md:pb-4 px-4 gap-y-2 gap-x-[60px]", { "bg-transparent !justify-start mt-8 !h-auto !gap-4": isLinkGrid }])
47947
+ class: vue.normalizeClass(["flex flex-wrap justify-center min-h-[136px] w-full relative rounded-b-3xl md:rounded-b-[48px] bg-navy-600 -mt-12 pt-20 md:pt-12 max-md:pb-4 px-4 gap-y-2 gap-x-[60px]", { "bg-transparent !justify-start !mt-0 !h-auto !gap-4 !px-0 max-md:!pb-0 max-md:!pt-4": isLinkGrid }])
47948
47948
  }, [
47949
47949
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(component.value.data, (link) => {
47950
47950
  return vue.openBlock(), vue.createElementBlock("div", {
47951
- class: vue.normalizeClass(["flex justify-center items-center", { "!block": isLinkGrid }])
47951
+ class: vue.normalizeClass(["flex justify-center items-center max-w-full", { "!block": isLinkGrid }])
47952
47952
  }, [
47953
47953
  vue.createElementVNode("a", {
47954
47954
  target: link.open_in_new_tab ? "_blank" : "",
47955
47955
  href: link.url.startsWith("http") ? link.url : `//${link.url}`,
47956
- class: vue.normalizeClass(["text-white flex gap-1.5 items-center cursor-pointer text-sm font-semibold hover:text-gray-300 h-9", { "bg-white border border-gray-300 rounded-full !text-gray-700 px-4 h-[44px] w-max !mt-0 !text-base hover:bg-gray-100": isLinkGrid }])
47956
+ class: vue.normalizeClass(["text-white flex gap-1.5 items-center cursor-pointer text-sm font-semibold hover:text-gray-300 h-9", { "bg-white border border-gray-300 rounded-full !text-gray-700 px-4 py-2 h-auto w-max max-w-full !mt-0 !text-base hover:bg-gray-100": isLinkGrid }])
47957
47957
  }, [
47958
47958
  vue.createElementVNode("span", null, vue.toDisplayString(link.title), 1),
47959
- vue.createVNode(vue.unref(ArrowUpRight), { class: "w-5 h-5" })
47959
+ vue.createVNode(vue.unref(ArrowUpRight), { class: "shrink-0 w-5 h-5" })
47960
47960
  ], 10, _hoisted_1$L)
47961
47961
  ], 2);
47962
47962
  }), 256))
@@ -48088,7 +48088,7 @@ ${escapeText(this.code(index, length))}
48088
48088
  return (_ctx, _cache) => {
48089
48089
  var _a, _b, _c, _d;
48090
48090
  return vue.openBlock(), vue.createElementBlock("div", {
48091
- class: vue.normalizeClass(["w-full bg-navy-800 max-md:px-4 py-10 relative lg:h-[336px]", { "lg:!h-[266px]": (_a = section.value) == null ? void 0 : _a.as_cta }])
48091
+ class: vue.normalizeClass(["w-full bg-navy-800 max-md:px-4 py-4 md:py-10 relative xl:h-[336px]", { "lg:!h-[266px]": (_a = section.value) == null ? void 0 : _a.as_cta }])
48092
48092
  }, [
48093
48093
  ((_b = section.value) == null ? void 0 : _b.as_cta) ? (vue.openBlock(), vue.createBlock(vue.unref(LeftVector), {
48094
48094
  key: 0,
@@ -48096,7 +48096,7 @@ ${escapeText(this.code(index, length))}
48096
48096
  })) : vue.createCommentVNode("", true),
48097
48097
  vue.createElementVNode("div", _hoisted_1$H, [
48098
48098
  vue.createElementVNode("div", {
48099
- class: vue.normalizeClass(["max-md:mx-[30px] 1xl:mx-0 relative z-10", { "text-center flex flex-col items-center": (_c = section.value) == null ? void 0 : _c.as_cta }])
48099
+ class: vue.normalizeClass(["relative z-10", { "text-center flex flex-col items-center": (_c = section.value) == null ? void 0 : _c.as_cta }])
48100
48100
  }, [
48101
48101
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(section.value.components, (component, index) => {
48102
48102
  var _a2;
@@ -48112,7 +48112,7 @@ ${escapeText(this.code(index, length))}
48112
48112
  ]),
48113
48113
  !((_d = section.value) == null ? void 0 : _d.as_cta) ? (vue.openBlock(), vue.createBlock(vue.unref(HeaderVector), {
48114
48114
  key: 1,
48115
- class: "absolute right-0 top-0"
48115
+ class: "absolute right-0 top-0 max-xl:h-full"
48116
48116
  })) : vue.createCommentVNode("", true)
48117
48117
  ], 2);
48118
48118
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcodegroup-au/page-builder",
3
- "version": "0.7.4",
3
+ "version": "0.7.5",
4
4
  "exports": {
5
5
  ".": {
6
6
  "import": "./dist/page-builder.es.js"
@@ -1,13 +1,13 @@
1
1
  <template>
2
- <div class="flex flex-wrap justify-center min-h-[136px] w-full relative rounded-b-3xl md:rounded-b-[48px] bg-navy-600 -mt-12 pt-20 md:pt-12 max-md:pb-4 px-4 gap-y-2 gap-x-[60px]" :class="{'bg-transparent !justify-start mt-8 !h-auto !gap-4': isLinkGrid}">
3
- <div class="flex justify-center items-center" :class="{'!block': isLinkGrid}" v-for="link in component.data">
2
+ <div class="flex flex-wrap justify-center min-h-[136px] w-full relative rounded-b-3xl md:rounded-b-[48px] bg-navy-600 -mt-12 pt-20 md:pt-12 max-md:pb-4 px-4 gap-y-2 gap-x-[60px]" :class="{'bg-transparent !justify-start !mt-0 !h-auto !gap-4 !px-0 max-md:!pb-0 max-md:!pt-4': isLinkGrid}">
3
+ <div class="flex justify-center items-center max-w-full" :class="{'!block': isLinkGrid}" v-for="link in component.data">
4
4
  <a
5
5
  :target="link.open_in_new_tab ? '_blank' : ''"
6
6
  :href="link.url.startsWith('http') ? link.url : `//${link.url}`"
7
7
  class="text-white flex gap-1.5 items-center cursor-pointer text-sm font-semibold hover:text-gray-300 h-9"
8
- :class="{'bg-white border border-gray-300 rounded-full !text-gray-700 px-4 h-[44px] w-max !mt-0 !text-base hover:bg-gray-100': isLinkGrid}"
8
+ :class="{'bg-white border border-gray-300 rounded-full !text-gray-700 px-4 py-2 h-auto w-max max-w-full !mt-0 !text-base hover:bg-gray-100': isLinkGrid}"
9
9
  >
10
- <span>{{ link.title }}</span><ArrowUpRight class="w-5 h-5"></ArrowUpRight>
10
+ <span>{{ link.title }}</span><ArrowUpRight class="shrink-0 w-5 h-5"></ArrowUpRight>
11
11
  </a>
12
12
  </div>
13
13
  </div>
@@ -1,8 +1,8 @@
1
1
  <template>
2
- <div class="w-full bg-navy-800 max-md:px-4 py-10 relative lg:h-[336px]" :class="{'lg:!h-[266px]' : section?.as_cta}">
2
+ <div class="w-full bg-navy-800 max-md:px-4 py-4 md:py-10 relative xl:h-[336px]" :class="{'lg:!h-[266px]' : section?.as_cta}">
3
3
  <LeftVector class="absolute left-0 top-0 h-full max-w-full" v-if="section?.as_cta"></LeftVector>
4
4
  <div class="max-w-[1640px] md:px-[120px] mx-auto w-full">
5
- <div class="max-md:mx-[30px] 1xl:mx-0 relative z-10" :class="{'text-center flex flex-col items-center': section?.as_cta}">
5
+ <div class="relative z-10" :class="{'text-center flex flex-col items-center': section?.as_cta}">
6
6
  <div v-for="(component, index) in section.components" class="w-full md:w-3/4">
7
7
  <component
8
8
  :is="currentComponent(component)"
@@ -13,7 +13,7 @@
13
13
  </div>
14
14
  </div>
15
15
  </div>
16
- <HeaderVector class="absolute right-0 top-0" v-if="!section?.as_cta"></HeaderVector>
16
+ <HeaderVector class="absolute right-0 top-0 max-xl:h-full" v-if="!section?.as_cta"></HeaderVector>
17
17
  </div>
18
18
  </template>
19
19