mediacube-ui-v2 0.0.93 → 0.0.95

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.
@@ -0,0 +1,44 @@
1
+ @font-face {
2
+ font-family: 'Inter';
3
+ font-style: normal;
4
+ font-weight: 400;
5
+ font-display: swap;
6
+ src: url("./Inter-Regular.woff2?v=3.19") format("woff2"),
7
+ url("./Inter-Regular.woff?v=3.19") format("woff");
8
+ }
9
+
10
+ @font-face {
11
+ font-family: 'Inter';
12
+ font-style: italic;
13
+ font-weight: 400;
14
+ font-display: swap;
15
+ src: url("./Inter-Italic.woff2?v=3.19") format("woff2"),
16
+ url("./Inter-Italic.woff?v=3.19") format("woff");
17
+ }
18
+
19
+ @font-face {
20
+ font-family: 'Inter';
21
+ font-style: normal;
22
+ font-weight: 500;
23
+ font-display: swap;
24
+ src: url("./Inter-Medium.woff2?v=3.19") format("woff2"),
25
+ url("./Inter-Medium.woff?v=3.19") format("woff");
26
+ }
27
+
28
+ @font-face {
29
+ font-family: 'Inter';
30
+ font-style: normal;
31
+ font-weight: 600;
32
+ font-display: swap;
33
+ src: url("./Inter-SemiBold.woff2?v=3.19") format("woff2"),
34
+ url("./Inter-SemiBold.woff?v=3.19") format("woff");
35
+ }
36
+
37
+ @font-face {
38
+ font-family: 'Inter';
39
+ font-style: normal;
40
+ font-weight: 700;
41
+ font-display: swap;
42
+ src: url("./Inter-Bold.woff2?v=3.19") format("woff2"),
43
+ url("./Inter-Bold.woff?v=3.19") format("woff");
44
+ }
@@ -19416,7 +19416,7 @@ const ci = ["dir"], Ci = ["for"], hi = ["for"], pi = { class: "mc-field-text__ma
19416
19416
  const o = e, l = t, r = U2(), a = I(null), n = (r.default && ((h = r.default()[0].children) != null && h.length) ? r.default()[0].children : (
19417
19417
  //@ts-ignore
19418
19418
  r.default()
19419
- )) || [], s = I(n || []), i = I(0), c = I(-1), u = y(() => ({
19419
+ )) || [], s = I([]), i = I(0), c = I(-1), u = y(() => ({
19420
19420
  "mc-stack": !0,
19421
19421
  "mc-stack--collapsed": l.collapsed
19422
19422
  }));
@@ -19431,27 +19431,27 @@ const ci = ["dir"], Ci = ["for"], hi = ["for"], pi = { class: "mc-field-text__ma
19431
19431
  const C = () => {
19432
19432
  if (!a.value) return;
19433
19433
  let m = 0;
19434
- const k = [];
19435
- let f = 0;
19434
+ s.value = [];
19435
+ let k = 0;
19436
19436
  i.value = 0;
19437
- const g = document.createElement("div");
19438
- g.style.position = "absolute", g.style.visibility = "hidden", g.style.whiteSpace = "nowrap", document.body.appendChild(g);
19439
- for (const V of n) {
19440
- const B = x9(V), L = document.createElement("div");
19441
- g.appendChild(L);
19442
- const S = y8({ render: () => B });
19443
- S.mount(L);
19444
- const E = l.collapsed ? L.getBoundingClientRect().width + 6 : L.getBoundingClientRect().width;
19445
- S.unmount(), L.remove();
19446
- const M = parseInt(l0[300]), $ = l.collapsed ? -parseInt(l0[200]) : parseInt(l0[150]);
19447
- if (m + (E + $) <= a.value.clientWidth - M && f < l.visibleCount)
19448
- m += E + $, k.push(V), f++;
19437
+ const f = document.createElement("div");
19438
+ f.style.position = "absolute", f.style.visibility = "hidden", f.style.whiteSpace = "nowrap", document.body.appendChild(f);
19439
+ for (const g of n) {
19440
+ const V = x9(g), B = document.createElement("div");
19441
+ f.appendChild(B);
19442
+ const L = y8({ render: () => V });
19443
+ L.mount(B);
19444
+ const S = l.collapsed ? B.getBoundingClientRect().width + 6 : B.getBoundingClientRect().width + 4;
19445
+ L.unmount(), B.remove();
19446
+ const E = parseInt(l0[300]), M = l.collapsed ? -parseInt(l0[200]) : parseInt(l0[150]);
19447
+ if (m + (S + M) <= a.value.clientWidth - E && k < l.visibleCount)
19448
+ m += S + M, s.value.push(g), k++;
19449
19449
  else {
19450
- i.value = n.length - k.length;
19450
+ i.value = n.length - s.value.length;
19451
19451
  break;
19452
19452
  }
19453
19453
  }
19454
- document.body.removeChild(g), s.value = k, +c.value != +i.value && (c.value = i.value, o("updated:hidden-count", i.value));
19454
+ document.body.removeChild(f), +c.value != +i.value && (c.value = i.value, o("updated:hidden-count", i.value));
19455
19455
  };
19456
19456
  return (m, k) => (p(), b("div", {
19457
19457
  ref_key: "container",