@dcodegroup-au/page-builder 0.5.0 → 0.5.1

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.
@@ -94,7 +94,7 @@ const breadcrumbs = [
94
94
  {{ JSON.stringify(PartnerWithUs) }}
95
95
  <div style="margin: 40px 0">
96
96
  <h1 style="margin-bottom: 20px; font-size: 50px;">Page Render</h1>
97
- <PageRender :page="PartnerWithUs"/>
97
+ <PageRender :page="ChildSafeStandard"/>
98
98
  </div>
99
99
  <div style="margin: 40px 0">
100
100
  <h1 style="margin-bottom: 20px; font-size: 50px;">Slider Edit</h1>
@@ -110,7 +110,7 @@ const breadcrumbs = [
110
110
  </div>
111
111
  <div style="margin: 40px 0">
112
112
  <h1 style="margin-bottom: 20px; font-size: 50px;">Page Builder</h1>
113
- <PageBuilder v-model="PartnerWithUs" :breadcrumbs="breadcrumbs"/>
113
+ <PageBuilder v-model="AdvisoryServices" :breadcrumbs="breadcrumbs"/>
114
114
  </div>
115
115
  </div>
116
116
  </template>
@@ -1,6 +1,6 @@
1
1
  export const PartnerWithUs =
2
2
  {
3
- title: "Advisory Services",
3
+ title: "Partner with Us",
4
4
  sections: [
5
5
  {
6
6
  title: "Standard header",
@@ -64,7 +64,7 @@ export const PartnerWithUs =
64
64
  title: "Our Partnership and Commitment",
65
65
  text_center: true,
66
66
  supporting_text_max_length: 500,
67
- supporting_text: "We create software to address real-world needs — making life easier.",
67
+ supporting_text: null,
68
68
  },
69
69
  {
70
70
  name: "Feature items",
@@ -132,6 +132,7 @@ export const PartnerWithUs =
132
132
  name: "Bullet Points",
133
133
  type: "bullet_points",
134
134
  supportive_text: "This section can contain up to 10 items.",
135
+ has_type_switcher: false,
135
136
  max_items: 10,
136
137
  max_title: 500,
137
138
  data: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcodegroup-au/page-builder",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "exports": {
5
5
  ".": {
6
6
  "import": "./dist/page-builder.es.js"
@@ -38,7 +38,7 @@
38
38
  </div>
39
39
  </div>
40
40
  <div class="flex flex-col gap-6">
41
- <div class="flex gap-4" v-if="componentData?.has_type_switcher">
41
+ <div class="flex gap-4" v-if="!componentData?.hasOwnProperty('has_type_switcher') || componentData?.has_type_switcher">
42
42
  <label v-for="option in options" class="flex items-center gap-2 cursor-pointer">
43
43
  <input
44
44
  :name="`content_type${index}`"
@@ -26,14 +26,14 @@
26
26
  :label-text="`${capitalize(button?.type)} *`"
27
27
  class="w-full mb-4"
28
28
  :value="button.address"
29
- :limit="20"
29
+ :limit="100"
30
30
  >
31
31
  <input
32
32
  v-model="button.address"
33
33
  name="button.label"
34
34
  :type="button?.type === 'email' ? 'email' : 'tel'"
35
35
  placeholder="Label"
36
- :maxlength="20"
36
+ :maxlength="100"
37
37
  class="border-1 border-solid border-gray-300 rounded-lg bg-white w-full"
38
38
  />
39
39
  </input-wrapper>
@@ -28,8 +28,8 @@
28
28
  <div v-for="item in featureItemsComponent.data"
29
29
  class="flex gap-3 w-full"
30
30
  :class="{
31
- 'bg-gray-50 p-8 rounded-tl-[24px] rounded-br-[24px] overflow-hidden flex-col' : featureItemsComponent.hasOwnProperty('grid_columns') && (featureItemsComponent.grid_columns > 2 || featureItemsComponent?.has_background),
32
- '!p-0': item?.image
31
+ 'bg-gray-50 p-8 rounded-[24px] overflow-hidden flex-col' : featureItemsComponent.hasOwnProperty('grid_columns') && (featureItemsComponent.grid_columns > 2 || featureItemsComponent?.has_background),
32
+ '!p-0 rounded-tr-[0px] rounded-bl-[0px]': item?.image
33
33
  }">
34
34
  <template v-if="item.title">
35
35
  <div v-if="item?.icon"
@@ -41,7 +41,7 @@
41
41
  <p class="mt-2 text-md font-normal text-gray-600 leading-[24px]">{{ item.supporting_text }}</p>
42
42
  </div>
43
43
  </template>
44
- <img v-else :src="item.image" alt="Feature Image"/>
44
+ <img v-else :src="item.image" alt="Feature Image" class="w-full h-full object-cover"/>
45
45
  </div>
46
46
  </div>
47
47
  <div v-if="imageComponent" class="w-[560px]">