bitboss-ui 2.0.167 → 2.0.169

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 (183) hide show
  1. package/dist/components/BbDropdown/BbDropdown.vue.d.ts +4 -4
  2. package/dist/components/BbPopover/BbPopover.vue.d.ts +4 -4
  3. package/dist/components/BbTooltip/BbTooltip.vue.d.ts +2 -2
  4. package/dist/index106.js +7 -7
  5. package/dist/index111.js +1 -1
  6. package/dist/index113.js +1 -1
  7. package/dist/index121.js +9 -9
  8. package/dist/index129.js +2 -2
  9. package/dist/index13.js +1 -1
  10. package/dist/index131.js +8 -8
  11. package/dist/index133.js +1 -1
  12. package/dist/index15.js +8 -8
  13. package/dist/index17.js +3 -3
  14. package/dist/index19.js +8 -8
  15. package/dist/index209.js +66 -4
  16. package/dist/index21.js +16 -16
  17. package/dist/index211.js +13 -20
  18. package/dist/index212.js +40 -93
  19. package/dist/index213.js +8 -0
  20. package/dist/index214.js +7 -200
  21. package/dist/index215.js +17 -0
  22. package/dist/index216.js +12 -65
  23. package/dist/index217.js +7 -0
  24. package/dist/index218.js +5 -13
  25. package/dist/index219.js +5 -13
  26. package/dist/index220.js +5 -5
  27. package/dist/index221.js +5 -5
  28. package/dist/index222.js +2 -2
  29. package/dist/index223.js +2 -5
  30. package/dist/index224.js +2 -5
  31. package/dist/index225.js +20 -5
  32. package/dist/index226.js +94 -5
  33. package/dist/index228.js +2 -2
  34. package/dist/index229.js +9 -8
  35. package/dist/index23.js +17 -17
  36. package/dist/index230.js +30 -246
  37. package/dist/index231.js +4 -52
  38. package/dist/index232.js +194 -38
  39. package/dist/index234.js +2 -60
  40. package/dist/index235.js +2 -6
  41. package/dist/index236.js +4 -7
  42. package/dist/index237.js +2 -15
  43. package/dist/index238.js +2 -34
  44. package/dist/index239.js +3 -86
  45. package/dist/index240.js +7 -0
  46. package/dist/index241.js +5 -29
  47. package/dist/index242.js +8 -17
  48. package/dist/index243.js +248 -49
  49. package/dist/index244.js +52 -15
  50. package/dist/index245.js +44 -12
  51. package/dist/index246.js +5 -16
  52. package/dist/index247.js +60 -5
  53. package/dist/index248.js +86 -2
  54. package/dist/index25.js +5 -5
  55. package/dist/index250.js +28 -8
  56. package/dist/index251.js +15 -17
  57. package/dist/index252.js +14 -125
  58. package/dist/index253.js +51 -4
  59. package/dist/index254.js +15 -106
  60. package/dist/index255.js +14 -0
  61. package/dist/index256.js +3 -100
  62. package/dist/index257.js +108 -0
  63. package/dist/index259.js +83 -211
  64. package/dist/index261.js +18 -2
  65. package/dist/index262.js +128 -2
  66. package/dist/index263.js +12 -2
  67. package/dist/index264.js +228 -3
  68. package/dist/index265.js +353 -162
  69. package/dist/index266.js +3 -2
  70. package/dist/index269.js +174 -6
  71. package/dist/index27.js +1 -1
  72. package/dist/index270.js +8 -10
  73. package/dist/index271.js +11 -101
  74. package/dist/index272.js +103 -0
  75. package/dist/index274.js +23 -6
  76. package/dist/index275.js +6 -16
  77. package/dist/index276.js +16 -3
  78. package/dist/index277.js +1 -1
  79. package/dist/index280.js +5 -67
  80. package/dist/index281.js +67 -5
  81. package/dist/index282.js +1 -1
  82. package/dist/index283.js +1 -1
  83. package/dist/index284.js +3 -471
  84. package/dist/index286.js +7 -3
  85. package/dist/index287.js +471 -3
  86. package/dist/index288.js +4 -0
  87. package/dist/index289.js +6 -6
  88. package/dist/index29.js +2 -2
  89. package/dist/index290.js +11 -7
  90. package/dist/index291.js +3 -10
  91. package/dist/index292.js +2 -280
  92. package/dist/index293.js +280 -2
  93. package/dist/index294.js +2 -16
  94. package/dist/index295.js +125 -2
  95. package/dist/index296.js +2 -16
  96. package/dist/index297.js +16 -2
  97. package/dist/index298.js +2 -19
  98. package/dist/index299.js +16 -2
  99. package/dist/index300.js +2 -15
  100. package/dist/index301.js +19 -2
  101. package/dist/index302.js +2 -19
  102. package/dist/index303.js +15 -2
  103. package/dist/index304.js +2 -27
  104. package/dist/index305.js +3 -2
  105. package/dist/index306.js +200 -2
  106. package/dist/index307.js +3 -2
  107. package/dist/index308.js +4 -2
  108. package/dist/index309.js +28 -2
  109. package/dist/index31.js +2 -2
  110. package/dist/index310.js +5 -27
  111. package/dist/index311.js +3 -22
  112. package/dist/index312.js +19 -0
  113. package/dist/index313.js +5 -200
  114. package/dist/index314.js +18 -3
  115. package/dist/index315.js +2 -2
  116. package/dist/index316.js +26 -5
  117. package/dist/index317.js +2 -2
  118. package/dist/index318.js +2 -3
  119. package/dist/index319.js +2 -17
  120. package/dist/index320.js +2 -125
  121. package/dist/index321.js +2 -2
  122. package/dist/index322.js +21 -128
  123. package/dist/index324.js +1 -1
  124. package/dist/index325.js +3 -2
  125. package/dist/index326.js +129 -4
  126. package/dist/index327.js +2 -382
  127. package/dist/index328.js +369 -113
  128. package/dist/index329.js +126 -5
  129. package/dist/index33.js +8 -8
  130. package/dist/index330.js +5 -3
  131. package/dist/index331.js +3 -5
  132. package/dist/index335.js +2 -8
  133. package/dist/index336.js +6 -5
  134. package/dist/index337.js +228 -8
  135. package/dist/index338.js +5 -7
  136. package/dist/index339.js +7 -32
  137. package/dist/index340.js +6 -28
  138. package/dist/index341.js +10 -0
  139. package/dist/index342.js +92 -57
  140. package/dist/index343.js +32 -57
  141. package/dist/index344.js +28 -5
  142. package/dist/index346.js +47 -2
  143. package/dist/index347.js +6 -46
  144. package/dist/index348.js +18 -6
  145. package/dist/index349.js +57 -18
  146. package/dist/index35.js +4 -4
  147. package/dist/index350.js +57 -92
  148. package/dist/index352.js +1 -1
  149. package/dist/index353.js +1 -1
  150. package/dist/index354.js +479 -45
  151. package/dist/index355.js +2 -481
  152. package/dist/index356.js +47 -2
  153. package/dist/index37.js +22 -22
  154. package/dist/index39.js +4 -4
  155. package/dist/index41.js +2 -2
  156. package/dist/index43.js +8 -8
  157. package/dist/index45.js +8 -8
  158. package/dist/index47.js +2 -2
  159. package/dist/index49.js +3 -3
  160. package/dist/index53.js +1 -1
  161. package/dist/index55.js +1 -1
  162. package/dist/index57.js +2 -2
  163. package/dist/index61.js +1 -1
  164. package/dist/index67.js +1 -1
  165. package/dist/index79.js +18 -18
  166. package/dist/index81.js +1 -1
  167. package/dist/index83.js +2 -2
  168. package/dist/index85.js +1 -1
  169. package/dist/index87.js +1 -1
  170. package/dist/index90.js +4 -4
  171. package/dist/index92.js +2 -2
  172. package/dist/index94.js +17 -17
  173. package/package.json +1 -1
  174. package/dist/index210.js +0 -43
  175. package/dist/index227.js +0 -5
  176. package/dist/index233.js +0 -7
  177. package/dist/index249.js +0 -4
  178. package/dist/index258.js +0 -14
  179. package/dist/index260.js +0 -370
  180. package/dist/index273.js +0 -25
  181. package/dist/index285.js +0 -5
  182. package/dist/index323.js +0 -5
  183. package/dist/index345.js +0 -230
package/dist/index49.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as V, ref as h, computed as v, onMounted as B, onBeforeUnmount as M, watch as g, createElementBlock as i, openBlock as r, Fragment as w, createVNode as m, createElementVNode as $, normalizeClass as C, withCtx as n, unref as q, mergeProps as b, renderSlot as d } from "vue";
2
- import E from "./index216.js";
2
+ import E from "./index209.js";
3
3
  /* empty css */
4
- import I from "./index218.js";
4
+ import I from "./index211.js";
5
5
  import { isNotNil as N } from "./index140.js";
6
- import { MaskInput as z } from "./index265.js";
6
+ import { MaskInput as z } from "./index269.js";
7
7
  const D = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus", "disabled", "inputmode", "name", "placeholder", "readonly", "required", "type"], F = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus", "disabled", "inputmode", "name", "placeholder", "readonly", "required", "type", "value"], U = /* @__PURE__ */ V({
8
8
  __name: "BaseTextInput",
9
9
  props: {
package/dist/index53.js CHANGED
@@ -3,7 +3,7 @@ import B from "./index69.js";
3
3
  /* empty css */
4
4
  import L from "./index85.js";
5
5
  /* empty css */
6
- import { useLocale as g } from "./index219.js";
6
+ import { useLocale as g } from "./index216.js";
7
7
  const $ = {
8
8
  class: "bb-alert__inner-container",
9
9
  role: "alert"
package/dist/index55.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as b, computed as z, ref as o, onMounted as g, createElementBlock as l, openBlock as i, normalizeProps as _, guardReactiveProps as h, renderSlot as k } from "vue";
2
- import { isCssColor as y } from "./index261.js";
2
+ import { isCssColor as y } from "./index235.js";
3
3
  import { wait as C } from "./index135.js";
4
4
  const w = ["alt", "sizes", "src", "srcset"], B = {
5
5
  key: 1,
package/dist/index57.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as p, useSlots as d, computed as s, createElementBlock as m, openBlock as u, normalizeClass as g, createElementVNode as n, renderSlot as r, mergeProps as f, createTextVNode as _, toDisplayString as y } from "vue";
2
- import { isCssColor as l } from "./index261.js";
3
- import { isNil as B } from "./index263.js";
2
+ import { isCssColor as l } from "./index235.js";
3
+ import { isNil as B } from "./index238.js";
4
4
  const C = { class: "bb-badge__wrapper" }, h = { class: "bb-badge__content-inner" }, N = /* @__PURE__ */ p({
5
5
  __name: "BbBadge",
6
6
  props: {
package/dist/index61.js CHANGED
@@ -9,7 +9,7 @@ import T from "./index113.js";
9
9
  /* empty css */
10
10
  import { pickBy as W } from "./index267.js";
11
11
  import { noop as w } from "./index268.js";
12
- import { useLocale as D } from "./index219.js";
12
+ import { useLocale as D } from "./index216.js";
13
13
  const E = {
14
14
  key: 2,
15
15
  class: "bb-button__loading-label sr-only"
package/dist/index67.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as i, createElementBlock as o, openBlock as a, createElementVNode as t, createCommentVNode as p, renderSlot as b, createTextVNode as m, toDisplayString as u, withModifiers as d, unref as _ } from "vue";
2
- import { useLocale as f } from "./index219.js";
2
+ import { useLocale as f } from "./index216.js";
3
3
  const h = { class: "bb-chip" }, L = { class: "bb-chip__content" }, k = ["aria-label"], B = /* @__PURE__ */ i({
4
4
  __name: "BbChip",
5
5
  props: {
package/dist/index79.js CHANGED
@@ -1,16 +1,16 @@
1
1
  import { defineComponent as U, computed as V, useTemplateRef as q, ref as F, createBlock as h, openBlock as b, normalizeClass as W, withCtx as L, createElementBlock as T, createCommentVNode as D, unref as p, normalizeStyle as G, renderSlot as v, Fragment as A, renderList as J, createVNode as Q, mergeProps as X, createElementVNode as Y, toDisplayString as Z, normalizeProps as x, guardReactiveProps as ee } from "vue";
2
- import { findRightIndex as _ } from "./index269.js";
2
+ import { findRightIndex as _ } from "./index270.js";
3
3
  import { useId as te } from "./index8.js";
4
4
  import { useIntersectionObserver as oe } from "./index137.js";
5
- import { useUntil as ne } from "./index270.js";
5
+ import { useUntil as ne } from "./index271.js";
6
6
  import { wait as ae } from "./index135.js";
7
7
  import le from "./index13.js";
8
8
  /* empty css */
9
9
  import B from "./index85.js";
10
10
  /* empty css */
11
- import se from "./index271.js";
11
+ import se from "./index272.js";
12
12
  /* empty css */
13
- import O from "./index273.js";
13
+ import O from "./index274.js";
14
14
  const ie = ["id", "aria-labelledby", "inert"], re = { class: "item__content" }, $e = /* @__PURE__ */ U({
15
15
  __name: "BbDropdown",
16
16
  props: {
@@ -28,20 +28,20 @@ const ie = ["id", "aria-labelledby", "inert"], re = { class: "item__content" },
28
28
  items: {},
29
29
  width: { default: 200 }
30
30
  },
31
- setup(K) {
32
- const u = K, d = u.id ?? `bb_${te().id.value}`, c = V(() => {
31
+ setup(R) {
32
+ const u = R, d = u.id ?? `bb_${te().id.value}`, c = V(() => {
33
33
  let e = u.items.findIndex((o) => !o.disabled), a = _(
34
34
  u.items,
35
35
  (o) => !o.disabled
36
36
  );
37
37
  return u.items.map((o, t) => {
38
- const n = `${d}-item-${o.key}`, { onClick: S, ...C } = o, N = async () => {
38
+ const n = `${d}-item-${o.key}`, { onClick: S, ...C } = o, z = async () => {
39
39
  await f();
40
40
  const s = document.querySelector(`#${d}`);
41
41
  if (s) s instanceof HTMLElement && s.focus();
42
42
  else return;
43
43
  S && S();
44
- }, R = (s) => {
44
+ }, N = (s) => {
45
45
  if (s.target instanceof HTMLElement && s.target.dataset.dropdownItem) {
46
46
  if (!i.value) return;
47
47
  if (s.key === "ArrowDown") {
@@ -81,8 +81,8 @@ const ie = ["id", "aria-labelledby", "inert"], re = { class: "item__content" },
81
81
  key: o.key.split(/\W+/g).join("_").toLowerCase(),
82
82
  disabled: C.disabled || u.disabled,
83
83
  id: n,
84
- onClick: N,
85
- onKeydown: R
84
+ onClick: z,
85
+ onKeydown: N
86
86
  };
87
87
  });
88
88
  }), m = q("wrapper"), i = q("content");
@@ -93,9 +93,9 @@ const ie = ["id", "aria-labelledby", "inert"], re = { class: "item__content" },
93
93
  },
94
94
  { threshold: [0, 1] }
95
95
  );
96
- const l = F(!1), g = ne(l), P = () => {
96
+ const l = F(!1), g = ne(l), K = () => {
97
97
  l.value ? f() : E();
98
- }, j = async (e) => {
98
+ }, P = async (e) => {
99
99
  let a = u.items.findIndex((t) => !t.disabled), o = _(
100
100
  u.items,
101
101
  (t) => !t.disabled
@@ -135,13 +135,13 @@ const ie = ["id", "aria-labelledby", "inert"], re = { class: "item__content" },
135
135
  }
136
136
  f();
137
137
  }
138
- }, z = F(!1), E = async () => {
139
- z.value = !0, await ae(50), l.value = !0, document.addEventListener("click", H, { passive: !0 }), document.addEventListener("focusin", I, { passive: !0 }), document.addEventListener("keydown", M, { passive: !0 });
138
+ }, j = F(!1), E = async () => {
139
+ j.value = !0, await ae(50), l.value = !0, document.addEventListener("click", H, { passive: !0 }), document.addEventListener("focusin", I, { passive: !0 }), document.addEventListener("keydown", M, { passive: !0 });
140
140
  }, f = async () => {
141
141
  l.value = !1, document.removeEventListener("click", H), document.removeEventListener("focusin", I), document.removeEventListener("keydown", M);
142
142
  };
143
143
  return (e, a) => (b(), h(se, {
144
- ref_key: "wrapper",
144
+ ref_key: "wrapperRef",
145
145
  ref: m,
146
146
  "arrow-padding": e.arrowPadding,
147
147
  block: e.block,
@@ -160,8 +160,8 @@ const ie = ["id", "aria-labelledby", "inert"], re = { class: "item__content" },
160
160
  "aria-expanded": p(g) ? l.value : !1,
161
161
  "aria-controls": p(g) ? `menu_${p(d)}` : void 0,
162
162
  id: p(d),
163
- onClick: P,
164
- onKeydown: j,
163
+ onClick: K,
164
+ onKeydown: P,
165
165
  disabled: e.disabled
166
166
  },
167
167
  disabled: e.disabled,
@@ -173,7 +173,7 @@ const ie = ["id", "aria-labelledby", "inert"], re = { class: "item__content" },
173
173
  p(g) ? (b(), T("span", {
174
174
  key: 0,
175
175
  id: `menu_${p(d)}`,
176
- ref_key: "content",
176
+ ref_key: "contentRef",
177
177
  ref: i,
178
178
  "aria-labelledby": p(d),
179
179
  "aria-role": "menu",
package/dist/index81.js CHANGED
@@ -9,7 +9,7 @@ import z from "./index85.js";
9
9
  /* empty css */
10
10
  import I from "./index113.js";
11
11
  /* empty css */
12
- import { useLocale as M } from "./index219.js";
12
+ import { useLocale as M } from "./index216.js";
13
13
  const O = { class: "bb-dropdown-button__content" }, R = {
14
14
  key: 1,
15
15
  class: "bb-dropdown-button__loading-label sr-only"
package/dist/index83.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as j, ref as g, watch as x, computed as m, createBlock as G, openBlock as V, 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 "./index275.js";
2
+ import { findInTree as ae } from "./index276.js";
3
3
  import { useId as re } from "./index8.js";
4
4
  import oe from "./index111.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("./index274.js")).default);
56
+ b || (b = (await import("./index275.js")).default);
57
57
  const o = b.getType(r);
58
58
  if (!o)
59
59
  throw new Error(
package/dist/index85.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as v, ref as p, getCurrentInstance as c, onServerPrefetch as w, onBeforeMount as z, inject as _, watch as b, computed as f, createElementBlock as h, openBlock as $, mergeProps as g } from "vue";
2
- import { isCssColor as I } from "./index261.js";
2
+ import { isCssColor as I } from "./index235.js";
3
3
  const B = ["innerHTML"], k = /* @__PURE__ */ v({
4
4
  __name: "BbIcon",
5
5
  props: {
package/dist/index87.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as h, ref as t, onMounted as m, onBeforeUnmount as p, createBlock as g, openBlock as b, resolveDynamicComponent as w, withCtx as _, renderSlot as I } from "vue";
2
- import { throttle as c } from "./index276.js";
2
+ import { throttle as c } from "./index266.js";
3
3
  const M = /* @__PURE__ */ h({
4
4
  __name: "BbIntersection",
5
5
  props: {
package/dist/index90.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as ae, ref as l, useAttrs as ne, computed as u, getCurrentInstance as ie, onBeforeUnmount as A, onMounted as re, watch as ue, createBlock as ce, openBlock as g, withCtx as de, createElementVNode as s, mergeProps as E, createElementBlock as $, createCommentVNode as T, renderSlot as n, createTextVNode as fe, toDisplayString as H, unref as ve, nextTick as pe } from "vue";
2
- import { useFocusTrap as be } from "./index210.js";
2
+ import { useFocusTrap as be } from "./index212.js";
3
3
  import { useId as I } from "./index8.js";
4
4
  import { wait as D } from "./index135.js";
5
- import { useModalsState as b } from "./index236.js";
6
- import me from "./index237.js";
5
+ import { useModalsState as b } from "./index214.js";
6
+ import me from "./index215.js";
7
7
  import { useMobile as ye } from "./index9.js";
8
- import { useLocale as he } from "./index219.js";
8
+ import { useLocale as he } from "./index216.js";
9
9
  const ge = ["inert"], _e = { class: "bb-offcanvas-close" }, ke = ["aria-label"], De = /* @__PURE__ */ ae({
10
10
  __name: "BbOffCanvas",
11
11
  props: {
package/dist/index92.js CHANGED
@@ -3,8 +3,8 @@ import { defineComponent as V, mergeModels as W, useModel as U, computed as d, r
3
3
  /* empty css */
4
4
  import P from "./index13.js";
5
5
  /* empty css */
6
- import { debounce as X } from "./index250.js";
7
- import { useLocale as H } from "./index219.js";
6
+ import { debounce as X } from "./index229.js";
7
+ import { useLocale as H } from "./index216.js";
8
8
  import { useRoute as J } from "./index142.js";
9
9
  const K = ["aria-label"], Q = { class: "bb-pagination__page-label sr-only" }, Y = { class: "bb-pagination__page-label" }, Z = { class: "bb-pagination__page-label" }, ee = { class: "bb-pagination__page-label sr-only" }, ue = /* @__PURE__ */ V({
10
10
  __name: "BbPagination",
package/dist/index94.js CHANGED
@@ -1,13 +1,13 @@
1
- import { defineComponent as V, useTemplateRef as b, ref as D, computed as w, createBlock as h, openBlock as c, normalizeClass as M, withCtx as u, createElementBlock as z, createCommentVNode as g, unref as k, renderSlot as y, createElementVNode as f, toDisplayString as O, normalizeProps as S, guardReactiveProps as H, nextTick as I } from "vue";
2
- import { useId as N } from "./index8.js";
3
- import { useIntersectionObserver as R } from "./index137.js";
4
- import { useLocale as U } from "./index219.js";
5
- import { useUntil as W } from "./index270.js";
1
+ import { defineComponent as R, useTemplateRef as b, ref as V, computed as w, createBlock as h, openBlock as c, normalizeClass as D, withCtx as u, createElementBlock as M, createCommentVNode as g, unref as k, renderSlot as y, createElementVNode as f, toDisplayString as z, normalizeProps as O, guardReactiveProps as S, nextTick as H } from "vue";
2
+ import { useId as I } from "./index8.js";
3
+ import { useIntersectionObserver as N } from "./index137.js";
4
+ import { useLocale as U } from "./index216.js";
5
+ import { useUntil as W } from "./index271.js";
6
6
  import q from "./index13.js";
7
7
  /* empty css */
8
- import A from "./index271.js";
8
+ import A from "./index272.js";
9
9
  /* empty css */
10
- const Z = ["inert"], j = { class: "bb-popover__close-label sr-only" }, oe = /* @__PURE__ */ V({
10
+ const Z = ["inert"], j = { class: "bb-popover__close-label sr-only" }, oe = /* @__PURE__ */ R({
11
11
  __name: "BbPopover",
12
12
  props: {
13
13
  arrowPadding: { default: 10 },
@@ -27,15 +27,15 @@ const Z = ["inert"], j = { class: "bb-popover__close-label sr-only" }, oe = /* @
27
27
  },
28
28
  emits: ["shown", "hidden"],
29
29
  setup(C, { expose: $, emit: L }) {
30
- const a = C, n = L, { t: _ } = U(), { id: B } = N(), i = `bbp_${B.value}`, r = b("wrapper"), d = b("content");
31
- R(
30
+ const a = C, n = L, { t: _ } = U(), { id: B } = I(), i = `bbp_${B.value}`, r = b("wrapper"), d = b("content");
31
+ N(
32
32
  r,
33
33
  async ([{ intersectionRatio: e }]) => {
34
34
  e !== 1 && o.value && (await l(), n("hidden"));
35
35
  },
36
36
  { threshold: [0, 1] }
37
37
  );
38
- const o = D(!1), T = W(o), m = (e) => {
38
+ const o = V(!1), T = W(o), m = (e) => {
39
39
  var t;
40
40
  e.target instanceof HTMLElement && ((t = d.value) != null && t.contains(e.target) || l());
41
41
  }, P = async () => {
@@ -51,7 +51,7 @@ const Z = ["inert"], j = { class: "bb-popover__close-label sr-only" }, oe = /* @
51
51
  if (a.disabled) return;
52
52
  await P();
53
53
  let e = a.focusTarget ?? ".bb-popover__close";
54
- await I();
54
+ await H();
55
55
  const t = (s = d.value) == null ? void 0 : s.querySelector(e);
56
56
  t instanceof HTMLElement && (t.focus(), n("shown"));
57
57
  }, p = async () => {
@@ -67,13 +67,13 @@ const Z = ["inert"], j = { class: "bb-popover__close-label sr-only" }, oe = /* @
67
67
  close: p,
68
68
  closed: w(() => !o.value)
69
69
  }), (e, t) => (c(), h(A, {
70
- ref_key: "wrapper",
70
+ ref_key: "wrapperRef",
71
71
  ref: r,
72
72
  modelValue: o.value,
73
73
  "onUpdate:modelValue": t[0] || (t[0] = (s) => o.value = s),
74
74
  "arrow-padding": e.arrowPadding,
75
75
  block: e.block,
76
- class: M(["bb-popover", {
76
+ class: D(["bb-popover", {
77
77
  [`bb-popover--${e.theme}`]: !0
78
78
  }]),
79
79
  "container-attributes": {
@@ -89,7 +89,7 @@ const Z = ["inert"], j = { class: "bb-popover__close-label sr-only" }, oe = /* @
89
89
  "transition-duration": e.transitionDuration
90
90
  }, {
91
91
  activator: u(() => [
92
- y(e.$slots, "activator", S(H({
92
+ y(e.$slots, "activator", O(S({
93
93
  props: {
94
94
  "aria-controls": `popover_${i}`,
95
95
  "aria-expanded": o.value,
@@ -103,9 +103,9 @@ const Z = ["inert"], j = { class: "bb-popover__close-label sr-only" }, oe = /* @
103
103
  })))
104
104
  ]),
105
105
  default: u(() => [
106
- k(T) ? (c(), z("span", {
106
+ k(T) ? (c(), M("span", {
107
107
  key: 0,
108
- ref_key: "content",
108
+ ref_key: "contentRef",
109
109
  ref: d,
110
110
  class: "bb-popover__content",
111
111
  inert: !o.value
@@ -116,7 +116,7 @@ const Z = ["inert"], j = { class: "bb-popover__close-label sr-only" }, oe = /* @
116
116
  onClick: p
117
117
  }, {
118
118
  default: u(() => [
119
- f("span", j, O(e.closeLabel || k(_)("common.closeLabel").value), 1),
119
+ f("span", j, z(e.closeLabel || k(_)("common.closeLabel").value), 1),
120
120
  t[1] || (t[1] = f("svg", {
121
121
  fill: "none",
122
122
  viewBox: "0 0 24 24",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bitboss-ui",
3
- "version": "2.0.167",
3
+ "version": "2.0.169",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "scripts": {
package/dist/index210.js DELETED
@@ -1,43 +0,0 @@
1
- import { unrefElement as g } from "./index137.js";
2
- import { toArray as A, notNullish as D, tryOnScopeDispose as y } from "./index206.js";
3
- import { createFocusTrap as F } from "./index284.js";
4
- import { shallowRef as n, computed as T, toValue as i, watch as w } from "vue";
5
- function N(f, a = {}) {
6
- let t;
7
- const { immediate: l, ...p } = a, o = n(!1), r = n(!1), c = (e) => t && t.activate(e), u = (e) => t && t.deactivate(e), v = () => {
8
- t && (t.pause(), r.value = !0);
9
- }, m = () => {
10
- t && (t.unpause(), r.value = !1);
11
- }, h = T(() => {
12
- const e = i(f);
13
- return A(e).map((d) => {
14
- const s = i(d);
15
- return typeof s == "string" ? s : g(s);
16
- }).filter(D);
17
- });
18
- return w(
19
- h,
20
- (e) => {
21
- e.length && (t = F(e, {
22
- ...p,
23
- onActivate() {
24
- o.value = !0, a.onActivate && a.onActivate();
25
- },
26
- onDeactivate() {
27
- o.value = !1, a.onDeactivate && a.onDeactivate();
28
- }
29
- }), l && c());
30
- },
31
- { flush: "post" }
32
- ), y(() => u()), {
33
- hasFocus: o,
34
- isPaused: r,
35
- activate: c,
36
- deactivate: u,
37
- pause: v,
38
- unpause: m
39
- };
40
- }
41
- export {
42
- N as useFocusTrap
43
- };
package/dist/index227.js DELETED
@@ -1,5 +0,0 @@
1
- import { hash as o } from "./index310.js";
2
- const t = (r, h = "bb") => `${h}${o(r)}`;
3
- export {
4
- t as hash
5
- };
package/dist/index233.js DELETED
@@ -1,7 +0,0 @@
1
- import o from "./index311.js";
2
- /* empty css */
3
- import t from "./index289.js";
4
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-8c6b13bd"]]);
5
- export {
6
- m as default
7
- };
package/dist/index249.js DELETED
@@ -1,4 +0,0 @@
1
- const n = (t) => t == null || Number.isNaN(t) || typeof t == "object" && Object.keys(t).length === 0 || typeof t == "string" && t.trim().length === 0 || t instanceof Map && [...t.keys()].length === 0 || t instanceof Set && [...t.keys()].length === 0;
2
- export {
3
- n as isEmpty
4
- };
package/dist/index258.js DELETED
@@ -1,14 +0,0 @@
1
- import { ref as t } from "vue";
2
- const n = () => {
3
- const e = t([]);
4
- return { array: e, set: (...r) => {
5
- e.value = r;
6
- }, add: (...r) => {
7
- e.value.push(...r);
8
- }, remove: (r) => {
9
- e.value = e.value.filter(r);
10
- } };
11
- };
12
- export {
13
- n as useArray
14
- };