ep-lib-ts 0.0.7 → 0.0.9

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 (100) hide show
  1. package/dist/components/basics/EpBadge.vue.d.ts +38 -0
  2. package/dist/components/basics/EpBtn.vue.d.ts +108 -0
  3. package/dist/components/basics/EpCard.vue.d.ts +95 -0
  4. package/dist/components/basics/EpChip.vue.d.ts +72 -0
  5. package/dist/components/basics/EpDivider.vue.d.ts +51 -4
  6. package/dist/components/basics/EpFlex.vue.d.ts +9 -0
  7. package/dist/components/basics/EpIcon.vue.d.ts +37 -4
  8. package/dist/components/basics/EpImg.vue.d.ts +76 -0
  9. package/dist/components/basics/EpSection.vue.d.ts +84 -0
  10. package/dist/components/basics/EpSpinner.vue.d.ts +32 -0
  11. package/dist/components/basics/EpTable.vue.d.ts +24 -0
  12. package/dist/components/basics/EpText.vue.d.ts +30 -0
  13. package/dist/components/charts/EpBarChart.vue.d.ts +82 -0
  14. package/dist/components/charts/EpLineChart.vue.d.ts +82 -0
  15. package/dist/components/charts/EpPieChart.vue.d.ts +2 -0
  16. package/dist/components/educationals/EpEdu.vue.d.ts +80 -0
  17. package/dist/components/educationals/EpReading.vue.d.ts +151 -0
  18. package/dist/components/educationals/EpScope.vue.d.ts +14 -0
  19. package/dist/components/interactions/EpAccordeon.vue.d.ts +53 -4
  20. package/dist/components/interactions/EpContentSlider.vue.d.ts +2 -0
  21. package/dist/components/interactions/EpModal.vue.d.ts +70 -0
  22. package/dist/components/interactions/EpQuestion.vue.d.ts +2 -0
  23. package/dist/components/interactions/EpTabs.vue.d.ts +2 -0
  24. package/dist/components/medias/EpAudio.vue.d.ts +79 -0
  25. package/dist/components/medias/EpCarousel.vue.d.ts +32 -0
  26. package/dist/components/medias/EpIframe.vue.d.ts +58 -0
  27. package/dist/components/medias/EpKatex.vue.d.ts +52 -0
  28. package/dist/components/medias/EpLink.vue.d.ts +73 -0
  29. package/dist/components/medias/EpSoftware.vue.d.ts +88 -0
  30. package/dist/components/medias/EpSvg.vue.d.ts +2 -0
  31. package/dist/components/medias/EpTerm.vue.d.ts +80 -0
  32. package/dist/components/medias/EpTimeLine.vue.d.ts +2 -0
  33. package/dist/components/medias/EpVideo.vue.d.ts +64 -0
  34. package/dist/components/medias/EpVideoPanopto.vue.d.ts +64 -0
  35. package/dist/components/signages/EpAlert.vue.d.ts +63 -4
  36. package/dist/components/signages/EpHeader.vue.d.ts +101 -0
  37. package/dist/components/signages/EpQuote.vue.d.ts +39 -0
  38. package/dist/components/tools/BgAudio.vue.d.ts +14 -0
  39. package/dist/components/tools/DisplayBox.vue.d.ts +17 -0
  40. package/dist/ep-lib-ts.js +27411 -0
  41. package/dist/ep-lib-ts.umd.cjs +1005 -0
  42. package/dist/index.d.ts +37 -1
  43. package/dist/style.css +1 -0
  44. package/package.json +25 -23
  45. package/src/components/basics/EpBadge.vue +48 -0
  46. package/src/components/basics/EpBtn.vue +100 -0
  47. package/src/components/basics/EpCard.vue +95 -0
  48. package/src/components/basics/EpChip.vue +81 -0
  49. package/src/components/basics/EpDivider.vue +40 -0
  50. package/src/components/basics/EpFlex.vue +42 -0
  51. package/src/components/basics/EpIcon.vue +25 -0
  52. package/src/components/basics/EpImg.vue +59 -0
  53. package/src/components/basics/EpSection.vue +238 -0
  54. package/src/components/basics/EpSpinner.vue +47 -0
  55. package/src/components/basics/EpTable.vue +33 -0
  56. package/src/components/basics/EpText.vue +85 -0
  57. package/src/components/charts/EpBarChart.vue +82 -0
  58. package/src/components/charts/EpLineChart.vue +92 -0
  59. package/src/components/charts/EpPieChart.vue +8 -0
  60. package/src/components/educationals/EpEdu.vue +93 -0
  61. package/src/components/educationals/EpReading.vue +234 -0
  62. package/src/components/educationals/EpScope.vue +25 -0
  63. package/src/components/forms/EpCheckbox.vue +49 -0
  64. package/src/components/forms/EpInput.vue +178 -0
  65. package/src/components/forms/EpRadio.vue +72 -0
  66. package/src/components/forms/EpSelect.vue +145 -0
  67. package/src/components/forms/EpSwitch.vue +58 -0
  68. package/src/components/forms/EpTextarea.vue +79 -0
  69. package/src/components/forms/EpToggle.vue +97 -0
  70. package/src/components/interactions/EpAccordeon.vue +88 -0
  71. package/src/components/interactions/EpContentSlider.vue +12 -0
  72. package/src/components/interactions/EpModal.vue +117 -0
  73. package/src/components/interactions/EpQuestion.vue +8 -0
  74. package/src/components/interactions/EpTabs.vue +10 -0
  75. package/src/components/medias/EpAudio.vue +83 -0
  76. package/src/components/medias/EpCarousel.vue +84 -0
  77. package/src/components/medias/EpIframe.vue +57 -0
  78. package/src/components/medias/EpKatex.vue +75 -0
  79. package/src/components/medias/EpLink.vue +62 -0
  80. package/src/components/medias/EpSoftware.vue +89 -0
  81. package/src/components/medias/EpSvg.vue +8 -0
  82. package/src/components/medias/EpTerm.vue +145 -0
  83. package/src/components/medias/EpTimeLine.vue +8 -0
  84. package/src/components/medias/EpVideo.vue +77 -0
  85. package/src/components/medias/EpVideoPanopto.vue +62 -0
  86. package/src/components/signages/EpAlert.vue +70 -0
  87. package/src/components/signages/EpHeader.vue +223 -0
  88. package/src/components/signages/EpQuote.vue +48 -0
  89. package/src/components/tools/BgAudio.vue +51 -0
  90. package/src/components/tools/DisplayBox.vue +37 -0
  91. package/dist/components/basics/EpDivider.vue.d.ts.map +0 -1
  92. package/dist/components/basics/EpIcon.vue.d.ts.map +0 -1
  93. package/dist/components/index.d.ts +0 -38
  94. package/dist/components/interactions/EpAccordeon.vue.d.ts.map +0 -1
  95. package/dist/components/main.d.ts +0 -7
  96. package/dist/components/signages/EpAlert.vue.d.ts.map +0 -1
  97. package/dist/ep-lib-ts.cjs.js +0 -1
  98. package/dist/ep-lib-ts.es.js +0 -392
  99. package/dist/ep-lib-ts.umd.js +0 -2
  100. package/dist/index.css +0 -1
@@ -1,392 +0,0 @@
1
- import { defineComponent as x, computed as b, openBlock as s, createElementBlock as g, normalizeClass as u, unref as r, toRefs as m, createElementVNode as c, ref as _, onMounted as q, Fragment as V, createBlock as k, createCommentVNode as p, createTextVNode as $, toDisplayString as v, renderSlot as w, pushScopeId as A, popScopeId as C, createVNode as M, withCtx as B } from "vue";
2
- const E = {
3
- bgprimary: "bg-primary",
4
- borderprimary: "border border-solid border-primary",
5
- fillprimary: "fill-primary",
6
- textprimary: "text-primary",
7
- bgprimarylight: "bg-primary-light",
8
- borderprimarylight: "border border-solid border-primary-light",
9
- fillprimarylight: "fill-primary-light",
10
- textprimarylight: "text-primary-light",
11
- bgprimarydark: "bg-primary-dark",
12
- borderprimarydark: "border border-solid border-primary-dark",
13
- fillprimarydark: "fill-primary-dark",
14
- textprimarydark: "text-primary-dark",
15
- bgsecondary: "bg-secondary",
16
- bordersecondary: "border border-solid border-secondary",
17
- fillsecondary: "fill-secondary",
18
- textsecondary: "text-secondary",
19
- bgsecondarylight: "bg-secondary-light",
20
- bordersecondarylight: "border border-solid border-secondary-light",
21
- fillsecondarylight: "fill-secondary-light",
22
- textsecondarylight: "text-secondary-light",
23
- bgsecondarydark: "bg-secondary-dark",
24
- bordersecondarydark: "border border-solid border-secondary-dark",
25
- fillsecondarydark: "fill-secondary-dark",
26
- textsecondarydark: "text-secondary-dark",
27
- bgaccent: "bg-accent",
28
- borderaccent: "border border-solid border-accent",
29
- fillaccent: "fill-accent",
30
- textaccent: "text-accent",
31
- bgaccentlight: "bg-accent-light",
32
- borderaccentlight: "border border-solid border-accent-light",
33
- fillaccentlight: "fill-accent-light",
34
- textaccentlight: "text-accent-light",
35
- bgaccentdark: "bg-accent-dark",
36
- borderaccentdark: "border border-solid border-accent-dark",
37
- fillaccentdark: "fill-accent-dark",
38
- textaccentdark: "text-accent-dark",
39
- bgerror: "bg-error",
40
- bordererror: "border border-solid border-error",
41
- fillerror: "fill-error",
42
- texterror: "text-error",
43
- bgerrorlight: "bg-error-light",
44
- bordererrorlight: "border border-solid border-error-light",
45
- fillerrorlight: "fill-error-light",
46
- texterrorlight: "text-error-light",
47
- bgerrordark: "bg-error-dark",
48
- bordererrordark: "border border-solid border-error-dark",
49
- fillerrordark: "fill-error-dark",
50
- texterrordark: "text-error-dark",
51
- bgwarning: "bg-warning",
52
- borderwarning: "border border-solid border-warning",
53
- fillwarning: "fill-warning",
54
- textwarning: "text-warning",
55
- bgwarninglight: "bg-warning-light",
56
- borderwarninglight: "border border-solid border-warning-light",
57
- fillwarninglight: "fill-warning-light",
58
- textwarninglight: "text-warning-light",
59
- bgwarningdark: "bg-warning-dark",
60
- borderwarningdark: "border border-solid border-warning-dark",
61
- fillwarningdark: "fill-warning-dark",
62
- textwarningdark: "text-warning-dark",
63
- bgsuccess: "bg-success",
64
- bordersuccess: "border border-solid border-success",
65
- fillsuccess: "fill-success",
66
- textsuccess: "text-success",
67
- bgsuccesslight: "bg-success-light",
68
- bordersuccesslight: "border border-solid border-success-light",
69
- fillsuccesslight: "fill-success-light",
70
- textsuccesslight: "text-success-light",
71
- bgsuccessdark: "bg-success-dark",
72
- bordersuccessdark: "border border-solid border-success-dark",
73
- fillsuccessdark: "fill-success-dark",
74
- textsuccessdark: "text-success-dark",
75
- bginfo: "bg-info",
76
- borderinfo: "border border-solid border-info",
77
- fillinfo: "fill-info",
78
- textinfo: "text-info",
79
- bginfolight: "bg-info-light",
80
- borderinfolight: "border border-solid border-info-light",
81
- fillinfolight: "fill-info-light",
82
- textinfolight: "text-info-light",
83
- bginfodark: "bg-info-dark",
84
- borderinfodark: "border border-solid border-info-dark",
85
- fillinfodark: "fill-info-dark",
86
- textinfodark: "text-info-dark",
87
- bgquestion: "bg-question",
88
- borderquestion: "border border-solid border-question",
89
- fillquestion: "fill-question",
90
- textquestion: "text-question",
91
- bgquestionlight: "bg-question-light",
92
- borderquestionlight: "border border-solid border-question-light",
93
- fillquestionlight: "fill-question-light",
94
- textquestionlight: "text-question-light",
95
- bgquestiondark: "bg-question-dark",
96
- borderquestiondark: "border border-solid border-question-dark",
97
- fillquestiondark: "fill-question-dark",
98
- textquestiondark: "text-question-dark",
99
- bgtip: "bg-tip",
100
- bordertip: "border border-solid border-tip",
101
- filltip: "fill-tip",
102
- texttip: "text-tip",
103
- bgtiplight: "bg-tip-light",
104
- bordertiplight: "border border-solid border-tip-light",
105
- filltiplight: "fill-tip-light",
106
- texttiplight: "text-tip-light",
107
- bgtipdark: "bg-tip-dark",
108
- bordertipdark: "border border-solid border-tip-dark",
109
- filltipdark: "fill-tip-dark",
110
- texttipdark: "text-tip-dark",
111
- bgwhite: "bg-white",
112
- fillwhite: "fill-white",
113
- textwhite: "text-white",
114
- borderwhite: "border border-solid border-white",
115
- bgblack: "bg-black",
116
- fillblack: "fill-black",
117
- borderblack: "border border-solid border-black",
118
- textblack: "text-black",
119
- bgbase: "bg-gray-500",
120
- bgbaselight: "bg-gray-200",
121
- fillbase: "fill-gray-500",
122
- borderbase: "border border-solid border-gray-500",
123
- textbase: "text-gray-500"
124
- };
125
- function H(t, e) {
126
- const l = `${t}${e}`.replace(/-/g, "");
127
- return E[l];
128
- }
129
- const I = /* @__PURE__ */ x({
130
- __name: "EpDivider",
131
- props: {
132
- color: { default: null },
133
- size: { default: "border" },
134
- inset: { type: Boolean, default: !1 },
135
- icon: { default: null },
136
- margin: { default: "my-2" }
137
- },
138
- setup(t) {
139
- const e = t, i = b(() => e.color ? `${e.size} ${H("border", e.color)}` : `${e.size} border-grey-700`), l = b(() => `${i.value} ${e.inset ? "w-9/12 mx-auto" : "w-full"} ${e.margin}`);
140
- return (d, a) => (s(), g("hr", {
141
- class: u(`h-px ${r(l)}`)
142
- }, null, 2));
143
- }
144
- }), z = ["width", "height", "viewBox"], S = ["d"], L = /* @__PURE__ */ x({
145
- __name: "EpIcon",
146
- props: {
147
- size: { default: 32 },
148
- viewBox: { default: "0 0 24 24" },
149
- iconPath: null,
150
- extraClass: null
151
- },
152
- setup(t) {
153
- const e = t, { size: i, viewBox: l, iconPath: d, extraClass: a } = m(e);
154
- return (f, h) => (s(), g("svg", {
155
- width: r(i),
156
- height: r(i),
157
- viewBox: r(l),
158
- color: "currentColor",
159
- fill: "currentColor",
160
- class: u(`inline ${r(a)}`)
161
- }, [
162
- c("path", { d: r(d) }, null, 8, S)
163
- ], 10, z));
164
- }
165
- }), Z = {
166
- base: {
167
- default: "bg-gray-100 text-black",
168
- outlined: "border-gray-100 border text-black"
169
- },
170
- primary: {
171
- default: "bg-primary text-white",
172
- outlined: "border-primary border text-primary"
173
- },
174
- secondary: {
175
- default: "bg-secondary text-white",
176
- outlined: "border-secondary border text-secondary"
177
- },
178
- accent: {
179
- default: "bg-accent text-white",
180
- outlined: "border-accent border text-accent"
181
- },
182
- warning: {
183
- default: "bg-warning text-white",
184
- outlined: "border-warning border text-warning"
185
- },
186
- success: {
187
- default: "bg-success text-white",
188
- outlined: "border-success border text-success"
189
- },
190
- error: {
191
- default: "bg-error text-white",
192
- outlined: "border-error border text-error"
193
- },
194
- /* this types is only for ptsAlert */
195
- info: {
196
- default: "bg-info text-white",
197
- outlined: "border-info border text-info"
198
- },
199
- question: {
200
- default: "bg-question text-white",
201
- outlined: "border-question border text-question"
202
- },
203
- tip: {
204
- default: "bg-tip text-white",
205
- outlined: "border-tip border text-tip"
206
- }
207
- }, O = (t) => (A("data-v-d8f20f72"), t = t(), C(), t), D = { class: "text-lg" }, N = /* @__PURE__ */ O(() => /* @__PURE__ */ c("path", {
208
- "stroke-linecap": "round",
209
- "stroke-linejoin": "round",
210
- d: "M12 6v12m6-6H6"
211
- }, null, -1)), j = [
212
- N
213
- ], F = { class: "py-4" }, P = /* @__PURE__ */ x({
214
- __name: "EpAccordeon",
215
- props: {
216
- title: { default: "En savoir plus" },
217
- type: { default: "base" },
218
- icon: null,
219
- open: { type: Boolean, default: !1 },
220
- outlined: { type: Boolean, default: !1 }
221
- },
222
- setup(t) {
223
- const e = t, i = _(e.open), l = _(), d = b(() => e.outlined ? "outlined" : "default"), a = b(() => {
224
- var o;
225
- return `flex justify-between items-center px-4 py-2 cursor-pointer ${(o = Z[e.type]) == null ? void 0 : o[d.value]}`;
226
- }), f = b(() => `px-4 ${H("bg", e.type + "light")}`);
227
- q(() => {
228
- var o = l.value;
229
- e.open && (o.style.maxHeight = o.scrollHeight + "px");
230
- });
231
- function h() {
232
- i.value = !i.value;
233
- var o = l.value;
234
- o.style.maxHeight ? o.style.maxHeight = null : o.style.maxHeight = o.scrollHeight + "px", o.style.transition || (o.style.transition = "max-height 0.2s ease-out");
235
- }
236
- const { title: y, icon: n } = m(e);
237
- return (o, ie) => (s(), g(V, null, [
238
- c("div", {
239
- class: u(r(a)),
240
- onClick: h
241
- }, [
242
- c("h3", D, [
243
- r(n) ? (s(), k(L, {
244
- key: 0,
245
- "icon-path": r(n)
246
- }, null, 8, ["icon-path"])) : p("", !0),
247
- $(" " + v(r(y)), 1)
248
- ]),
249
- (s(), g("svg", {
250
- xmlns: "http://www.w3.org/2000/svg",
251
- fill: "none",
252
- viewBox: "0 0 24 24",
253
- "stroke-width": "1.5",
254
- stroke: "currentColor",
255
- class: u(`mx-4 my-3 h-6 w-6 transition-all duration-200 ${i.value ? "rotate-45" : ""}`)
256
- }, j, 2))
257
- ], 2),
258
- c("div", {
259
- ref_key: "collapsible",
260
- ref: l,
261
- class: u(`${r(f)} content`)
262
- }, [
263
- c("div", F, [
264
- w(o.$slots, "default", {}, void 0, !0)
265
- ])
266
- ], 2)
267
- ], 64));
268
- }
269
- });
270
- const T = (t, e) => {
271
- const i = t.__vccOpts || t;
272
- for (const [l, d] of e)
273
- i[l] = d;
274
- return i;
275
- }, R = /* @__PURE__ */ T(P, [["__scopeId", "data-v-d8f20f72"]]), G = {
276
- base: {
277
- default: "bg-gray-100 text-black",
278
- outlined: "bg-white border-gray-100 border text-black"
279
- },
280
- warning: {
281
- default: "bg-warning text-white",
282
- outlined: "bg-white border-warning border text-warning"
283
- },
284
- success: {
285
- default: "bg-success text-white",
286
- outlined: "bg-white border-success border text-success"
287
- },
288
- error: {
289
- default: "bg-error text-white",
290
- outlined: "bg-white border-error border text-error"
291
- },
292
- /* this types is only for ptsAlert */
293
- info: {
294
- default: "bg-info text-white",
295
- outlined: "bg-white border-info border text-info"
296
- },
297
- question: {
298
- default: "bg-question text-white",
299
- outlined: "bg-white border-question border text-question"
300
- },
301
- tip: {
302
- default: "bg-tip text-white",
303
- outlined: "bg-white border-tip border text-tip"
304
- }
305
- };
306
- var J = "M13 14H11V9H13M13 18H11V16H13M1 21H23L12 2L1 21Z", K = "M2.2,16.06L3.88,12L2.2,7.94L6.26,6.26L7.94,2.2L12,3.88L16.06,2.2L17.74,6.26L21.8,7.94L20.12,12L21.8,16.06L17.74,17.74L16.06,21.8L12,20.12L7.94,21.8L6.26,17.74L2.2,16.06M13,17V15H11V17H13M13,13V7H11V13H13Z", Q = "M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41 10.59L10 14.17L17.59 6.58L19 8L10 17Z", U = "M13,9V3.5L18.5,9M6,2C4.89,2 4,2.89 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2H6Z", W = "M15.07,11.25L14.17,12.17C13.45,12.89 13,13.5 13,15H11V14.5C11,13.39 11.45,12.39 12.17,11.67L13.41,10.41C13.78,10.05 14,9.55 14,9C14,7.89 13.1,7 12,7A2,2 0 0,0 10,9H8A4,4 0 0,1 12,5A4,4 0 0,1 16,9C16,9.88 15.64,10.67 15.07,11.25M13,19H11V17H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12C22,6.47 17.5,2 12,2Z", X = "M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z", Y = "M12,6A6,6 0 0,1 18,12C18,14.22 16.79,16.16 15,17.2V19A1,1 0 0,1 14,20H10A1,1 0 0,1 9,19V17.2C7.21,16.16 6,14.22 6,12A6,6 0 0,1 12,6M14,21V22A1,1 0 0,1 13,23H11A1,1 0 0,1 10,22V21H14M20,11H23V13H20V11M1,11H4V13H1V11M13,1V4H11V1H13M4.92,3.5L7.05,5.64L5.63,7.05L3.5,4.93L4.92,3.5M16.95,5.63L19.07,3.5L20.5,4.93L18.37,7.05L16.95,5.63Z";
307
- const ee = {
308
- base: {
309
- icon: U
310
- },
311
- warning: {
312
- icon: J
313
- },
314
- success: {
315
- icon: Q
316
- },
317
- error: {
318
- icon: K
319
- },
320
- /* this types is only for ptsAlert */
321
- info: {
322
- icon: X
323
- },
324
- question: {
325
- icon: W
326
- },
327
- tip: {
328
- icon: Y
329
- }
330
- }, re = {
331
- key: 0,
332
- class: "flex items-center justify-center w-1/12"
333
- }, te = { class: "container" }, oe = {
334
- key: 0,
335
- class: "text-left text-2xl font-bold"
336
- }, de = /* @__PURE__ */ x({
337
- __name: "EpAlert",
338
- props: {
339
- type: { default: "base" },
340
- title: { default: null },
341
- outlined: { type: Boolean, default: !1 },
342
- noIcon: { type: Boolean, default: !1 },
343
- icon: { default: null },
344
- compact: { type: Boolean }
345
- },
346
- setup(t) {
347
- const e = t, i = b(() => e.outlined ? "outlined" : "default"), l = b(() => {
348
- var n;
349
- return `${(n = G[e.type]) == null ? void 0 : n[i.value]}`;
350
- }), d = b(() => {
351
- let n = ee[e.type].icon;
352
- return e.noIcon ? null : e.icon ? e.icon : n;
353
- }), { title: a, compact: f, type: h, outlined: y } = m(e);
354
- return (n, o) => r(f) ? (s(), k(R, {
355
- key: 1,
356
- type: r(h),
357
- outlined: r(y),
358
- icon: r(d),
359
- title: r(a)
360
- }, {
361
- default: B(() => [
362
- w(n.$slots, "default")
363
- ]),
364
- _: 3
365
- }, 8, ["type", "outlined", "icon", "title"])) : (s(), g("div", {
366
- key: 0,
367
- class: u(`flex p-4 rounded shadow-md m-2 ${r(l)}`)
368
- }, [
369
- r(d) ? (s(), g("div", re, [
370
- M(L, {
371
- size: 40,
372
- "icon-path": r(d)
373
- }, null, 8, ["icon-path"])
374
- ])) : p("", !0),
375
- c("div", {
376
- class: u(`${r(d) ? "w-11/12" : "w-full"} flex items-center`)
377
- }, [
378
- c("div", te, [
379
- r(a) ? (s(), g("h3", oe, v(r(a)), 1)) : p("", !0),
380
- r(a) ? (s(), k(I, {
381
- key: 1,
382
- size: "border"
383
- })) : p("", !0),
384
- w(n.$slots, "default")
385
- ])
386
- ], 2)
387
- ], 2));
388
- }
389
- });
390
- export {
391
- de as EpAlert
392
- };
@@ -1,2 +0,0 @@
1
- (function(s,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(s=typeof globalThis<"u"?globalThis:s||self,e(s.epLibTs={},s.Vue))})(this,function(s,e){"use strict";var f=document.createElement("style");f.textContent=`.content[data-v-d8f20f72]{max-height:0;overflow:hidden}
2
- `,document.head.appendChild(f);const h={bgprimary:"bg-primary",borderprimary:"border border-solid border-primary",fillprimary:"fill-primary",textprimary:"text-primary",bgprimarylight:"bg-primary-light",borderprimarylight:"border border-solid border-primary-light",fillprimarylight:"fill-primary-light",textprimarylight:"text-primary-light",bgprimarydark:"bg-primary-dark",borderprimarydark:"border border-solid border-primary-dark",fillprimarydark:"fill-primary-dark",textprimarydark:"text-primary-dark",bgsecondary:"bg-secondary",bordersecondary:"border border-solid border-secondary",fillsecondary:"fill-secondary",textsecondary:"text-secondary",bgsecondarylight:"bg-secondary-light",bordersecondarylight:"border border-solid border-secondary-light",fillsecondarylight:"fill-secondary-light",textsecondarylight:"text-secondary-light",bgsecondarydark:"bg-secondary-dark",bordersecondarydark:"border border-solid border-secondary-dark",fillsecondarydark:"fill-secondary-dark",textsecondarydark:"text-secondary-dark",bgaccent:"bg-accent",borderaccent:"border border-solid border-accent",fillaccent:"fill-accent",textaccent:"text-accent",bgaccentlight:"bg-accent-light",borderaccentlight:"border border-solid border-accent-light",fillaccentlight:"fill-accent-light",textaccentlight:"text-accent-light",bgaccentdark:"bg-accent-dark",borderaccentdark:"border border-solid border-accent-dark",fillaccentdark:"fill-accent-dark",textaccentdark:"text-accent-dark",bgerror:"bg-error",bordererror:"border border-solid border-error",fillerror:"fill-error",texterror:"text-error",bgerrorlight:"bg-error-light",bordererrorlight:"border border-solid border-error-light",fillerrorlight:"fill-error-light",texterrorlight:"text-error-light",bgerrordark:"bg-error-dark",bordererrordark:"border border-solid border-error-dark",fillerrordark:"fill-error-dark",texterrordark:"text-error-dark",bgwarning:"bg-warning",borderwarning:"border border-solid border-warning",fillwarning:"fill-warning",textwarning:"text-warning",bgwarninglight:"bg-warning-light",borderwarninglight:"border border-solid border-warning-light",fillwarninglight:"fill-warning-light",textwarninglight:"text-warning-light",bgwarningdark:"bg-warning-dark",borderwarningdark:"border border-solid border-warning-dark",fillwarningdark:"fill-warning-dark",textwarningdark:"text-warning-dark",bgsuccess:"bg-success",bordersuccess:"border border-solid border-success",fillsuccess:"fill-success",textsuccess:"text-success",bgsuccesslight:"bg-success-light",bordersuccesslight:"border border-solid border-success-light",fillsuccesslight:"fill-success-light",textsuccesslight:"text-success-light",bgsuccessdark:"bg-success-dark",bordersuccessdark:"border border-solid border-success-dark",fillsuccessdark:"fill-success-dark",textsuccessdark:"text-success-dark",bginfo:"bg-info",borderinfo:"border border-solid border-info",fillinfo:"fill-info",textinfo:"text-info",bginfolight:"bg-info-light",borderinfolight:"border border-solid border-info-light",fillinfolight:"fill-info-light",textinfolight:"text-info-light",bginfodark:"bg-info-dark",borderinfodark:"border border-solid border-info-dark",fillinfodark:"fill-info-dark",textinfodark:"text-info-dark",bgquestion:"bg-question",borderquestion:"border border-solid border-question",fillquestion:"fill-question",textquestion:"text-question",bgquestionlight:"bg-question-light",borderquestionlight:"border border-solid border-question-light",fillquestionlight:"fill-question-light",textquestionlight:"text-question-light",bgquestiondark:"bg-question-dark",borderquestiondark:"border border-solid border-question-dark",fillquestiondark:"fill-question-dark",textquestiondark:"text-question-dark",bgtip:"bg-tip",bordertip:"border border-solid border-tip",filltip:"fill-tip",texttip:"text-tip",bgtiplight:"bg-tip-light",bordertiplight:"border border-solid border-tip-light",filltiplight:"fill-tip-light",texttiplight:"text-tip-light",bgtipdark:"bg-tip-dark",bordertipdark:"border border-solid border-tip-dark",filltipdark:"fill-tip-dark",texttipdark:"text-tip-dark",bgwhite:"bg-white",fillwhite:"fill-white",textwhite:"text-white",borderwhite:"border border-solid border-white",bgblack:"bg-black",fillblack:"fill-black",borderblack:"border border-solid border-black",textblack:"text-black",bgbase:"bg-gray-500",bgbaselight:"bg-gray-200",fillbase:"fill-gray-500",borderbase:"border border-solid border-gray-500",textbase:"text-gray-500"};function p(t,r){const l=`${t}${r}`.replace(/-/g,"");return h[l]}const x=e.defineComponent({__name:"EpDivider",props:{color:{default:null},size:{default:"border"},inset:{type:Boolean,default:!1},icon:{default:null},margin:{default:"my-2"}},setup(t){const r=t,i=e.computed(()=>r.color?`${r.size} ${p("border",r.color)}`:`${r.size} border-grey-700`),l=e.computed(()=>`${i.value} ${r.inset?"w-9/12 mx-auto":"w-full"} ${r.margin}`);return(n,a)=>(e.openBlock(),e.createElementBlock("hr",{class:e.normalizeClass(`h-px ${e.unref(l)}`)},null,2))}}),k=["width","height","viewBox"],y=["d"],u=e.defineComponent({__name:"EpIcon",props:{size:{default:32},viewBox:{default:"0 0 24 24"},iconPath:null,extraClass:null},setup(t){const r=t,{size:i,viewBox:l,iconPath:n,extraClass:a}=e.toRefs(r);return(c,b)=>(e.openBlock(),e.createElementBlock("svg",{width:e.unref(i),height:e.unref(i),viewBox:e.unref(l),color:"currentColor",fill:"currentColor",class:e.normalizeClass(`inline ${e.unref(a)}`)},[e.createElementVNode("path",{d:e.unref(n)},null,8,y)],10,k))}}),m={base:{default:"bg-gray-100 text-black",outlined:"border-gray-100 border text-black"},primary:{default:"bg-primary text-white",outlined:"border-primary border text-primary"},secondary:{default:"bg-secondary text-white",outlined:"border-secondary border text-secondary"},accent:{default:"bg-accent text-white",outlined:"border-accent border text-accent"},warning:{default:"bg-warning text-white",outlined:"border-warning border text-warning"},success:{default:"bg-success text-white",outlined:"border-success border text-success"},error:{default:"bg-error text-white",outlined:"border-error border text-error"},info:{default:"bg-info text-white",outlined:"border-info border text-info"},question:{default:"bg-question text-white",outlined:"border-question border text-question"},tip:{default:"bg-tip text-white",outlined:"border-tip border text-tip"}},w=t=>(e.pushScopeId("data-v-d8f20f72"),t=t(),e.popScopeId(),t),_={class:"text-lg"},C=[w(()=>e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 6v12m6-6H6"},null,-1))],V={class:"py-4"},L=e.defineComponent({__name:"EpAccordeon",props:{title:{default:"En savoir plus"},type:{default:"base"},icon:null,open:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1}},setup(t){const r=t,i=e.ref(r.open),l=e.ref(),n=e.computed(()=>r.outlined?"outlined":"default"),a=e.computed(()=>{var o;return`flex justify-between items-center px-4 py-2 cursor-pointer ${(o=m[r.type])==null?void 0:o[n.value]}`}),c=e.computed(()=>`px-4 ${p("bg",r.type+"light")}`);e.onMounted(()=>{var o=l.value;r.open&&(o.style.maxHeight=o.scrollHeight+"px")});function b(){i.value=!i.value;var o=l.value;o.style.maxHeight?o.style.maxHeight=null:o.style.maxHeight=o.scrollHeight+"px",o.style.transition||(o.style.transition="max-height 0.2s ease-out")}const{title:g,icon:d}=e.toRefs(r);return(o,R)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:e.normalizeClass(e.unref(a)),onClick:b},[e.createElementVNode("h3",_,[e.unref(d)?(e.openBlock(),e.createBlock(u,{key:0,"icon-path":e.unref(d)},null,8,["icon-path"])):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(e.unref(g)),1)]),(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:e.normalizeClass(`mx-4 my-3 h-6 w-6 transition-all duration-200 ${i.value?"rotate-45":""}`)},C,2))],2),e.createElementVNode("div",{ref_key:"collapsible",ref:l,class:e.normalizeClass(`${e.unref(c)} content`)},[e.createElementVNode("div",V,[e.renderSlot(o.$slots,"default",{},void 0,!0)])],2)],64))}}),D="",H=((t,r)=>{const i=t.__vccOpts||t;for(const[l,n]of r)i[l]=n;return i})(L,[["__scopeId","data-v-d8f20f72"]]),q={base:{default:"bg-gray-100 text-black",outlined:"bg-white border-gray-100 border text-black"},warning:{default:"bg-warning text-white",outlined:"bg-white border-warning border text-warning"},success:{default:"bg-success text-white",outlined:"bg-white border-success border text-success"},error:{default:"bg-error text-white",outlined:"bg-white border-error border text-error"},info:{default:"bg-info text-white",outlined:"bg-white border-info border text-info"},question:{default:"bg-question text-white",outlined:"bg-white border-question border text-question"},tip:{default:"bg-tip text-white",outlined:"bg-white border-tip border text-tip"}};var B="M13 14H11V9H13M13 18H11V16H13M1 21H23L12 2L1 21Z",$="M2.2,16.06L3.88,12L2.2,7.94L6.26,6.26L7.94,2.2L12,3.88L16.06,2.2L17.74,6.26L21.8,7.94L20.12,12L21.8,16.06L17.74,17.74L16.06,21.8L12,20.12L7.94,21.8L6.26,17.74L2.2,16.06M13,17V15H11V17H13M13,13V7H11V13H13Z",A="M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41 10.59L10 14.17L17.59 6.58L19 8L10 17Z",M="M13,9V3.5L18.5,9M6,2C4.89,2 4,2.89 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2H6Z",E="M15.07,11.25L14.17,12.17C13.45,12.89 13,13.5 13,15H11V14.5C11,13.39 11.45,12.39 12.17,11.67L13.41,10.41C13.78,10.05 14,9.55 14,9C14,7.89 13.1,7 12,7A2,2 0 0,0 10,9H8A4,4 0 0,1 12,5A4,4 0 0,1 16,9C16,9.88 15.64,10.67 15.07,11.25M13,19H11V17H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12C22,6.47 17.5,2 12,2Z",z="M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z",N="M12,6A6,6 0 0,1 18,12C18,14.22 16.79,16.16 15,17.2V19A1,1 0 0,1 14,20H10A1,1 0 0,1 9,19V17.2C7.21,16.16 6,14.22 6,12A6,6 0 0,1 12,6M14,21V22A1,1 0 0,1 13,23H11A1,1 0 0,1 10,22V21H14M20,11H23V13H20V11M1,11H4V13H1V11M13,1V4H11V1H13M4.92,3.5L7.05,5.64L5.63,7.05L3.5,4.93L4.92,3.5M16.95,5.63L19.07,3.5L20.5,4.93L18.37,7.05L16.95,5.63Z";const S={base:{icon:M},warning:{icon:B},success:{icon:A},error:{icon:$},info:{icon:z},question:{icon:E},tip:{icon:N}},I={key:0,class:"flex items-center justify-center w-1/12"},Z={class:"container"},O={key:0,class:"text-left text-2xl font-bold"},T=e.defineComponent({__name:"EpAlert",props:{type:{default:"base"},title:{default:null},outlined:{type:Boolean,default:!1},noIcon:{type:Boolean,default:!1},icon:{default:null},compact:{type:Boolean}},setup(t){const r=t,i=e.computed(()=>r.outlined?"outlined":"default"),l=e.computed(()=>{var d;return`${(d=q[r.type])==null?void 0:d[i.value]}`}),n=e.computed(()=>{let d=S[r.type].icon;return r.noIcon?null:r.icon?r.icon:d}),{title:a,compact:c,type:b,outlined:g}=e.toRefs(r);return(d,o)=>e.unref(c)?(e.openBlock(),e.createBlock(H,{key:1,type:e.unref(b),outlined:e.unref(g),icon:e.unref(n),title:e.unref(a)},{default:e.withCtx(()=>[e.renderSlot(d.$slots,"default")]),_:3},8,["type","outlined","icon","title"])):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(`flex p-4 rounded shadow-md m-2 ${e.unref(l)}`)},[e.unref(n)?(e.openBlock(),e.createElementBlock("div",I,[e.createVNode(u,{size:40,"icon-path":e.unref(n)},null,8,["icon-path"])])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(`${e.unref(n)?"w-11/12":"w-full"} flex items-center`)},[e.createElementVNode("div",Z,[e.unref(a)?(e.openBlock(),e.createElementBlock("h3",O,e.toDisplayString(e.unref(a)),1)):e.createCommentVNode("",!0),e.unref(a)?(e.openBlock(),e.createBlock(x,{key:1,size:"border"})):e.createCommentVNode("",!0),e.renderSlot(d.$slots,"default")])],2)],2))}});s.EpAlert=T,Object.defineProperty(s,Symbol.toStringTag,{value:"Module"})});
package/dist/index.css DELETED
@@ -1 +0,0 @@
1
- .content[data-v-d8f20f72]{max-height:0;overflow:hidden}