energy-components 1.3.0 → 1.4.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 (37) hide show
  1. package/dist/components/accordion.es.js +13 -13
  2. package/dist/components/button.es.js +11 -11
  3. package/dist/components/checkbox.es.js +7 -7
  4. package/dist/components/datepicker.es.js +1403 -1382
  5. package/dist/components/dropdown.es.js +11 -11
  6. package/dist/components/{icon-svg-GoL3_ayS.js → icon-svg-u9BWBbvW.js} +1 -1
  7. package/dist/components/iconList.es.js +5 -5
  8. package/dist/components/iconSvg.es.js +1 -1
  9. package/dist/components/index.es.js +59 -56
  10. package/dist/components/infoBox.es.js +8 -8
  11. package/dist/components/link.es.js +15 -15
  12. package/dist/components/modal.es.js +12 -12
  13. package/dist/components/persistentToast.es.js +5 -5
  14. package/dist/components/quantitySelector.es.js +9 -9
  15. package/dist/components/radioButton.es.js +16 -16
  16. package/dist/components/selectionChip.es.js +5 -5
  17. package/dist/components/sidedrawer.es.js +85 -0
  18. package/dist/components/style/datepicker.css +1 -1
  19. package/dist/components/style/overlay.css +1 -1
  20. package/dist/components/style/sidedrawer.css +1 -0
  21. package/dist/components/style/switch.css +1 -1
  22. package/dist/components/style/textField.css +1 -1
  23. package/dist/components/switch.es.js +40 -36
  24. package/dist/components/tabBar.es.js +12 -12
  25. package/dist/components/tag.es.js +5 -5
  26. package/dist/components/textArea.es.js +22 -22
  27. package/dist/components/textField.es.js +86 -74
  28. package/dist/components/tooltip.es.js +61 -61
  29. package/dist/energy-components.es.js +4464 -4347
  30. package/dist/energy-components.umd.js +1 -1
  31. package/dist/style.css +1 -1
  32. package/dist/types/src/components/index.d.ts +1 -0
  33. package/dist/types/src/components/input/switch/switch.vue.d.ts +12 -3
  34. package/dist/types/src/components/input/text-field/text-field.vue.d.ts +8 -0
  35. package/dist/types/src/components/layout/sidedrawer/sidedrawer.vue.d.ts +75 -0
  36. package/dist/types/tsconfig.tsbuildinfo +1 -1
  37. package/package.json +2 -2
@@ -1,5 +1,5 @@
1
- import { unref as at, defineComponent as Vt, toRefs as Ft, ref as U, computed as Ht, openBlock as bt, createElementBlock as vt, createElementVNode as Z, renderSlot as jt, normalizeClass as At, toDisplayString as Ct, createVNode as It, createCommentVNode as Yt } from "vue";
2
- import { I as zt } from "./icon-svg-GoL3_ayS.js";
1
+ import { unref as at, defineComponent as Vt, toRefs as Ft, ref as U, computed as Ht, openBlock as bt, createElementBlock as vt, createElementVNode as Z, renderSlot as jt, normalizeClass as At, toDisplayString as Rt, createVNode as It, createCommentVNode as Yt } from "vue";
2
+ import { R as zt } from "./icon-svg-u9BWBbvW.js";
3
3
  import { _ as Xt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  import './style/tooltip.css';const Y = Math.min, O = Math.max, nt = Math.round, k = (t) => ({
5
5
  x: t,
@@ -25,7 +25,7 @@ function j(t) {
25
25
  function Q(t) {
26
26
  return t.split("-")[1];
27
27
  }
28
- function Tt(t) {
28
+ function Dt(t) {
29
29
  return t === "x" ? "y" : "x";
30
30
  }
31
31
  function mt(t) {
@@ -35,7 +35,7 @@ function z(t) {
35
35
  return ["top", "bottom"].includes(j(t)) ? "y" : "x";
36
36
  }
37
37
  function pt(t) {
38
- return Tt(z(t));
38
+ return Dt(z(t));
39
39
  }
40
40
  function Gt(t, e, o) {
41
41
  o === void 0 && (o = !1);
@@ -80,7 +80,7 @@ function Zt(t) {
80
80
  ...t
81
81
  };
82
82
  }
83
- function Dt(t) {
83
+ function Tt(t) {
84
84
  return typeof t != "number" ? Zt(t) : {
85
85
  top: t,
86
86
  right: t,
@@ -106,7 +106,7 @@ function it(t) {
106
106
  y: o
107
107
  };
108
108
  }
109
- function Rt(t, e, o) {
109
+ function Ct(t, e, o) {
110
110
  let {
111
111
  reference: n,
112
112
  floating: i
@@ -168,7 +168,7 @@ const te = async (t, e, o) => {
168
168
  }), {
169
169
  x: f,
170
170
  y: u
171
- } = Rt(a, n, c), p = n, d = {}, m = 0;
171
+ } = Ct(a, n, c), p = n, d = {}, m = 0;
172
172
  for (let g = 0; g < l.length; g++) {
173
173
  const {
174
174
  name: h,
@@ -205,7 +205,7 @@ const te = async (t, e, o) => {
205
205
  }) : b.rects), {
206
206
  x: f,
207
207
  y: u
208
- } = Rt(a, p, c)), g = -1);
208
+ } = Ct(a, p, c)), g = -1);
209
209
  }
210
210
  return {
211
211
  x: f,
@@ -231,7 +231,7 @@ async function gt(t, e) {
231
231
  elementContext: u = "floating",
232
232
  altBoundary: p = !1,
233
233
  padding: d = 0
234
- } = J(e, t), m = Dt(d), h = l[p ? u === "floating" ? "reference" : "floating" : u], w = it(await r.getClippingRect({
234
+ } = J(e, t), m = Tt(d), h = l[p ? u === "floating" ? "reference" : "floating" : u], w = it(await r.getClippingRect({
235
235
  element: (o = await (r.isElement == null ? void 0 : r.isElement(h))) == null || o ? h : h.contextElement || await (r.getDocumentElement == null ? void 0 : r.getDocumentElement(l.floating)),
236
236
  boundary: a,
237
237
  rootBoundary: f,
@@ -278,13 +278,13 @@ const ee = (t) => ({
278
278
  } = J(t, e) || {};
279
279
  if (a == null)
280
280
  return {};
281
- const u = Dt(f), p = {
281
+ const u = Tt(f), p = {
282
282
  x: o,
283
283
  y: n
284
- }, d = pt(i), m = mt(d), g = await s.getDimensions(a), h = d === "y", w = h ? "top" : "left", x = h ? "bottom" : "right", y = h ? "clientHeight" : "clientWidth", v = r.reference[m] + r.reference[d] - p[d] - r.floating[m], b = p[d] - r.reference[d], D = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(a));
285
- let C = D ? D[y] : 0;
286
- (!C || !await (s.isElement == null ? void 0 : s.isElement(D))) && (C = l.floating[y] || r.floating[m]);
287
- const W = v / 2 - b / 2, E = C / 2 - g[m] / 2 - 1, _ = Y(u[w], E), B = Y(u[x], E), L = _, V = C - g[m] - B, A = C / 2 - g[m] / 2 + W, K = ft(L, A, V), M = !c.arrow && Q(i) != null && A !== K && r.reference[m] / 2 - (A < L ? _ : B) - g[m] / 2 < 0, P = M ? A < L ? A - L : A - V : 0;
284
+ }, d = pt(i), m = mt(d), g = await s.getDimensions(a), h = d === "y", w = h ? "top" : "left", x = h ? "bottom" : "right", y = h ? "clientHeight" : "clientWidth", v = r.reference[m] + r.reference[d] - p[d] - r.floating[m], b = p[d] - r.reference[d], T = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(a));
285
+ let R = T ? T[y] : 0;
286
+ (!R || !await (s.isElement == null ? void 0 : s.isElement(T))) && (R = l.floating[y] || r.floating[m]);
287
+ const W = v / 2 - b / 2, E = R / 2 - g[m] / 2 - 1, _ = Y(u[w], E), B = Y(u[x], E), L = _, V = R - g[m] - B, A = R / 2 - g[m] / 2 + W, K = ft(L, A, V), M = !c.arrow && Q(i) != null && A !== K && r.reference[m] / 2 - (A < L ? _ : B) - g[m] / 2 < 0, P = M ? A < L ? A - L : A - V : 0;
288
288
  return {
289
289
  [d]: p[d] + P,
290
290
  data: {
@@ -321,9 +321,9 @@ const ee = (t) => ({
321
321
  } = J(t, e);
322
322
  if ((o = r.arrow) != null && o.alignmentOffset)
323
323
  return {};
324
- const w = j(i), x = z(l), y = j(l) === l, v = await (c.isRTL == null ? void 0 : c.isRTL(a.floating)), b = p || (y || !g ? [ot(l)] : Jt(l)), D = m !== "none";
325
- !p && D && b.push(...Ut(l, g, m, v));
326
- const C = [l, ...b], W = await gt(e, h), E = [];
324
+ const w = j(i), x = z(l), y = j(l) === l, v = await (c.isRTL == null ? void 0 : c.isRTL(a.floating)), b = p || (y || !g ? [ot(l)] : Jt(l)), T = m !== "none";
325
+ !p && T && b.push(...Ut(l, g, m, v));
326
+ const R = [l, ...b], W = await gt(e, h), E = [];
327
327
  let _ = ((n = r.flip) == null ? void 0 : n.overflows) || [];
328
328
  if (f && E.push(W[w]), u) {
329
329
  const A = Gt(i, s, v);
@@ -334,7 +334,7 @@ const ee = (t) => ({
334
334
  overflows: E
335
335
  }], !E.every((A) => A <= 0)) {
336
336
  var B, L;
337
- const A = (((B = r.flip) == null ? void 0 : B.index) || 0) + 1, K = C[A];
337
+ const A = (((B = r.flip) == null ? void 0 : B.index) || 0) + 1, K = R[A];
338
338
  if (K)
339
339
  return {
340
340
  data: {
@@ -351,7 +351,7 @@ const ee = (t) => ({
351
351
  case "bestFit": {
352
352
  var V;
353
353
  const P = (V = _.filter((F) => {
354
- if (D) {
354
+ if (T) {
355
355
  const H = z(F.placement);
356
356
  return H === x || // Create a bias to the `y` side axis due to horizontal
357
357
  // reading directions favoring greater width.
@@ -454,7 +454,7 @@ const ie = function(t) {
454
454
  } = J(t, e), a = {
455
455
  x: o,
456
456
  y: n
457
- }, f = await gt(e, c), u = z(j(i)), p = Tt(u);
457
+ }, f = await gt(e, c), u = z(j(i)), p = Dt(u);
458
458
  let d = a[p], m = a[u];
459
459
  if (r) {
460
460
  const h = p === "y" ? "top" : "left", w = p === "y" ? "bottom" : "right", x = d + f[h], y = d - f[w];
@@ -503,16 +503,16 @@ const ie = function(t) {
503
503
  } = r.floating;
504
504
  let h, w;
505
505
  u === "top" || u === "bottom" ? (h = u, w = p === (await (s.isRTL == null ? void 0 : s.isRTL(l.floating)) ? "start" : "end") ? "left" : "right") : (w = u, h = p === "end" ? "top" : "bottom");
506
- const x = g - f.top - f.bottom, y = m - f.left - f.right, v = Y(g - f[h], x), b = Y(m - f[w], y), D = !e.middlewareData.shift;
507
- let C = v, W = b;
508
- if ((o = e.middlewareData.shift) != null && o.enabled.x && (W = y), (n = e.middlewareData.shift) != null && n.enabled.y && (C = x), D && !p) {
506
+ const x = g - f.top - f.bottom, y = m - f.left - f.right, v = Y(g - f[h], x), b = Y(m - f[w], y), T = !e.middlewareData.shift;
507
+ let R = v, W = b;
508
+ if ((o = e.middlewareData.shift) != null && o.enabled.x && (W = y), (n = e.middlewareData.shift) != null && n.enabled.y && (R = x), T && !p) {
509
509
  const _ = O(f.left, 0), B = O(f.right, 0), L = O(f.top, 0), V = O(f.bottom, 0);
510
- d ? W = m - 2 * (_ !== 0 || B !== 0 ? _ + B : O(f.left, f.right)) : C = g - 2 * (L !== 0 || V !== 0 ? L + V : O(f.top, f.bottom));
510
+ d ? W = m - 2 * (_ !== 0 || B !== 0 ? _ + B : O(f.left, f.right)) : R = g - 2 * (L !== 0 || V !== 0 ? L + V : O(f.top, f.bottom));
511
511
  }
512
512
  await c({
513
513
  ...e,
514
514
  availableWidth: W,
515
- availableHeight: C
515
+ availableHeight: R
516
516
  });
517
517
  const E = await s.getDimensions(l.floating);
518
518
  return m !== E.width || g !== E.height ? {
@@ -529,7 +529,7 @@ function st() {
529
529
  function X(t) {
530
530
  return ht(t) ? (t.nodeName || "").toLowerCase() : "#document";
531
531
  }
532
- function R(t) {
532
+ function C(t) {
533
533
  var e;
534
534
  return (t == null || (e = t.ownerDocument) == null ? void 0 : e.defaultView) || window;
535
535
  }
@@ -538,16 +538,16 @@ function N(t) {
538
538
  return (e = (ht(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
539
539
  }
540
540
  function ht(t) {
541
- return st() ? t instanceof Node || t instanceof R(t).Node : !1;
541
+ return st() ? t instanceof Node || t instanceof C(t).Node : !1;
542
542
  }
543
543
  function S(t) {
544
- return st() ? t instanceof Element || t instanceof R(t).Element : !1;
544
+ return st() ? t instanceof Element || t instanceof C(t).Element : !1;
545
545
  }
546
546
  function $(t) {
547
- return st() ? t instanceof HTMLElement || t instanceof R(t).HTMLElement : !1;
547
+ return st() ? t instanceof HTMLElement || t instanceof C(t).HTMLElement : !1;
548
548
  }
549
549
  function Ot(t) {
550
- return !st() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof R(t).ShadowRoot;
550
+ return !st() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof C(t).ShadowRoot;
551
551
  }
552
552
  function et(t) {
553
553
  const {
@@ -555,7 +555,7 @@ function et(t) {
555
555
  overflowX: o,
556
556
  overflowY: n,
557
557
  display: i
558
- } = T(t);
558
+ } = D(t);
559
559
  return /auto|scroll|overlay|hidden|clip/.test(e + n + o) && !["inline", "contents"].includes(i);
560
560
  }
561
561
  function le(t) {
@@ -571,7 +571,7 @@ function rt(t) {
571
571
  });
572
572
  }
573
573
  function wt(t) {
574
- const e = xt(), o = S(t) ? T(t) : t;
574
+ const e = xt(), o = S(t) ? D(t) : t;
575
575
  return ["transform", "translate", "scale", "rotate", "perspective"].some((n) => o[n] ? o[n] !== "none" : !1) || (o.containerType ? o.containerType !== "normal" : !1) || !e && (o.backdropFilter ? o.backdropFilter !== "none" : !1) || !e && (o.filter ? o.filter !== "none" : !1) || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((n) => (o.willChange || "").includes(n)) || ["paint", "layout", "strict", "content"].some((n) => (o.contain || "").includes(n));
576
576
  }
577
577
  function ce(t) {
@@ -591,8 +591,8 @@ function xt() {
591
591
  function G(t) {
592
592
  return ["html", "body", "#document"].includes(X(t));
593
593
  }
594
- function T(t) {
595
- return R(t).getComputedStyle(t);
594
+ function D(t) {
595
+ return C(t).getComputedStyle(t);
596
596
  }
597
597
  function lt(t) {
598
598
  return S(t) ? {
@@ -622,14 +622,14 @@ function Et(t) {
622
622
  function Lt(t, e, o) {
623
623
  var n;
624
624
  e === void 0 && (e = []);
625
- const i = Et(t), r = i === ((n = t.ownerDocument) == null ? void 0 : n.body), s = R(i);
625
+ const i = Et(t), r = i === ((n = t.ownerDocument) == null ? void 0 : n.body), s = C(i);
626
626
  return r ? (dt(s), e.concat(s, s.visualViewport || [], et(i) ? i : [], [])) : e.concat(i, Lt(i, []));
627
627
  }
628
628
  function dt(t) {
629
629
  return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
630
630
  }
631
631
  function Pt(t) {
632
- const e = T(t);
632
+ const e = D(t);
633
633
  let o = parseFloat(e.width) || 0, n = parseFloat(e.height) || 0;
634
634
  const i = $(t), r = i ? t.offsetWidth : o, s = i ? t.offsetHeight : n, l = nt(o) !== r || nt(n) !== s;
635
635
  return l && (o = r, n = s), {
@@ -658,14 +658,14 @@ function q(t) {
658
658
  }
659
659
  const ae = /* @__PURE__ */ k(0);
660
660
  function $t(t) {
661
- const e = R(t);
661
+ const e = C(t);
662
662
  return !xt() || !e.visualViewport ? ae : {
663
663
  x: e.visualViewport.offsetLeft,
664
664
  y: e.visualViewport.offsetTop
665
665
  };
666
666
  }
667
667
  function fe(t, e, o) {
668
- return e === void 0 && (e = !1), !o || e && o !== R(t) ? !1 : e;
668
+ return e === void 0 && (e = !1), !o || e && o !== C(t) ? !1 : e;
669
669
  }
670
670
  function tt(t, e, o, n) {
671
671
  e === void 0 && (e = !1), o === void 0 && (o = !1);
@@ -675,11 +675,11 @@ function tt(t, e, o, n) {
675
675
  const l = fe(r, o, n) ? $t(r) : k(0);
676
676
  let c = (i.left + l.x) / s.x, a = (i.top + l.y) / s.y, f = i.width / s.x, u = i.height / s.y;
677
677
  if (r) {
678
- const p = R(r), d = n && S(n) ? R(n) : n;
678
+ const p = C(r), d = n && S(n) ? C(n) : n;
679
679
  let m = p, g = dt(m);
680
680
  for (; g && n && d !== m; ) {
681
- const h = q(g), w = g.getBoundingClientRect(), x = T(g), y = w.left + (g.clientLeft + parseFloat(x.paddingLeft)) * h.x, v = w.top + (g.clientTop + parseFloat(x.paddingTop)) * h.y;
682
- c *= h.x, a *= h.y, f *= h.x, u *= h.y, c += y, a += v, m = R(g), g = dt(m);
681
+ const h = q(g), w = g.getBoundingClientRect(), x = D(g), y = w.left + (g.clientLeft + parseFloat(x.paddingLeft)) * h.x, v = w.top + (g.clientTop + parseFloat(x.paddingTop)) * h.y;
682
+ c *= h.x, a *= h.y, f *= h.x, u *= h.y, c += y, a += v, m = C(g), g = dt(m);
683
683
  }
684
684
  }
685
685
  return it({
@@ -738,7 +738,7 @@ function me(t) {
738
738
  const e = N(t), o = lt(t), n = t.ownerDocument.body, i = O(e.scrollWidth, e.clientWidth, n.scrollWidth, n.clientWidth), r = O(e.scrollHeight, e.clientHeight, n.scrollHeight, n.clientHeight);
739
739
  let s = -o.scrollLeft + yt(t);
740
740
  const l = -o.scrollTop;
741
- return T(n).direction === "rtl" && (s += O(e.clientWidth, n.clientWidth) - i), {
741
+ return D(n).direction === "rtl" && (s += O(e.clientWidth, n.clientWidth) - i), {
742
742
  width: i,
743
743
  height: r,
744
744
  x: s,
@@ -746,7 +746,7 @@ function me(t) {
746
746
  };
747
747
  }
748
748
  function pe(t, e) {
749
- const o = R(t), n = N(t), i = o.visualViewport;
749
+ const o = C(t), n = N(t), i = o.visualViewport;
750
750
  let r = n.clientWidth, s = n.clientHeight, l = 0, c = 0;
751
751
  if (i) {
752
752
  r = i.width, s = i.height;
@@ -790,17 +790,17 @@ function _t(t, e, o) {
790
790
  }
791
791
  function Mt(t, e) {
792
792
  const o = I(t);
793
- return o === e || !S(o) || G(o) ? !1 : T(o).position === "fixed" || Mt(o, e);
793
+ return o === e || !S(o) || G(o) ? !1 : D(o).position === "fixed" || Mt(o, e);
794
794
  }
795
795
  function he(t, e) {
796
796
  const o = e.get(t);
797
797
  if (o)
798
798
  return o;
799
799
  let n = Lt(t, []).filter((l) => S(l) && X(l) !== "body"), i = null;
800
- const r = T(t).position === "fixed";
800
+ const r = D(t).position === "fixed";
801
801
  let s = r ? I(t) : t;
802
802
  for (; S(s) && !G(s); ) {
803
- const l = T(s), c = wt(s);
803
+ const l = D(s), c = wt(s);
804
804
  !c && l.position === "fixed" && (i = null), (r ? !c && !i : !c && l.position === "static" && !!i && ["absolute", "fixed"].includes(i.position) || et(s) && !c && Mt(t, s)) ? n = n.filter((f) => f !== s) : i = l, s = I(s);
805
805
  }
806
806
  return e.set(t, n), n;
@@ -854,10 +854,10 @@ function ye(t, e, o) {
854
854
  };
855
855
  }
856
856
  function ct(t) {
857
- return T(t).position === "static";
857
+ return D(t).position === "static";
858
858
  }
859
859
  function St(t, e) {
860
- if (!$(t) || T(t).position === "fixed")
860
+ if (!$(t) || D(t).position === "fixed")
861
861
  return null;
862
862
  if (e)
863
863
  return e(t);
@@ -865,7 +865,7 @@ function St(t, e) {
865
865
  return N(t) === o && (o = o.ownerDocument.body), o;
866
866
  }
867
867
  function Nt(t, e) {
868
- const o = R(t);
868
+ const o = C(t);
869
869
  if (rt(t))
870
870
  return o;
871
871
  if (!$(t)) {
@@ -895,7 +895,7 @@ const be = async function(t) {
895
895
  };
896
896
  };
897
897
  function ve(t) {
898
- return T(t).direction === "rtl";
898
+ return D(t).direction === "rtl";
899
899
  }
900
900
  const Ae = {
901
901
  convertOffsetParentRelativeRectToViewportRelativeRect: ue,
@@ -908,7 +908,7 @@ const Ae = {
908
908
  getScale: q,
909
909
  isElement: S,
910
910
  isRTL: ve
911
- }, Ce = ie, Re = se, Oe = ne, _e = re, Se = ee, Te = (t, e, o) => {
911
+ }, Re = ie, Ce = se, Oe = ne, _e = re, Se = ee, De = (t, e, o) => {
912
912
  const n = /* @__PURE__ */ new Map(), i = {
913
913
  platform: Ae,
914
914
  ...o
@@ -921,11 +921,11 @@ const Ae = {
921
921
  platform: r
922
922
  });
923
923
  };
924
- function De(t) {
924
+ function Te(t) {
925
925
  return t != null && typeof t == "object" && "$el" in t;
926
926
  }
927
927
  function Ee(t) {
928
- if (De(t)) {
928
+ if (Te(t)) {
929
929
  const e = t.$el;
930
930
  return ht(e) && X(e) === "#comment" ? null : e;
931
931
  }
@@ -998,19 +998,19 @@ const ke = { class: "rds-e-tooltip" }, $e = {
998
998
  },
999
999
  setup(t) {
1000
1000
  const e = t, { large: o, fullWidth: n, title: i } = Ft(e), r = U(), s = U(), l = U(), c = U(!0), a = U(""), f = async () => {
1001
- const { x: m, y: g, middlewareData: h, placement: w } = await Te(
1001
+ const { x: m, y: g, middlewareData: h, placement: w } = await De(
1002
1002
  r.value,
1003
1003
  s.value,
1004
1004
  {
1005
1005
  placement: e.placement,
1006
1006
  middleware: [
1007
- Ce(e.offsetSpace),
1007
+ Re(e.offsetSpace),
1008
1008
  Oe(),
1009
- Re(),
1009
+ Ce(),
1010
1010
  _e({
1011
- apply({ availableHeight: b, availableWidth: D, elements: C }) {
1012
- Object.assign(C.floating.style, {
1013
- maxWidth: n.value ? `${Math.max(0, D)}px` : "380px",
1011
+ apply({ availableHeight: b, availableWidth: T, elements: R }) {
1012
+ Object.assign(R.floating.style, {
1013
+ maxWidth: n.value ? `${Math.max(0, T)}px` : "380px",
1014
1014
  width: "max-content",
1015
1015
  maxHeight: `${Math.max(0, b)}px`
1016
1016
  });
@@ -1063,7 +1063,7 @@ const ke = { class: "rds-e-tooltip" }, $e = {
1063
1063
  class: At(d.value)
1064
1064
  }, [
1065
1065
  at(i) ? (bt(), vt("div", $e, [
1066
- Z("h3", We, Ct(at(i)), 1),
1066
+ Z("h3", We, Rt(at(i)), 1),
1067
1067
  It(zt, {
1068
1068
  name: "close",
1069
1069
  "aria-hidden": "true",
@@ -1071,7 +1071,7 @@ const ke = { class: "rds-e-tooltip" }, $e = {
1071
1071
  onClick: g[0] || (g[0] = (h) => c.value = !c.value)
1072
1072
  })
1073
1073
  ])) : Yt("", !0),
1074
- Z("div", Me, Ct(t.content), 1),
1074
+ Z("div", Me, Rt(t.content), 1),
1075
1075
  Z("div", {
1076
1076
  ref_key: "arrowRef",
1077
1077
  ref: l,