@myissue/vue-website-page-builder 3.0.26 → 3.0.29

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myissue/vue-website-page-builder",
3
- "version": "v3.0.26",
3
+ "version": "v3.0.29",
4
4
  "description": "🚧 DEVELOPMENT VERSION - Vue.js page builder component with drag & drop functionality. Not ready for production use.",
5
5
  "type": "module",
6
6
  "main": "./dist/vue-website-page-builder.umd.cjs",
@@ -80,7 +80,7 @@ const thirdButton = function () {
80
80
  <slot name="content" />
81
81
 
82
82
  <div
83
- class="w-full relative inline-block align-bottom text-left overflow-hidden transform transition-all sm:align-middle"
83
+ class="font-sans w-full relative inline-block align-bottom text-left overflow-hidden transform transition-all sm:align-middle"
84
84
  >
85
85
  <template v-if="simpleModal !== true">
86
86
  <div class="flex items-center border-b border-gray-200 p-4 mb-2">
@@ -1,102 +1,92 @@
1
1
  <script setup>
2
- import { computed, onMounted, onUnmounted, watch } from "vue";
2
+ import { computed, onMounted, onUnmounted, watch } from 'vue'
3
3
  import {
4
- Dialog,
5
- DialogOverlay,
6
- DialogTitle,
7
- TransitionChild,
8
- TransitionRoot,
9
- } from "@headlessui/vue";
4
+ Dialog,
5
+ DialogOverlay,
6
+ DialogTitle,
7
+ TransitionChild,
8
+ TransitionRoot,
9
+ } from '@headlessui/vue'
10
10
 
11
11
  const props = defineProps({
12
- show: {
13
- type: Boolean,
14
- default: false,
15
- },
16
- maxWidth: {
17
- type: String,
18
- default: "2xl",
19
- },
20
- minHeight: {
21
- type: String,
22
- },
23
- maxHeight: {
24
- type: String,
25
- },
26
- });
12
+ show: {
13
+ type: Boolean,
14
+ default: false,
15
+ },
16
+ maxWidth: {
17
+ type: String,
18
+ default: '2xl',
19
+ },
20
+ minHeight: {
21
+ type: String,
22
+ },
23
+ maxHeight: {
24
+ type: String,
25
+ },
26
+ })
27
27
 
28
- const emit = defineEmits(["close"]);
28
+ const emit = defineEmits(['close'])
29
29
 
30
30
  const close = () => {
31
- emit("close");
32
- };
31
+ emit('close')
32
+ }
33
33
 
34
34
  const maxWidthClass = computed(() => {
35
- return {
36
- sm: "sm:max-w-sm",
37
- md: "sm:max-w-md",
38
- lg: "sm:max-w-lg",
39
- xl: "sm:max-w-xl",
40
- "2xl": "sm:max-w-2xl",
41
- "3xl": "sm:max-w-3xl",
42
- "4xl": "sm:max-w-4xl",
43
- "5xl": "sm:max-w-5xl",
44
- }[props.maxWidth];
45
- });
35
+ return {
36
+ sm: 'sm:max-w-sm',
37
+ md: 'sm:max-w-md',
38
+ lg: 'sm:max-w-lg',
39
+ xl: 'sm:max-w-xl',
40
+ '2xl': 'sm:max-w-2xl',
41
+ '3xl': 'sm:max-w-3xl',
42
+ '4xl': 'sm:max-w-4xl',
43
+ '5xl': 'sm:max-w-5xl',
44
+ }[props.maxWidth]
45
+ })
46
46
  </script>
47
47
 
48
48
  <template>
49
- <teleport to="body">
50
- <TransitionRoot :show="show" as="template">
51
- <Dialog
52
- as="div"
53
- class="fixed z-30 inset-0 overflow-y-auto"
54
- @close="close"
49
+ <teleport to="body">
50
+ <TransitionRoot :show="show" as="template">
51
+ <Dialog as="div" class="font-sans fixed z-30 inset-0 overflow-y-auto" @close="close">
52
+ <div class="flex items-end justify-center text-center sm:block sm:p-0">
53
+ <TransitionChild
54
+ as="template"
55
+ enter="ease-out duration-100"
56
+ enter-from="opacity-0"
57
+ enter-to="opacity-100"
58
+ leave="ease-in duration-100"
59
+ leave-from="opacity-100"
60
+ leave-to="opacity-0"
61
+ >
62
+ <DialogOverlay class="fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity" />
63
+ </TransitionChild>
64
+ <!-- This element is to trick the browser into centering the modal contents. -->
65
+ <span aria-hidden="true" class="hidden sm:inline-block sm:align-middle sm:h-screen"
66
+ >&#8203;</span
67
+ >
68
+ <TransitionChild
69
+ as="template"
70
+ enter="ease-out duration-100"
71
+ enter-from="opacity-0 scale-95"
72
+ enter-to="opacity-100 scale-100"
73
+ leave="ease-in duration-100"
74
+ leave-from="opacity-100 scale-100"
75
+ leave-to="opacity-0 scale-95"
76
+ >
77
+ <div
78
+ class="relative inline-block align-bottom bg-white rounded-xl text-left overflow-hidden shadow-xl transform transition-all sm:align-top top-4 sm:w-full w-[96%]"
79
+ :class="[
80
+ maxWidthClass ? maxWidthClass : '',
81
+ minHeight ? minHeight : '',
82
+ maxHeight ? maxHeight : '',
83
+ ]"
55
84
  >
56
- <div
57
- class="flex items-end justify-center text-center sm:block sm:p-0"
58
- >
59
- <TransitionChild
60
- as="template"
61
- enter="ease-out duration-100"
62
- enter-from="opacity-0"
63
- enter-to="opacity-100"
64
- leave="ease-in duration-100"
65
- leave-from="opacity-100"
66
- leave-to="opacity-0"
67
- >
68
- <DialogOverlay
69
- class="fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"
70
- />
71
- </TransitionChild>
72
- <!-- This element is to trick the browser into centering the modal contents. -->
73
- <span
74
- aria-hidden="true"
75
- class="hidden sm:inline-block sm:align-middle sm:h-screen"
76
- >&#8203;</span
77
- >
78
- <TransitionChild
79
- as="template"
80
- enter="ease-out duration-100"
81
- enter-from="opacity-0 scale-95"
82
- enter-to="opacity-100 scale-100"
83
- leave="ease-in duration-100"
84
- leave-from="opacity-100 scale-100"
85
- leave-to="opacity-0 scale-95"
86
- >
87
- <div
88
- class="relative inline-block align-bottom bg-white rounded-xl text-left overflow-hidden shadow-xl transform transition-all sm:align-top top-4 sm:w-full w-[96%]"
89
- :class="[
90
- maxWidthClass ? maxWidthClass : '',
91
- minHeight ? minHeight : '',
92
- maxHeight ? maxHeight : '',
93
- ]"
94
- >
95
- <slot></slot>
96
- </div>
97
- </TransitionChild>
98
- </div>
99
- </Dialog>
100
- </TransitionRoot>
101
- </teleport>
85
+ <slot></slot>
86
+ </div>
87
+ </TransitionChild>
88
+ </div>
89
+ </Dialog>
90
+ </TransitionRoot>
91
+ </teleport>
102
92
  </template>
@@ -20,7 +20,7 @@ const getRestoredElement = computed(() => {
20
20
 
21
21
  <template>
22
22
  <EditorAccordion>
23
- <template #title>Element Editor</template>
23
+ <template #title>Selected HTML Element</template>
24
24
  <template #content>
25
25
  <div class="flex flex-row flex-wrap gap-2 mt-2"></div>
26
26
  <div>
@@ -1,3 +1,5 @@
1
1
  <template>
2
- <div>NoneCustomMediaLibraryComponent here for the page builder to add media if needed</div>
2
+ <div class="font-sans">
3
+ <div>NoneCustomMediaLibraryComponent here for the page builder to add media if needed</div>
4
+ </div>
3
5
  </template>
@@ -63,7 +63,7 @@ const getSvgPreview = (title: string) => {
63
63
  </style>
64
64
 
65
65
  <template>
66
- <div class="p-4">
66
+ <div class="font-sans p-4">
67
67
  <!-- Helper Components Section -->
68
68
  <div class="mb-8">
69
69
  <h3 class="myQuaternaryHeader mb-4">Helper Components</h3>
@@ -30,7 +30,7 @@ const firstButton = function () {
30
30
  <template>
31
31
  <Modal maxWidth="5xl" :show="show" @close="firstButton" minHeight="" maxHeight="">
32
32
  <div
33
- class="w-full relative inline-block align-bottom text-left overflow-hidden transform transition-all sm:align-middle"
33
+ class="font-sans w-full relative inline-block align-bottom text-left overflow-hidden transform transition-all sm:align-middle"
34
34
  >
35
35
  <div class="flex items-center border-b border-gray-200 p-4 mb-2">
36
36
  <div class="flex-1">
@@ -225,7 +225,7 @@ onMounted(async () => {
225
225
  </script>
226
226
 
227
227
  <template>
228
- <div id="builder-container">
228
+ <div id="builder-container" class="font-sans">
229
229
  <SearchComponents
230
230
  v-if="showModalAddComponent"
231
231
  :show="showModalAddComponent"
@@ -414,29 +414,45 @@ onMounted(async () => {
414
414
  </span>
415
415
  </div>
416
416
  </button>
417
- <button
418
- type="button"
419
- @click="
420
- () => {
421
- pageBuilderStateStore.setMenuRight(false)
422
- pageBuilderStateStore.setElement(null)
423
- pageBuilderStateStore.setComponent(null)
424
- handlePageBuilderPreview()
425
- }
426
- "
427
- class="h-10 w-10 cursor-pointer rounded-full flex items-center border-none justify-center bg-gray-50 aspect-square hover:bg-myPrimaryLinkColor hover:text-white focus-visible:ring-0"
428
- >
429
- <span class="material-symbols-outlined"> visibility </span>
430
- </button>
417
+ <div class="flex items-center justify-center gap-4">
418
+ <button
419
+ type="button"
420
+ @click="
421
+ () => {
422
+ pageBuilderStateStore.setMenuRight(false)
423
+ pageBuilderStateStore.setElement(null)
424
+ pageBuilderStateStore.setComponent(null)
425
+ handlePageBuilderPreview()
426
+ }
427
+ "
428
+ >
429
+ <div class="flex items-center justify-center gap-2">
430
+ <span class="lg:block hidden"> Preview </span>
431
+
432
+ <span
433
+ class="h-10 w-10 cursor-pointer rounded-full flex items-center border-none justify-center bg-gray-50 aspect-square hover:bg-myPrimaryLinkColor hover:text-white focus-visible:ring-0"
434
+ >
435
+ <span class="myMediumIcon material-symbols-outlined"> visibility </span>
436
+ </span>
437
+ </div>
438
+ </button>
431
439
 
432
- <button
433
- type="button"
434
- v-if="getMenuRight === false"
435
- @click="pageBuilderStateStore.setMenuRight(true)"
436
- class="h-10 w-10 cursor-pointer rounded-full flex items-center border-none justify-center bg-gray-50 aspect-square hover:bg-myPrimaryLinkColor hover:text-white focus-visible:ring-0"
437
- >
438
- <span class="material-symbols-outlined"> palette </span>
439
- </button>
440
+ <button
441
+ type="button"
442
+ v-if="getMenuRight === false"
443
+ @click="pageBuilderStateStore.setMenuRight(true)"
444
+ >
445
+ <div class="flex items-center justify-center gap-2">
446
+ <span class="lg:block hidden"> Design </span>
447
+
448
+ <span
449
+ class="h-10 w-10 cursor-pointer rounded-full flex items-center border-none justify-center bg-gray-50 aspect-square hover:bg-myPrimaryLinkColor hover:text-white focus-visible:ring-0"
450
+ >
451
+ <span class="myMediumIcon material-symbols-outlined"> palette </span>
452
+ </span>
453
+ </div>
454
+ </button>
455
+ </div>
440
456
  </div>
441
457
  </div>
442
458
  </div>
package/src/css/app.css CHANGED
@@ -566,17 +566,14 @@ h3 {
566
566
  /* CSS for Vue datepicker # start */
567
567
  :root {
568
568
  /*General*/
569
- --dp-font-family:
570
- 'Jost', blinkmacsystemfont, 'Segoe UI', roboto, oxygen, ubuntu, cantarell, 'Open Sans',
571
- 'Helvetica Neue', sans-serif !important;
572
569
  --dp-border-radius: 40px; /*Configurable border-radius*/
573
570
  --dp-cell-border-radius: 4px; /*Specific border radius for the calendar cell*/
574
571
  --dp-common-transition: all 0.1s ease-in; /*Generic transition applied on buttons and calendar cells*/
575
572
  }
576
573
 
577
574
  #builder-container {
578
- font-family: 'Jost', sans-serif;
579
575
  }
576
+
580
577
  .dp__action_row {
581
578
  display: flex !important;
582
579
  align-items: center !important;