ep-lib-ts 0.1.42 → 0.1.44
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/dist/{BgAudio-12a94111.js → BgAudio-201834a5.js} +1 -1
- package/dist/{DisplayBox-458ccfee.js → DisplayBox-171d0236.js} +1 -1
- package/dist/{EpAlert-869e9a5a.js → EpAlert-b912c3ae.js} +1 -1
- package/dist/{EpAudio-7b06fb87.js → EpAudio-2101bf81.js} +1 -1
- package/dist/EpBadge-7247df23.js +6 -0
- package/dist/{EpBarChart-2756826c.js → EpBarChart-607f1d3a.js} +1 -1
- package/dist/EpBtn-c6ee3c06.js +6 -0
- package/dist/EpCard-17e2340f.js +6 -0
- package/dist/EpCheckbox-b4696548.js +41 -0
- package/dist/EpChip-fad19f38.js +6 -0
- package/dist/EpCodeblock-4ac683f6.js +1467 -0
- package/dist/EpContentSlider-8445422f.js +6 -0
- package/dist/EpDivider-4fa1a100.js +6 -0
- package/dist/{EpEdu-75241c80.js → EpEdu-b733e904.js} +1 -1
- package/dist/EpFlex-e6ffe678.js +6 -0
- package/dist/EpHeader-dcb977a2.js +6 -0
- package/dist/EpHotsPot-f4deb558.js +56 -0
- package/dist/EpHover-377ef256.js +32 -0
- package/dist/{EpIcon-c83cee4a.js → EpIcon-a64b1a32.js} +1 -1
- package/dist/EpIframe-d14d7039.js +6 -0
- package/dist/EpImg-37e8c6da.js +6 -0
- package/dist/{EpInput-bfe1f0a8.js → EpInput-c0096d40.js} +1 -1
- package/dist/EpLineChart-78c50047.js +6 -0
- package/dist/EpLink-7a03f094.js +6 -0
- package/dist/EpLinkVersion-55282f69.js +6 -0
- package/dist/{EpList-ca9a647d.js → EpList-5211df15.js} +1 -1
- package/dist/EpModal-d0e7bfe1.js +6 -0
- package/dist/{EpNothing-27aa18ae.js → EpNothing-c3bae89e.js} +1 -1
- package/dist/EpPieChart-ccc6e9ea.js +6 -0
- package/dist/EpQuestion-1b0e98d9.js +6 -0
- package/dist/EpQuote-a3d9641f.js +6 -0
- package/dist/EpRadio-33311a7c.js +6 -0
- package/dist/EpRadioSummative-25f2d598.js +6 -0
- package/dist/EpReading-11835aac.js +6 -0
- package/dist/EpResource-d2707861.js +6 -0
- package/dist/EpScope-60c80551.js +6 -0
- package/dist/EpSection-9c54221c.js +6 -0
- package/dist/{EpSelect-f2ec0108.js → EpSelect-78c9c0aa.js} +1 -1
- package/dist/EpSkeleton-a40c904b.js +6 -0
- package/dist/EpSoftware-887b35ab.js +6 -0
- package/dist/EpSpinner-f7b9988b.js +6 -0
- package/dist/EpSummativeTable-1e759db5.js +6 -0
- package/dist/EpSvg-2a82f199.js +6 -0
- package/dist/{EpSwitch-9feee893.js → EpSwitch-778610f4.js} +20 -20
- package/dist/EpTable-bc1744a8.js +6 -0
- package/dist/EpTerm-96482f48.js +6 -0
- package/dist/EpText-ab46371f.js +6 -0
- package/dist/EpTimeLine-67891a23.js +6 -0
- package/dist/{EpToggle-9755056a.js → EpToggle-79231e19.js} +2 -2
- package/dist/EpVideo-8d575ce2.js +6 -0
- package/dist/EpVideoPanopto-716e3877.js +6 -0
- package/dist/EpWordDef-89e45463.js +6 -0
- package/dist/components/basics/EpHover.vue.d.ts +49 -0
- package/dist/components/basics/EpImg.vue.d.ts +5 -0
- package/dist/components/charts/EpBarChart.vue.d.ts +1 -0
- package/dist/components/charts/EpLineChart.vue.d.ts +1 -0
- package/dist/components/charts/EpPieChart.vue.d.ts +1 -0
- package/dist/components/educationals/EpCodeblock.vue.d.ts +42 -0
- package/dist/components/forms/EpCheckbox.vue.d.ts +10 -14
- package/dist/components/forms/EpInput.vue.d.ts +1 -1
- package/dist/components/forms/EpRadioSummative.vue.d.ts +56 -0
- package/dist/components/forms/EpSelect.vue.d.ts +1 -1
- package/dist/components/forms/EpTextarea.vue.d.ts +1 -1
- package/dist/components/forms/EpToggle.vue.d.ts +1 -1
- package/dist/components/interactions/EpHotsPot.vue.d.ts +32 -0
- package/dist/components/interactions/EpSummativeTable.vue.d.ts +24 -0
- package/dist/components/medias/EpCarousel.vue.d.ts +5 -0
- package/dist/components/signages/EpQuote.vue.d.ts +4 -0
- package/dist/ep-lib-ts.js +28 -27
- package/dist/ep-lib-ts.umd.cjs +98 -42
- package/dist/{index-c3629e3f.js → index-03f58de2.js} +2428 -2333
- package/dist/index-36787516.js +47690 -0
- package/dist/index.d.ts +2 -1
- package/dist/prism-146a2db5.js +1182 -0
- package/dist/style.css +1 -1
- package/dist/types/Codeblock.d.ts +223 -0
- package/dist/types/Image.d.ts +6 -0
- package/dist/types/SummativeTable.d.ts +10 -0
- package/package.json +7 -2
- package/src/components/basics/EpHover.vue +57 -0
- package/src/components/basics/EpImg.vue +27 -20
- package/src/components/charts/EpBarChart.vue +3 -3
- package/src/components/charts/EpLineChart.vue +3 -3
- package/src/components/charts/EpPieChart.vue +1 -0
- package/src/components/educationals/EpCodeblock.vue +48 -0
- package/src/components/forms/EpCheckbox.vue +26 -28
- package/src/components/forms/EpRadioSummative.vue +53 -0
- package/src/components/forms/EpToggle.vue +3 -12
- package/src/components/interactions/EpHotsPot.vue +77 -0
- package/src/components/interactions/EpSummativeTable.vue +56 -0
- package/src/components/medias/EpCarousel.vue +5 -2
- package/src/components/medias/EpKatex.vue +1 -1
- package/src/components/medias/EpSvg.vue +4 -2
- package/src/components/signages/EpQuote.vue +19 -16
- package/dist/EpBadge-13bd272a.js +0 -6
- package/dist/EpBtn-bf4e1bb8.js +0 -6
- package/dist/EpCard-138f7849.js +0 -6
- package/dist/EpCheckbox-fe632df9.js +0 -36
- package/dist/EpChip-ce9ab539.js +0 -6
- package/dist/EpContentSlider-9f860b5e.js +0 -6
- package/dist/EpDivider-5161e1a3.js +0 -6
- package/dist/EpFlex-56c39d33.js +0 -6
- package/dist/EpHeader-b573621c.js +0 -6
- package/dist/EpIframe-1d774546.js +0 -6
- package/dist/EpImg-b8c89895.js +0 -6
- package/dist/EpLineChart-09eeadf9.js +0 -6
- package/dist/EpLink-f0451bc0.js +0 -6
- package/dist/EpLinkVersion-2974758a.js +0 -6
- package/dist/EpModal-7538ea52.js +0 -6
- package/dist/EpPieChart-d4e42024.js +0 -6
- package/dist/EpQuestion-ce045112.js +0 -6
- package/dist/EpQuote-f25965fb.js +0 -6
- package/dist/EpRadio-d7d089ac.js +0 -6
- package/dist/EpReading-cd6d9d42.js +0 -6
- package/dist/EpResource-e7b8e1d6.js +0 -6
- package/dist/EpScope-f857c493.js +0 -6
- package/dist/EpSection-a4260ae8.js +0 -6
- package/dist/EpSkeleton-07341c6f.js +0 -6
- package/dist/EpSoftware-8ff5b189.js +0 -6
- package/dist/EpSpinner-bca72b93.js +0 -6
- package/dist/EpSvg-c3ef1c16.js +0 -6
- package/dist/EpTable-6d34cf99.js +0 -6
- package/dist/EpTerm-5893b315.js +0 -6
- package/dist/EpText-bef0cd7e.js +0 -6
- package/dist/EpTimeLine-77889a4d.js +0 -6
- package/dist/EpVideo-3c188b92.js +0 -6
- package/dist/EpVideoPanopto-7bdb0a19.js +0 -6
- package/dist/EpWordDef-e6ebb0d2.js +0 -6
|
@@ -70,10 +70,7 @@ const {
|
|
|
70
70
|
</label>
|
|
71
71
|
</div> -->
|
|
72
72
|
<div>
|
|
73
|
-
<input
|
|
74
|
-
:id="id"
|
|
75
|
-
:type="type"
|
|
76
|
-
:checked="checked"
|
|
73
|
+
<input :id="id" :type="type" :checked="checked"
|
|
77
74
|
class="form-checkbox mr-2 mt-[0rem] h-4 w-8 appearance-none rounded-full bg-neutral-200 border-neutral-300 before:pointer-events-none before:absolute before:h-3.5 before:w-3.5 before:rounded-full before:bg-transparent before:content-[''] after:absolute after:z-[2] after:-mt-[0rem] after:h-3.5 after:w-3.5 after:rounded-full after:border-none after:bg-neutral-50 after:shadow-[0_0px_3px_0_rgb(0_0_0_/_7%),_0_2px_2px_0_rgb(0_0_0_/_4%)] after:transition-[background-color_0.2s,transform_0.2s] after:content-['']
|
|
78
75
|
|
|
79
76
|
checked:bg-none checked:bg-blue-600 checked:after:absolute checked:after:z-[2] checked:after:-mt-[0px] checked:after:ml-[1.0625rem] checked:after:h-3.5 checked:after:w-3.5 checked:after:rounded-full checked:after:border-none checked:after:bg-neutral-100 checked:after:shadow-[0_3px_1px_-2px_rgba(0,0,0,0.2),_0_2px_2px_0_rgba(0,0,0,0.14),_0_1px_5px_0_rgba(0,0,0,0.12)] checked:after:transition-[background-color_0.2s,transform_0.2s] checked:after:content-['']
|
|
@@ -85,13 +82,7 @@ const {
|
|
|
85
82
|
checked:focus:border-neutral-200 checked:focus:bg-blue-600 checked:focus:before:ml-[1rem] checked:focus:before:mt-[0.1rem] checked:focus:before:scale-75 checked:focus:before:shadow-[3px_-1px_0px_13px_#3b71ca] checked:focus:before:transition-[box-shadow_0.2s,transform_0.2s]
|
|
86
83
|
|
|
87
84
|
dark:bg-neutral-600 dark:after:bg-neutral-400 dark:checked:bg-blue-600 dark:checked:after:bg-blue-600 dark:focus:before:shadow-[3px_-1px_0px_13px_rgba(255,255,255,0.4)] dark:checked:focus:before:shadow-[3px_-1px_0px_13px_#3b71ca] disabled:opacity-40 disabled:cursor-not-allowed"
|
|
88
|
-
role="switch"
|
|
89
|
-
|
|
90
|
-
/>
|
|
91
|
-
<label class="inline-block pl-[0.15rem] hover:cursor-pointer" :for="id"
|
|
92
|
-
>Default switch checkbox input</label
|
|
93
|
-
>
|
|
85
|
+
role="switch" :disabled="disabled" />
|
|
86
|
+
<label class="inline-block pl-[0.15rem] hover:cursor-pointer" :for="id">Default switch checkbox input</label>
|
|
94
87
|
</div>
|
|
95
88
|
</template>
|
|
96
|
-
|
|
97
|
-
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import {ref, computed, toRefs} from 'vue'
|
|
3
|
+
|
|
4
|
+
interface InfoButton {
|
|
5
|
+
id:string|number;
|
|
6
|
+
content:string;
|
|
7
|
+
verticalPosition:number;
|
|
8
|
+
horizontalPosition:number;
|
|
9
|
+
title:string;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
interface Props {
|
|
13
|
+
id?:string|number;
|
|
14
|
+
imageURL:string;
|
|
15
|
+
title?:string;
|
|
16
|
+
infoButtons:InfoButton[];
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
const props = withDefaults(defineProps<Props>(), {});
|
|
20
|
+
|
|
21
|
+
const { title, imageURL } = toRefs(props)
|
|
22
|
+
|
|
23
|
+
const hotsPots = computed(() => {
|
|
24
|
+
if (props.infoButtons) {
|
|
25
|
+
return props.infoButtons.map((button) => {
|
|
26
|
+
let transform = `translateX(-50%)`;
|
|
27
|
+
|
|
28
|
+
if (button.horizontalPosition === 0) transform = ``;
|
|
29
|
+
else if (button.horizontalPosition === 100) transform = `translateX(-100%)`;
|
|
30
|
+
if (button.verticalPosition === 100) transform = `translateY(-100%) ${transform}`;
|
|
31
|
+
|
|
32
|
+
const position = `transform: ${transform}; top: ${button.verticalPosition}%; left: ${button.horizontalPosition}%;`;
|
|
33
|
+
|
|
34
|
+
return { ...button, position }
|
|
35
|
+
})
|
|
36
|
+
}
|
|
37
|
+
return []
|
|
38
|
+
})
|
|
39
|
+
|
|
40
|
+
const modalOpen = ref(false);
|
|
41
|
+
const displayContent = ref('')
|
|
42
|
+
const titleDisplay = ref('')
|
|
43
|
+
|
|
44
|
+
const openModal = (title:string, content:string) => {
|
|
45
|
+
modalOpen.value = true;
|
|
46
|
+
displayContent.value = content
|
|
47
|
+
titleDisplay.value = title
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
const closeModal = () => {
|
|
51
|
+
modalOpen.value = false;
|
|
52
|
+
displayContent.value = ''
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
</script>
|
|
56
|
+
|
|
57
|
+
<template>
|
|
58
|
+
<div>
|
|
59
|
+
<h2 class="text-xl font-bold">{{ title }}</h2>
|
|
60
|
+
<div class="relative">
|
|
61
|
+
<img :src="imageURL" :alt="`l'image de ${title}`">
|
|
62
|
+
<template v-for="spot in hotsPots" :key="spot.id">
|
|
63
|
+
<button @click="openModal(spot.title, spot.content)" :class="`absolute text-white px-4 py-2 shadow-md bg-primary`" :style="`${spot.position}`">+</button>
|
|
64
|
+
</template>
|
|
65
|
+
<div v-if="modalOpen" class="absolute inset-0 flex items-center justify-center bg-black bg-opacity-5 px-2">
|
|
66
|
+
<div class="mx-2 bg-white p-2 shadow-md">
|
|
67
|
+
<h4>{{ titleDisplay }}</h4>
|
|
68
|
+
<div v-html="displayContent" class="text-sm"></div>
|
|
69
|
+
<button @click="closeModal" class="mt-4 bg-primary text-white px-2 py-1 text-sm">
|
|
70
|
+
Fermer
|
|
71
|
+
</button>
|
|
72
|
+
</div>
|
|
73
|
+
</div>
|
|
74
|
+
</div>
|
|
75
|
+
</div>
|
|
76
|
+
</template>
|
|
77
|
+
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import {ref, computed, toRefs} from 'vue'
|
|
3
|
+
import EpDivider from '../basics/EpDivider.vue';
|
|
4
|
+
import EpRadioSummative from '../forms/EpRadioSummative.vue';
|
|
5
|
+
import type { QuestionSummative } from '../../types/SummativeTable';
|
|
6
|
+
const totalValue = ref<number[]>([])
|
|
7
|
+
|
|
8
|
+
interface Props {
|
|
9
|
+
title?:string;
|
|
10
|
+
questions:QuestionSummative[];
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
const props = withDefaults(defineProps<Props>(), {})
|
|
14
|
+
|
|
15
|
+
const {title, questions} = toRefs(props)
|
|
16
|
+
|
|
17
|
+
const resultSummative = computed(()=> {
|
|
18
|
+
return totalValue.value.reduce((total, currentvalue) => total + currentvalue, 0)
|
|
19
|
+
})
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
//cette function sera efface, en creant le nouveau editeur
|
|
23
|
+
const transformNumber = (value:string|number) => {
|
|
24
|
+
const num = Number(value);
|
|
25
|
+
if (isNaN(num)) {
|
|
26
|
+
return 0;
|
|
27
|
+
} else {
|
|
28
|
+
return num;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
</script>
|
|
33
|
+
|
|
34
|
+
<template>
|
|
35
|
+
<div class="mt-4 bg-gray-50 p-4">
|
|
36
|
+
<h4 v-if="title" class="text-xl font-semibold mb-6">{{ title }}</h4>
|
|
37
|
+
<template v-for="(question,i) in questions" :key="`item-question-${i}`">
|
|
38
|
+
<p class=" text-gray-600 py-2 rounded">{{question.label}}</p>
|
|
39
|
+
<div class="flex flex-row flex-wrap gap-y-2 sm:gap-x-4">
|
|
40
|
+
<template v-for="(_option, j) in question.options" :key="`option-question-${j}`">
|
|
41
|
+
<EpRadioSummative
|
|
42
|
+
:id="`option-${i}-${j}-${_option.uid}`"
|
|
43
|
+
:name="`option-${i}-${j}-${_option.uid}`"
|
|
44
|
+
:label="_option.label"
|
|
45
|
+
:value="transformNumber(_option.value)"
|
|
46
|
+
v-model="totalValue[i]">
|
|
47
|
+
</EpRadioSummative>
|
|
48
|
+
</template>
|
|
49
|
+
</div>
|
|
50
|
+
<EpDivider />
|
|
51
|
+
</template>
|
|
52
|
+
<div class="text-right pr-16">
|
|
53
|
+
<span class="text-sm font-semibold uppercase">Total : {{ resultSummative }}</span>
|
|
54
|
+
</div>
|
|
55
|
+
</div>
|
|
56
|
+
</template>
|
|
@@ -3,6 +3,7 @@ import { toRefs, ref } from "vue";
|
|
|
3
3
|
import { mdiChevronLeftCircleOutline } from "@mdi/js";
|
|
4
4
|
import { mdiChevronRightCircleOutline } from "@mdi/js";
|
|
5
5
|
import { MediaCarousel } from "../../types/MediaCarousel";
|
|
6
|
+
import { SizeThumbnail } from "../../types/Image";
|
|
6
7
|
import EpIcon from "../basics/EpIcon.vue";
|
|
7
8
|
import EpBtn from "../basics/EpBtn.vue";
|
|
8
9
|
import EpModal from "../interactions/EpModal.vue";
|
|
@@ -13,12 +14,14 @@ interface Props {
|
|
|
13
14
|
gallery?: boolean;
|
|
14
15
|
labelRef?: string | null;
|
|
15
16
|
labelClose?: string | null;
|
|
17
|
+
sizeThumbnail?: SizeThumbnail
|
|
16
18
|
}
|
|
17
19
|
|
|
18
20
|
const props = withDefaults(defineProps<Props>(), {
|
|
19
21
|
labelClose: "Fermer",
|
|
20
22
|
labelRef: "Référence",
|
|
21
23
|
gallery: false,
|
|
24
|
+
sizeThumbnail:"medium"
|
|
22
25
|
});
|
|
23
26
|
|
|
24
27
|
const currentIndex = ref<number>(0);
|
|
@@ -36,7 +39,7 @@ const nextSlide = () => {
|
|
|
36
39
|
currentIndex.value = newIndex;
|
|
37
40
|
};
|
|
38
41
|
|
|
39
|
-
const { carrouselImg, labelClose, labelRef } = toRefs(props);
|
|
42
|
+
const { carrouselImg, labelClose, labelRef, sizeThumbnail } = toRefs(props);
|
|
40
43
|
</script>
|
|
41
44
|
|
|
42
45
|
<template>
|
|
@@ -76,7 +79,7 @@ const { carrouselImg, labelClose, labelRef } = toRefs(props);
|
|
|
76
79
|
</div>
|
|
77
80
|
<div v-else class="flex flex-wrap">
|
|
78
81
|
<template v-for="image in carrouselImg" :key="`image-${image?.uid}`">
|
|
79
|
-
<EpImg :src="image.src" :bib="image.bib" :caption="image.caption" thumbnail></EpImg>
|
|
82
|
+
<EpImg :src="image.src" :bib="image.bib" :caption="image.caption" thumbnail :size-thumbnail="sizeThumbnail"></EpImg>
|
|
80
83
|
</template>
|
|
81
84
|
</div>
|
|
82
85
|
</template>
|
|
@@ -34,10 +34,12 @@ const Cols = [
|
|
|
34
34
|
'basis-9/12',
|
|
35
35
|
'basis-10/12',
|
|
36
36
|
'basis-11/12',
|
|
37
|
-
'basis-
|
|
37
|
+
'basis-full',
|
|
38
38
|
]
|
|
39
39
|
|
|
40
40
|
const renderCols = computed(() => {
|
|
41
|
+
// console.log(+props.cols)
|
|
42
|
+
// console.log(Cols[+props.cols])
|
|
41
43
|
return Cols[+props.cols]
|
|
42
44
|
})
|
|
43
45
|
|
|
@@ -50,7 +52,7 @@ const renderText = computed(()=> {
|
|
|
50
52
|
|
|
51
53
|
|
|
52
54
|
|
|
53
|
-
const {title, content
|
|
55
|
+
const {title, content} = toRefs(props)
|
|
54
56
|
|
|
55
57
|
</script>
|
|
56
58
|
|
|
@@ -3,17 +3,20 @@ import { toRefs, computed } from "vue";
|
|
|
3
3
|
import EpCard from "../basics/EpCard.vue";
|
|
4
4
|
import EpDivider from "../basics/EpDivider.vue";
|
|
5
5
|
import EpIcon from '../basics/EpIcon.vue'
|
|
6
|
+
import { mdiFormatQuoteOpen } from "@mdi/js";
|
|
6
7
|
|
|
7
8
|
interface Props {
|
|
8
9
|
author?: string | null;
|
|
9
10
|
img?: string | null;
|
|
10
11
|
card?: boolean;
|
|
12
|
+
hideIcon?:boolean;
|
|
11
13
|
}
|
|
12
14
|
|
|
13
15
|
const props = withDefaults(defineProps<Props>(), {
|
|
14
16
|
author: null,
|
|
15
17
|
img: null,
|
|
16
18
|
card: false,
|
|
19
|
+
hideIcon:false
|
|
17
20
|
});
|
|
18
21
|
|
|
19
22
|
const colorText = computed(() => {
|
|
@@ -36,29 +39,29 @@ const imageStyle = computed(() => {
|
|
|
36
39
|
return `md:rounded-l-md`;
|
|
37
40
|
});
|
|
38
41
|
|
|
39
|
-
const { author, img, card } = toRefs(props);
|
|
42
|
+
const { author, img, card, hideIcon } = toRefs(props);
|
|
43
|
+
|
|
44
|
+
|
|
40
45
|
</script>
|
|
41
46
|
|
|
42
47
|
<template>
|
|
43
|
-
<div :class="card?'w-4/6 mx-auto':''">
|
|
44
|
-
<EpCard
|
|
45
|
-
:
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
<div class="
|
|
51
|
-
<
|
|
52
|
-
:
|
|
53
|
-
|
|
54
|
-
alt="Image of quote"
|
|
55
|
-
/>
|
|
48
|
+
<div :class="card ? 'w-4/6 mx-auto' : ''">
|
|
49
|
+
<EpCard :density="card ? 'default' : 'compact'" :outlined="!card ? true : false" :color="card ? 'primary' : 'bg-white'">
|
|
50
|
+
<div :class="`md:flex md:flex-wrap rounded-md`">
|
|
51
|
+
<div class="w-1/5 mr-6" v-if="img">
|
|
52
|
+
<img :class="`${imageStyle} md:w-full md:h-full md:object-cover md:rounded-l-md`" :src="img"
|
|
53
|
+
alt="Image of quote" />
|
|
54
|
+
</div>
|
|
55
|
+
<div class="flex items-center justify-center px-7" v-else-if="!hideIcon">
|
|
56
|
+
<div :class="card ? 'text-white':'text-stone-700'">
|
|
57
|
+
<EpIcon :size="60" :icon-path="mdiFormatQuoteOpen"></EpIcon>
|
|
58
|
+
</div>
|
|
56
59
|
</div>
|
|
57
|
-
<div :class="`
|
|
60
|
+
<div :class="`py-6 flex-1 ${colorText} ${hideIcon?'px-6':'pr-2'}`">
|
|
58
61
|
<slot></slot>
|
|
59
62
|
<template v-if="author">
|
|
60
63
|
<EpDivider size="border"></EpDivider>
|
|
61
|
-
<p :class="`
|
|
64
|
+
<p :class="`italic ${styleTextAutor}`">
|
|
62
65
|
{{ author }}
|
|
63
66
|
</p>
|
|
64
67
|
</template>
|
package/dist/EpBadge-13bd272a.js
DELETED
package/dist/EpBtn-bf4e1bb8.js
DELETED
package/dist/EpCard-138f7849.js
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { defineComponent as u, toRefs as p, openBlock as f, createElementBlock as b, createElementVNode as a, unref as e, toDisplayString as m } from "vue";
|
|
2
|
-
const y = ["id", "type", "value", "disabled", "readonly", "checked"], h = ["for", "disabled"], B = /* @__PURE__ */ u({
|
|
3
|
-
__name: "EpCheckbox",
|
|
4
|
-
props: {
|
|
5
|
-
id: { default: "0" },
|
|
6
|
-
label: { default: "check" },
|
|
7
|
-
modelValue: { default: "" },
|
|
8
|
-
type: { default: "checkbox" },
|
|
9
|
-
disabled: { type: Boolean, default: !1 },
|
|
10
|
-
readonly: { type: Boolean, default: !1 },
|
|
11
|
-
checked: { type: Boolean, default: !1 }
|
|
12
|
-
},
|
|
13
|
-
emits: ["update:modelValue"],
|
|
14
|
-
setup(o, { emit: k }) {
|
|
15
|
-
const t = o, { id: l, label: n, type: c, modelValue: s, disabled: d, readonly: r, checked: i } = p(t);
|
|
16
|
-
return (_, x) => (f(), b("div", null, [
|
|
17
|
-
a("input", {
|
|
18
|
-
id: e(l),
|
|
19
|
-
type: e(c),
|
|
20
|
-
value: e(s),
|
|
21
|
-
class: "form-checkbox rounded border-neutral-300 text-blue-600 h-[1.125rem] w-[1.125rem] mr-2 disabled:opacity-40 disabled:cursor-not-allowed",
|
|
22
|
-
disabled: e(d),
|
|
23
|
-
readonly: e(r),
|
|
24
|
-
checked: e(i)
|
|
25
|
-
}, null, 8, y),
|
|
26
|
-
a("label", {
|
|
27
|
-
for: e(l),
|
|
28
|
-
class: "disabled:opacity-40 hover:pointer-events-none",
|
|
29
|
-
disabled: e(d)
|
|
30
|
-
}, m(e(n)), 9, h)
|
|
31
|
-
]));
|
|
32
|
-
}
|
|
33
|
-
});
|
|
34
|
-
export {
|
|
35
|
-
B as default
|
|
36
|
-
};
|
package/dist/EpChip-ce9ab539.js
DELETED
package/dist/EpFlex-56c39d33.js
DELETED
package/dist/EpImg-b8c89895.js
DELETED
package/dist/EpLink-f0451bc0.js
DELETED
package/dist/EpModal-7538ea52.js
DELETED
package/dist/EpQuote-f25965fb.js
DELETED
package/dist/EpRadio-d7d089ac.js
DELETED
package/dist/EpScope-f857c493.js
DELETED
package/dist/EpSvg-c3ef1c16.js
DELETED
package/dist/EpTable-6d34cf99.js
DELETED
package/dist/EpTerm-5893b315.js
DELETED
package/dist/EpText-bef0cd7e.js
DELETED
package/dist/EpVideo-3c188b92.js
DELETED