@d0rich/esprit-design 0.5.0 → 1.0.0

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 (62) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/README.md +157 -11
  3. package/dist/_virtual/_plugin-vue_export-helper.js +10 -0
  4. package/dist/components/DChip.vue.js +14 -0
  5. package/dist/components/DChip.vue2.js +6 -0
  6. package/dist/components/DPagination.vue.js +116 -0
  7. package/dist/components/DPagination.vue2.js +4 -0
  8. package/dist/components/DStats.vue.js +367 -0
  9. package/dist/components/DStats.vue4.js +6 -0
  10. package/dist/components/animations/DAnimationAccordion.vue.js +47 -0
  11. package/dist/components/animations/DAnimationAccordion.vue3.js +5 -0
  12. package/dist/components/animations/DAnimationDefLetterD.vue.js +11 -0
  13. package/dist/components/animations/DAnimationDefLetterD.vue2.js +6 -0
  14. package/dist/components/animations/DAnimationFloatingLetter.vue.js +39 -0
  15. package/dist/components/animations/DAnimationFloatingLetter.vue3.js +5 -0
  16. package/dist/components/animations/DAnimationHypnosis.vue.js +46 -0
  17. package/dist/components/animations/DAnimationHypnosis.vue3.js +5 -0
  18. package/dist/components/animations/DAnimationSpinner.vue.js +80 -0
  19. package/dist/components/animations/DAnimationSpinner.vue3.js +5 -0
  20. package/dist/components/buttons/DBigBangButton.vue.js +56 -0
  21. package/dist/components/buttons/DBigBangButton.vue3.js +5 -0
  22. package/dist/components/buttons/DBigBangButtonAnimation.vue.js +97 -0
  23. package/dist/components/buttons/DBigBangButtonAnimation.vue3.js +5 -0
  24. package/dist/components/buttons/DBtn.vue.js +92 -0
  25. package/dist/components/buttons/DBtn.vue3.js +5 -0
  26. package/dist/components/cards/DCard.vue.js +50 -0
  27. package/dist/components/cards/DCard.vue3.js +5 -0
  28. package/dist/components/cards/DCardTitle.vue.js +30 -0
  29. package/dist/components/cards/DCardTitle.vue2.js +12 -0
  30. package/dist/components/content/DAlert.vue.js +61 -0
  31. package/dist/components/content/DAlert.vue3.js +5 -0
  32. package/dist/components/content/DQuote.vue.js +39 -0
  33. package/dist/components/content/DQuote.vue3.js +5 -0
  34. package/dist/components/index.js +61 -0
  35. package/dist/components/lists/DActionsFan.vue.js +101 -0
  36. package/dist/components/lists/DActionsFan.vue4.js +6 -0
  37. package/dist/components/lists/DActionsList.vue.js +89 -0
  38. package/dist/components/lists/DActionsList.vue3.js +5 -0
  39. package/dist/components/utils/DWrapBackground.vue.js +86 -0
  40. package/dist/components/utils/DWrapBackground.vue3.js +5 -0
  41. package/dist/components/utils/DWrapFocusHighlight.vue.js +93 -0
  42. package/dist/components/utils/DWrapFocusHighlight.vue5.js +7 -0
  43. package/dist/components/utils/DWrapShape.vue.js +73 -0
  44. package/dist/components/utils/DWrapShape.vue4.js +6 -0
  45. package/dist/composables/big-bang-button-utils.js +8 -0
  46. package/dist/composables/index.js +6 -0
  47. package/dist/composables/router.js +71 -0
  48. package/dist/composables/utils.js +7 -0
  49. package/dist/index.js +78 -0
  50. package/dist/style.css +869 -0
  51. package/dist/style.pure.css +2026 -0
  52. package/dist/style.tailwind.css +869 -0
  53. package/dist/utils/boundings.js +33 -0
  54. package/dist/utils/index.js +15 -0
  55. package/dist/utils/pagination.js +7 -0
  56. package/dist/utils/polygon-animation.js +85 -0
  57. package/package.json +31 -5
  58. package/tailwind.config.js +4 -1
  59. package/vite.config.ts +74 -10
  60. package/dist/esprit-design.css +0 -1
  61. package/dist/esprit-design.js +0 -2701
  62. package/dist/esprit-design.umd.cjs +0 -1
@@ -0,0 +1,367 @@
1
+ import { defineComponent, ref, computed, createElementBlock, openBlock, createElementVNode, toDisplayString, Fragment, renderList, createBlock, unref, normalizeClass, renderSlot, createTextVNode } from "vue";
2
+ import { Icon } from "@iconify/vue";
3
+ const _hoisted_1 = { class: "max-w-full" };
4
+ const _hoisted_2 = { class: "stats__print-value" };
5
+ const _hoisted_3 = { class: "stats__print-value__group-title" };
6
+ const _hoisted_4 = { class: "stats__print-value--small" };
7
+ const _hoisted_5 = { class: "stats" };
8
+ const _hoisted_6 = {
9
+ viewBox: "-500 -500 2000 2000",
10
+ xmlns: "http://www.w3.org/2000/svg"
11
+ };
12
+ const _hoisted_7 = ["points"];
13
+ const _hoisted_8 = ["points"];
14
+ const _hoisted_9 = { class: "stats__single-stat" };
15
+ const _hoisted_10 = ["points"];
16
+ const _hoisted_11 = ["points"];
17
+ const _hoisted_12 = { class: "stats__single-stat" };
18
+ const _hoisted_13 = ["points"];
19
+ const _hoisted_14 = ["points"];
20
+ const _hoisted_15 = { class: "stats__single-stat" };
21
+ const _hoisted_16 = ["points"];
22
+ const _hoisted_17 = ["points"];
23
+ const _hoisted_18 = { class: "stats__single-stat" };
24
+ const _hoisted_19 = ["points"];
25
+ const _hoisted_20 = ["points"];
26
+ const _hoisted_21 = { class: "stats__single-stat" };
27
+ const _hoisted_22 = ["points"];
28
+ const _hoisted_23 = ["points"];
29
+ const _hoisted_24 = { class: "stats__images" };
30
+ const _hoisted_25 = { class: "stats__image" };
31
+ const _hoisted_26 = { class: "stats__image" };
32
+ const _hoisted_27 = { class: "stats__image" };
33
+ const _hoisted_28 = { class: "stats__image" };
34
+ const _hoisted_29 = { class: "stats__image" };
35
+ const _hoisted_30 = {
36
+ viewBox: "-500 -500 2000 2000",
37
+ xmlns: "http://www.w3.org/2000/svg",
38
+ class: "stats_titles-layer"
39
+ };
40
+ const _hoisted_31 = {
41
+ x: "-500",
42
+ y: "-300",
43
+ class: "stats__group-title"
44
+ };
45
+ const _hoisted_32 = ["x", "y", "transform-origin"];
46
+ const _hoisted_33 = { class: "stats__title__value" };
47
+ const _hoisted_34 = ["x", "y", "transform-origin"];
48
+ const _hoisted_35 = { class: "stats__title__value" };
49
+ const _hoisted_36 = ["x", "y", "transform-origin"];
50
+ const _hoisted_37 = { class: "stats__title__value" };
51
+ const _hoisted_38 = ["x", "y", "transform-origin"];
52
+ const _hoisted_39 = { class: "stats__title__value" };
53
+ const _hoisted_40 = ["x", "y", "transform-origin"];
54
+ const _hoisted_41 = { class: "stats__title__value" };
55
+ const __default__ = {
56
+ name: "DStats",
57
+ components: {
58
+ Icon
59
+ }
60
+ };
61
+ const _sfc_main = /* @__PURE__ */ defineComponent({
62
+ ...__default__,
63
+ props: {
64
+ groupTitle: {},
65
+ titles: {},
66
+ values: {}
67
+ },
68
+ setup(__props) {
69
+ const props = __props;
70
+ const fullStarPoints = ref([
71
+ [500, 0],
72
+ // 1
73
+ [630, 330],
74
+ // 1-2
75
+ [980, 350],
76
+ // 2
77
+ [700, 590],
78
+ // 2-3
79
+ [790, 910],
80
+ // 3
81
+ [500, 720],
82
+ // 3-4
83
+ [210, 910],
84
+ // 4
85
+ [300, 590],
86
+ // 4-5
87
+ [20, 350],
88
+ // 5
89
+ [370, 330]
90
+ // 5-1
91
+ ]);
92
+ const scales = ref([1, 0.8, 0.6, 0.4, 0.27]);
93
+ const posToIndex = {
94
+ "1": 0,
95
+ "1-2": 1,
96
+ "2": 2,
97
+ "2-3": 3,
98
+ "3": 4,
99
+ "3-4": 5,
100
+ "4": 6,
101
+ "4-5": 7,
102
+ "5": 8,
103
+ "5-1": 9
104
+ };
105
+ const center = [500, 500];
106
+ function pointsToString(points) {
107
+ return points.map((pair) => pair.join(",")).join(" ");
108
+ }
109
+ function shrinkStar(points, scale, cx = 500, cy = 500) {
110
+ return points.map((coords) => {
111
+ return [
112
+ coords[0] - (coords[0] - cx) * (1 - scale),
113
+ coords[1] - (coords[1] - cy) * (1 - scale)
114
+ ];
115
+ });
116
+ }
117
+ const scaledStars = computed(() => {
118
+ return scales.value.map((scale) => shrinkStar(fullStarPoints.value, scale));
119
+ });
120
+ function starFromValue(value) {
121
+ return scaledStars.value[5 - value];
122
+ }
123
+ function statFromIndex(index) {
124
+ return {
125
+ value: props.values ? props.values[index] ?? 1 : 1,
126
+ title: props.titles ? props.titles[index] ?? "" : ""
127
+ };
128
+ }
129
+ const firstStat = computed(() => statFromIndex(0));
130
+ const secondStat = computed(() => statFromIndex(1));
131
+ const thirdStat = computed(() => statFromIndex(2));
132
+ const forthStat = computed(() => statFromIndex(3));
133
+ const fifthStat = computed(() => statFromIndex(4));
134
+ return (_ctx, _cache) => {
135
+ return openBlock(), createElementBlock("figure", _hoisted_1, [
136
+ createElementVNode("div", _hoisted_2, [
137
+ createElementVNode("div", _hoisted_3, toDisplayString(_ctx.groupTitle), 1),
138
+ createElementVNode("div", null, [
139
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.titles, (skill, index) => {
140
+ return openBlock(), createElementBlock("div", {
141
+ key: skill,
142
+ class: "stats__print-value__skill"
143
+ }, [
144
+ createElementVNode("div", null, toDisplayString(skill), 1),
145
+ createElementVNode("div", null, [
146
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.values[index], (n) => {
147
+ return openBlock(), createBlock(unref(Icon), {
148
+ key: n,
149
+ icon: "ic:sharp-star"
150
+ });
151
+ }), 128)),
152
+ (openBlock(true), createElementBlock(Fragment, null, renderList(5 - _ctx.values[index], (n) => {
153
+ return openBlock(), createBlock(unref(Icon), {
154
+ key: n,
155
+ icon: "ic:sharp-star-border"
156
+ });
157
+ }), 128))
158
+ ])
159
+ ]);
160
+ }), 128))
161
+ ])
162
+ ]),
163
+ createElementVNode("div", _hoisted_4, [
164
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.titles, (skill, index) => {
165
+ return openBlock(), createElementBlock("span", {
166
+ key: skill,
167
+ class: normalizeClass(["stats__print-value--small__skill", {
168
+ "stats__print-value--small__skill--hidden": _ctx.values[index] < 3,
169
+ "stats__print-value--small__skill--3": _ctx.values[index] === 3,
170
+ "stats__print-value--small__skill--4": _ctx.values[index] === 4,
171
+ "stats__print-value--small__skill--5": _ctx.values[index] === 5
172
+ }])
173
+ }, toDisplayString(skill), 3);
174
+ }), 128))
175
+ ]),
176
+ createElementVNode("div", _hoisted_5, [
177
+ (openBlock(), createElementBlock("svg", _hoisted_6, [
178
+ _cache[0] || (_cache[0] = createElementVNode("polygon", {
179
+ points: "100,-350 1500,-500 1000,1350 -500,1500",
180
+ class: "stats__bg"
181
+ }, null, -1)),
182
+ createElementVNode("polygon", {
183
+ points: pointsToString(shrinkStar(fullStarPoints.value, 2)),
184
+ class: "stats__bg-star--odd"
185
+ }, null, 8, _hoisted_7),
186
+ createElementVNode("g", null, [
187
+ (openBlock(true), createElementBlock(Fragment, null, renderList(scaledStars.value, (star, index) => {
188
+ return openBlock(), createElementBlock("polygon", {
189
+ key: index,
190
+ points: pointsToString(star),
191
+ class: normalizeClass({
192
+ "stats__bg-star--odd": index % 2,
193
+ "stats__bg-star--even": !(index % 2)
194
+ })
195
+ }, null, 10, _hoisted_8);
196
+ }), 128))
197
+ ]),
198
+ createElementVNode("g", null, [
199
+ createElementVNode("g", _hoisted_9, [
200
+ createElementVNode("polygon", {
201
+ points: pointsToString([
202
+ starFromValue(firstStat.value.value)[posToIndex["1"]],
203
+ starFromValue(Math.min(firstStat.value.value, fifthStat.value.value))[posToIndex["5-1"]],
204
+ center
205
+ ]),
206
+ class: "stats__star--dark"
207
+ }, null, 8, _hoisted_10),
208
+ createElementVNode("polygon", {
209
+ points: pointsToString([
210
+ starFromValue(firstStat.value.value)[posToIndex["1"]],
211
+ starFromValue(Math.min(firstStat.value.value, secondStat.value.value))[posToIndex["1-2"]],
212
+ center
213
+ ]),
214
+ class: "stats__star--light"
215
+ }, null, 8, _hoisted_11)
216
+ ]),
217
+ createElementVNode("g", _hoisted_12, [
218
+ createElementVNode("polygon", {
219
+ points: pointsToString([
220
+ starFromValue(secondStat.value.value)[posToIndex["2"]],
221
+ starFromValue(Math.min(firstStat.value.value, secondStat.value.value))[posToIndex["1-2"]],
222
+ center
223
+ ]),
224
+ class: "stats__star--light"
225
+ }, null, 8, _hoisted_13),
226
+ createElementVNode("polygon", {
227
+ points: pointsToString([
228
+ starFromValue(secondStat.value.value)[posToIndex["2"]],
229
+ starFromValue(Math.min(thirdStat.value.value, secondStat.value.value))[posToIndex["2-3"]],
230
+ center
231
+ ]),
232
+ class: "stats__star--dark"
233
+ }, null, 8, _hoisted_14)
234
+ ]),
235
+ createElementVNode("g", _hoisted_15, [
236
+ createElementVNode("polygon", {
237
+ points: pointsToString([
238
+ starFromValue(thirdStat.value.value)[posToIndex["3"]],
239
+ starFromValue(Math.min(secondStat.value.value, thirdStat.value.value))[posToIndex["2-3"]],
240
+ center
241
+ ]),
242
+ class: "stats__star--light"
243
+ }, null, 8, _hoisted_16),
244
+ createElementVNode("polygon", {
245
+ points: pointsToString([
246
+ starFromValue(thirdStat.value.value)[posToIndex["3"]],
247
+ starFromValue(Math.min(thirdStat.value.value, forthStat.value.value))[posToIndex["3-4"]],
248
+ center
249
+ ]),
250
+ class: "stats__star--dark"
251
+ }, null, 8, _hoisted_17)
252
+ ]),
253
+ createElementVNode("g", _hoisted_18, [
254
+ createElementVNode("polygon", {
255
+ points: pointsToString([
256
+ starFromValue(forthStat.value.value)[posToIndex["4"]],
257
+ starFromValue(Math.min(thirdStat.value.value, forthStat.value.value))[posToIndex["3-4"]],
258
+ center
259
+ ]),
260
+ class: "stats__star--light"
261
+ }, null, 8, _hoisted_19),
262
+ createElementVNode("polygon", {
263
+ points: pointsToString([
264
+ starFromValue(forthStat.value.value)[posToIndex["4"]],
265
+ starFromValue(Math.min(forthStat.value.value, fifthStat.value.value))[posToIndex["4-5"]],
266
+ center
267
+ ]),
268
+ class: "stats__star--dark"
269
+ }, null, 8, _hoisted_20)
270
+ ]),
271
+ createElementVNode("g", _hoisted_21, [
272
+ createElementVNode("polygon", {
273
+ points: pointsToString([
274
+ starFromValue(fifthStat.value.value)[posToIndex["5"]],
275
+ starFromValue(Math.min(forthStat.value.value, fifthStat.value.value))[posToIndex["4-5"]],
276
+ center
277
+ ]),
278
+ class: "stats__star--dark"
279
+ }, null, 8, _hoisted_22),
280
+ createElementVNode("polygon", {
281
+ points: pointsToString([
282
+ starFromValue(fifthStat.value.value)[posToIndex["5"]],
283
+ starFromValue(Math.min(fifthStat.value.value, firstStat.value.value))[posToIndex["5-1"]],
284
+ center
285
+ ]),
286
+ class: "stats__star--light"
287
+ }, null, 8, _hoisted_23)
288
+ ])
289
+ ])
290
+ ])),
291
+ createElementVNode("div", _hoisted_24, [
292
+ createElementVNode("div", _hoisted_25, [
293
+ renderSlot(_ctx.$slots, "icon-1")
294
+ ]),
295
+ createElementVNode("div", _hoisted_26, [
296
+ renderSlot(_ctx.$slots, "icon-2")
297
+ ]),
298
+ createElementVNode("div", _hoisted_27, [
299
+ renderSlot(_ctx.$slots, "icon-3")
300
+ ]),
301
+ createElementVNode("div", _hoisted_28, [
302
+ renderSlot(_ctx.$slots, "icon-4")
303
+ ]),
304
+ createElementVNode("div", _hoisted_29, [
305
+ renderSlot(_ctx.$slots, "icon-5")
306
+ ])
307
+ ]),
308
+ (openBlock(), createElementBlock("svg", _hoisted_30, [
309
+ createElementVNode("text", _hoisted_31, toDisplayString(_ctx.groupTitle), 1),
310
+ createElementVNode("g", null, [
311
+ createElementVNode("text", {
312
+ x: fullStarPoints.value[posToIndex["1"]][0],
313
+ y: fullStarPoints.value[posToIndex["1"]][1] - 100,
314
+ "transform-origin": `${fullStarPoints.value[posToIndex["1"]][0]} ${fullStarPoints.value[posToIndex["1"]][1] - 100}`,
315
+ class: "stats__title"
316
+ }, [
317
+ createTextVNode(toDisplayString(firstStat.value.title) + " ", 1),
318
+ createElementVNode("tspan", _hoisted_33, toDisplayString(firstStat.value.value), 1)
319
+ ], 8, _hoisted_32),
320
+ createElementVNode("text", {
321
+ x: fullStarPoints.value[posToIndex["2"]][0] + 100,
322
+ y: fullStarPoints.value[posToIndex["2"]][1] - 100,
323
+ "transform-origin": `${fullStarPoints.value[posToIndex["2"]][0] + 100} ${fullStarPoints.value[posToIndex["2"]][1] - 100}`,
324
+ class: "stats__title"
325
+ }, [
326
+ createTextVNode(toDisplayString(secondStat.value.title) + " ", 1),
327
+ createElementVNode("tspan", _hoisted_35, toDisplayString(secondStat.value.value), 1)
328
+ ], 8, _hoisted_34),
329
+ createElementVNode("text", {
330
+ "dominant-baseline": "hanging",
331
+ x: fullStarPoints.value[posToIndex["3"]][0] + 150,
332
+ y: fullStarPoints.value[posToIndex["3"]][1] + 150,
333
+ "transform-origin": `${fullStarPoints.value[posToIndex["3"]][0] + 150} ${fullStarPoints.value[posToIndex["3"]][1] + 150}`,
334
+ class: "stats__title"
335
+ }, [
336
+ createTextVNode(toDisplayString(thirdStat.value.title) + " ", 1),
337
+ createElementVNode("tspan", _hoisted_37, toDisplayString(thirdStat.value.value), 1)
338
+ ], 8, _hoisted_36),
339
+ createElementVNode("text", {
340
+ "dominant-baseline": "hanging",
341
+ x: fullStarPoints.value[posToIndex["4"]][0] - 150,
342
+ y: fullStarPoints.value[posToIndex["4"]][1] + 150,
343
+ "transform-origin": `${fullStarPoints.value[posToIndex["4"]][0] - 150} ${fullStarPoints.value[posToIndex["4"]][1] + 150}`,
344
+ class: "stats__title"
345
+ }, [
346
+ createTextVNode(toDisplayString(forthStat.value.title) + " ", 1),
347
+ createElementVNode("tspan", _hoisted_39, toDisplayString(forthStat.value.value), 1)
348
+ ], 8, _hoisted_38),
349
+ createElementVNode("text", {
350
+ x: fullStarPoints.value[posToIndex["5"]][0] - 100,
351
+ y: fullStarPoints.value[posToIndex["5"]][1] - 100,
352
+ "transform-origin": `${fullStarPoints.value[posToIndex["5"]][0] - 100} ${fullStarPoints.value[posToIndex["5"]][1] - 100}`,
353
+ class: "stats__title"
354
+ }, [
355
+ createTextVNode(toDisplayString(fifthStat.value.title) + " ", 1),
356
+ createElementVNode("tspan", _hoisted_41, toDisplayString(fifthStat.value.value), 1)
357
+ ], 8, _hoisted_40)
358
+ ])
359
+ ]))
360
+ ])
361
+ ]);
362
+ };
363
+ }
364
+ });
365
+ export {
366
+ _sfc_main as default
367
+ };
@@ -0,0 +1,6 @@
1
+ import _sfc_main from "./DStats.vue.js";
2
+ /* empty css */
3
+ /* empty css */
4
+ export {
5
+ _sfc_main as default
6
+ };
@@ -0,0 +1,47 @@
1
+ import { defineComponent, createElementBlock, openBlock, normalizeStyle, createElementVNode, createStaticVNode, createVNode } from "vue";
2
+ import DAnimationDefLetterD from "./DAnimationDefLetterD.vue.js";
3
+ const __default__ = {
4
+ name: "DAnimationAccordion",
5
+ components: {
6
+ DAnimationDefLetterD
7
+ }
8
+ };
9
+ const _sfc_main = /* @__PURE__ */ defineComponent({
10
+ ...__default__,
11
+ props: {
12
+ wigglePeriod: {
13
+ type: Number,
14
+ default: 10
15
+ },
16
+ delay: {
17
+ type: Number,
18
+ default: 1
19
+ }
20
+ },
21
+ setup(__props) {
22
+ return (_ctx, _cache) => {
23
+ return openBlock(), createElementBlock("svg", {
24
+ viewBox: "0 0 630 210",
25
+ xmlns: "http://www.w3.org/2000/svg",
26
+ class: "d-animation-accordion",
27
+ style: normalizeStyle({
28
+ "--d-accordion-wiggle-period": __props.wigglePeriod + "s",
29
+ "--d-accordion-delay": __props.delay + "s"
30
+ })
31
+ }, [
32
+ createElementVNode("defs", null, [
33
+ createVNode(DAnimationDefLetterD, { id: "d-letter" }),
34
+ _cache[0] || (_cache[0] = createElementVNode("use", {
35
+ id: "d-accordion-section",
36
+ href: "#d-letter",
37
+ transform: "scale(0.33)"
38
+ }, null, -1))
39
+ ]),
40
+ _cache[1] || (_cache[1] = createStaticVNode('<use href="#d-accordion-section" class="d-animation-accordion__section"></use><use href="#d-accordion-section" class="d-animation-accordion__section"></use><use href="#d-accordion-section" class="d-animation-accordion__section"></use><use href="#d-accordion-section" class="d-animation-accordion__section"></use><use href="#d-accordion-section" class="d-animation-accordion__section"></use><use href="#d-accordion-section" class="d-animation-accordion__section"></use>', 6))
41
+ ], 4);
42
+ };
43
+ }
44
+ });
45
+ export {
46
+ _sfc_main as default
47
+ };
@@ -0,0 +1,5 @@
1
+ import _sfc_main from "./DAnimationAccordion.vue.js";
2
+ /* empty css */
3
+ export {
4
+ _sfc_main as default
5
+ };
@@ -0,0 +1,11 @@
1
+ import _sfc_main from "./DAnimationDefLetterD.vue2.js";
2
+ import { createElementBlock, openBlock } from "vue";
3
+ import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const _hoisted_1 = { d: "M200.242,139.244l137.207,-0c66.136,-0 112.859,17.192 140.169,51.576c27.31,34.384 33.562,84.973 18.755,151.767c-22.045,98.711 -85.878,148.066 -191.498,148.066l-179.16,-0l74.527,-351.409Zm184.588,179.159c12.175,-57.581 -7.732,-86.372 -59.72,-86.372l-33.068,0l-35.042,165.834l44.42,0c23.69,0 42.034,-6.169 55.031,-18.508c12.997,-12.339 22.457,-32.657 28.379,-60.954Z" };
5
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
6
+ return openBlock(), createElementBlock("path", _hoisted_1);
7
+ }
8
+ const DAnimationDefLetterD = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
9
+ export {
10
+ DAnimationDefLetterD as default
11
+ };
@@ -0,0 +1,6 @@
1
+ const _sfc_main = {
2
+ name: "DAnimationDefLetterD"
3
+ };
4
+ export {
5
+ _sfc_main as default
6
+ };
@@ -0,0 +1,39 @@
1
+ import { defineComponent, createElementBlock, openBlock, normalizeStyle, createVNode, normalizeClass } from "vue";
2
+ import DAnimationDefLetterD from "./DAnimationDefLetterD.vue.js";
3
+ const __default__ = {
4
+ name: "DAnimationFloatingLetter",
5
+ components: {
6
+ DAnimationDefLetterD
7
+ }
8
+ };
9
+ const _sfc_main = /* @__PURE__ */ defineComponent({
10
+ ...__default__,
11
+ props: {
12
+ floatPeriod: {
13
+ type: Number,
14
+ default: 5
15
+ },
16
+ pathClass: {
17
+ type: [String, Object],
18
+ default: ""
19
+ }
20
+ },
21
+ setup(__props) {
22
+ return (_ctx, _cache) => {
23
+ return openBlock(), createElementBlock("svg", {
24
+ viewBox: "0 0 630 630",
25
+ xmlns: "http://www.w3.org/2000/svg",
26
+ style: normalizeStyle({
27
+ "--d-floating-letter-float-period": __props.floatPeriod + "s"
28
+ })
29
+ }, [
30
+ createVNode(DAnimationDefLetterD, {
31
+ class: normalizeClass(["d-animation-floating-letter", __props.pathClass])
32
+ }, null, 8, ["class"])
33
+ ], 4);
34
+ };
35
+ }
36
+ });
37
+ export {
38
+ _sfc_main as default
39
+ };
@@ -0,0 +1,5 @@
1
+ import _sfc_main from "./DAnimationFloatingLetter.vue.js";
2
+ /* empty css */
3
+ export {
4
+ _sfc_main as default
5
+ };
@@ -0,0 +1,46 @@
1
+ import { defineComponent, createElementBlock, openBlock, normalizeStyle, createElementVNode, createStaticVNode, createVNode } from "vue";
2
+ import DAnimationDefLetterD from "./DAnimationDefLetterD.vue.js";
3
+ const __default__ = {
4
+ name: "DAnimationHypnosis",
5
+ components: {
6
+ DAnimationDefLetterD
7
+ }
8
+ };
9
+ const _sfc_main = /* @__PURE__ */ defineComponent({
10
+ ...__default__,
11
+ props: {
12
+ wigglePeriod: {
13
+ type: Number,
14
+ default: 10
15
+ },
16
+ delay: {
17
+ type: Number,
18
+ default: 1
19
+ }
20
+ },
21
+ setup(__props) {
22
+ return (_ctx, _cache) => {
23
+ return openBlock(), createElementBlock("svg", {
24
+ viewBox: "0 0 630 630",
25
+ xmlns: "http://www.w3.org/2000/svg",
26
+ class: "d-animation-hypnosis",
27
+ style: normalizeStyle({
28
+ "--d-hypnosis-wiggle-period": __props.wigglePeriod + "s",
29
+ "--d-hypnosis-delay": __props.delay + "s"
30
+ })
31
+ }, [
32
+ createElementVNode("defs", null, [
33
+ createVNode(DAnimationDefLetterD, { id: "d-letter" }),
34
+ _cache[0] || (_cache[0] = createElementVNode("use", {
35
+ id: "d-hypnosis-section",
36
+ href: "#d-letter"
37
+ }, null, -1))
38
+ ]),
39
+ _cache[1] || (_cache[1] = createStaticVNode('<use href="#d-hypnosis-section" class="d-animation-hypnosis__section"></use><use href="#d-hypnosis-section" class="d-animation-hypnosis__section"></use><use href="#d-hypnosis-section" class="d-animation-hypnosis__section"></use><use href="#d-hypnosis-section" class="d-animation-hypnosis__section"></use><use href="#d-hypnosis-section" class="d-animation-hypnosis__section"></use><use href="#d-hypnosis-section" class="d-animation-hypnosis__section"></use>', 6))
40
+ ], 4);
41
+ };
42
+ }
43
+ });
44
+ export {
45
+ _sfc_main as default
46
+ };
@@ -0,0 +1,5 @@
1
+ import _sfc_main from "./DAnimationHypnosis.vue.js";
2
+ /* empty css */
3
+ export {
4
+ _sfc_main as default
5
+ };
@@ -0,0 +1,80 @@
1
+ import { defineComponent, createElementBlock, openBlock, normalizeStyle, createElementVNode, createVNode } from "vue";
2
+ import DAnimationDefLetterD from "./DAnimationDefLetterD.vue.js";
3
+ const __default__ = {
4
+ name: "DAnimationSpinner",
5
+ components: {
6
+ DAnimationDefLetterD
7
+ }
8
+ };
9
+ const _sfc_main = /* @__PURE__ */ defineComponent({
10
+ ...__default__,
11
+ props: {
12
+ spinPeriod: {
13
+ type: Number,
14
+ default: 10
15
+ },
16
+ bladeWigglePeriod: {
17
+ type: Number,
18
+ default: 5
19
+ }
20
+ },
21
+ setup(__props) {
22
+ const transformOrigin = "315 315";
23
+ return (_ctx, _cache) => {
24
+ return openBlock(), createElementBlock("svg", {
25
+ class: "spinner",
26
+ viewBox: "0 0 630 630",
27
+ xmlns: "http://www.w3.org/2000/svg",
28
+ style: normalizeStyle({
29
+ "--d-spinner-spin-period": __props.spinPeriod + "s",
30
+ "--d-spinner-blade-wiggle-period": __props.bladeWigglePeriod + "s"
31
+ })
32
+ }, [
33
+ createElementVNode("defs", null, [
34
+ createVNode(DAnimationDefLetterD, { id: "d-letter" }),
35
+ createElementVNode("use", {
36
+ id: "d-spinner-blade",
37
+ href: "#d-letter",
38
+ class: "d-animation-spinner__blade",
39
+ "transform-origin": transformOrigin
40
+ }),
41
+ createElementVNode("g", {
42
+ id: "spinner",
43
+ class: "d-animation-spinner__spinner",
44
+ "transform-origin": transformOrigin
45
+ }, [
46
+ createElementVNode("use", {
47
+ href: "#d-spinner-blade",
48
+ transform: "rotate(0)",
49
+ "transform-origin": transformOrigin
50
+ }),
51
+ createElementVNode("use", {
52
+ href: "#d-spinner-blade",
53
+ transform: "rotate(120)",
54
+ "transform-origin": transformOrigin
55
+ }),
56
+ createElementVNode("use", {
57
+ href: "#d-spinner-blade",
58
+ transform: "rotate(240)",
59
+ "transform-origin": transformOrigin
60
+ })
61
+ ])
62
+ ]),
63
+ createElementVNode("use", {
64
+ href: "#spinner",
65
+ transform: "translate( -20 20 )",
66
+ class: "d-animation-spinner__background",
67
+ "transform-origin": transformOrigin
68
+ }),
69
+ createElementVNode("use", {
70
+ href: "#spinner",
71
+ class: "d-animation-spinner__foreground",
72
+ "transform-origin": transformOrigin
73
+ })
74
+ ], 4);
75
+ };
76
+ }
77
+ });
78
+ export {
79
+ _sfc_main as default
80
+ };
@@ -0,0 +1,5 @@
1
+ import _sfc_main from "./DAnimationSpinner.vue.js";
2
+ /* empty css */
3
+ export {
4
+ _sfc_main as default
5
+ };