mediacube-ui-v2 0.0.322 → 0.0.323

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "catalogSchemaVersion": 2,
3
- "libraryVersion": "0.0.322",
3
+ "libraryVersion": "0.0.323",
4
4
  "packageName": "mediacube-ui-v2",
5
5
  "pathHash": "9b6f3b8016b22ac7",
6
6
  "componentCount": 76,
@@ -1,5 +1,5 @@
1
- import { defineComponent as k, useId as x, ref as o, computed as H, onMounted as C, nextTick as S, watch as v, openBlock as B, createBlock as $, resolveDynamicComponent as M, unref as b, normalizeClass as D, withCtx as T, renderSlot as z } from "vue";
2
- const E = /* @__PURE__ */ k({
1
+ import { defineComponent as w, useId as x, ref as o, computed as H, onMounted as C, nextTick as S, watch as v, openBlock as B, createBlock as $, resolveDynamicComponent as M, unref as b, normalizeClass as D, withCtx as T, renderSlot as z } from "vue";
2
+ const E = /* @__PURE__ */ w({
3
3
  __name: "McSlideUpDown",
4
4
  props: {
5
5
  /*
@@ -38,7 +38,7 @@ const E = /* @__PURE__ */ k({
38
38
  },
39
39
  emits: ["slide-open-start", "slide-close-start", "slide-open-end", "slide-close-end"],
40
40
  setup(f, { emit: p }) {
41
- const i = p, a = f, h = x(), t = o(a.active), u = o(!1), r = o(!1), n = o(null), s = o(), m = H(() => ({
41
+ const i = p, s = f, h = x(), t = o(s.active), u = o(!1), r = o(!1), n = o(null), a = o(), m = H(() => ({
42
42
  "mc-slide-up-down": !0,
43
43
  "mc-slide-up-down--server-open": !u.value && t.value,
44
44
  "mc-slide-up-down--server-close": !u.value && !t.value
@@ -46,11 +46,11 @@ const E = /* @__PURE__ */ k({
46
46
  const l = getComputedStyle(e).height;
47
47
  return l === "auto" || l === "" ? e.offsetHeight : parseFloat(l) || 0;
48
48
  }, g = () => {
49
- if (!s.value) return;
50
- const e = s.value;
49
+ if (!a.value) return;
50
+ const e = a.value;
51
51
  t.value ? e.style.height = "auto" : e.style.height = "0";
52
52
  }, _ = (e) => {
53
- const l = s.value;
53
+ const l = a.value;
54
54
  if (!l) {
55
55
  t.value = e;
56
56
  return;
@@ -61,13 +61,14 @@ const E = /* @__PURE__ */ k({
61
61
  t.value = e, r.value = !1, l.style.height = e ? "auto" : "0";
62
62
  return;
63
63
  }
64
- r.value = !0, i(e ? "slide-open-start" : "slide-close-start", t.value), n.value = l.animate(
65
- [{ height: `${d}px` }, { height: `${c}px` }],
66
- { duration: a.duration, easing: a.type, fill: "forwards" }
67
- ), n.value.onfinish = () => {
68
- if (t.value = a.active, r.value = !1, s.value) {
69
- const w = s.value;
70
- w.style.height = t.value ? "auto" : "0";
64
+ r.value = !0, i(e ? "slide-open-start" : "slide-close-start", t.value), n.value = l.animate([{ height: `${d}px` }, { height: `${c}px` }], {
65
+ duration: s.duration,
66
+ easing: s.type,
67
+ fill: "none"
68
+ }), n.value.onfinish = () => {
69
+ if (t.value = e, r.value = !1, a.value) {
70
+ const k = a.value;
71
+ k.style.height = t.value ? "auto" : "0";
71
72
  }
72
73
  i(e ? "slide-open-end" : "slide-close-end", t.value);
73
74
  };
@@ -77,18 +78,18 @@ const E = /* @__PURE__ */ k({
77
78
  u.value = !0;
78
79
  });
79
80
  }), v(
80
- () => a.active,
81
+ () => s.active,
81
82
  () => {
82
- _(a.active);
83
+ _(s.active);
83
84
  }
84
85
  ), v(
85
- () => s.value,
86
+ () => a.value,
86
87
  () => {
87
88
  g();
88
89
  }
89
- ), (e, l) => (B(), $(M(a.tag), {
90
+ ), (e, l) => (B(), $(M(s.tag), {
90
91
  ref_key: "container",
91
- ref: s,
92
+ ref: a,
92
93
  class: D(m.value),
93
94
  key: `mc-slide-up-down-key-${b(h)}`
94
95
  }, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mediacube-ui-v2",
3
- "version": "0.0.322",
3
+ "version": "0.0.323",
4
4
  "license": "MIT",
5
5
  "description": "Design system for Mediacube services",
6
6
  "sideEffects": [