energy-components 1.1.1 → 1.1.2-beta.1

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 (47) hide show
  1. package/dist/components/getInstance-GhoEcxLF.js +21 -0
  2. package/dist/components/infoBox.es.js +4 -4
  3. package/dist/components/link.es.js +41 -33
  4. package/dist/components/modal.es.js +39 -43
  5. package/dist/components/persistentToast.es.js +4 -4
  6. package/dist/components/radioButton.es.js +43 -59
  7. package/dist/components/sidebar.es.js +48 -50
  8. package/dist/components/style/accordion.css +1 -1
  9. package/dist/components/style/accordionGroup.css +1 -1
  10. package/dist/components/style/actionButton.css +1 -1
  11. package/dist/components/style/breadcrumbs.css +1 -1
  12. package/dist/components/style/button.css +1 -1
  13. package/dist/components/style/card.css +1 -1
  14. package/dist/components/style/checkbox.css +1 -1
  15. package/dist/components/style/datepicker.css +1 -1
  16. package/dist/components/style/divider.css +1 -1
  17. package/dist/components/style/dropdown.css +1 -1
  18. package/dist/components/style/floatingActionButton.css +1 -1
  19. package/dist/components/style/icon-svg.css +1 -1
  20. package/dist/components/style/iconList.css +1 -1
  21. package/dist/components/style/indicator.css +1 -1
  22. package/dist/components/style/infoBox.css +1 -1
  23. package/dist/components/style/link.css +1 -1
  24. package/dist/components/style/modal.css +1 -1
  25. package/dist/components/style/multiselect.css +1 -1
  26. package/dist/components/style/overlay.css +1 -1
  27. package/dist/components/style/pagination.css +1 -1
  28. package/dist/components/style/persistentToast.css +1 -1
  29. package/dist/components/style/radioButton.css +1 -1
  30. package/dist/components/style/sidebar.css +1 -1
  31. package/dist/components/style/switch.css +1 -1
  32. package/dist/components/style/tabBar.css +1 -1
  33. package/dist/components/style/tag.css +1 -1
  34. package/dist/components/style/textArea.css +1 -1
  35. package/dist/components/style/textField.css +1 -1
  36. package/dist/components/style/tooltip.css +1 -1
  37. package/dist/components/textField.es.js +58 -59
  38. package/dist/components/tooltip.es.js +34 -33
  39. package/dist/energy-components.es.js +2492 -2491
  40. package/dist/energy-components.umd.js +1 -1
  41. package/dist/style.css +1 -1
  42. package/dist/types/src/components/input/text-field/text-field.vue.d.ts +4 -7
  43. package/dist/types/src/components/layout/sidebar/sidebar.vue.d.ts +5 -5
  44. package/dist/types/src/components/navigation/link/link.vue.d.ts +15 -0
  45. package/dist/types/src/components/overlay/modal/modal.vue.d.ts +0 -2
  46. package/dist/types/tsconfig.tsbuildinfo +1 -1
  47. package/package.json +2 -2
@@ -1,10 +1,11 @@
1
- import { defineComponent as j, toRefs as P, ref as z, computed as d, watch as F, openBlock as u, createElementBlock as m, normalizeClass as h, createElementVNode as n, renderSlot as v, createBlock as H, mergeProps as k, toHandlers as M, createCommentVNode as _, unref as t, toDisplayString as w, createVNode as A, withModifiers as G } from "vue";
2
- import { I as L } from "./icon-svg-CEZ-L3iv.js";
3
- import { _ as J } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
- import './style/textField.css';const K = { class: "rds-e-textfield__container" }, O = { class: "rds-e-textfield__input-container" }, Q = ["id", "type", "maxLength", "minLength", "disabled", "value", "autocomplete", "readonly"], U = ["for"], W = {
1
+ import { defineComponent as P, toRefs as z, ref as F, computed as s, watch as H, openBlock as u, createElementBlock as m, normalizeClass as v, createElementVNode as i, renderSlot as h, createBlock as M, mergeProps as w, toHandlers as U, createCommentVNode as _, unref as t, toDisplayString as L, createVNode as A, withModifiers as G } from "vue";
2
+ import { g as J } from "./getInstance-GhoEcxLF.js";
3
+ import { I as S } from "./icon-svg-CEZ-L3iv.js";
4
+ import { _ as K } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
+ import './style/textField.css';const O = { class: "rds-e-textfield__container" }, Q = { class: "rds-e-textfield__input-container" }, W = ["id", "type", "maxLength", "minLength", "disabled", "value", "autocomplete", "readonly"], X = ["for"], Y = {
5
6
  key: 0,
6
7
  class: "rds-e-textfield__icon rds-e-textfield__icon--right"
7
- }, X = { class: "rds-e-textfield__helper" }, Y = /* @__PURE__ */ j({
8
+ }, Z = { class: "rds-e-textfield__helper" }, ee = /* @__PURE__ */ P({
8
9
  __name: "text-field",
9
10
  props: {
10
11
  /**
@@ -18,9 +19,8 @@ import './style/textField.css';const K = { class: "rds-e-textfield__container" }
18
19
  * Identificador único del campo de entrada.
19
20
  */
20
21
  id: {
21
- type: [String, Number],
22
- required: !0,
23
- default: "text-field-0"
22
+ type: String,
23
+ required: !1
24
24
  },
25
25
  /**
26
26
  * v-model valor de entrada y salida
@@ -118,40 +118,39 @@ import './style/textField.css';const K = { class: "rds-e-textfield__container" }
118
118
  type: String,
119
119
  default: "off",
120
120
  validator: (l, c) => {
121
- const s = ["new-password", "current-password", "off"];
122
- return c.password && !s.includes(l) ? (console.info(`[RDSTextfield]: El valor de autocomplete para un campo de contraseña debe ser uno de los siguientes: ${s.join(", ")}`), !1) : !0;
121
+ const a = ["new-password", "current-password", "off"];
122
+ return c.password && !a.includes(l) ? (console.info(`[RDSTextfield]: El valor de autocomplete para un campo de contraseña debe ser uno de los siguientes: ${a.join(", ")}`), !1) : !0;
123
123
  }
124
124
  }
125
125
  },
126
126
  emits: ["update:modelValue"],
127
127
  setup(l, { emit: c }) {
128
- const s = l, g = c, {
128
+ const a = l, g = c, {
129
129
  label: B,
130
- id: x,
131
- disabled: i,
132
- maxLength: y,
133
- minLength: b,
134
- modelValue: a,
130
+ disabled: d,
131
+ maxLength: x,
132
+ minLength: y,
133
+ modelValue: o,
135
134
  icon: V,
136
135
  rightIcon: E,
137
136
  helper: I,
138
137
  error: f,
139
138
  helperText: T,
140
- clearable: C,
139
+ clearable: $,
141
140
  password: p,
142
- autocomplete: $
143
- } = P(s), o = z(!0), q = d(() => {
141
+ autocomplete: C
142
+ } = z(a), n = F(!0), R = J(), b = s(() => a.id || `text-field-${R}`), q = s(() => {
144
143
  if (p.value)
145
- return $.value;
144
+ return C.value;
146
145
  }), N = (e) => {
147
146
  g(
148
147
  "update:modelValue",
149
148
  e.target.value
150
149
  );
151
- }, D = d(() => !!(f.value || a.value.length && (a.value.length < b.value || a.value.length > y.value))), R = d(() => {
150
+ }, D = s(() => !!(f.value || o.value.length && (o.value.length < y.value || o.value.length > x.value))), j = s(() => {
152
151
  const e = [];
153
- return a.value && e.push("rds-e-textfield--filled"), D.value && e.push("rds-e-textfield--error"), i.value && e.push("rds-e-textfield--disabled"), e.join(" ");
154
- }), r = d(() => {
152
+ return o.value && e.push("rds-e-textfield--filled"), D.value && e.push("rds-e-textfield--error"), d.value && e.push("rds-e-textfield--disabled"), e.join(" ");
153
+ }), r = s(() => {
155
154
  const e = {
156
155
  name: V.value,
157
156
  class: "",
@@ -159,7 +158,7 @@ import './style/textField.css';const K = { class: "rds-e-textfield__container" }
159
158
  click: () => {
160
159
  }
161
160
  }
162
- }, S = {
161
+ }, k = {
163
162
  left: {
164
163
  ...e
165
164
  },
@@ -175,13 +174,13 @@ import './style/textField.css';const K = { class: "rds-e-textfield__container" }
175
174
  },
176
175
  right: {
177
176
  ...e,
178
- name: o.value ? "eye_open" : "eye_close",
177
+ name: n.value ? "eye_open" : "eye_close",
179
178
  class: "rds-e-textfield__icon--password",
180
179
  events: {
181
- click: () => o.value = !o.value
180
+ click: () => n.value = !n.value
182
181
  }
183
182
  }
184
- } : C.value ? {
183
+ } : $.value ? {
185
184
  left: {
186
185
  ...e
187
186
  },
@@ -193,45 +192,45 @@ import './style/textField.css';const K = { class: "rds-e-textfield__container" }
193
192
  click: () => g("update:modelValue", "")
194
193
  }
195
194
  }
196
- } : S;
195
+ } : k;
197
196
  });
198
- return F(
197
+ return H(
199
198
  p,
200
- (e) => o.value = !e,
199
+ (e) => n.value = !e,
201
200
  { immediate: !0 }
202
- ), (e, S) => (u(), m("div", {
203
- class: h(["rds-e-textfield", R.value])
201
+ ), (e, k) => (u(), m("div", {
202
+ class: v(["rds-e-textfield", j.value])
204
203
  }, [
205
- n("div", K, [
206
- v(e.$slots, "left-icon", {}, () => [
207
- r.value.left.name ? (u(), H(L, k({
204
+ i("div", O, [
205
+ h(e.$slots, "left-icon", {}, () => [
206
+ r.value.left.name ? (u(), M(S, w({
208
207
  key: 0,
209
208
  class: "rds-e-textfield__icon rds-e-textfield__icon--left",
210
209
  "aria-hidden": "true"
211
- }, r.value.left, M(r.value.left.events)), null, 16)) : _("", !0)
210
+ }, r.value.left, U(r.value.left.events)), null, 16)) : _("", !0)
212
211
  ], !0),
213
- n("div", O, [
214
- n("input", {
215
- id: t(x).toString(),
216
- type: o.value ? "text" : "password",
212
+ i("div", Q, [
213
+ i("input", {
214
+ id: b.value,
215
+ type: n.value ? "text" : "password",
217
216
  class: "rds-e-textfield__input",
218
- maxLength: t(y),
219
- minLength: t(b),
220
- disabled: t(i),
221
- value: t(a),
217
+ maxLength: t(x),
218
+ minLength: t(y),
219
+ disabled: t(d),
220
+ value: t(o),
222
221
  autocomplete: q.value,
223
222
  readonly: l.readonly,
224
223
  onInput: N,
225
224
  onBlur: N
226
- }, null, 40, Q),
227
- n("label", {
228
- for: t(x).toString(),
229
- class: h(["rds-e-textfield__label", t(i) ? "rds-e-textfield__label--disabled" : ""])
230
- }, w(t(B)), 11, U)
225
+ }, null, 40, W),
226
+ i("label", {
227
+ for: b.value,
228
+ class: v(["rds-e-textfield__label", t(d) ? "rds-e-textfield__label--disabled" : ""])
229
+ }, L(t(B)), 11, X)
231
230
  ]),
232
- r.value.right.name || e.$slots["right-icon"] ? (u(), m("span", W, [
233
- v(e.$slots, "right-icon", {}, () => [
234
- A(L, k({
231
+ r.value.right.name || e.$slots["right-icon"] ? (u(), m("span", Y, [
232
+ h(e.$slots, "right-icon", {}, () => [
233
+ A(S, w({
235
234
  "aria-hidden": "true",
236
235
  class: "rds-e-textfield__icon rds-e-textfield__icon--right"
237
236
  }, r.value.right, {
@@ -240,17 +239,17 @@ import './style/textField.css';const K = { class: "rds-e-textfield__container" }
240
239
  ], !0)
241
240
  ])) : _("", !0)
242
241
  ]),
243
- n("div", X, [
244
- v(e.$slots, "helper-text", {}, () => [
245
- (t(I) || t(f)) && !t(i) ? (u(), m("span", {
242
+ i("div", Z, [
243
+ h(e.$slots, "helper-text", {}, () => [
244
+ (t(I) || t(f)) && !t(d) ? (u(), m("span", {
246
245
  key: 0,
247
- class: h(t(f) ? "rds-e-textfield__helper--error" : "")
248
- }, w(t(T)), 3)) : _("", !0)
246
+ class: v(t(f) ? "rds-e-textfield__helper--error" : "")
247
+ }, L(t(T)), 3)) : _("", !0)
249
248
  ], !0)
250
249
  ])
251
250
  ], 2));
252
251
  }
253
- }), le = /* @__PURE__ */ J(Y, [["__scopeId", "data-v-4c840b96"]]);
252
+ }), oe = /* @__PURE__ */ K(ee, [["__scopeId", "data-v-0fc1a0b1"]]);
254
253
  export {
255
- le as default
254
+ oe as default
256
255
  };
@@ -1,7 +1,7 @@
1
1
  import { unref as at, defineComponent as Vt, toRefs as Mt, ref as U, computed as Ft, openBlock as bt, createElementBlock as At, createElementVNode as Z, renderSlot as Ht, normalizeClass as Ct, toDisplayString as Rt, createVNode as jt, createCommentVNode as Yt } from "vue";
2
2
  import { I as Xt } from "./icon-svg-CEZ-L3iv.js";
3
3
  import { _ as It } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
- import './style/tooltip.css';const X = Math.min, O = Math.max, nt = Math.round, H = (t) => ({
4
+ import './style/tooltip.css';const X = Math.min, R = Math.max, nt = Math.round, H = (t) => ({
5
5
  x: t,
6
6
  y: t
7
7
  }), zt = {
@@ -14,7 +14,7 @@ import './style/tooltip.css';const X = Math.min, O = Math.max, nt = Math.round,
14
14
  end: "start"
15
15
  };
16
16
  function ft(t, e, o) {
17
- return O(t, X(e, o));
17
+ return R(t, X(e, o));
18
18
  }
19
19
  function J(t, e) {
20
20
  return typeof t == "function" ? t(e) : t;
@@ -282,9 +282,9 @@ const te = (t) => ({
282
282
  x: o,
283
283
  y: n
284
284
  }, d = ht(i), m = gt(d), g = await s.getDimensions(a), h = d === "y", w = h ? "top" : "left", x = h ? "bottom" : "right", y = h ? "clientHeight" : "clientWidth", b = r.reference[m] + r.reference[d] - p[d] - r.floating[m], v = p[d] - r.reference[d], T = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(a));
285
- let C = T ? T[y] : 0;
286
- (!C || !await (s.isElement == null ? void 0 : s.isElement(T))) && (C = l.floating[y] || r.floating[m]);
287
- const $ = b / 2 - v / 2, E = C / 2 - g[m] / 2 - 1, _ = X(u[w], E), B = X(u[x], E), P = _, V = C - g[m] - B, A = C / 2 - g[m] / 2 + $, K = ft(P, A, V), W = !c.arrow && Q(i) != null && A !== K && r.reference[m] / 2 - (A < P ? _ : B) - g[m] / 2 < 0, L = W ? A < P ? A - P : A - V : 0;
285
+ let O = T ? T[y] : 0;
286
+ (!O || !await (s.isElement == null ? void 0 : s.isElement(T))) && (O = l.floating[y] || r.floating[m]);
287
+ const $ = b / 2 - v / 2, E = O / 2 - g[m] / 2 - 1, _ = X(u[w], E), B = X(u[x], E), P = _, V = O - g[m] - B, A = O / 2 - g[m] / 2 + $, K = ft(P, A, V), W = !c.arrow && Q(i) != null && A !== K && r.reference[m] / 2 - (A < P ? _ : B) - g[m] / 2 < 0, L = W ? A < P ? A - P : A - V : 0;
288
288
  return {
289
289
  [d]: p[d] + L,
290
290
  data: {
@@ -323,7 +323,7 @@ const te = (t) => ({
323
323
  return {};
324
324
  const w = j(i), x = I(l), y = j(l) === l, b = await (c.isRTL == null ? void 0 : c.isRTL(a.floating)), v = p || (y || !g ? [ot(l)] : Gt(l)), T = m !== "none";
325
325
  !p && T && v.push(...Qt(l, g, m, b));
326
- const C = [l, ...v], $ = await wt(e, h), E = [];
326
+ const O = [l, ...v], $ = await wt(e, h), E = [];
327
327
  let _ = ((n = r.flip) == null ? void 0 : n.overflows) || [];
328
328
  if (f && E.push($[w]), u) {
329
329
  const A = qt(i, s, b);
@@ -334,7 +334,7 @@ const te = (t) => ({
334
334
  overflows: E
335
335
  }], !E.every((A) => A <= 0)) {
336
336
  var B, P;
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 = O[A];
338
338
  if (K)
339
339
  return {
340
340
  data: {
@@ -504,15 +504,15 @@ const oe = function(t) {
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
506
  const x = g - f.top - f.bottom, y = m - f.left - f.right, b = X(g - f[h], x), v = X(m - f[w], y), T = !e.middlewareData.shift;
507
- let C = b, $ = v;
508
- if ((o = e.middlewareData.shift) != null && o.enabled.x && ($ = y), (n = e.middlewareData.shift) != null && n.enabled.y && (C = x), T && !p) {
509
- const _ = O(f.left, 0), B = O(f.right, 0), P = O(f.top, 0), V = O(f.bottom, 0);
510
- d ? $ = m - 2 * (_ !== 0 || B !== 0 ? _ + B : O(f.left, f.right)) : C = g - 2 * (P !== 0 || V !== 0 ? P + V : O(f.top, f.bottom));
507
+ let O = b, $ = v;
508
+ if ((o = e.middlewareData.shift) != null && o.enabled.x && ($ = y), (n = e.middlewareData.shift) != null && n.enabled.y && (O = x), T && !p) {
509
+ const _ = R(f.left, 0), B = R(f.right, 0), P = R(f.top, 0), V = R(f.bottom, 0);
510
+ d ? $ = m - 2 * (_ !== 0 || B !== 0 ? _ + B : R(f.left, f.right)) : O = g - 2 * (P !== 0 || V !== 0 ? P + V : R(f.top, f.bottom));
511
511
  }
512
512
  await c({
513
513
  ...e,
514
514
  availableWidth: $,
515
- availableHeight: C
515
+ availableHeight: O
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 z(t) {
530
530
  return xt(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 = (xt(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
539
539
  }
540
540
  function xt(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 k(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 _t(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 {
@@ -592,7 +592,7 @@ function G(t) {
592
592
  return ["html", "body", "#document"].includes(z(t));
593
593
  }
594
594
  function D(t) {
595
- return R(t).getComputedStyle(t);
595
+ return C(t).getComputedStyle(t);
596
596
  }
597
597
  function lt(t) {
598
598
  return S(t) ? {
@@ -622,7 +622,7 @@ function Pt(t) {
622
622
  function dt(t, e, o) {
623
623
  var n;
624
624
  e === void 0 && (e = []), o === void 0 && (o = !0);
625
- const i = Pt(t), r = i === ((n = t.ownerDocument) == null ? void 0 : n.body), s = R(i);
625
+ const i = Pt(t), r = i === ((n = t.ownerDocument) == null ? void 0 : n.body), s = C(i);
626
626
  if (r) {
627
627
  const l = mt(s);
628
628
  return e.concat(s, s.visualViewport || [], et(i) ? i : [], l && o ? dt(l) : []);
@@ -662,14 +662,14 @@ function q(t) {
662
662
  }
663
663
  const ce = /* @__PURE__ */ H(0);
664
664
  function $t(t) {
665
- const e = R(t);
665
+ const e = C(t);
666
666
  return !vt() || !e.visualViewport ? ce : {
667
667
  x: e.visualViewport.offsetLeft,
668
668
  y: e.visualViewport.offsetTop
669
669
  };
670
670
  }
671
671
  function ae(t, e, o) {
672
- return e === void 0 && (e = !1), !o || e && o !== R(t) ? !1 : e;
672
+ return e === void 0 && (e = !1), !o || e && o !== C(t) ? !1 : e;
673
673
  }
674
674
  function tt(t, e, o, n) {
675
675
  e === void 0 && (e = !1), o === void 0 && (o = !1);
@@ -679,11 +679,11 @@ function tt(t, e, o, n) {
679
679
  const l = ae(r, o, n) ? $t(r) : H(0);
680
680
  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;
681
681
  if (r) {
682
- const p = R(r), d = n && S(n) ? R(n) : n;
682
+ const p = C(r), d = n && S(n) ? C(n) : n;
683
683
  let m = p, g = mt(m);
684
684
  for (; g && n && d !== m; ) {
685
685
  const h = q(g), w = g.getBoundingClientRect(), x = D(g), y = w.left + (g.clientLeft + parseFloat(x.paddingLeft)) * h.x, b = w.top + (g.clientTop + parseFloat(x.paddingTop)) * h.y;
686
- c *= h.x, a *= h.y, f *= h.x, u *= h.y, c += y, a += b, m = R(g), g = mt(m);
686
+ c *= h.x, a *= h.y, f *= h.x, u *= h.y, c += y, a += b, m = C(g), g = mt(m);
687
687
  }
688
688
  }
689
689
  return it({
@@ -727,10 +727,10 @@ function pt(t, e) {
727
727
  return e ? e.left + o : tt(N(t)).left + o;
728
728
  }
729
729
  function de(t) {
730
- 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);
730
+ const e = N(t), o = lt(t), n = t.ownerDocument.body, i = R(e.scrollWidth, e.clientWidth, n.scrollWidth, n.clientWidth), r = R(e.scrollHeight, e.clientHeight, n.scrollHeight, n.clientHeight);
731
731
  let s = -o.scrollLeft + pt(t);
732
732
  const l = -o.scrollTop;
733
- return D(n).direction === "rtl" && (s += O(e.clientWidth, n.clientWidth) - i), {
733
+ return D(n).direction === "rtl" && (s += R(e.clientWidth, n.clientWidth) - i), {
734
734
  width: i,
735
735
  height: r,
736
736
  x: s,
@@ -738,7 +738,7 @@ function de(t) {
738
738
  };
739
739
  }
740
740
  function me(t, e) {
741
- const o = R(t), n = N(t), i = o.visualViewport;
741
+ const o = C(t), n = N(t), i = o.visualViewport;
742
742
  let r = n.clientWidth, s = n.clientHeight, l = 0, c = 0;
743
743
  if (i) {
744
744
  r = i.width, s = i.height;
@@ -805,7 +805,7 @@ function he(t) {
805
805
  } = t;
806
806
  const s = [...o === "clippingAncestors" ? rt(e) ? [] : ge(e, this._c) : [].concat(o), n], l = s[0], c = s.reduce((a, f) => {
807
807
  const u = St(e, f, i);
808
- return a.top = O(u.top, a.top), a.right = X(u.right, a.right), a.bottom = X(u.bottom, a.bottom), a.left = O(u.left, a.left), a;
808
+ return a.top = R(u.top, a.top), a.right = X(u.right, a.right), a.bottom = X(u.bottom, a.bottom), a.left = R(u.left, a.left), a;
809
809
  }, St(e, l, i));
810
810
  return {
811
811
  width: c.right - c.left,
@@ -862,7 +862,7 @@ function Dt(t, e) {
862
862
  return N(t) === o && (o = o.ownerDocument.body), o;
863
863
  }
864
864
  function Nt(t, e) {
865
- const o = R(t);
865
+ const o = C(t);
866
866
  if (rt(t))
867
867
  return o;
868
868
  if (!k(t)) {
@@ -1005,10 +1005,11 @@ const Le = { class: "rds-e-tooltip" }, ke = {
1005
1005
  Re(),
1006
1006
  Ce(),
1007
1007
  Oe({
1008
- apply({ availableWidth: v, availableHeight: T, elements: C }) {
1009
- Object.assign(C.floating.style, {
1010
- maxWidth: n.value ? `${v}px` : "380px",
1011
- maxHeight: `${Math.max(0, T)}px`
1008
+ apply({ availableHeight: v, elements: T }) {
1009
+ Object.assign(T.floating.style, {
1010
+ // maxWidth: '380px',
1011
+ maxWidth: "380px",
1012
+ maxHeight: `${Math.max(0, v)}px`
1012
1013
  });
1013
1014
  }
1014
1015
  }),
@@ -1076,7 +1077,7 @@ const Le = { class: "rds-e-tooltip" }, ke = {
1076
1077
  ], 2)
1077
1078
  ]));
1078
1079
  }
1079
- }), Fe = /* @__PURE__ */ It(Ne, [["__scopeId", "data-v-5c754f77"]]);
1080
+ }), Fe = /* @__PURE__ */ It(Ne, [["__scopeId", "data-v-84af6768"]]);
1080
1081
  export {
1081
1082
  Fe as default
1082
1083
  };