@d0rich/esprit-design 0.4.4 → 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 (69) hide show
  1. package/CHANGELOG.md +13 -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 +32 -5
  58. package/src/components/animations/DAnimationAccordion.vue +6 -0
  59. package/src/components/animations/DAnimationFloatingLetter.vue +6 -0
  60. package/src/components/animations/DAnimationHypnosis.vue +6 -0
  61. package/src/components/animations/DAnimationSpinner.vue +6 -0
  62. package/src/components/buttons/DBigBangButton.vue +1 -1
  63. package/src/components/buttons/DBigBangButtonAnimation.vue +10 -0
  64. package/src/components/utils/DWrapFocusHighlight.vue +25 -0
  65. package/tailwind.config.js +14 -3
  66. package/vite.config.ts +74 -10
  67. package/dist/esprit-design.css +0 -1
  68. package/dist/esprit-design.js +0 -2586
  69. package/dist/esprit-design.umd.cjs +0 -1
@@ -0,0 +1,56 @@
1
+ import { defineComponent, computed, createBlock, openBlock, resolveDynamicComponent, unref, withCtx, createElementBlock, Fragment, renderList, toDisplayString } from "vue";
2
+ import { useDBigBangButtonUtils } from "../../composables/big-bang-button-utils.js";
3
+ import { useLink } from "../../composables/router.js";
4
+ const _hoisted_1 = ["textContent"];
5
+ const __default__ = {
6
+ name: "DBigBangButton"
7
+ };
8
+ const _sfc_main = /* @__PURE__ */ defineComponent({
9
+ ...__default__,
10
+ props: {
11
+ text: {
12
+ type: String,
13
+ required: true
14
+ },
15
+ tag: {
16
+ type: String,
17
+ default: "button"
18
+ },
19
+ to: {
20
+ type: [String, Object],
21
+ default: ""
22
+ }
23
+ },
24
+ emits: ["click"],
25
+ setup(__props, { emit: __emit }) {
26
+ const emit = __emit;
27
+ const props = __props;
28
+ const { text: animationText } = useDBigBangButtonUtils();
29
+ const { linkComponent: currentTag } = useLink(props);
30
+ const symbols = computed(() => props.text.split(""));
31
+ function onClick(event) {
32
+ animationText.value = props.text;
33
+ emit("click", event);
34
+ }
35
+ return (_ctx, _cache) => {
36
+ return openBlock(), createBlock(resolveDynamicComponent(unref(currentTag)), {
37
+ to: __props.to,
38
+ class: "big-bang-button",
39
+ onClick
40
+ }, {
41
+ default: withCtx(() => [
42
+ (openBlock(true), createElementBlock(Fragment, null, renderList(symbols.value, (symbol, index) => {
43
+ return openBlock(), createElementBlock("span", {
44
+ key: index,
45
+ textContent: toDisplayString(symbol)
46
+ }, null, 8, _hoisted_1);
47
+ }), 128))
48
+ ]),
49
+ _: 1
50
+ }, 8, ["to"]);
51
+ };
52
+ }
53
+ });
54
+ export {
55
+ _sfc_main as default
56
+ };
@@ -0,0 +1,5 @@
1
+ import _sfc_main from "./DBigBangButton.vue.js";
2
+ /* empty css */
3
+ export {
4
+ _sfc_main as default
5
+ };
@@ -0,0 +1,97 @@
1
+ import { defineComponent, computed, watch, createElementBlock, openBlock, createVNode, TransitionGroup, withCtx, Fragment, renderList, toDisplayString } from "vue";
2
+ import gsap from "gsap";
3
+ import { usePreferredReducedMotion } from "@vueuse/core";
4
+ import { useDBigBangButtonUtils } from "../../composables/big-bang-button-utils.js";
5
+ const _hoisted_1 = { id: "big-bang-button-animation" };
6
+ const _hoisted_2 = ["i", "textContent"];
7
+ const __default__ = {
8
+ name: "DBigBangButtonAnimation"
9
+ };
10
+ const _sfc_main = /* @__PURE__ */ defineComponent({
11
+ ...__default__,
12
+ setup(__props) {
13
+ const preferredMotion = usePreferredReducedMotion();
14
+ const paths = {
15
+ first: "M 0 0 C -489.471 -116.5 -526.692 -193.268 -563.913 -311.911",
16
+ last: "M 0 0 C 317.761 171.963 466.645 199.879 680.666 171.963",
17
+ intermediate: [
18
+ "M 0 0 C 36.277 125.437 19.992 358.068 -49.797 413.9",
19
+ "M 0 0 C 52.561 -69.974 71.171 -118.827 64.192 -446.837",
20
+ "M 0 0 C -3.271 137.068 -26.534 395.289 33.95 439.489"
21
+ ]
22
+ };
23
+ const { text } = useDBigBangButtonUtils();
24
+ const symbols = computed(() => text.value.split(""));
25
+ let clearTask;
26
+ watch(text, (val) => {
27
+ clearTimeout(clearTask);
28
+ if (val) clearTask = setTimeout(() => text.value = "", 1500);
29
+ });
30
+ function pathFromIndex(i) {
31
+ if (i === 0) return paths.first;
32
+ if (i === symbols.value.length - 1) return paths.last;
33
+ return paths.intermediate[Math.floor(Math.random() * paths.intermediate.length)];
34
+ }
35
+ function onEnter(el, done) {
36
+ if (preferredMotion.value === "reduce") {
37
+ done();
38
+ return;
39
+ }
40
+ gsap.fromTo(
41
+ el,
42
+ {
43
+ opacity: 0,
44
+ rotateX: -90
45
+ },
46
+ {
47
+ opacity: 1,
48
+ rotateX: 0,
49
+ rotate: -12 + Math.random() * 24,
50
+ delay: Math.random() * 0.3,
51
+ duration: 0.2,
52
+ onComplete: done
53
+ }
54
+ );
55
+ }
56
+ function onLeave(el, done) {
57
+ if (preferredMotion.value === "reduce") {
58
+ done();
59
+ return;
60
+ }
61
+ const index = +gsap.getProperty(el, "i");
62
+ gsap.to(el, {
63
+ motionPath: {
64
+ path: pathFromIndex(index)
65
+ },
66
+ opacity: 0,
67
+ rotate: -180 + Math.random() * 360,
68
+ duration: 0.2,
69
+ onComplete: done
70
+ });
71
+ }
72
+ return (_ctx, _cache) => {
73
+ return openBlock(), createElementBlock("div", _hoisted_1, [
74
+ createVNode(TransitionGroup, {
75
+ tag: "div",
76
+ class: "bbb__text-container",
77
+ onEnter,
78
+ onLeave
79
+ }, {
80
+ default: withCtx(() => [
81
+ (openBlock(true), createElementBlock(Fragment, null, renderList(symbols.value, (symbol, index) => {
82
+ return openBlock(), createElementBlock("span", {
83
+ key: index,
84
+ i: index,
85
+ textContent: toDisplayString(symbol)
86
+ }, null, 8, _hoisted_2);
87
+ }), 128))
88
+ ]),
89
+ _: 1
90
+ })
91
+ ]);
92
+ };
93
+ }
94
+ });
95
+ export {
96
+ _sfc_main as default
97
+ };
@@ -0,0 +1,5 @@
1
+ import _sfc_main from "./DBigBangButtonAnimation.vue.js";
2
+ /* empty css */
3
+ export {
4
+ _sfc_main as default
5
+ };
@@ -0,0 +1,92 @@
1
+ import { defineComponent, createBlock, openBlock, resolveDynamicComponent, unref, mergeProps, withCtx, createVNode, renderSlot } from "vue";
2
+ import _sfc_main$1 from "../utils/DWrapFocusHighlight.vue.js";
3
+ /* empty css */
4
+ /* empty css */
5
+ /* empty css */
6
+ import { useLink } from "../../composables/router.js";
7
+ const __default__ = {
8
+ name: "DBtn",
9
+ components: {
10
+ DWrapFocusHighlight: _sfc_main$1
11
+ }
12
+ };
13
+ const _sfc_main = /* @__PURE__ */ defineComponent({
14
+ ...__default__,
15
+ props: {
16
+ to: {
17
+ type: [String, Object],
18
+ default: ""
19
+ },
20
+ href: {
21
+ type: String,
22
+ default: void 0
23
+ },
24
+ /**
25
+ * If true, the highlight will be shown only if the link is exact string a URL.
26
+ */
27
+ exact: Boolean,
28
+ /**
29
+ * Turn off the highlight for active links.
30
+ */
31
+ noPassiveHighlight: Boolean,
32
+ /**
33
+ * Turn on the highlight even if the link is not active.
34
+ */
35
+ active: Boolean,
36
+ noRotate: Boolean,
37
+ tag: {
38
+ type: String,
39
+ default: "button"
40
+ },
41
+ highlight: {
42
+ type: String,
43
+ default: void 0
44
+ },
45
+ colorClass: {
46
+ type: [String, Object],
47
+ default: void 0
48
+ },
49
+ textTransform: {
50
+ type: String,
51
+ default: "uppercase"
52
+ }
53
+ },
54
+ setup(__props) {
55
+ const props = __props;
56
+ const {
57
+ linkComponent: currentComponent,
58
+ isLink,
59
+ isExternalLink,
60
+ propsToProvide
61
+ } = useLink(props);
62
+ return (_ctx, _cache) => {
63
+ return openBlock(), createBlock(resolveDynamicComponent(unref(currentComponent)), mergeProps({
64
+ class: ["d-btn d-focusable", {
65
+ "d-btn--rotated": !__props.noRotate,
66
+ "d-btn--uppercase": __props.textTransform === "uppercase",
67
+ "d-btn--capitalize": __props.textTransform === "capitalize",
68
+ "d-btn--lowercase": __props.textTransform === "lowercase"
69
+ }]
70
+ }, unref(propsToProvide)), {
71
+ default: withCtx(() => [
72
+ createVNode(_sfc_main$1, {
73
+ variant: __props.highlight,
74
+ "link-exact": __props.exact,
75
+ "no-passive-link": __props.noPassiveHighlight || !unref(isLink) || unref(isExternalLink),
76
+ "color-class": __props.colorClass,
77
+ active: __props.active
78
+ }, {
79
+ default: withCtx(() => [
80
+ renderSlot(_ctx.$slots, "default")
81
+ ]),
82
+ _: 3
83
+ }, 8, ["variant", "link-exact", "no-passive-link", "color-class", "active"])
84
+ ]),
85
+ _: 3
86
+ }, 16, ["class"]);
87
+ };
88
+ }
89
+ });
90
+ export {
91
+ _sfc_main as default
92
+ };
@@ -0,0 +1,5 @@
1
+ import _sfc_main from "./DBtn.vue.js";
2
+ /* empty css */
3
+ export {
4
+ _sfc_main as default
5
+ };
@@ -0,0 +1,50 @@
1
+ import { defineComponent, createBlock, openBlock, normalizeClass, withCtx, createElementVNode, renderSlot } from "vue";
2
+ import _sfc_main$1 from "../utils/DWrapShape.vue.js";
3
+ /* empty css */
4
+ /* empty css */
5
+ const __default__ = {
6
+ name: "DCard",
7
+ components: {
8
+ DWrapShape: _sfc_main$1
9
+ }
10
+ };
11
+ const _sfc_main = /* @__PURE__ */ defineComponent({
12
+ ...__default__,
13
+ props: {
14
+ mode: {
15
+ type: String,
16
+ default: "default"
17
+ },
18
+ dense: Boolean
19
+ },
20
+ setup(__props) {
21
+ return (_ctx, _cache) => {
22
+ return openBlock(), createBlock(_sfc_main$1, {
23
+ "shape-class": {
24
+ card__bg: !__props.dense,
25
+ "card__bg--dense": __props.dense
26
+ },
27
+ class: normalizeClass({
28
+ "card--homepage-story force-light": __props.mode === "homepage-story",
29
+ "card--homepage-skills force-light": __props.mode === "homepage-skills",
30
+ card: __props.mode === "default"
31
+ })
32
+ }, {
33
+ default: withCtx(() => [
34
+ createElementVNode("div", {
35
+ class: normalizeClass({
36
+ card__content: !__props.dense,
37
+ "card__content--dense": __props.dense
38
+ })
39
+ }, [
40
+ renderSlot(_ctx.$slots, "default")
41
+ ], 2)
42
+ ]),
43
+ _: 3
44
+ }, 8, ["shape-class", "class"]);
45
+ };
46
+ }
47
+ });
48
+ export {
49
+ _sfc_main as default
50
+ };
@@ -0,0 +1,5 @@
1
+ import _sfc_main from "./DCard.vue.js";
2
+ /* empty css */
3
+ export {
4
+ _sfc_main as default
5
+ };
@@ -0,0 +1,30 @@
1
+ import _sfc_main from "./DCardTitle.vue2.js";
2
+ import { resolveComponent, createElementBlock, openBlock, createVNode, createElementVNode, withCtx, renderSlot } from "vue";
3
+ /* empty css */
4
+ import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
5
+ const _hoisted_1 = { class: "card__title" };
6
+ const _hoisted_2 = { class: "card__title__content__text" };
7
+ const _hoisted_3 = { class: "ml-2 print:text-neutral-600" };
8
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
9
+ const _component_DWrapShape = resolveComponent("DWrapShape");
10
+ return openBlock(), createElementBlock("div", _hoisted_1, [
11
+ createVNode(_component_DWrapShape, {
12
+ class: "card__title__content",
13
+ "shape-class": "card__title__content__shape"
14
+ }, {
15
+ default: withCtx(() => [
16
+ createElementVNode("h3", _hoisted_2, [
17
+ renderSlot(_ctx.$slots, "default")
18
+ ])
19
+ ]),
20
+ _: 3
21
+ }),
22
+ createElementVNode("span", _hoisted_3, [
23
+ renderSlot(_ctx.$slots, "extra")
24
+ ])
25
+ ]);
26
+ }
27
+ const DCardTitle = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
28
+ export {
29
+ DCardTitle as default
30
+ };
@@ -0,0 +1,12 @@
1
+ import _sfc_main$1 from "../utils/DWrapShape.vue.js";
2
+ /* empty css */
3
+ /* empty css */
4
+ const _sfc_main = {
5
+ name: "DCardTitle",
6
+ components: {
7
+ DWrapShape: _sfc_main$1
8
+ }
9
+ };
10
+ export {
11
+ _sfc_main as default
12
+ };
@@ -0,0 +1,61 @@
1
+ import { defineComponent, createBlock, openBlock, normalizeClass, withCtx, createElementVNode, renderSlot, createElementBlock, createCommentVNode } from "vue";
2
+ import _sfc_main$1 from "../utils/DWrapShape.vue.js";
3
+ /* empty css */
4
+ /* empty css */
5
+ const _hoisted_1 = { class: "d-alert__body" };
6
+ const _hoisted_2 = {
7
+ viewBox: "0 0 1067 1067",
8
+ xmlns: "http://www.w3.org/2000/svg",
9
+ class: "d-alert__sign"
10
+ };
11
+ const _hoisted_3 = { key: 0 };
12
+ const _hoisted_4 = { key: 1 };
13
+ const _hoisted_5 = { key: 2 };
14
+ const _sfc_main = /* @__PURE__ */ defineComponent({
15
+ __name: "DAlert",
16
+ props: {
17
+ type: {
18
+ type: String,
19
+ default: "info"
20
+ }
21
+ },
22
+ setup(__props) {
23
+ return (_ctx, _cache) => {
24
+ return openBlock(), createBlock(_sfc_main$1, {
25
+ class: normalizeClass(["d-alert", {
26
+ "d-alert--info": __props.type === "info",
27
+ "d-alert--question": __props.type === "question",
28
+ "d-alert--warning": __props.type === "warning"
29
+ }]),
30
+ "shape-class": "d-alert__shape"
31
+ }, {
32
+ "bg-overlay": withCtx(() => _cache[0] || (_cache[0] = [
33
+ createElementVNode("div", { class: "d-alert__outline" }, null, -1)
34
+ ])),
35
+ default: withCtx(() => [
36
+ createElementVNode("div", _hoisted_1, [
37
+ renderSlot(_ctx.$slots, "default"),
38
+ (openBlock(), createElementBlock("svg", _hoisted_2, [
39
+ __props.type === "info" ? (openBlock(), createElementBlock("g", _hoisted_3, _cache[1] || (_cache[1] = [
40
+ createElementVNode("path", { d: "M202.481,1025.68l427.138,-769.216l171.992,106.943l-461.057,689.584l-138.073,-27.311Z" }, null, -1),
41
+ createElementVNode("path", { d: "M832.695,310.003l-170.011,-113.247l92.566,-170.289l218.937,122.443l-141.492,161.093Z" }, null, -1)
42
+ ]))) : createCommentVNode("", true),
43
+ __props.type === "question" ? (openBlock(), createElementBlock("g", _hoisted_4, _cache[2] || (_cache[2] = [
44
+ createElementVNode("path", { d: "M289.17,836.982l100.67,63.007l-27.42,149.27l-200.047,-83.328l126.797,-128.949Z" }, null, -1),
45
+ createElementVNode("path", { d: "M335.818,766.179l95.499,91.347l134.944,-217.987l249.128,-6.228l174.389,-139.096l14.533,-236.672l-170.237,-224.215l-170.238,-8.304l-242.9,124.564l114.184,64.358l178.542,-41.522l161.933,130.793l-68.51,205.53l-203.455,-53.978l-178.542,70.587l-89.27,240.823Z" }, null, -1)
46
+ ]))) : createCommentVNode("", true),
47
+ __props.type === "warning" ? (openBlock(), createElementBlock("g", _hoisted_5, _cache[3] || (_cache[3] = [
48
+ createElementVNode("path", { d: "M304.988,722.034l335.792,-712.747l299.877,30.543l-514.204,743.146l-121.465,-60.942Z" }, null, -1),
49
+ createElementVNode("path", { d: "M253.974,839.059l148.42,40.169l-118.767,182.487l-131.537,-66.719l101.884,-155.937Z" }, null, -1)
50
+ ]))) : createCommentVNode("", true)
51
+ ]))
52
+ ])
53
+ ]),
54
+ _: 3
55
+ }, 8, ["class"]);
56
+ };
57
+ }
58
+ });
59
+ export {
60
+ _sfc_main as default
61
+ };
@@ -0,0 +1,5 @@
1
+ import _sfc_main from "./DAlert.vue.js";
2
+ /* empty css */
3
+ export {
4
+ _sfc_main as default
5
+ };
@@ -0,0 +1,39 @@
1
+ import { defineComponent, createBlock, openBlock, normalizeClass, withCtx, createElementVNode, renderSlot } from "vue";
2
+ import _sfc_main$1 from "../utils/DWrapShape.vue.js";
3
+ /* empty css */
4
+ /* empty css */
5
+ const _hoisted_1 = { class: "d-blockquote__body" };
6
+ const _sfc_main = /* @__PURE__ */ defineComponent({
7
+ __name: "DQuote",
8
+ props: {
9
+ direction: {
10
+ type: String,
11
+ default: "right"
12
+ }
13
+ },
14
+ setup(__props) {
15
+ return (_ctx, _cache) => {
16
+ return openBlock(), createBlock(_sfc_main$1, {
17
+ tag: "blockquote",
18
+ class: normalizeClass(["d-blockquote", {
19
+ "d-blockquote--left": __props.direction === "left",
20
+ "d-blockquote--right": __props.direction === "right"
21
+ }]),
22
+ "shape-class": "d-blockquote__shape"
23
+ }, {
24
+ "bg-overlay": withCtx(() => _cache[0] || (_cache[0] = [
25
+ createElementVNode("div", { class: "d-blockquote__outline" }, null, -1)
26
+ ])),
27
+ default: withCtx(() => [
28
+ createElementVNode("div", _hoisted_1, [
29
+ renderSlot(_ctx.$slots, "default")
30
+ ])
31
+ ]),
32
+ _: 3
33
+ }, 8, ["class"]);
34
+ };
35
+ }
36
+ });
37
+ export {
38
+ _sfc_main as default
39
+ };
@@ -0,0 +1,5 @@
1
+ import _sfc_main from "./DQuote.vue.js";
2
+ /* empty css */
3
+ export {
4
+ _sfc_main as default
5
+ };
@@ -0,0 +1,61 @@
1
+ import { default as default2 } from "./DChip.vue.js";
2
+ import { default as default3 } from "./DPagination.vue.js";
3
+ import { default as default4 } from "./DStats.vue.js";
4
+ /* empty css */
5
+ /* empty css */
6
+ import { default as default5 } from "./animations/DAnimationAccordion.vue.js";
7
+ /* empty css */
8
+ import { default as default6 } from "./animations/DAnimationFloatingLetter.vue.js";
9
+ /* empty css */
10
+ import { default as default7 } from "./animations/DAnimationHypnosis.vue.js";
11
+ /* empty css */
12
+ import { default as default8 } from "./animations/DAnimationSpinner.vue.js";
13
+ /* empty css */
14
+ import { default as default9 } from "./buttons/DBigBangButtonAnimation.vue.js";
15
+ /* empty css */
16
+ import { default as default10 } from "./buttons/DBigBangButton.vue.js";
17
+ /* empty css */
18
+ import { default as default11 } from "./buttons/DBtn.vue.js";
19
+ /* empty css */
20
+ import { default as default12 } from "./cards/DCard.vue.js";
21
+ /* empty css */
22
+ import { default as default13 } from "./cards/DCardTitle.vue.js";
23
+ import { default as default14 } from "./content/DAlert.vue.js";
24
+ /* empty css */
25
+ import { default as default15 } from "./content/DQuote.vue.js";
26
+ /* empty css */
27
+ import { default as default16 } from "./lists/DActionsFan.vue.js";
28
+ /* empty css */
29
+ /* empty css */
30
+ import { default as default17 } from "./lists/DActionsList.vue.js";
31
+ /* empty css */
32
+ import { default as default18 } from "./utils/DWrapFocusHighlight.vue.js";
33
+ /* empty css */
34
+ /* empty css */
35
+ /* empty css */
36
+ import { default as default19 } from "./utils/DWrapBackground.vue.js";
37
+ /* empty css */
38
+ import { default as default20 } from "./utils/DWrapShape.vue.js";
39
+ /* empty css */
40
+ /* empty css */
41
+ export {
42
+ default16 as DActionsFan,
43
+ default17 as DActionsList,
44
+ default14 as DAlert,
45
+ default5 as DAnimationAccordion,
46
+ default6 as DAnimationFloatingLetter,
47
+ default7 as DAnimationHypnosis,
48
+ default8 as DAnimationSpinner,
49
+ default10 as DBigBangButton,
50
+ default9 as DBigBangButtonAnimation,
51
+ default11 as DBtn,
52
+ default12 as DCard,
53
+ default13 as DCardTitle,
54
+ default2 as DChip,
55
+ default3 as DPagination,
56
+ default15 as DQuote,
57
+ default4 as DStats,
58
+ default19 as DWrapBackground,
59
+ default18 as DWrapFocusHighlight,
60
+ default20 as DWrapShape
61
+ };
@@ -0,0 +1,101 @@
1
+ import { defineComponent, createBlock, openBlock, TransitionGroup, normalizeStyle, withCtx, createElementBlock, Fragment, renderList, normalizeClass, createElementVNode, createVNode, mergeProps, createTextVNode, toDisplayString } from "vue";
2
+ import _sfc_main$2 from "../utils/DWrapShape.vue.js";
3
+ /* empty css */
4
+ /* empty css */
5
+ import _sfc_main$1 from "../buttons/DBtn.vue.js";
6
+ /* empty css */
7
+ const __default__ = {
8
+ name: "DActionsFan",
9
+ components: {
10
+ DWrapShape: _sfc_main$2,
11
+ DBtn: _sfc_main$1
12
+ }
13
+ };
14
+ const _sfc_main = /* @__PURE__ */ defineComponent({
15
+ ...__default__,
16
+ props: {
17
+ actions: {
18
+ type: Array,
19
+ default: () => []
20
+ },
21
+ side: {
22
+ type: String,
23
+ default: "left"
24
+ },
25
+ filterClass: {
26
+ type: [String, Object],
27
+ default: ""
28
+ }
29
+ },
30
+ emits: ["actionFocus", "actionUnfocus", "actionChoose"],
31
+ setup(__props) {
32
+ return (_ctx, _cache) => {
33
+ return openBlock(), createBlock(TransitionGroup, {
34
+ name: "actions",
35
+ tag: "ul",
36
+ style: normalizeStyle({
37
+ padding: `${Math.min(__props.actions.length * 2, 15)}rem 0 ${Math.min(
38
+ __props.actions.length * 3,
39
+ 15
40
+ )}rem`
41
+ })
42
+ }, {
43
+ default: withCtx(() => [
44
+ (openBlock(true), createElementBlock(Fragment, null, renderList(__props.actions, (action, index) => {
45
+ return openBlock(), createBlock(_sfc_main$2, {
46
+ key: action.title,
47
+ tag: "li",
48
+ class: normalizeClass(["d-actions-fan__list-item", {
49
+ [action.class ?? ""]: true,
50
+ "d-actions-fan--right__list-item": __props.side === "right",
51
+ "d-actions-fan--left__list-item": __props.side === "left"
52
+ }]),
53
+ "filter-class": __props.filterClass,
54
+ style: normalizeStyle({
55
+ ...action.style,
56
+ "--tw-rotate": `${__props.side === "left" ? 12 - index * 18 : -12 + index * 18}deg`
57
+ }),
58
+ "shape-class": {
59
+ "d-actions-fan__list-item__shape": true,
60
+ [action.shapeClass ?? ""]: true,
61
+ "d-actions-fan--right__list-item__shape": __props.side === "right",
62
+ "d-actions-fan--left__list-item__shape": __props.side === "left"
63
+ },
64
+ "shape-style": action.shapeStyle
65
+ }, {
66
+ default: withCtx(() => [
67
+ createElementVNode("div", {
68
+ class: normalizeClass(["d-actions-fan__list-item__body", {
69
+ "d-actions-fan--right__list-item__body": __props.side === "right"
70
+ }])
71
+ }, [
72
+ createVNode(_sfc_main$1, mergeProps({ ref_for: true }, action.attrs, {
73
+ tag: "button",
74
+ "no-passive-highlight": "",
75
+ onClick: ($event) => _ctx.$emit("actionChoose", action.emit),
76
+ onMouseenter: ($event) => _ctx.$emit("actionFocus", action.emit),
77
+ onTouchstart: ($event) => _ctx.$emit("actionFocus", action.emit),
78
+ onFocusin: ($event) => _ctx.$emit("actionFocus", action.emit),
79
+ onMouseleave: ($event) => _ctx.$emit("actionUnfocus", action.emit),
80
+ onTouchend: ($event) => _ctx.$emit("actionUnfocus", action.emit),
81
+ onFocusout: ($event) => _ctx.$emit("actionUnfocus", action.emit)
82
+ }), {
83
+ default: withCtx(() => [
84
+ createTextVNode(toDisplayString(action.title), 1)
85
+ ]),
86
+ _: 2
87
+ }, 1040, ["onClick", "onMouseenter", "onTouchstart", "onFocusin", "onMouseleave", "onTouchend", "onFocusout"])
88
+ ], 2)
89
+ ]),
90
+ _: 2
91
+ }, 1032, ["filter-class", "class", "style", "shape-class", "shape-style"]);
92
+ }), 128))
93
+ ]),
94
+ _: 1
95
+ }, 8, ["style"]);
96
+ };
97
+ }
98
+ });
99
+ export {
100
+ _sfc_main as default
101
+ };
@@ -0,0 +1,6 @@
1
+ import _sfc_main from "./DActionsFan.vue.js";
2
+ /* empty css */
3
+ /* empty css */
4
+ export {
5
+ _sfc_main as default
6
+ };