bitboss-ui 2.0.76 → 2.0.78

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 (138) hide show
  1. package/dist/components/CommonFloating.vue.d.ts +2 -2
  2. package/dist/index110.js +4 -4
  3. package/dist/index118.js +1 -1
  4. package/dist/index120.js +51 -51
  5. package/dist/index126.js +1 -1
  6. package/dist/index127.js +1 -1
  7. package/dist/index128.js +1 -1
  8. package/dist/index15.js +4 -4
  9. package/dist/index17.js +3 -3
  10. package/dist/index19.js +2 -2
  11. package/dist/index207.js +3 -164
  12. package/dist/index208.js +41 -84
  13. package/dist/index209.js +8 -0
  14. package/dist/index21.js +13 -13
  15. package/dist/index210.js +7 -53
  16. package/dist/index211.js +7 -0
  17. package/dist/index212.js +16 -13
  18. package/dist/index213.js +15 -19
  19. package/dist/index214.js +19 -4
  20. package/dist/index215.js +19 -2
  21. package/dist/index216.js +27 -4
  22. package/dist/index217.js +3 -2
  23. package/dist/index218.js +2 -281
  24. package/dist/index219.js +247 -14
  25. package/dist/index220.js +51 -15
  26. package/dist/index221.js +44 -19
  27. package/dist/index222.js +5 -19
  28. package/dist/index223.js +59 -26
  29. package/dist/index224.js +53 -3
  30. package/dist/index226.js +13 -249
  31. package/dist/index227.js +162 -50
  32. package/dist/index228.js +78 -38
  33. package/dist/index23.js +12 -12
  34. package/dist/index230.js +3 -60
  35. package/dist/index231.js +4 -4
  36. package/dist/index232.js +2 -2
  37. package/dist/index234.js +20 -41
  38. package/dist/index235.js +5 -6
  39. package/dist/index236.js +369 -5
  40. package/dist/index237.js +3 -368
  41. package/dist/index238.js +2 -3
  42. package/dist/index239.js +4 -7
  43. package/dist/index240.js +2 -3
  44. package/dist/index241.js +2 -2
  45. package/dist/index242.js +105 -17
  46. package/dist/{index245.js → index244.js} +1 -1
  47. package/dist/index246.js +4 -0
  48. package/dist/index247.js +18 -2
  49. package/dist/index25.js +4 -4
  50. package/dist/index250.js +9 -3
  51. package/dist/index251.js +23 -12
  52. package/dist/index252.js +88 -8
  53. package/dist/index254.js +6 -17
  54. package/dist/index255.js +16 -4
  55. package/dist/index256.js +280 -5
  56. package/dist/index257.js +6 -2
  57. package/dist/index258.js +2 -2
  58. package/dist/index263.js +2 -2
  59. package/dist/index264.js +1 -1
  60. package/dist/index265.js +1 -1
  61. package/dist/index266.js +1 -1
  62. package/dist/index267.js +2 -28
  63. package/dist/index268.js +27 -21
  64. package/dist/index269.js +24 -0
  65. package/dist/index27.js +1 -1
  66. package/dist/index271.js +6 -3
  67. package/dist/index272.js +431 -3
  68. package/dist/index273.js +91 -0
  69. package/dist/index274.js +8 -175
  70. package/dist/index275.js +3 -2
  71. package/dist/index277.js +189 -420
  72. package/dist/index278.js +3 -22
  73. package/dist/index279.js +14 -0
  74. package/dist/index280.js +9 -6
  75. package/dist/index281.js +8 -15
  76. package/dist/index282.js +17 -3
  77. package/dist/index283.js +4 -9
  78. package/dist/index284.js +224 -23
  79. package/dist/index285.js +2 -9
  80. package/dist/index286.js +120 -218
  81. package/dist/index287.js +171 -195
  82. package/dist/index288.js +21 -435
  83. package/dist/index29.js +2 -2
  84. package/dist/index290.js +3 -88
  85. package/dist/index291.js +436 -3
  86. package/dist/index292.js +127 -3
  87. package/dist/index293.js +2 -211
  88. package/dist/index294.js +3 -2
  89. package/dist/index295.js +2 -65
  90. package/dist/index297.js +66 -7
  91. package/dist/index298.js +211 -33
  92. package/dist/index299.js +1 -1
  93. package/dist/index300.js +1 -1
  94. package/dist/index301.js +4 -7
  95. package/dist/index302.js +4 -19
  96. package/dist/index303.js +58 -10
  97. package/dist/index304.js +3 -4
  98. package/dist/index305.js +4 -4
  99. package/dist/index306.js +7 -4
  100. package/dist/index307.js +6 -58
  101. package/dist/index308.js +18 -87
  102. package/dist/index309.js +35 -0
  103. package/dist/index31.js +2 -2
  104. package/dist/index310.js +10 -46
  105. package/dist/index311.js +47 -2
  106. package/dist/index312.js +14 -0
  107. package/dist/index313.js +480 -12
  108. package/dist/index314.js +2 -480
  109. package/dist/index316.js +1 -1
  110. package/dist/index317.js +420 -43
  111. package/dist/index319.js +49 -0
  112. package/dist/index33.js +2 -2
  113. package/dist/index35.js +2 -2
  114. package/dist/index37.js +11 -11
  115. package/dist/index39.js +3 -3
  116. package/dist/index41.js +2 -2
  117. package/dist/index43.js +2 -2
  118. package/dist/index45.js +6 -6
  119. package/dist/index47.js +2 -2
  120. package/dist/index49.js +2 -2
  121. package/dist/index55.js +1 -1
  122. package/dist/index57.js +1 -1
  123. package/dist/index75.js +35 -35
  124. package/dist/index79.js +2 -2
  125. package/dist/index81.js +1 -1
  126. package/dist/index84.js +2 -2
  127. package/dist/index86.js +1 -1
  128. package/dist/index88.js +62 -62
  129. package/dist/style.css +1 -1
  130. package/package.json +1 -1
  131. package/dist/index225.js +0 -4
  132. package/dist/index229.js +0 -7
  133. package/dist/index243.js +0 -108
  134. package/dist/index253.js +0 -11
  135. package/dist/index270.js +0 -9
  136. package/dist/index276.js +0 -128
  137. package/dist/index289.js +0 -129
  138. package/dist/index315.js +0 -426
package/dist/index55.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as z, computed as b, ref as o, onMounted as g, openBlock as l, createElementBlock as i, normalizeProps as h, guardReactiveProps as k, renderSlot as y } from "vue";
2
- import { isCssColor as _ } from "./index215.js";
2
+ import { isCssColor as _ } from "./index238.js";
3
3
  import { wait as C } from "./index131.js";
4
4
  const w = ["alt", "sizes", "src", "srcset"], B = {
5
5
  key: 1,
package/dist/index57.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as p, useSlots as d, computed as n, openBlock as m, createElementBlock as u, normalizeClass as g, createElementVNode as s, renderSlot as l, mergeProps as f, createTextVNode as _, toDisplayString as y } from "vue";
2
- import { isCssColor as r } from "./index215.js";
2
+ import { isCssColor as r } from "./index238.js";
3
3
  import { isNil as B } from "./index129.js";
4
4
  const C = { class: "bb-badge__wrapper" }, h = { class: "bb-badge__content-inner" }, S = /* @__PURE__ */ p({
5
5
  __name: "BbBadge",
package/dist/index75.js CHANGED
@@ -1,12 +1,14 @@
1
- import { defineComponent as W, defineAsyncComponent as X, computed as A, ref as w, openBlock as T, createElementBlock as D, mergeProps as C, createElementVNode as B, renderSlot as g, normalizeProps as Y, guardReactiveProps as Z, unref as h, createVNode as O, withCtx as K, normalizeStyle as _, Fragment as P, renderList as x } from "vue";
2
- import { findRightIndex as H } from "./index283.js";
3
- import { useId as ee } from "./index8.js";
4
- import { wait as te } from "./index131.js";
5
- import { useIntersectionObserver as ne } from "./index132.js";
6
- import oe from "./index13.js";
1
+ import { defineComponent as J, computed as A, ref as w, openBlock as T, createElementBlock as D, mergeProps as B, createElementVNode as C, renderSlot as g, normalizeProps as Q, guardReactiveProps as W, unref as h, createVNode as O, withCtx as K, normalizeStyle as X, Fragment as P, renderList as Y } from "vue";
2
+ import { findRightIndex as H } from "./index250.js";
3
+ import { useId as Z } from "./index8.js";
4
+ import { wait as x } from "./index131.js";
5
+ import { useIntersectionObserver as ee } from "./index132.js";
6
+ import te from "./index13.js";
7
7
  /* empty css */
8
- import j from "./index284.js";
9
- const fe = /* @__PURE__ */ W({
8
+ import j from "./index251.js";
9
+ import ne from "./index252.js";
10
+ /* empty css */
11
+ const pe = /* @__PURE__ */ J({
10
12
  __name: "BbDropdown",
11
13
  props: {
12
14
  arrowPadding: { default: 10 },
@@ -23,21 +25,19 @@ const fe = /* @__PURE__ */ W({
23
25
  width: { default: 200 }
24
26
  },
25
27
  setup(z) {
26
- const N = X(
27
- () => import("./index282.js")
28
- ), r = z, d = r.id ?? `bb_${ee().id.value}`, m = A(() => {
28
+ const r = z, d = r.id ?? `bb_${Z().id.value}`, m = A(() => {
29
29
  let e = r.items.findIndex((t) => !t.disabled), o = H(
30
30
  r.items,
31
31
  (t) => !t.disabled
32
32
  );
33
33
  return r.items.map((t, n) => {
34
- const i = `${d}-item-${t.key}`, { onClick: F, ...q } = t, J = async () => {
34
+ const i = `${d}-item-${t.key}`, { onClick: q, ...F } = t, _ = async () => {
35
35
  await b();
36
36
  const s = document.querySelector(`#${d}`);
37
37
  if (s) s instanceof HTMLElement && s.focus();
38
38
  else return;
39
- F && F();
40
- }, Q = (s) => {
39
+ q && q();
40
+ }, G = (s) => {
41
41
  if (s.target instanceof HTMLElement && s.target.dataset.dropdownItem) {
42
42
  if (!a.value) return;
43
43
  if (s.key === "ArrowDown") {
@@ -72,24 +72,24 @@ const fe = /* @__PURE__ */ W({
72
72
  }
73
73
  };
74
74
  return {
75
- ...q,
76
- disabled: q.disabled || r.disabled,
75
+ ...F,
76
+ disabled: F.disabled || r.disabled,
77
77
  id: i,
78
- onClick: J,
79
- onKeydown: Q
78
+ onClick: _,
79
+ onKeydown: G
80
80
  };
81
81
  });
82
82
  }), v = w(), a = w();
83
- ne(
83
+ ee(
84
84
  v,
85
85
  ([{ intersectionRatio: e }]) => {
86
86
  e !== 1 && l.value && b();
87
87
  },
88
88
  { threshold: [0, 1] }
89
89
  );
90
- const c = w(!1), l = w(!1), f = w(!1), p = w(!0), R = () => {
90
+ const c = w(!1), l = w(!1), f = w(!1), p = w(!0), N = () => {
91
91
  c.value || f.value || (l.value ? b() : $());
92
- }, U = async (e) => {
92
+ }, R = async (e) => {
93
93
  let o = r.items.findIndex((n) => !n.disabled), t = H(
94
94
  r.items,
95
95
  (n) => !n.disabled
@@ -131,29 +131,29 @@ const fe = /* @__PURE__ */ W({
131
131
  }
132
132
  b();
133
133
  }
134
- }, V = w(!1), $ = async () => {
135
- V.value = !0, await te(50), l.value = !0, document.addEventListener("click", I, { passive: !0 }), document.addEventListener("focusin", M, { passive: !0 }), document.addEventListener("keydown", S, { passive: !0 });
134
+ }, U = w(!1), $ = async () => {
135
+ U.value = !0, await x(50), l.value = !0, document.addEventListener("click", I, { passive: !0 }), document.addEventListener("focusin", M, { passive: !0 }), document.addEventListener("keydown", S, { passive: !0 });
136
136
  }, b = async () => {
137
137
  l.value = !1, document.removeEventListener("click", I), document.removeEventListener("focusin", M), document.removeEventListener("keydown", S);
138
- }, G = A(() => ({
138
+ }, V = A(() => ({
139
139
  class: {
140
140
  "bb-dropdown--block": r.block,
141
141
  [`bb-dropdown--theme-${r.theme}`]: r.theme
142
142
  }
143
143
  }));
144
- return (e, o) => (T(), D("span", C({ class: "bb-dropdown" }, G.value), [
145
- B("span", {
144
+ return (e, o) => (T(), D("span", B({ class: "bb-dropdown" }, V.value), [
145
+ C("span", {
146
146
  ref_key: "wrapper",
147
147
  ref: v,
148
148
  class: "bb-dropdown__wrapper"
149
149
  }, [
150
- g(e.$slots, "activator", Y(Z({
150
+ g(e.$slots, "activator", Q(W({
151
151
  props: {
152
152
  "aria-expanded": l.value,
153
153
  "aria-controls": `menu_${h(d)}`,
154
154
  id: h(d),
155
- onClick: R,
156
- onKeydown: U,
155
+ onClick: N,
156
+ onKeydown: R,
157
157
  disabled: e.disabled
158
158
  },
159
159
  closed: p.value,
@@ -164,7 +164,7 @@ const fe = /* @__PURE__ */ W({
164
164
  placement: e.placement
165
165
  })))
166
166
  ], 512),
167
- O(h(N), {
167
+ O(ne, {
168
168
  "arrow-padding": e.arrowPadding,
169
169
  "base-class": "bb-dropdown",
170
170
  "container-attributes": {
@@ -182,11 +182,11 @@ const fe = /* @__PURE__ */ W({
182
182
  wrapper: v.value
183
183
  }, {
184
184
  default: K(() => [
185
- B("span", {
185
+ C("span", {
186
186
  ref_key: "content",
187
187
  ref: a,
188
188
  class: "bb-dropdown__items-container",
189
- style: _({ width: `${e.width}px` })
189
+ style: X({ width: `${e.width}px` })
190
190
  }, [
191
191
  g(e.$slots, "prepend", {
192
192
  closed: p.value,
@@ -196,7 +196,7 @@ const fe = /* @__PURE__ */ W({
196
196
  opening: c.value,
197
197
  placement: e.placement
198
198
  }),
199
- (T(!0), D(P, null, x(m.value, (t, n) => (T(), D(P, {
199
+ (T(!0), D(P, null, Y(m.value, (t, n) => (T(), D(P, {
200
200
  key: t.key
201
201
  }, [
202
202
  g(e.$slots, "item:prepend", {
@@ -210,7 +210,7 @@ const fe = /* @__PURE__ */ W({
210
210
  placement: e.placement,
211
211
  text: t.text
212
212
  }),
213
- O(oe, C({
213
+ O(te, B({
214
214
  "aria-role": "menuitem",
215
215
  class: ["bb-dropdown__item", {
216
216
  "bb-dropdown__item--first": n === 0,
@@ -274,5 +274,5 @@ const fe = /* @__PURE__ */ W({
274
274
  }
275
275
  });
276
276
  export {
277
- fe as default
277
+ pe as default
278
278
  };
package/dist/index79.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as j, ref as g, watch as x, computed as m, openBlock as V, createBlock as G, resolveDynamicComponent as K, normalizeClass as O, withCtx as M, createElementVNode as c, withModifiers as y, renderSlot as U, normalizeProps as Y, guardReactiveProps as Z, createTextVNode as J, unref as Q, createVNode as W, createElementBlock as F, Fragment as X, renderList as ee, toDisplayString as te } from "vue";
2
- import { findInTree as ae } from "./index281.js";
2
+ import { findInTree as ae } from "./index255.js";
3
3
  import { useId as re } from "./index8.js";
4
4
  import oe from "./index127.js";
5
5
  /* empty css */
@@ -53,7 +53,7 @@ const le = ["accept", "autofocus", "disabled", "multiple"], se = { class: "bb-dr
53
53
  const r = a.accept[t];
54
54
  if (r.includes("/")) e.push(r);
55
55
  else {
56
- b || (b = (await import("./index280.js")).default);
56
+ b || (b = (await import("./index254.js")).default);
57
57
  const o = b.getType(r);
58
58
  if (!o)
59
59
  throw new Error(
package/dist/index81.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as h, ref as t, onMounted as m, onBeforeUnmount as p, openBlock as g, createBlock as b, resolveDynamicComponent as w, withCtx as _, renderSlot as I } from "vue";
2
- import { throttle as c } from "./index238.js";
2
+ import { throttle as c } from "./index207.js";
3
3
  const M = /* @__PURE__ */ h({
4
4
  __name: "BbIntersection",
5
5
  props: {
package/dist/index84.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as te, ref as l, useAttrs as oe, getCurrentInstance as le, computed as p, nextTick as se, onBeforeUnmount as x, onMounted as ae, watch as ne, openBlock as g, createBlock as ie, Teleport as re, createElementVNode as s, mergeProps as O, createElementBlock as V, renderSlot as n, createTextVNode as ue, toDisplayString as S, createCommentVNode as z } from "vue";
2
- import { useFocusTrap as ce } from "./index234.js";
2
+ import { useFocusTrap as ce } from "./index208.js";
3
3
  import { useId as A } from "./index8.js";
4
4
  import { wait as E } from "./index131.js";
5
- import { useModalsState as b } from "./index239.js";
5
+ import { useModalsState as b } from "./index210.js";
6
6
  const de = ["inert"], fe = { class: "bb-offcanvas-close" }, ve = ["aria-label"], ge = /* @__PURE__ */ te({
7
7
  __name: "BbOffCanvas",
8
8
  props: {
package/dist/index86.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as P, computed as _, ref as g, onMounted as A, onBeforeUnmount as E, openBlock as y, createElementBlock as k, normalizeClass as C, createElementVNode as i, createVNode as V, unref as S, withCtx as h, renderSlot as v, Fragment as W, renderList as R, toDisplayString as M, nextTick as $ } from "vue";
2
- import { debounce as F } from "./index285.js";
2
+ import { debounce as F } from "./index274.js";
3
3
  /* empty css */
4
4
  /* empty css */
5
5
  import w from "./index13.js";
package/dist/index88.js CHANGED
@@ -1,12 +1,14 @@
1
- import { defineComponent as M, defineAsyncComponent as O, ref as r, computed as v, openBlock as y, createElementBlock as S, mergeProps as H, createElementVNode as c, renderSlot as k, normalizeProps as V, guardReactiveProps as q, createVNode as A, unref as I, withCtx as C, createBlock as W, createCommentVNode as z, nextTick as R } from "vue";
2
- import { useFocusTrap as j } from "./index234.js";
3
- import { useId as G } from "./index8.js";
4
- import { useIntersectionObserver as J } from "./index132.js";
5
- import { waitFor as K } from "./index235.js";
6
- import Q from "./index13.js";
1
+ import { defineComponent as M, ref as n, computed as v, openBlock as k, createElementBlock as O, mergeProps as F, createElementVNode as p, renderSlot as y, normalizeProps as S, guardReactiveProps as H, createVNode as V, withCtx as C, createBlock as q, createCommentVNode as I, nextTick as W } from "vue";
2
+ import { useFocusTrap as z } from "./index208.js";
3
+ import { useId as A } from "./index8.js";
4
+ import { useIntersectionObserver as R } from "./index132.js";
5
+ import { waitFor as j } from "./index209.js";
6
+ import G from "./index13.js";
7
7
  /* empty css */
8
- import { useDebounceFn as U } from "./index204.js";
9
- const ne = /* @__PURE__ */ M({
8
+ import J from "./index252.js";
9
+ /* empty css */
10
+ import { useDebounceFn as K } from "./index204.js";
11
+ const re = /* @__PURE__ */ M({
10
12
  __name: "BbPopover",
11
13
  props: {
12
14
  arrowPadding: { default: 10 },
@@ -23,10 +25,8 @@ const ne = /* @__PURE__ */ M({
23
25
  width: {}
24
26
  },
25
27
  emits: ["shown", "hidden"],
26
- setup($, { expose: T, emit: _ }) {
27
- const B = O(
28
- () => import("./index282.js")
29
- ), o = $, s = _, { id: P } = G(), p = `bbp_${P.value}`, n = r(), i = r(), { activate: N, deactivate: m } = j(i, {
28
+ setup(_, { expose: $, emit: T }) {
29
+ const t = _, s = T, { id: B } = A(), c = `bbp_${B.value}`, r = n(), i = n(), { activate: P, deactivate: m } = z(i, {
30
30
  /**
31
31
  * This traps all clicks outside so we are pressing
32
32
  * the trigger we just allow and process that in its
@@ -36,10 +36,10 @@ const ne = /* @__PURE__ */ M({
36
36
  */
37
37
  clickOutsideDeactivates: (e) => {
38
38
  var h;
39
- const t = e.target;
40
- return t instanceof HTMLElement && (h = n.value) != null && h.contains(t) || (l(), s("hidden")), !0;
39
+ const o = e.target;
40
+ return o instanceof HTMLElement && (h = r.value) != null && h.contains(o) || (l(), s("hidden")), !0;
41
41
  },
42
- escapeDeactivates: () => (R(async () => {
42
+ escapeDeactivates: () => (W(async () => {
43
43
  await l(), u(), s("hidden");
44
44
  }), !0),
45
45
  /* We don't return focus so that when
@@ -48,77 +48,77 @@ const ne = /* @__PURE__ */ M({
48
48
  */
49
49
  returnFocusOnDeactivate: !1
50
50
  });
51
- J(
52
- n,
51
+ R(
52
+ r,
53
53
  async ([{ intersectionRatio: e }]) => {
54
54
  e !== 1 && a.value && (m(), await l(), s("hidden"));
55
55
  },
56
56
  { threshold: [0, 1] }
57
57
  );
58
- const D = v(() => ({
58
+ const N = v(() => ({
59
59
  class: {
60
- "bb-popover--block": o.block,
61
- [`bb-popover--${o.theme}`]: !0
60
+ "bb-popover--block": t.block,
61
+ [`bb-popover--${t.theme}`]: !0
62
62
  }
63
- })), E = r(!1), d = r(!1), a = r(!1), b = r(!1), g = r(!0), F = async () => {
64
- E.value = !0, await K(() => !!i.value), a.value = !0;
63
+ })), D = n(!1), d = n(!1), a = n(!1), b = n(!1), w = n(!0), E = async () => {
64
+ D.value = !0, await j(() => !!i.value), a.value = !0;
65
65
  }, l = async () => {
66
66
  a.value = !1;
67
- }, w = async () => {
67
+ }, g = async () => {
68
68
  if (a.value) {
69
69
  await l(), u(), s("hidden");
70
70
  return;
71
71
  }
72
- if (d.value || o.disabled) return;
73
- await F();
74
- let e = o.focusTarget ?? ".bb-popover__close";
75
- N({
76
- onPostActivate: U(() => {
72
+ if (d.value || t.disabled) return;
73
+ await E();
74
+ let e = t.focusTarget ?? ".bb-popover__close";
75
+ P({
76
+ onPostActivate: K(() => {
77
77
  if (i.value) {
78
- const t = i.value.querySelector(e);
79
- t instanceof HTMLElement && (t.focus(), s("shown"));
78
+ const o = i.value.querySelector(e);
79
+ o instanceof HTMLElement && (o.focus(), s("shown"));
80
80
  }
81
81
  }, 150)
82
82
  });
83
83
  }, u = () => {
84
- var t;
85
- const e = (t = n.value) == null ? void 0 : t.querySelector(`[aria-controls=popover_${p}]`);
84
+ var o;
85
+ const e = (o = r.value) == null ? void 0 : o.querySelector(`[aria-controls=popover_${c}]`);
86
86
  e instanceof HTMLElement && e.focus({ preventScroll: !0 });
87
87
  }, f = async () => {
88
88
  m(), await l(), u(), s("hidden");
89
89
  }, L = v(() => {
90
- if (o.width) {
90
+ if (t.width) {
91
91
  let e;
92
- if (typeof o.width == "string" && Number.isNaN(Number(o.width)))
93
- if (o.width.includes("%")) {
94
- if (!n.value) return;
95
- e = `${n.value.clientWidth * (+o.width.replace("%", "") / 100)}`;
92
+ if (typeof t.width == "string" && Number.isNaN(Number(t.width)))
93
+ if (t.width.includes("%")) {
94
+ if (!r.value) return;
95
+ e = `${r.value.clientWidth * (+t.width.replace("%", "") / 100)}`;
96
96
  } else
97
- e = o.width;
97
+ e = t.width;
98
98
  else
99
- e = `${o.width}`;
99
+ e = `${t.width}`;
100
100
  return `${e}px`;
101
101
  }
102
102
  });
103
- return T({
104
- open: w,
103
+ return $({
104
+ open: g,
105
105
  close: f,
106
106
  closed: v(() => !a.value)
107
- }), (e, t) => (y(), S("span", H({ class: "bb-popover" }, D.value), [
108
- c("span", {
107
+ }), (e, o) => (k(), O("span", F({ class: "bb-popover" }, N.value), [
108
+ p("span", {
109
109
  ref_key: "wrapper",
110
- ref: n,
110
+ ref: r,
111
111
  class: "bb-popover__wrapper"
112
112
  }, [
113
- k(e.$slots, "activator", V(q({
113
+ y(e.$slots, "activator", S(H({
114
114
  props: {
115
- "aria-controls": `popover_${p}`,
115
+ "aria-controls": `popover_${c}`,
116
116
  "aria-expanded": a.value,
117
- onClick: w,
118
- id: p,
117
+ onClick: g,
118
+ id: c,
119
119
  disabled: !!e.disabled
120
120
  },
121
- closed: g.value,
121
+ closed: w.value,
122
122
  closing: b.value,
123
123
  disabled: !!e.disabled,
124
124
  open: a.value,
@@ -126,11 +126,11 @@ const ne = /* @__PURE__ */ M({
126
126
  placement: e.placement
127
127
  })))
128
128
  ], 512),
129
- A(I(B), {
129
+ V(J, {
130
130
  "arrow-padding": e.arrowPadding,
131
131
  "base-class": "bb-popover",
132
132
  "container-attributes": {
133
- id: `popover_${p}`,
133
+ id: `popover_${c}`,
134
134
  style: { width: L.value }
135
135
  },
136
136
  eager: e.eager,
@@ -140,27 +140,27 @@ const ne = /* @__PURE__ */ M({
140
140
  placement: e.placement,
141
141
  theme: e.theme,
142
142
  "transition-duration": e.transitionDuration,
143
- wrapper: n.value
143
+ wrapper: r.value
144
144
  }, {
145
145
  default: C(() => [
146
- c("div", {
146
+ p("div", {
147
147
  ref_key: "content",
148
148
  ref: i,
149
149
  class: "bb-popover__content"
150
150
  }, [
151
- e.showClose ? (y(), W(Q, {
151
+ e.showClose ? (k(), q(G, {
152
152
  key: 0,
153
153
  class: "bb-popover__close",
154
154
  onClick: f
155
155
  }, {
156
- default: C(() => t[0] || (t[0] = [
157
- c("span", { class: "bb-popover__close-label sr-only" }, "Chiudi", -1),
158
- c("svg", {
156
+ default: C(() => o[0] || (o[0] = [
157
+ p("span", { class: "bb-popover__close-label sr-only" }, "Chiudi", -1),
158
+ p("svg", {
159
159
  fill: "none",
160
160
  viewBox: "0 0 24 24",
161
161
  xmlns: "http://www.w3.org/2000/svg"
162
162
  }, [
163
- c("path", {
163
+ p("path", {
164
164
  d: "M23 23L1 1M23 1L1 23",
165
165
  stroke: "currentColor",
166
166
  "stroke-linecap": "round",
@@ -169,10 +169,10 @@ const ne = /* @__PURE__ */ M({
169
169
  ], -1)
170
170
  ])),
171
171
  _: 1
172
- })) : z("", !0),
173
- k(e.$slots, "default", {
172
+ })) : I("", !0),
173
+ y(e.$slots, "default", {
174
174
  close: f,
175
- closed: g.value,
175
+ closed: w.value,
176
176
  closing: b.value,
177
177
  disabled: !!e.disabled,
178
178
  open: a.value,
@@ -187,5 +187,5 @@ const ne = /* @__PURE__ */ M({
187
187
  }
188
188
  });
189
189
  export {
190
- ne as default
190
+ re as default
191
191
  };