bitboss-ui 2.0.107 → 2.0.109

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 (170) hide show
  1. package/dist/components/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +4 -0
  2. package/dist/components/BaseSelect/BaseSelect.vue.d.ts +4 -0
  3. package/dist/components/BbDropdown/BbDropdown.vue.d.ts +1 -1
  4. package/dist/components/BbPopover/BbPopover.vue.d.ts +1 -1
  5. package/dist/components/BbSelect/BbSelect.vue.d.ts +4 -0
  6. package/dist/components/BbTeleport.vue.d.ts +4 -1
  7. package/dist/components/BbTooltip/BbTooltip.vue.d.ts +1 -1
  8. package/dist/components/CommonFloating.vue.d.ts +4 -0
  9. package/dist/index100.js +8 -8
  10. package/dist/index101.js +22 -20
  11. package/dist/index111.js +10 -10
  12. package/dist/index119.js +2 -2
  13. package/dist/index121.js +18 -16
  14. package/dist/index123.js +1 -1
  15. package/dist/index127.js +1 -1
  16. package/dist/index128.js +1 -1
  17. package/dist/index129.js +1 -1
  18. package/dist/index131.js +1 -1
  19. package/dist/index132.js +2 -2
  20. package/dist/index133.js +2 -2
  21. package/dist/index15.js +4 -4
  22. package/dist/index17.js +3 -3
  23. package/dist/index19.js +7 -7
  24. package/dist/index205.js +2 -115
  25. package/dist/index206.js +115 -2
  26. package/dist/index208.js +1 -1
  27. package/dist/index209.js +2 -53
  28. package/dist/index21.js +13 -13
  29. package/dist/index210.js +6 -0
  30. package/dist/index211.js +2 -13
  31. package/dist/index212.js +53 -3
  32. package/dist/index214.js +13 -6
  33. package/dist/index215.js +20 -7
  34. package/dist/index216.js +4 -12
  35. package/dist/index217.js +2 -2
  36. package/dist/index218.js +126 -2
  37. package/dist/index219.js +5 -4
  38. package/dist/index220.js +125 -2
  39. package/dist/index221.js +16 -3
  40. package/dist/index222.js +15 -19
  41. package/dist/index223.js +19 -4
  42. package/dist/index224.js +14 -280
  43. package/dist/index225.js +2 -16
  44. package/dist/index226.js +2 -16
  45. package/dist/index227.js +40 -18
  46. package/dist/index228.js +6 -15
  47. package/dist/index229.js +15 -19
  48. package/dist/index23.js +47 -43
  49. package/dist/index230.js +5 -27
  50. package/dist/index231.js +369 -2
  51. package/dist/index232.js +79 -243
  52. package/dist/index234.js +25 -44
  53. package/dist/index235.js +17 -5
  54. package/dist/index236.js +47 -59
  55. package/dist/index237.js +13 -124
  56. package/dist/index238.js +12 -125
  57. package/dist/index239.js +16 -2
  58. package/dist/index240.js +3 -5
  59. package/dist/index241.js +3 -369
  60. package/dist/index242.js +7 -86
  61. package/dist/index243.js +21 -0
  62. package/dist/index244.js +27 -25
  63. package/dist/index245.js +250 -17
  64. package/dist/index246.js +50 -46
  65. package/dist/index247.js +44 -15
  66. package/dist/index248.js +5 -12
  67. package/dist/index249.js +60 -16
  68. package/dist/index25.js +5 -5
  69. package/dist/index250.js +1 -1
  70. package/dist/index251.js +1 -1
  71. package/dist/index252.js +1 -1
  72. package/dist/index254.js +1 -1
  73. package/dist/index257.js +2 -2
  74. package/dist/index258.js +2 -2
  75. package/dist/index261.js +27 -8
  76. package/dist/index262.js +9 -23
  77. package/dist/index263.js +23 -89
  78. package/dist/index264.js +92 -0
  79. package/dist/index266.js +6 -16
  80. package/dist/index267.js +16 -9
  81. package/dist/index268.js +4 -9
  82. package/dist/index269.js +9 -8
  83. package/dist/index27.js +1 -1
  84. package/dist/index270.js +3 -28
  85. package/dist/index272.js +9 -0
  86. package/dist/index273.js +175 -6
  87. package/dist/index274.js +6 -430
  88. package/dist/index275.js +11 -2
  89. package/dist/index276.js +280 -88
  90. package/dist/index277.js +6 -7
  91. package/dist/index278.js +2 -11
  92. package/dist/index279.js +2 -4
  93. package/dist/index280.js +2 -224
  94. package/dist/index281.js +2 -200
  95. package/dist/index282.js +2 -176
  96. package/dist/index283.js +2 -6
  97. package/dist/index284.js +126 -2
  98. package/dist/index285.js +431 -2
  99. package/dist/index286.js +2 -2
  100. package/dist/index287.js +22 -2
  101. package/dist/index289.js +3 -2
  102. package/dist/index29.js +3 -3
  103. package/dist/index290.js +17 -2
  104. package/dist/index291.js +9 -2
  105. package/dist/index292.js +8 -2
  106. package/dist/index293.js +224 -2
  107. package/dist/index294.js +2 -2
  108. package/dist/index295.js +2 -22
  109. package/dist/index296.js +4 -0
  110. package/dist/index297.js +2 -2
  111. package/dist/index298.js +2 -126
  112. package/dist/index299.js +1 -21
  113. package/dist/index300.js +24 -0
  114. package/dist/index302.js +87 -15
  115. package/dist/index303.js +191 -427
  116. package/dist/index304.js +422 -113
  117. package/dist/index305.js +127 -3
  118. package/dist/index306.js +1 -1
  119. package/dist/index307.js +3 -214
  120. package/dist/index308.js +214 -3
  121. package/dist/index309.js +5 -3
  122. package/dist/index31.js +2 -2
  123. package/dist/index310.js +67 -3
  124. package/dist/index311.js +2 -58
  125. package/dist/index312.js +5 -2
  126. package/dist/index313.js +8 -67
  127. package/dist/index314.js +3 -5
  128. package/dist/index315.js +3 -32
  129. package/dist/index316.js +3 -7
  130. package/dist/index317.js +3 -19
  131. package/dist/index318.js +57 -52
  132. package/dist/index319.js +32 -52
  133. package/dist/index320.js +53 -47
  134. package/dist/index321.js +53 -7
  135. package/dist/index322.js +46 -4
  136. package/dist/index323.js +6 -7
  137. package/dist/index324.js +7 -480
  138. package/dist/index325.js +18 -3
  139. package/dist/index326.js +1 -1
  140. package/dist/index327.js +482 -0
  141. package/dist/index329.js +420 -43
  142. package/dist/index33.js +7 -7
  143. package/dist/index330.js +47 -2
  144. package/dist/index35.js +3 -3
  145. package/dist/index37.js +85 -81
  146. package/dist/index39.js +4 -4
  147. package/dist/index41.js +2 -2
  148. package/dist/index43.js +7 -7
  149. package/dist/index45.js +27 -27
  150. package/dist/index47.js +2 -2
  151. package/dist/index49.js +2 -2
  152. package/dist/index55.js +1 -1
  153. package/dist/index57.js +2 -2
  154. package/dist/index75.js +22 -20
  155. package/dist/index79.js +2 -2
  156. package/dist/index81.js +1 -1
  157. package/dist/index84.js +3 -3
  158. package/dist/index86.js +1 -1
  159. package/dist/index88.js +40 -38
  160. package/dist/index90.js +1 -1
  161. package/dist/style.css +1 -1
  162. package/dist/types/CommonProps.d.ts +4 -0
  163. package/package.json +2 -2
  164. package/dist/index213.js +0 -43
  165. package/dist/index233.js +0 -54
  166. package/dist/index265.js +0 -8
  167. package/dist/index271.js +0 -5
  168. package/dist/index301.js +0 -5
  169. package/dist/index328.js +0 -426
  170. /package/dist/{index288.js → index331.js} +0 -0
package/dist/index75.js CHANGED
@@ -1,12 +1,12 @@
1
- import { defineComponent as X, computed as A, ref as y, openBlock as $, createElementBlock as T, mergeProps as B, createElementVNode as H, renderSlot as w, normalizeProps as Y, guardReactiveProps as Z, unref as h, createVNode as C, withCtx as O, normalizeStyle as x, Fragment as K, renderList as ee, createBlock as P, createCommentVNode as N, toDisplayString as te } from "vue";
2
- import { findRightIndex as I } from "./index261.js";
1
+ import { defineComponent as X, computed as A, ref as y, openBlock as $, createElementBlock as D, mergeProps as B, createElementVNode as H, renderSlot as g, normalizeProps as Y, guardReactiveProps as Z, unref as h, createVNode as C, withCtx as O, normalizeStyle as x, Fragment as K, renderList as ee, createBlock as P, createCommentVNode as N, toDisplayString as te } from "vue";
2
+ import { findRightIndex as I } from "./index262.js";
3
3
  import { useId as ne } from "./index8.js";
4
4
  import { wait as oe } from "./index130.js";
5
5
  import { useIntersectionObserver as ae } from "./index132.js";
6
6
  import le from "./index13.js";
7
7
  /* empty css */
8
- import V from "./index262.js";
9
- import se from "./index263.js";
8
+ import V from "./index263.js";
9
+ import se from "./index264.js";
10
10
  /* empty css */
11
11
  import j from "./index127.js";
12
12
  /* empty css */
@@ -23,6 +23,7 @@ const ie = { class: "item__content" }, ke = /* @__PURE__ */ X({
23
23
  placement: { default: "bottom" },
24
24
  theme: { default: "default" },
25
25
  transitionDuration: { default: 300 },
26
+ teleportTarget: {},
26
27
  items: {},
27
28
  width: { default: 200 }
28
29
  },
@@ -45,24 +46,24 @@ const ie = { class: "item__content" }, ke = /* @__PURE__ */ X({
45
46
  if (s.key === "ArrowDown") {
46
47
  if (s.preventDefault(), a.value && n !== o) {
47
48
  const d = a.value.querySelector(
48
- V.map((g) => `#${i} ~ ${g}`).join(",")
49
+ V.map((w) => `#${i} ~ ${w}`).join(",")
49
50
  );
50
51
  d && d instanceof HTMLElement && d.focus();
51
52
  }
52
53
  } else if (s.key === "ArrowUp") {
53
54
  if (s.preventDefault(), a.value && n !== e) {
54
- const d = I(r.items, (E, D) => D < n && !E.disabled), k = Array.from(
55
+ const d = I(r.items, (E, T) => T < n && !E.disabled), k = Array.from(
55
56
  a.value.querySelectorAll(".bb-dropdown__item")
56
57
  )[d];
57
58
  k && k instanceof HTMLElement && k.focus();
58
59
  }
59
60
  } else if (s.key === "Tab") {
60
61
  if (n === o && !s.shiftKey) {
61
- const d = V.join(","), g = Array.from(
62
+ const d = V.join(","), w = Array.from(
62
63
  document.querySelectorAll(d)
63
- ), k = g.findIndex(
64
- (D) => D.id === u
65
- ), E = g[k + 1];
64
+ ), k = w.findIndex(
65
+ (T) => T.id === u
66
+ ), E = w[k + 1];
66
67
  if (E) E instanceof HTMLElement && (s.preventDefault(), b(), E.focus());
67
68
  else return;
68
69
  } else if (n === e && s.shiftKey) {
@@ -143,13 +144,13 @@ const ie = { class: "item__content" }, ke = /* @__PURE__ */ X({
143
144
  [`bb-dropdown--${r.theme}`]: r.theme
144
145
  }
145
146
  }));
146
- return (e, o) => ($(), T("span", B({ class: "bb-dropdown" }, J.value), [
147
+ return (e, o) => ($(), D("span", B({ class: "bb-dropdown" }, J.value), [
147
148
  H("span", {
148
149
  ref_key: "wrapper",
149
150
  ref: v,
150
151
  class: "bb-dropdown__wrapper"
151
152
  }, [
152
- w(e.$slots, "activator", Y(Z({
153
+ g(e.$slots, "activator", Y(Z({
153
154
  props: {
154
155
  "aria-expanded": l.value,
155
156
  "aria-controls": `menu_${h(u)}`,
@@ -179,6 +180,7 @@ const ie = { class: "item__content" }, ke = /* @__PURE__ */ X({
179
180
  open: l.value,
180
181
  padding: e.padding,
181
182
  placement: e.placement,
183
+ "teleport-target": e.teleportTarget,
182
184
  theme: e.theme,
183
185
  "transition-duration": e.transitionDuration,
184
186
  wrapper: v.value
@@ -190,7 +192,7 @@ const ie = { class: "item__content" }, ke = /* @__PURE__ */ X({
190
192
  class: "bb-dropdown__items-container",
191
193
  style: x({ width: `${e.width}px` })
192
194
  }, [
193
- w(e.$slots, "prepend", {
195
+ g(e.$slots, "prepend", {
194
196
  closed: f.value,
195
197
  closing: p.value,
196
198
  disabled: e.disabled,
@@ -198,10 +200,10 @@ const ie = { class: "item__content" }, ke = /* @__PURE__ */ X({
198
200
  opening: c.value,
199
201
  placement: e.placement
200
202
  }),
201
- ($(!0), T(K, null, ee(m.value, (t, n) => ($(), T(K, {
203
+ ($(!0), D(K, null, ee(m.value, (t, n) => ($(), D(K, {
202
204
  key: t.key
203
205
  }, [
204
- w(e.$slots, "item:prepend", {
206
+ g(e.$slots, "item:prepend", {
205
207
  closed: f.value,
206
208
  closing: p.value,
207
209
  disabled: t.disabled,
@@ -222,7 +224,7 @@ const ie = { class: "item__content" }, ke = /* @__PURE__ */ X({
222
224
  ref_for: !0
223
225
  }, t), {
224
226
  default: O(() => [
225
- w(e.$slots, t.key, {
227
+ g(e.$slots, t.key, {
226
228
  closed: f.value,
227
229
  closing: p.value,
228
230
  disabled: t.disabled,
@@ -233,7 +235,7 @@ const ie = { class: "item__content" }, ke = /* @__PURE__ */ X({
233
235
  placement: e.placement,
234
236
  text: t.text
235
237
  }, () => [
236
- w(e.$slots, "item", {
238
+ g(e.$slots, "item", {
237
239
  closed: f.value,
238
240
  closing: p.value,
239
241
  disabled: t.disabled,
@@ -260,7 +262,7 @@ const ie = { class: "item__content" }, ke = /* @__PURE__ */ X({
260
262
  ]),
261
263
  _: 2
262
264
  }, 1040, ["class"]),
263
- w(e.$slots, "item:append", {
265
+ g(e.$slots, "item:append", {
264
266
  closed: f.value,
265
267
  closing: p.value,
266
268
  disabled: t.disabled,
@@ -272,7 +274,7 @@ const ie = { class: "item__content" }, ke = /* @__PURE__ */ X({
272
274
  text: t.text
273
275
  })
274
276
  ], 64))), 128)),
275
- w(e.$slots, "append", {
277
+ g(e.$slots, "append", {
276
278
  closed: f.value,
277
279
  closing: p.value,
278
280
  disabled: e.disabled,
@@ -283,7 +285,7 @@ const ie = { class: "item__content" }, ke = /* @__PURE__ */ X({
283
285
  ], 4)
284
286
  ]),
285
287
  _: 3
286
- }, 8, ["arrow-padding", "container-attributes", "eager", "offset", "open", "padding", "placement", "theme", "transition-duration", "wrapper"])
288
+ }, 8, ["arrow-padding", "container-attributes", "eager", "offset", "open", "padding", "placement", "teleport-target", "theme", "transition-duration", "wrapper"])
287
289
  ], 16));
288
290
  }
289
291
  });
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 "./index266.js";
2
+ import { findInTree as ae } from "./index267.js";
3
3
  import { useId as re } from "./index8.js";
4
4
  import oe from "./index128.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("./index265.js")).default);
56
+ b || (b = (await import("./index266.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 "./index212.js";
2
+ import { throttle as c } from "./index241.js";
3
3
  const M = /* @__PURE__ */ h({
4
4
  __name: "BbIntersection",
5
5
  props: {
package/dist/index84.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as se, ref as l, useAttrs as ae, computed as u, getCurrentInstance as ne, nextTick as ie, onBeforeUnmount as O, onMounted as re, watch as ue, openBlock as g, createBlock as ce, withCtx as de, createElementVNode as s, mergeProps as S, createElementBlock as z, renderSlot as n, createTextVNode as fe, toDisplayString as A, unref as ve, createCommentVNode as $ } from "vue";
2
- import { useFocusTrap as pe } from "./index213.js";
2
+ import { useFocusTrap as pe } from "./index227.js";
3
3
  import { useId as E } from "./index8.js";
4
4
  import { wait as H } from "./index130.js";
5
- import { useModalsState as b } from "./index215.js";
6
- import be from "./index216.js";
5
+ import { useModalsState as b } from "./index242.js";
6
+ import be from "./index229.js";
7
7
  import { useMobile as me } from "./index9.js";
8
8
  import { useLocale as ye } from "./index217.js";
9
9
  const he = ["inert"], ge = { class: "bb-offcanvas-close" }, _e = ["aria-label"], Te = /* @__PURE__ */ se({
package/dist/index86.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as E, computed as h, ref as g, onMounted as P, onBeforeUnmount as W, openBlock as k, createElementBlock as V, normalizeClass as $, createElementVNode as i, createVNode as S, unref as v, withCtx as w, renderSlot as c, toDisplayString as m, Fragment as R, renderList as F, nextTick as x } from "vue";
2
- import { debounce as T } from "./index267.js";
2
+ import { debounce as T } from "./index269.js";
3
3
  /* empty css */
4
4
  /* empty css */
5
5
  import z from "./index13.js";
package/dist/index88.js CHANGED
@@ -1,15 +1,15 @@
1
- import { defineComponent as O, ref as n, computed as v, openBlock as y, createElementBlock as S, mergeProps as F, createElementVNode as c, renderSlot as k, normalizeProps as H, guardReactiveProps as V, createVNode as q, withCtx as _, createBlock as I, toDisplayString as W, unref as z, createCommentVNode as A, nextTick as R } from "vue";
2
- import { useFocusTrap as j } from "./index213.js";
1
+ import { defineComponent as O, ref as n, computed as v, openBlock as y, createElementBlock as S, mergeProps as F, createElementVNode as p, renderSlot as k, normalizeProps as H, guardReactiveProps as V, createVNode as q, withCtx as T, createBlock as I, toDisplayString as W, unref as z, createCommentVNode as A, nextTick as R } from "vue";
2
+ import { useFocusTrap as j } from "./index227.js";
3
3
  import { useId as G } from "./index8.js";
4
4
  import { useIntersectionObserver as J } from "./index132.js";
5
- import { waitFor as K } from "./index214.js";
5
+ import { waitFor as K } from "./index228.js";
6
6
  import Q from "./index13.js";
7
7
  /* empty css */
8
- import U from "./index263.js";
8
+ import U from "./index264.js";
9
9
  /* empty css */
10
10
  import { useLocale as X } from "./index217.js";
11
- import { useDebounceFn as Y } from "./index205.js";
12
- const Z = { class: "bb-popover__close-label sr-only" }, pe = /* @__PURE__ */ O({
11
+ import { useDebounceFn as Y } from "./index206.js";
12
+ const Z = { class: "bb-popover__close-label sr-only" }, ce = /* @__PURE__ */ O({
13
13
  __name: "BbPopover",
14
14
  props: {
15
15
  arrowPadding: { default: 10 },
@@ -23,12 +23,13 @@ const Z = { class: "bb-popover__close-label sr-only" }, pe = /* @__PURE__ */ O({
23
23
  showClose: { type: Boolean, default: !0 },
24
24
  theme: { default: "default" },
25
25
  transitionDuration: { default: 150 },
26
+ teleportTarget: {},
26
27
  focusTarget: {},
27
28
  width: {}
28
29
  },
29
30
  emits: ["shown", "hidden"],
30
- setup($, { expose: C, emit: T }) {
31
- const o = $, s = T, { t: B } = X(), { id: L } = G(), p = `bbp_${L.value}`, r = n(), l = n(), { activate: P, deactivate: m } = j(l, {
31
+ setup(_, { expose: $, emit: C }) {
32
+ const t = _, s = C, { t: B } = X(), { id: L } = G(), c = `bbp_${L.value}`, r = n(), l = n(), { activate: P, deactivate: m } = j(l, {
32
33
  /**
33
34
  * This traps all clicks outside so we are pressing
34
35
  * the trigger we just allow and process that in its
@@ -38,8 +39,8 @@ const Z = { class: "bb-popover__close-label sr-only" }, pe = /* @__PURE__ */ O({
38
39
  */
39
40
  clickOutsideDeactivates: (e) => {
40
41
  var h;
41
- const t = e.target;
42
- return t instanceof HTMLElement && (h = r.value) != null && h.contains(t) || (i(), s("hidden")), !0;
42
+ const o = e.target;
43
+ return o instanceof HTMLElement && (h = r.value) != null && h.contains(o) || (i(), s("hidden")), !0;
43
44
  },
44
45
  escapeDeactivates: () => (R(async () => {
45
46
  await i(), u(), s("hidden");
@@ -59,8 +60,8 @@ const Z = { class: "bb-popover__close-label sr-only" }, pe = /* @__PURE__ */ O({
59
60
  );
60
61
  const D = v(() => ({
61
62
  class: {
62
- "bb-popover--block": o.block,
63
- [`bb-popover--${o.theme}`]: !0
63
+ "bb-popover--block": t.block,
64
+ [`bb-popover--${t.theme}`]: !0
64
65
  }
65
66
  })), N = n(!1), d = n(!1), a = n(!1), b = n(!1), g = n(!0), E = async () => {
66
67
  N.value = !0, await K(() => !!l.value), a.value = !0;
@@ -71,53 +72,53 @@ const Z = { class: "bb-popover__close-label sr-only" }, pe = /* @__PURE__ */ O({
71
72
  await i(), u(), s("hidden");
72
73
  return;
73
74
  }
74
- if (d.value || o.disabled) return;
75
+ if (d.value || t.disabled) return;
75
76
  await E();
76
- let e = o.focusTarget ?? ".bb-popover__close";
77
+ let e = t.focusTarget ?? ".bb-popover__close";
77
78
  P({
78
79
  onPostActivate: Y(() => {
79
80
  if (l.value) {
80
- const t = l.value.querySelector(e);
81
- t instanceof HTMLElement && (t.focus(), s("shown"));
81
+ const o = l.value.querySelector(e);
82
+ o instanceof HTMLElement && (o.focus(), s("shown"));
82
83
  }
83
84
  }, 150)
84
85
  });
85
86
  }, u = () => {
86
- var t;
87
- const e = (t = r.value) == null ? void 0 : t.querySelector(`[aria-controls=popover_${p}]`);
87
+ var o;
88
+ const e = (o = r.value) == null ? void 0 : o.querySelector(`[aria-controls=popover_${c}]`);
88
89
  e instanceof HTMLElement && e.focus({ preventScroll: !0 });
89
90
  }, f = async () => {
90
91
  m(), await i(), u(), s("hidden");
91
92
  }, M = v(() => {
92
- if (o.width) {
93
+ if (t.width) {
93
94
  let e;
94
- if (typeof o.width == "string" && Number.isNaN(Number(o.width)))
95
- if (o.width.includes("%")) {
95
+ if (typeof t.width == "string" && Number.isNaN(Number(t.width)))
96
+ if (t.width.includes("%")) {
96
97
  if (!r.value) return;
97
- e = `${r.value.clientWidth * (+o.width.replace("%", "") / 100)}`;
98
+ e = `${r.value.clientWidth * (+t.width.replace("%", "") / 100)}`;
98
99
  } else
99
- e = o.width;
100
+ e = t.width;
100
101
  else
101
- e = `${o.width}`;
102
+ e = `${t.width}`;
102
103
  return `${e}px`;
103
104
  }
104
105
  });
105
- return C({
106
+ return $({
106
107
  open: w,
107
108
  close: f,
108
109
  closed: v(() => !a.value)
109
- }), (e, t) => (y(), S("span", F({ class: "bb-popover" }, D.value), [
110
- c("span", {
110
+ }), (e, o) => (y(), S("span", F({ class: "bb-popover" }, D.value), [
111
+ p("span", {
111
112
  ref_key: "wrapper",
112
113
  ref: r,
113
114
  class: "bb-popover__wrapper"
114
115
  }, [
115
116
  k(e.$slots, "activator", H(V({
116
117
  props: {
117
- "aria-controls": `popover_${p}`,
118
+ "aria-controls": `popover_${c}`,
118
119
  "aria-expanded": a.value,
119
120
  onClick: w,
120
- id: p,
121
+ id: c,
121
122
  disabled: !!e.disabled
122
123
  },
123
124
  closed: g.value,
@@ -132,7 +133,7 @@ const Z = { class: "bb-popover__close-label sr-only" }, pe = /* @__PURE__ */ O({
132
133
  "arrow-padding": e.arrowPadding,
133
134
  "base-class": "bb-popover",
134
135
  "container-attributes": {
135
- id: `popover_${p}`,
136
+ id: `popover_${c}`,
136
137
  style: { width: M.value }
137
138
  },
138
139
  eager: e.eager,
@@ -140,12 +141,13 @@ const Z = { class: "bb-popover__close-label sr-only" }, pe = /* @__PURE__ */ O({
140
141
  open: a.value,
141
142
  padding: e.padding,
142
143
  placement: e.placement,
144
+ "teleport-target": e.teleportTarget,
143
145
  theme: e.theme,
144
146
  "transition-duration": e.transitionDuration,
145
147
  wrapper: r.value
146
148
  }, {
147
- default: _(() => [
148
- c("div", {
149
+ default: T(() => [
150
+ p("div", {
149
151
  ref_key: "content",
150
152
  ref: l,
151
153
  class: "bb-popover__content"
@@ -155,14 +157,14 @@ const Z = { class: "bb-popover__close-label sr-only" }, pe = /* @__PURE__ */ O({
155
157
  class: "bb-popover__close",
156
158
  onClick: f
157
159
  }, {
158
- default: _(() => [
159
- c("span", Z, W(e.closeLabel || z(B)("common.closeLabel").value), 1),
160
- t[0] || (t[0] = c("svg", {
160
+ default: T(() => [
161
+ p("span", Z, W(e.closeLabel || z(B)("common.closeLabel").value), 1),
162
+ o[0] || (o[0] = p("svg", {
161
163
  fill: "none",
162
164
  viewBox: "0 0 24 24",
163
165
  xmlns: "http://www.w3.org/2000/svg"
164
166
  }, [
165
- c("path", {
167
+ p("path", {
166
168
  d: "M23 23L1 1M23 1L1 23",
167
169
  stroke: "currentColor",
168
170
  "stroke-linecap": "round",
@@ -184,10 +186,10 @@ const Z = { class: "bb-popover__close-label sr-only" }, pe = /* @__PURE__ */ O({
184
186
  ], 512)
185
187
  ]),
186
188
  _: 3
187
- }, 8, ["arrow-padding", "container-attributes", "eager", "offset", "open", "padding", "placement", "theme", "transition-duration", "wrapper"])
189
+ }, 8, ["arrow-padding", "container-attributes", "eager", "offset", "open", "padding", "placement", "teleport-target", "theme", "transition-duration", "wrapper"])
188
190
  ], 16));
189
191
  }
190
192
  });
191
193
  export {
192
- pe as default
194
+ ce as default
193
195
  };
package/dist/index90.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as r, computed as a, openBlock as l, createElementBlock as s, normalizeClass as m, createElementVNode as n, normalizeStyle as c } from "vue";
2
- import { clamp as p } from "./index206.js";
2
+ import { clamp as p } from "./index205.js";
3
3
  import { getAsPercentageBetween as i } from "./index131.js";
4
4
  const _ = /* @__PURE__ */ r({
5
5
  __name: "BbProgress",