ep-lib-ts 0.1.44 → 1.0.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.
Files changed (180) hide show
  1. package/LICENSE +21 -0
  2. package/dist/BgAudio-C8bS54bl.js +4 -0
  3. package/dist/DisplayBox-BTPVW9_v.js +4 -0
  4. package/dist/EpAlert-Daji8LsR.js +4 -0
  5. package/dist/EpAudio-Dq7twl4x.js +4 -0
  6. package/dist/EpBadge-DBfMe1r_.js +4 -0
  7. package/dist/EpBarChart-cAlm0rKf.js +4 -0
  8. package/dist/EpBtn-S2VJnt--.js +4 -0
  9. package/dist/EpCard-SvaBmdDK.js +4 -0
  10. package/dist/EpChip-Chn_9bRP.js +4 -0
  11. package/dist/{EpCodeblock-4ac683f6.js → EpCodeblock-DVX2XFFj.js} +280 -270
  12. package/dist/EpContentSlider-Ds2GlrkO.js +4 -0
  13. package/dist/EpDarkmode--_9Qi6HH.js +19 -0
  14. package/dist/EpDivider-Bj4Zya_F.js +4 -0
  15. package/dist/EpEdu-Y7Lkf3Ew.js +4 -0
  16. package/dist/EpFlex-5yWhvYX7.js +4 -0
  17. package/dist/EpHeader-CEQBk1ah.js +4 -0
  18. package/dist/{EpHover-377ef256.js → EpHover-BL7JsbVZ.js} +3 -4
  19. package/dist/EpIcon-CuhZ90Zx.js +4 -0
  20. package/dist/EpIframe-DbPnkezB.js +4 -0
  21. package/dist/EpImg-DJ9gNwhJ.js +4 -0
  22. package/dist/{EpInput-c0096d40.js → EpInput-DMIxjwBM.js} +464 -459
  23. package/dist/EpLineChart-ALvSFQ-w.js +4 -0
  24. package/dist/EpLink-CQSfQHRj.js +4 -0
  25. package/dist/EpLinkVersion-VIxCHjDt.js +4 -0
  26. package/dist/{EpList-5211df15.js → EpList-BkH08ROd.js} +4 -5
  27. package/dist/EpModal-CYy1Iu1T.js +4 -0
  28. package/dist/EpNothing-IEAPsIPI.js +10 -0
  29. package/dist/EpPieChart-Cpxylmzw.js +4 -0
  30. package/dist/EpQuestion-gFjB_YVU.js +4 -0
  31. package/dist/EpQuote-C2WMKC8z.js +4 -0
  32. package/dist/EpRadio-CZu2BYd-.js +4 -0
  33. package/dist/EpRadioSummative-POEEv1YI.js +4 -0
  34. package/dist/EpReading-6LKvPJl5.js +4 -0
  35. package/dist/EpResource-Bqu38I44.js +4 -0
  36. package/dist/EpScope-B04S9t4O.js +4 -0
  37. package/dist/EpSection-B9obOS7v.js +4 -0
  38. package/dist/{EpSelect-78c9c0aa.js → EpSelect-DLGx5g-U.js} +3 -4
  39. package/dist/EpSkeleton-rkvPpE2y.js +4 -0
  40. package/dist/EpSoftware-DmH-rUDN.js +4 -0
  41. package/dist/EpSpinner-7XiNy9LV.js +4 -0
  42. package/dist/EpSummativeTable-JWOA25gE.js +4 -0
  43. package/dist/EpSvg-Dfvodejy.js +4 -0
  44. package/dist/EpTable-C0lD6aED.js +4 -0
  45. package/dist/EpTerm-XGV0Zf2w.js +4 -0
  46. package/dist/EpText-DhHXfEHv.js +4 -0
  47. package/dist/EpTimeLine-CDL7liGh.js +4 -0
  48. package/dist/{EpTooltip-05e1d8fe.js → EpTooltip-B4s0_PvZ.js} +4 -4
  49. package/dist/EpVideo-em0qb_rk.js +4 -0
  50. package/dist/EpVideoPanopto-DAMRV6HD.js +4 -0
  51. package/dist/EpWordDef-bLyQzqx8.js +4 -0
  52. package/dist/components/basics/EpAvatar.vue.d.ts +2 -2
  53. package/dist/components/basics/EpBadge.vue.d.ts +2 -2
  54. package/dist/components/basics/EpBtn.vue.d.ts +4 -3
  55. package/dist/components/basics/EpCard.vue.d.ts +4 -3
  56. package/dist/components/basics/EpChip.vue.d.ts +4 -3
  57. package/dist/components/basics/EpDivider.vue.d.ts +4 -3
  58. package/dist/components/basics/EpFlex.vue.d.ts +1 -1
  59. package/dist/components/basics/EpHover.vue.d.ts +2 -2
  60. package/dist/components/basics/EpIcon.vue.d.ts +2 -2
  61. package/dist/components/basics/EpImg.vue.d.ts +3 -2
  62. package/dist/components/basics/EpList.vue.d.ts +1 -1
  63. package/dist/components/basics/EpListitem.vue.d.ts +2 -2
  64. package/dist/components/basics/EpSection.vue.d.ts +2 -2
  65. package/dist/components/basics/EpSpinner.vue.d.ts +2 -2
  66. package/dist/components/basics/EpTable.vue.d.ts +1 -1
  67. package/dist/components/basics/EpText.vue.d.ts +2 -2
  68. package/dist/components/charts/EpBarChart.vue.d.ts +4 -3
  69. package/dist/components/charts/EpLineChart.vue.d.ts +4 -3
  70. package/dist/components/charts/EpPieChart.vue.d.ts +4 -3
  71. package/dist/components/educationals/EpCodeblock.vue.d.ts +5 -4
  72. package/dist/components/educationals/EpEdu.vue.d.ts +5 -4
  73. package/dist/components/educationals/EpReading.vue.d.ts +4 -3
  74. package/dist/components/educationals/EpResource.vue.d.ts +4 -3
  75. package/dist/components/educationals/EpScope.vue.d.ts +2 -2
  76. package/dist/components/forms/EpCheckbox.vue.d.ts +3 -3
  77. package/dist/components/forms/EpInput.vue.d.ts +3 -3
  78. package/dist/components/forms/EpRadio.vue.d.ts +5 -4
  79. package/dist/components/forms/EpRadioSummative.vue.d.ts +5 -4
  80. package/dist/components/forms/EpSelect.vue.d.ts +2 -2
  81. package/dist/components/forms/EpSwitch.vue.d.ts +5 -4
  82. package/dist/components/forms/EpTextarea.vue.d.ts +3 -3
  83. package/dist/components/forms/EpToggle.vue.d.ts +3 -3
  84. package/dist/components/interactions/EpAccordeon.vue.d.ts +4 -3
  85. package/dist/components/interactions/EpContentSlider.vue.d.ts +3 -2
  86. package/dist/components/interactions/EpDarkmode.vue.d.ts +3 -0
  87. package/dist/components/interactions/EpHotsPot.vue.d.ts +1 -1
  88. package/dist/components/interactions/EpModal.vue.d.ts +3 -3
  89. package/dist/components/interactions/EpQuestion.vue.d.ts +5 -4
  90. package/dist/components/interactions/EpSummativeTable.vue.d.ts +3 -2
  91. package/dist/components/interactions/EpTabs.vue.d.ts +1 -1
  92. package/dist/components/interactions/EpTooltip.vue.d.ts +4 -3
  93. package/dist/components/medias/EpAudio.vue.d.ts +4 -3
  94. package/dist/components/medias/EpCarousel.vue.d.ts +5 -4
  95. package/dist/components/medias/EpIframe.vue.d.ts +4 -3
  96. package/dist/components/medias/EpKatex.vue.d.ts +4 -3
  97. package/dist/components/medias/EpLink.vue.d.ts +4 -3
  98. package/dist/components/medias/EpLinkVersion.vue.d.ts +2 -2
  99. package/dist/components/medias/EpSoftware.vue.d.ts +4 -3
  100. package/dist/components/medias/EpSvg.vue.d.ts +4 -3
  101. package/dist/components/medias/EpTerm.vue.d.ts +2 -2
  102. package/dist/components/medias/EpTimeLine.vue.d.ts +2 -1
  103. package/dist/components/medias/EpVideo.vue.d.ts +4 -3
  104. package/dist/components/medias/EpVideoPanopto.vue.d.ts +5 -3
  105. package/dist/components/medias/EpWordDef.vue.d.ts +2 -1
  106. package/dist/components/signages/EpAlert.vue.d.ts +4 -3
  107. package/dist/components/signages/EpBadge.vue.d.ts +4 -3
  108. package/dist/components/signages/EpHeader.vue.d.ts +3 -3
  109. package/dist/components/signages/EpNothing.vue.d.ts +1 -1
  110. package/dist/components/signages/EpQuote.vue.d.ts +2 -2
  111. package/dist/components/signages/EpSkeleton.vue.d.ts +2 -2
  112. package/dist/components/tools/BgAudio.vue.d.ts +2 -2
  113. package/dist/components/tools/DisplayBox.vue.d.ts +1 -1
  114. package/dist/components/tools/SvgFilter.vue.d.ts +1 -1
  115. package/dist/components/tools/TimelineItem.vue.d.ts +4 -3
  116. package/dist/ep-lib-ts.js +40 -42
  117. package/dist/ep-lib-ts.umd.cjs +80 -81
  118. package/dist/index-Dl6z_ITi.js +18485 -0
  119. package/dist/{index-36787516.js → index-M54_P8uC.js} +1478 -1481
  120. package/dist/index.d.ts +43 -42
  121. package/dist/main.d.ts +1 -0
  122. package/dist/{prism-146a2db5.js → prism-B0q7vMaL.js} +2 -2
  123. package/dist/router.d.ts +1 -1
  124. package/dist/types/Answer.d.ts +1 -0
  125. package/package.json +26 -29
  126. package/src/components/interactions/EpDarkmode.vue +48 -0
  127. package/src/components/medias/EpLink.vue +30 -13
  128. package/src/components/medias/EpVideoPanopto.vue +10 -1
  129. package/dist/BgAudio-201834a5.js +0 -6
  130. package/dist/DisplayBox-171d0236.js +0 -6
  131. package/dist/EpAlert-b912c3ae.js +0 -6
  132. package/dist/EpAudio-2101bf81.js +0 -6
  133. package/dist/EpBadge-7247df23.js +0 -6
  134. package/dist/EpBarChart-607f1d3a.js +0 -6
  135. package/dist/EpBtn-c6ee3c06.js +0 -6
  136. package/dist/EpCard-17e2340f.js +0 -6
  137. package/dist/EpChip-fad19f38.js +0 -6
  138. package/dist/EpContentSlider-8445422f.js +0 -6
  139. package/dist/EpDivider-4fa1a100.js +0 -6
  140. package/dist/EpEdu-b733e904.js +0 -6
  141. package/dist/EpFlex-e6ffe678.js +0 -6
  142. package/dist/EpHeader-dcb977a2.js +0 -6
  143. package/dist/EpIcon-a64b1a32.js +0 -6
  144. package/dist/EpIframe-d14d7039.js +0 -6
  145. package/dist/EpImg-37e8c6da.js +0 -6
  146. package/dist/EpLineChart-78c50047.js +0 -6
  147. package/dist/EpLink-7a03f094.js +0 -6
  148. package/dist/EpLinkVersion-55282f69.js +0 -6
  149. package/dist/EpModal-d0e7bfe1.js +0 -6
  150. package/dist/EpNothing-c3bae89e.js +0 -11
  151. package/dist/EpPieChart-ccc6e9ea.js +0 -6
  152. package/dist/EpQuestion-1b0e98d9.js +0 -6
  153. package/dist/EpQuote-a3d9641f.js +0 -6
  154. package/dist/EpRadio-33311a7c.js +0 -6
  155. package/dist/EpRadioSummative-25f2d598.js +0 -6
  156. package/dist/EpReading-11835aac.js +0 -6
  157. package/dist/EpResource-d2707861.js +0 -6
  158. package/dist/EpScope-60c80551.js +0 -6
  159. package/dist/EpSection-9c54221c.js +0 -6
  160. package/dist/EpSkeleton-a40c904b.js +0 -6
  161. package/dist/EpSoftware-887b35ab.js +0 -6
  162. package/dist/EpSpinner-f7b9988b.js +0 -6
  163. package/dist/EpSummativeTable-1e759db5.js +0 -6
  164. package/dist/EpSvg-2a82f199.js +0 -6
  165. package/dist/EpTable-bc1744a8.js +0 -6
  166. package/dist/EpTerm-96482f48.js +0 -6
  167. package/dist/EpText-ab46371f.js +0 -6
  168. package/dist/EpTimeLine-67891a23.js +0 -6
  169. package/dist/EpVideo-8d575ce2.js +0 -6
  170. package/dist/EpVideoPanopto-716e3877.js +0 -6
  171. package/dist/EpWordDef-89e45463.js +0 -6
  172. package/dist/index-03f58de2.js +0 -19711
  173. /package/dist/{EpAvatar-1e55fdc7.js → EpAvatar-Dmpg0PFj.js} +0 -0
  174. /package/dist/{EpBadge-f5faab43.js → EpBadge-DqmSNdbi.js} +0 -0
  175. /package/dist/{EpCheckbox-b4696548.js → EpCheckbox-BtJRFbS_.js} +0 -0
  176. /package/dist/{EpHotsPot-f4deb558.js → EpHotsPot-NGjKJCc8.js} +0 -0
  177. /package/dist/{EpListitem-aa4a0f95.js → EpListitem-DzQrc-k2.js} +0 -0
  178. /package/dist/{EpSwitch-778610f4.js → EpSwitch-C7NMjBk9.js} +0 -0
  179. /package/dist/{EpTextarea-67f751e9.js → EpTextarea-DyMM95ER.js} +0 -0
  180. /package/dist/{EpToggle-79231e19.js → EpToggle-CfXYpI1b.js} +0 -0
package/dist/index.d.ts CHANGED
@@ -1,43 +1,44 @@
1
- import EpText from './components/basics/EpText.vue';
2
- import EpImg from './components/basics/EpImg.vue';
3
- import EpCard from './components/basics/EpCard.vue';
4
- import EpBadge from './components/basics/EpBadge.vue';
5
- import EpBtn from './components/basics/EpBtn.vue';
6
- import EpChip from './components/basics/EpChip.vue';
7
- import EpDivider from './components/basics/EpDivider.vue';
8
- import EpSection from './components/basics/EpSection.vue';
9
- import EpSpinner from './components/basics/EpSpinner.vue';
10
- import EpFlex from './components/basics/EpFlex.vue';
11
- import EpIcon from './components/basics/EpIcon.vue';
12
- import EpTable from './components/basics/EpTable.vue';
13
- import EpBarChart from './components/charts/EpBarChart.vue';
14
- import EpLineChart from './components/charts/EpLineChart.vue';
15
- import EpPieChart from './components/charts/EpPieChart.vue';
16
- import EpEdu from './components/educationals/EpEdu.vue';
17
- import EpReading from './components/educationals/EpReading.vue';
18
- import EpResource from './components/educationals/EpResource.vue';
19
- import EpScope from './components/educationals/EpScope.vue';
20
- import EpAccordeon from './components/interactions/EpAccordeon.vue';
21
- import EpContentSlider from './components/interactions/EpContentSlider.vue';
22
- import EpModal from './components/interactions/EpModal.vue';
23
- import EpQuestion from './components/interactions/EpQuestion.vue';
24
- import EpTabs from './components/interactions/EpTabs.vue';
25
- import EpSummativeTable from './components/interactions/EpSummativeTable.vue';
26
- import EpAudio from './components/medias/EpAudio.vue';
27
- import EpCarousel from './components/medias/EpCarousel.vue';
28
- import EpIframe from './components/medias/EpIframe.vue';
29
- import EpKatex from './components/medias/EpKatex.vue';
30
- import EpLink from './components/medias/EpLink.vue';
31
- import EpLinkVersion from './components/medias/EpLinkVersion.vue';
32
- import EpSoftware from './components/medias/EpSoftware.vue';
33
- import EpSvg from './components/medias/EpSvg.vue';
34
- import EpTerm from './components/medias/EpTerm.vue';
35
- import EpTimeLine from './components/medias/EpTimeLine.vue';
36
- import EpVideo from './components/medias/EpVideo.vue';
37
- import EpVideoPanopto from './components/medias/EpVideoPanopto.vue';
38
- import EpWordDef from './components/medias/EpWordDef.vue';
39
- import EpAlert from './components/signages/EpAlert.vue';
40
- import EpHeader from './components/signages/EpHeader.vue';
41
- import EpQuote from './components/signages/EpQuote.vue';
42
- import EpSkeleton from './components/signages/EpSkeleton.vue';
1
+ import { default as EpSkeleton } from './components/signages/EpSkeleton.vue';
2
+ import { default as EpQuote } from './components/signages/EpQuote.vue';
3
+ import { default as EpHeader } from './components/signages/EpHeader.vue';
4
+ import { default as EpAlert } from './components/signages/EpAlert.vue';
5
+ import { default as EpWordDef } from './components/medias/EpWordDef.vue';
6
+ import { default as EpVideoPanopto } from './components/medias/EpVideoPanopto.vue';
7
+ import { default as EpVideo } from './components/medias/EpVideo.vue';
8
+ import { default as EpTimeLine } from './components/medias/EpTimeLine.vue';
9
+ import { default as EpTerm } from './components/medias/EpTerm.vue';
10
+ import { default as EpSvg } from './components/medias/EpSvg.vue';
11
+ import { default as EpSoftware } from './components/medias/EpSoftware.vue';
12
+ import { default as EpLinkVersion } from './components/medias/EpLinkVersion.vue';
13
+ import { default as EpLink } from './components/medias/EpLink.vue';
14
+ import { default as EpKatex } from './components/medias/EpKatex.vue';
15
+ import { default as EpIframe } from './components/medias/EpIframe.vue';
16
+ import { default as EpCarousel } from './components/medias/EpCarousel.vue';
17
+ import { default as EpAudio } from './components/medias/EpAudio.vue';
18
+ import { default as EpSummativeTable } from './components/interactions/EpSummativeTable.vue';
19
+ import { default as EpTabs } from './components/interactions/EpTabs.vue';
20
+ import { default as EpQuestion } from './components/interactions/EpQuestion.vue';
21
+ import { default as EpModal } from './components/interactions/EpModal.vue';
22
+ import { default as EpContentSlider } from './components/interactions/EpContentSlider.vue';
23
+ import { default as EpAccordeon } from './components/interactions/EpAccordeon.vue';
24
+ import { default as EpScope } from './components/educationals/EpScope.vue';
25
+ import { default as EpResource } from './components/educationals/EpResource.vue';
26
+ import { default as EpReading } from './components/educationals/EpReading.vue';
27
+ import { default as EpEdu } from './components/educationals/EpEdu.vue';
28
+ import { default as EpPieChart } from './components/charts/EpPieChart.vue';
29
+ import { default as EpLineChart } from './components/charts/EpLineChart.vue';
30
+ import { default as EpBarChart } from './components/charts/EpBarChart.vue';
31
+ import { default as EpTable } from './components/basics/EpTable.vue';
32
+ import { default as EpIcon } from './components/basics/EpIcon.vue';
33
+ import { default as EpFlex } from './components/basics/EpFlex.vue';
34
+ import { default as EpSpinner } from './components/basics/EpSpinner.vue';
35
+ import { default as EpSection } from './components/basics/EpSection.vue';
36
+ import { default as EpDivider } from './components/basics/EpDivider.vue';
37
+ import { default as EpChip } from './components/basics/EpChip.vue';
38
+ import { default as EpBtn } from './components/basics/EpBtn.vue';
39
+ import { default as EpBadge } from './components/basics/EpBadge.vue';
40
+ import { default as EpCard } from './components/basics/EpCard.vue';
41
+ import { default as EpImg } from './components/basics/EpImg.vue';
42
+ import { default as EpText } from './components/basics/EpText.vue';
43
+
43
44
  export { EpBadge, EpBtn, EpCard, EpChip, EpDivider, EpFlex, EpIcon, EpImg, EpSection, EpSpinner, EpTable, EpBarChart, EpLineChart, EpPieChart, EpText, EpEdu, EpReading, EpResource, EpScope, EpAccordeon, EpContentSlider, EpModal, EpQuestion, EpTabs, EpAudio, EpCarousel, EpIframe, EpKatex, EpLink, EpLinkVersion, EpSoftware, EpSvg, EpTerm, EpTimeLine, EpVideo, EpVideoPanopto, EpAlert, EpHeader, EpQuote, EpSkeleton, EpWordDef, EpSummativeTable };
package/dist/main.d.ts CHANGED
@@ -0,0 +1 @@
1
+
@@ -1,4 +1,4 @@
1
- import { s as V, r as W } from "./index-03f58de2.js";
1
+ import { g as V, c as W } from "./EpCodeblock-DVX2XFFj.js";
2
2
  function ee(S, P) {
3
3
  for (var i = 0; i < P.length; i++) {
4
4
  const g = P[i];
@@ -186,7 +186,7 @@ var X = { exports: {} };
186
186
  currentScript: function() {
187
187
  if (typeof document > "u")
188
188
  return null;
189
- if ("currentScript" in document && 1 < 2)
189
+ if ("currentScript" in document)
190
190
  return (
191
191
  /** @type {any} */
192
192
  document.currentScript
package/dist/router.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: import("vue-router").Router;
1
+ declare const _default: import('vue-router').Router;
2
2
  export default _default;
@@ -1,4 +1,5 @@
1
1
  import { TypeAlert } from './Alert';
2
+
2
3
  interface ContentComponent {
3
4
  type?: string;
4
5
  data: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ep-lib-ts",
3
3
  "private": false,
4
- "version": "0.1.44",
4
+ "version": "1.0.1",
5
5
  "files": [
6
6
  "dist",
7
7
  "src/components/"
@@ -26,41 +26,38 @@
26
26
  "preview": "vite preview"
27
27
  },
28
28
  "dependencies": {
29
- "@highlightjs/vue-plugin": "^2.1.0",
30
- "@mdi/js": "^7.1.96",
31
- "@vueuse/core": "^10.1.2",
32
- "@wdns/vue-code-block": "^2.3.1",
33
- "apexcharts": "^3.41.1",
34
- "highlight.js": "^11.9.0",
35
- "katex": "^0.16.8",
36
- "markdown-it": "^13.0.1",
37
- "postcss-cli": "^10.1.0",
38
- "vee-validate": "^4.8.6",
29
+ "@mdi/js": "^7.4.47",
30
+ "@vueuse/core": "^10.9.0",
31
+ "@wdns/vue-code-block": "^2.3.2",
32
+ "apexcharts": "^3.49.0",
33
+ "katex": "^0.16.10",
34
+ "markdown-it": "^14.1.0",
35
+ "postcss-cli": "^11.0.0",
36
+ "vee-validate": "^4.12.6",
39
37
  "vue": "^3.2.45",
40
- "vue-router": "^4.1.6",
41
- "vue3-apexcharts": "^1.4.4",
42
- "vue3-highlightjs": "^1.0.5"
38
+ "vue-router": "^4.3.2",
39
+ "vue3-apexcharts": "^1.5.2"
43
40
  },
44
41
  "devDependencies": {
45
- "@tailwindcss/forms": "^0.5.3",
46
- "@types/katex": "^0.16.2",
47
- "@types/markdown-it": "^12.2.3",
48
- "@types/node": "^20.4.9",
49
- "@vitejs/plugin-vue": "^4.0.0",
50
- "autoprefixer": "^10.4.14",
42
+ "@tailwindcss/forms": "^0.5.7",
43
+ "@types/katex": "^0.16.7",
44
+ "@types/markdown-it": "^14.0.1",
45
+ "@types/node": "^20.12.7",
46
+ "@vitejs/plugin-vue": "^5.0.4",
47
+ "autoprefixer": "^10.4.19",
51
48
  "path": "^0.12.7",
52
- "postcss": "^8.4.27",
53
- "shikiji": "^0.9.11",
54
- "tailwindcss": "^3.3.3",
55
- "typescript": "^5.2.0-dev.20230801",
56
- "vite": "^4.1.0",
57
- "vite-plugin-dts": "^3.5.2",
58
- "vue-tsc": "^1.8.27"
49
+ "postcss": "^8.4.38",
50
+ "tailwindcss": "^3.4.3",
51
+ "typescript": "^5.4.5",
52
+ "vite": "^5.2.10",
53
+ "vite-plugin-dts": "^3.9.0",
54
+ "vue-tsc": "^2.0.14"
59
55
  },
60
56
  "peerDependencies": {
61
57
  "vue": "^3.2.45"
62
58
  },
63
59
  "engines": {
64
- "node": "18.x.x"
65
- }
60
+ "node": "20.x.x"
61
+ },
62
+ "license": "MIT"
66
63
  }
@@ -0,0 +1,48 @@
1
+ <template>
2
+ <button @click="toggleTheme">
3
+ <span v-if="userTheme === 'dark'">
4
+ ☀️
5
+ </span>
6
+ <span v-if="userTheme === 'light'">
7
+ 🌙
8
+ </span>
9
+ </button>
10
+ </template>
11
+
12
+ <script setup lang="ts">
13
+ import { ref, onMounted } from 'vue';
14
+
15
+ export type UserTheme = 'light' | 'dark';
16
+
17
+ const setTheme = (theme: UserTheme) => {
18
+ localStorage.setItem('user-theme', theme);
19
+ userTheme.value = theme;
20
+ document.documentElement.className = theme;
21
+ };
22
+
23
+ const getTheme = (): UserTheme => {
24
+ return localStorage.getItem('user-theme') as UserTheme;
25
+ };
26
+
27
+ const toggleTheme = (): void => {
28
+ const activeTheme = localStorage.getItem('user-theme');
29
+ if (activeTheme === 'light') {
30
+ setTheme('dark');
31
+ } else {
32
+ setTheme('light');
33
+ }
34
+ };
35
+
36
+ const getMediaPreference = (): UserTheme => {
37
+ const hasDarkPreference = window.matchMedia('(prefers-color-scheme: dark)').matches;
38
+ if (hasDarkPreference) {
39
+ return 'dark';
40
+ } else {
41
+ return 'light';
42
+ }
43
+ };
44
+
45
+ const userTheme = ref<UserTheme>(getTheme() || getMediaPreference());
46
+
47
+ onMounted(() => setTheme(userTheme.value));
48
+ </script>
@@ -2,14 +2,13 @@
2
2
  import { computed, toRefs } from "vue";
3
3
  //types with capital letter, object styles in lowercase
4
4
  import { MediaVariants } from "../../types/Medias";
5
- import { MandateLevel } from '../../types/MandateLevel';
5
+ import { MandateLevel } from "../../types/MandateLevel";
6
6
  import EpBtn from "../basics/EpBtn.vue";
7
7
  import { mdiLinkVariant } from "@mdi/js";
8
8
  import EpEdu from "../educationals/EpEdu.vue";
9
9
  import useColors from "../../composables/useColors";
10
10
  import { useRenderText } from "../../composables/useRenderText";
11
11
 
12
-
13
12
  interface Props {
14
13
  url: string;
15
14
  title?: string;
@@ -26,36 +25,54 @@ const props = withDefaults(defineProps<Props>(), {
26
25
  labelIntentions: "Intentions d'écoute",
27
26
  type: "primary",
28
27
  hideIcon: false,
29
- intentions: ""
28
+ intentions: "",
30
29
  });
31
30
 
32
31
  const renderIcon = computed(() => {
33
32
  if (props.icon) {
34
- return props.icon
33
+ return props.icon;
35
34
  }
36
- return mdiLinkVariant
37
- })
35
+ return mdiLinkVariant;
36
+ });
38
37
 
39
38
  const hoverColor = computed(() => {
40
- return `absolute ${useColors('bg', props.type + 'light')} bottom-0 w-0 left-1/2 h-full -translate-x-1/2 transition-all ease-in-out duration-300 group-hover:w-[105%] -z-[1] group-focus:w-[105%]`
41
- })
39
+ return `absolute ${useColors(
40
+ "bg",
41
+ props.type + "light"
42
+ )} bottom-0 w-0 left-1/2 h-full -translate-x-1/2 transition-all ease-in-out duration-300 group-hover:w-[105%] -z-[1] group-focus:w-[105%]`;
43
+ });
42
44
 
43
45
  const { url, title, intentions, mandateLevel, hideIcon } = toRefs(props);
44
46
  </script>
45
47
 
46
48
  <template>
47
- <EpEdu :title="labelCard" :icon="renderIcon" flat :type="type" :hideIcon="hideIcon" :mandateLevel="mandateLevel">
49
+ <EpEdu
50
+ :title="labelCard"
51
+ :icon="renderIcon"
52
+ flat
53
+ :type="type"
54
+ :hideIcon="hideIcon"
55
+ :mandateLevel="mandateLevel"
56
+ >
48
57
  <template #intentions v-if="useRenderText(intentions)">
49
58
  <div v-html="useRenderText(intentions)"></div>
50
59
  </template>
51
60
  <template #content>
52
61
  <div class="flex justify-center">
53
62
  <div class="w-4/5">
54
- <EpBtn block :color="type === 'base' ? 'text-black' : 'text-white'" rounded :type="type" :prependIcon="renderIcon"
63
+ <EpBtn
64
+ block
65
+ :color="type === 'base' ? 'text-black' : 'text-white'"
66
+ rounded
67
+ :type="type"
68
+ :prependIcon="renderIcon"
55
69
  :href="url"
56
- extraClass="group font-medium tracking-wide relative inline-flex justify-center overflow-hidden z-10 transition-all duration-300 ease-in-out ">
57
- <span class="font-medium tracking-wider ">{{ title }}</span>
58
- <span :class='hoverColor'></span>
70
+ extraClass="group font-medium tracking-wide relative inline-flex justify-center overflow-hidden z-10 transition-all duration-300 ease-in-out "
71
+ >
72
+ <div>
73
+ <span class="font-medium tracking-wider">{{ title }}</span>
74
+ <span :class="hoverColor"></span>
75
+ </div>
59
76
  </EpBtn>
60
77
  </div>
61
78
  </div>
@@ -18,6 +18,7 @@ interface Props{
18
18
  labelIntentions?:string;
19
19
  type?:MediaVariants;
20
20
  hideIcon?:boolean;
21
+ big?:boolean;
21
22
  }
22
23
 
23
24
  const props = withDefaults(defineProps<Props>(),{
@@ -41,6 +42,13 @@ const renderText = computed(()=>{
41
42
  //controls
42
43
  //const controls = useMediaControls(video, {src:props.src})
43
44
 
45
+ const sizeVideo = computed(()=> {
46
+ if(props.big){
47
+ return "700"
48
+ }
49
+ return "360"
50
+ })
51
+
44
52
  const {src, title, hideIcon, type} = toRefs(props)
45
53
 
46
54
  </script>
@@ -53,7 +61,8 @@ const {src, title, hideIcon, type} = toRefs(props)
53
61
  </template>
54
62
  <template #content>
55
63
  <div class="max-w-screen-sm mx-auto">
56
- <iframe :src="src" width="100%" height="360" frameborder="0" allowfullscreen></iframe>
64
+ <iframe :src="src" width="100%" :height="sizeVideo" frameborder="0" allowfullscreen></iframe>
65
+
57
66
  </div>
58
67
  </template>
59
68
  <!-- <template #actions>
@@ -1,6 +0,0 @@
1
- import { S as o } from "./index-03f58de2.js";
2
- import "vue";
3
- import "vue-router";
4
- export {
5
- o as default
6
- };
@@ -1,6 +0,0 @@
1
- import { T as o } from "./index-03f58de2.js";
2
- import "vue";
3
- import "vue-router";
4
- export {
5
- o as default
6
- };
@@ -1,6 +0,0 @@
1
- import { O as o } from "./index-03f58de2.js";
2
- import "vue";
3
- import "vue-router";
4
- export {
5
- o as default
6
- };
@@ -1,6 +0,0 @@
1
- import { E as o } from "./index-03f58de2.js";
2
- import "vue";
3
- import "vue-router";
4
- export {
5
- o as default
6
- };
@@ -1,6 +0,0 @@
1
- import { c as o } from "./index-03f58de2.js";
2
- import "vue";
3
- import "vue-router";
4
- export {
5
- o as default
6
- };
@@ -1,6 +0,0 @@
1
- import { o as m } from "./index-03f58de2.js";
2
- import "vue";
3
- import "vue-router";
4
- export {
5
- m as default
6
- };
@@ -1,6 +0,0 @@
1
- import { d as o } from "./index-03f58de2.js";
2
- import "vue";
3
- import "vue-router";
4
- export {
5
- o as default
6
- };
@@ -1,6 +0,0 @@
1
- import { e as o } from "./index-03f58de2.js";
2
- import "vue";
3
- import "vue-router";
4
- export {
5
- o as default
6
- };
@@ -1,6 +0,0 @@
1
- import { f as o } from "./index-03f58de2.js";
2
- import "vue";
3
- import "vue-router";
4
- export {
5
- o as default
6
- };
@@ -1,6 +0,0 @@
1
- import { A as o } from "./index-03f58de2.js";
2
- import "vue";
3
- import "vue-router";
4
- export {
5
- o as default
6
- };
@@ -1,6 +0,0 @@
1
- import { g as o } from "./index-03f58de2.js";
2
- import "vue";
3
- import "vue-router";
4
- export {
5
- o as default
6
- };
@@ -1,6 +0,0 @@
1
- import { t as m } from "./index-03f58de2.js";
2
- import "vue";
3
- import "vue-router";
4
- export {
5
- m as default
6
- };
@@ -1,6 +0,0 @@
1
- import { h as o } from "./index-03f58de2.js";
2
- import "vue";
3
- import "vue-router";
4
- export {
5
- o as default
6
- };
@@ -1,6 +0,0 @@
1
- import { P as o } from "./index-03f58de2.js";
2
- import "vue";
3
- import "vue-router";
4
- export {
5
- o as default
6
- };
@@ -1,6 +0,0 @@
1
- import { i as m } from "./index-03f58de2.js";
2
- import "vue";
3
- import "vue-router";
4
- export {
5
- m as default
6
- };
@@ -1,6 +0,0 @@
1
- import { F as o } from "./index-03f58de2.js";
2
- import "vue";
3
- import "vue-router";
4
- export {
5
- o as default
6
- };
@@ -1,6 +0,0 @@
1
- import { j as o } from "./index-03f58de2.js";
2
- import "vue";
3
- import "vue-router";
4
- export {
5
- o as default
6
- };
@@ -1,6 +0,0 @@
1
- import { p as o } from "./index-03f58de2.js";
2
- import "vue";
3
- import "vue-router";
4
- export {
5
- o as default
6
- };
@@ -1,6 +0,0 @@
1
- import { G as o } from "./index-03f58de2.js";
2
- import "vue";
3
- import "vue-router";
4
- export {
5
- o as default
6
- };
@@ -1,6 +0,0 @@
1
- import { H as o } from "./index-03f58de2.js";
2
- import "vue";
3
- import "vue-router";
4
- export {
5
- o as default
6
- };
@@ -1,6 +0,0 @@
1
- import { B as o } from "./index-03f58de2.js";
2
- import "vue";
3
- import "vue-router";
4
- export {
5
- o as default
6
- };
@@ -1,11 +0,0 @@
1
- import { openBlock as o, createElementBlock as t } from "vue";
2
- import { a as e } from "./index-03f58de2.js";
3
- import "vue-router";
4
- const r = {};
5
- function n(c, a) {
6
- return o(), t("div", null, " no data ");
7
- }
8
- const m = /* @__PURE__ */ e(r, [["render", n]]);
9
- export {
10
- m as default
11
- };
@@ -1,6 +0,0 @@
1
- import { q as o } from "./index-03f58de2.js";
2
- import "vue";
3
- import "vue-router";
4
- export {
5
- o as default
6
- };
@@ -1,6 +0,0 @@
1
- import { C as o } from "./index-03f58de2.js";
2
- import "vue";
3
- import "vue-router";
4
- export {
5
- o as default
6
- };
@@ -1,6 +0,0 @@
1
- import { Q as o } from "./index-03f58de2.js";
2
- import "vue";
3
- import "vue-router";
4
- export {
5
- o as default
6
- };
@@ -1,6 +0,0 @@
1
- import { y as o } from "./index-03f58de2.js";
2
- import "vue";
3
- import "vue-router";
4
- export {
5
- o as default
6
- };
@@ -1,6 +0,0 @@
1
- import { z as o } from "./index-03f58de2.js";
2
- import "vue";
3
- import "vue-router";
4
- export {
5
- o as default
6
- };
@@ -1,6 +0,0 @@
1
- import { b as o } from "./index-03f58de2.js";
2
- import "vue";
3
- import "vue-router";
4
- export {
5
- o as default
6
- };
@@ -1,6 +0,0 @@
1
- import { v as o } from "./index-03f58de2.js";
2
- import "vue";
3
- import "vue-router";
4
- export {
5
- o as default
6
- };
@@ -1,6 +0,0 @@
1
- import { w as o } from "./index-03f58de2.js";
2
- import "vue";
3
- import "vue-router";
4
- export {
5
- o as default
6
- };
@@ -1,6 +0,0 @@
1
- import { k as o } from "./index-03f58de2.js";
2
- import "vue";
3
- import "vue-router";
4
- export {
5
- o as default
6
- };
@@ -1,6 +0,0 @@
1
- import { R as o } from "./index-03f58de2.js";
2
- import "vue";
3
- import "vue-router";
4
- export {
5
- o as default
6
- };
@@ -1,6 +0,0 @@
1
- import { I as o } from "./index-03f58de2.js";
2
- import "vue";
3
- import "vue-router";
4
- export {
5
- o as default
6
- };
@@ -1,6 +0,0 @@
1
- import { l as o } from "./index-03f58de2.js";
2
- import "vue";
3
- import "vue-router";
4
- export {
5
- o as default
6
- };