bitboss-ui 2.0.171 → 2.0.173

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 (192) hide show
  1. package/dist/components/BaseColorInput/BaseColorInput.vue.d.ts +97 -7
  2. package/dist/components/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +2 -2
  3. package/dist/components/BbDropdown/BbDropdown.vue.d.ts +28 -8
  4. package/dist/components/BbPopover/BbPopover.vue.d.ts +30 -10
  5. package/dist/components/BbTooltip/BbTooltip.vue.d.ts +28 -8
  6. package/dist/components/CommonPopover.vue.d.ts +8 -4
  7. package/dist/index.css +1 -1
  8. package/dist/index106.js +8 -8
  9. package/dist/index111.js +1 -1
  10. package/dist/index113.js +1 -1
  11. package/dist/index121.js +10 -10
  12. package/dist/index129.js +2 -2
  13. package/dist/index13.js +1 -1
  14. package/dist/index131.js +40 -39
  15. package/dist/index133.js +1 -1
  16. package/dist/index139.js +2 -2
  17. package/dist/index15.js +130 -142
  18. package/dist/index17.js +3 -3
  19. package/dist/index19.js +8 -8
  20. package/dist/index209.js +5 -2
  21. package/dist/index21.js +16 -16
  22. package/dist/index210.js +5 -4
  23. package/dist/index211.js +5 -2
  24. package/dist/index212.js +5 -18
  25. package/dist/index213.js +5 -128
  26. package/dist/index214.js +5 -106
  27. package/dist/index215.js +7 -0
  28. package/dist/index216.js +3 -100
  29. package/dist/index217.js +4 -0
  30. package/dist/index218.js +6 -64
  31. package/dist/index219.js +252 -0
  32. package/dist/index220.js +52 -13
  33. package/dist/index221.js +43 -5
  34. package/dist/index222.js +5 -15
  35. package/dist/index223.js +60 -29
  36. package/dist/index224.js +13 -16
  37. package/dist/index225.js +2 -12
  38. package/dist/index226.js +2 -51
  39. package/dist/index227.js +2 -17
  40. package/dist/index228.js +66 -15
  41. package/dist/index23.js +140 -174
  42. package/dist/index230.js +13 -12
  43. package/dist/index231.js +177 -13
  44. package/dist/index232.js +41 -2
  45. package/dist/index233.js +5 -227
  46. package/dist/index234.js +7 -368
  47. package/dist/index235.js +15 -2
  48. package/dist/index236.js +86 -5
  49. package/dist/index238.js +29 -5
  50. package/dist/index239.js +16 -5
  51. package/dist/index240.js +17 -5
  52. package/dist/index241.js +51 -5
  53. package/dist/index242.js +15 -5
  54. package/dist/index243.js +12 -8
  55. package/dist/index244.js +30 -246
  56. package/dist/index245.js +3 -52
  57. package/dist/index246.js +5 -44
  58. package/dist/index247.js +2 -5
  59. package/dist/index248.js +11 -60
  60. package/dist/index249.js +20 -5
  61. package/dist/index25.js +5 -5
  62. package/dist/index250.js +120 -2
  63. package/dist/index252.js +4 -20
  64. package/dist/index253.js +4 -94
  65. package/dist/index254.js +202 -0
  66. package/dist/index256.js +18 -4
  67. package/dist/index257.js +12 -200
  68. package/dist/index258.js +108 -0
  69. package/dist/index260.js +95 -81
  70. package/dist/index262.js +224 -30
  71. package/dist/index265.js +10 -3
  72. package/dist/index266.js +2 -176
  73. package/dist/index267.js +6 -10
  74. package/dist/index268.js +16 -3
  75. package/dist/index269.js +3 -6
  76. package/dist/index27.js +1 -1
  77. package/dist/index270.js +2 -16
  78. package/dist/index271.js +9 -11
  79. package/dist/index272.js +8 -100
  80. package/dist/index273.js +25 -0
  81. package/dist/index274.js +9 -3
  82. package/dist/index275.js +8 -9
  83. package/dist/index276.js +67 -23
  84. package/dist/index277.js +5 -2
  85. package/dist/index278.js +280 -9
  86. package/dist/index279.js +2 -8
  87. package/dist/index280.js +16 -5
  88. package/dist/index281.js +2 -67
  89. package/dist/index282.js +15 -4
  90. package/dist/index283.js +2 -8
  91. package/dist/index284.js +19 -4
  92. package/dist/index285.js +2 -4
  93. package/dist/index286.js +14 -128
  94. package/dist/index287.js +2 -3
  95. package/dist/index288.js +19 -3
  96. package/dist/index289.js +2 -3
  97. package/dist/index29.js +2 -2
  98. package/dist/index290.js +29 -0
  99. package/dist/index291.js +2 -7
  100. package/dist/index292.js +1 -1
  101. package/dist/index293.js +1 -1
  102. package/dist/index294.js +2 -17
  103. package/dist/index295.js +2 -28
  104. package/dist/index296.js +28 -7
  105. package/dist/index297.js +22 -11
  106. package/dist/index299.js +7 -2
  107. package/dist/index300.js +7 -16
  108. package/dist/index301.js +11 -2
  109. package/dist/index302.js +5 -15
  110. package/dist/index303.js +3 -2
  111. package/dist/index305.js +2 -2
  112. package/dist/index306.js +3 -15
  113. package/dist/index307.js +17 -2
  114. package/dist/index308.js +469 -17
  115. package/dist/index309.js +2 -2
  116. package/dist/index31.js +2 -2
  117. package/dist/index310.js +199 -26
  118. package/dist/index311.js +5 -2
  119. package/dist/index312.js +4 -2
  120. package/dist/index313.js +125 -2
  121. package/dist/index314.js +2 -2
  122. package/dist/index315.js +3 -2
  123. package/dist/index316.js +3 -22
  124. package/dist/{index353.js → index317.js} +1 -1
  125. package/dist/index318.js +3 -125
  126. package/dist/index319.js +2 -2
  127. package/dist/index320.js +4 -470
  128. package/dist/index321.js +8 -3
  129. package/dist/index322.js +5 -3
  130. package/dist/index323.js +3 -381
  131. package/dist/index324.js +700 -125
  132. package/dist/index325.js +354 -2
  133. package/dist/index326.js +58 -3
  134. package/dist/index327.js +2 -6
  135. package/dist/index328.js +32 -199
  136. package/dist/index329.js +28 -5
  137. package/dist/index33.js +8 -8
  138. package/dist/index331.js +7 -354
  139. package/dist/index332.js +17 -56
  140. package/dist/index333.js +58 -3
  141. package/dist/index334.js +58 -5
  142. package/dist/index335.js +6 -46
  143. package/dist/index336.js +47 -2
  144. package/dist/index337.js +128 -32
  145. package/dist/index338.js +369 -28
  146. package/dist/index339.js +10 -0
  147. package/dist/index340.js +6 -58
  148. package/dist/index341.js +7 -57
  149. package/dist/index342.js +227 -6
  150. package/dist/index343.js +92 -7
  151. package/dist/index345.js +3 -8
  152. package/dist/index346.js +482 -5
  153. package/dist/index347.js +128 -6
  154. package/dist/index348.js +46 -18
  155. package/dist/index349.js +431 -223
  156. package/dist/index35.js +4 -4
  157. package/dist/index350.js +125 -91
  158. package/dist/index37.js +230 -240
  159. package/dist/index39.js +2 -2
  160. package/dist/index41.js +2 -2
  161. package/dist/index43.js +8 -8
  162. package/dist/index45.js +8 -8
  163. package/dist/index47.js +2 -2
  164. package/dist/index49.js +3 -3
  165. package/dist/index53.js +1 -1
  166. package/dist/index55.js +1 -1
  167. package/dist/index57.js +1 -1
  168. package/dist/index61.js +3 -3
  169. package/dist/index67.js +1 -1
  170. package/dist/index79.js +106 -112
  171. package/dist/index81.js +1 -1
  172. package/dist/index83.js +2 -2
  173. package/dist/index85.js +1 -1
  174. package/dist/index87.js +1 -1
  175. package/dist/index90.js +4 -4
  176. package/dist/index92.js +2 -2
  177. package/dist/index94.js +56 -56
  178. package/package.json +2 -2
  179. package/dist/components/CommonFloating.vue.d.ts +0 -38
  180. package/dist/index229.js +0 -5
  181. package/dist/index237.js +0 -7
  182. package/dist/index251.js +0 -43
  183. package/dist/index255.js +0 -11
  184. package/dist/index259.js +0 -9
  185. package/dist/index298.js +0 -282
  186. package/dist/index304.js +0 -21
  187. package/dist/index330.js +0 -703
  188. package/dist/index344.js +0 -8
  189. package/dist/index351.js +0 -484
  190. package/dist/index354.js +0 -49
  191. package/dist/index355.js +0 -483
  192. package/dist/index356.js +0 -4
package/dist/index39.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as U, ref as d, computed as h, onMounted as W, watch as Z, createElementBlock as g, openBlock as w, mergeProps as T, renderSlot as f, createElementVNode as c, createCommentVNode as H, Fragment as ee, renderList as ae, normalizeProps as re, guardReactiveProps as te, unref as b, normalizeStyle as F, normalizeClass as I } from "vue";
2
2
  import { clamp as le } from "./index207.js";
3
3
  import { head as O } from "./index263.js";
4
- import { isCssColor as Y } from "./index209.js";
4
+ import { isCssColor as Y } from "./index227.js";
5
5
  import { isNil as P } from "./index264.js";
6
6
  import { isNotNil as ne } from "./index140.js";
7
7
  import { transposeValue as y } from "./index136.js";
8
- import { hash as J } from "./index229.js";
8
+ import { hash as J } from "./index216.js";
9
9
  const oe = { class: "bb-base-slider__slider-container" }, ie = {
10
10
  key: 0,
11
11
  class: "bb-base-slider__ticks-container"
package/dist/index41.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as I, ref as f, computed as n, watch as S, createElementBlock as h, openBlock as y, normalizeProps as r, guardReactiveProps as d, createCommentVNode as A, createElementVNode as l, mergeProps as V, renderSlot as F } from "vue";
2
- import { isCssColor as b } from "./index209.js";
3
- import { when as N } from "./index210.js";
2
+ import { isCssColor as b } from "./index227.js";
3
+ import { when as N } from "./index252.js";
4
4
  const x = { class: "bb-base-switch-container" }, $ = /* @__PURE__ */ I({
5
5
  __name: "BaseSwitch",
6
6
  props: {
package/dist/index43.js CHANGED
@@ -1,15 +1,15 @@
1
1
  import { defineComponent as j, ref as k, toRef as d, createBlock as z, openBlock as G, unref as B, withCtx as s, renderSlot as l, normalizeProps as v, guardReactiveProps as b, createVNode as R, mergeProps as w, createSlots as W } from "vue";
2
2
  import K from "./index41.js";
3
3
  /* empty css */
4
- import N from "./index260.js";
4
+ import N from "./index236.js";
5
5
  /* empty css */
6
- import { useItemsGetter as U } from "./index223.js";
7
- import { useIndexById as T } from "./index227.js";
8
- import { useBaseOptions as q } from "./index226.js";
9
- import { useCoherence as J } from "./index228.js";
10
- import { hash as Q } from "./index229.js";
11
- import { useHashedWatcher as $ } from "./index230.js";
12
- import { usePrefill as X } from "./index224.js";
6
+ import { useItemsGetter as U } from "./index238.js";
7
+ import { useIndexById as T } from "./index240.js";
8
+ import { useBaseOptions as q } from "./index241.js";
9
+ import { useCoherence as J } from "./index242.js";
10
+ import { hash as Q } from "./index216.js";
11
+ import { useHashedWatcher as $ } from "./index243.js";
12
+ import { usePrefill as X } from "./index239.js";
13
13
  const ue = /* @__PURE__ */ j({
14
14
  __name: "BaseSwitchGroup",
15
15
  props: {
package/dist/index45.js CHANGED
@@ -3,17 +3,17 @@ import { defineComponent as Q, ref as u, computed as f, toRef as E, watch as Z,
3
3
  /* empty css */
4
4
  import ae from "./index111.js";
5
5
  /* empty css */
6
- import { last as le } from "./index211.js";
7
- import { useBaseOptions as ne } from "./index226.js";
8
- import { useIndexById as re } from "./index227.js";
9
- import ie from "./index214.js";
6
+ import { last as le } from "./index217.js";
7
+ import { useBaseOptions as ne } from "./index241.js";
8
+ import { useIndexById as re } from "./index240.js";
9
+ import ie from "./index258.js";
10
10
  /* empty css */
11
- import ue from "./index216.js";
11
+ import ue from "./index260.js";
12
12
  /* empty css */
13
- import se from "./index218.js";
13
+ import se from "./index228.js";
14
14
  /* empty css */
15
- import de from "./index220.js";
16
- import { isEmpty as pe } from "./index232.js";
15
+ import de from "./index230.js";
16
+ import { isEmpty as pe } from "./index247.js";
17
17
  const ce = { class: "bb-base-tag__input-container" }, me = ["id", "aria-describedby", "autocomplete", "autofocus", "disabled", "placeholder", "readonly", "required", "onKeydown"], De = /* @__PURE__ */ Q({
18
18
  __name: "BaseTag",
19
19
  props: {
package/dist/index47.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as h, ref as y, computed as u, onMounted as g, watch as B, nextTick as V, createBlock as $, openBlock as k, normalizeClass as C, withCtx as r, createVNode as i, unref as T, createElementVNode as v, mergeProps as x, renderSlot as t } from "vue";
2
- import E from "./index220.js";
3
- import G from "./index218.js";
2
+ import E from "./index230.js";
3
+ import G from "./index228.js";
4
4
  /* empty css */
5
5
  import M from "./index111.js";
6
6
  /* empty css */
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 "./index218.js";
2
+ import E from "./index228.js";
3
3
  /* empty css */
4
- import I from "./index220.js";
4
+ import I from "./index230.js";
5
5
  import { isNotNil as N } from "./index140.js";
6
- import { MaskInput as z } from "./index266.js";
6
+ import { MaskInput as z } from "./index231.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 "./index231.js";
6
+ import { useLocale as g } from "./index224.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 "./index209.js";
2
+ import { isCssColor as y } from "./index227.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,5 +1,5 @@
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 "./index209.js";
2
+ import { isCssColor as l } from "./index227.js";
3
3
  import { isNil as B } from "./index264.js";
4
4
  const C = { class: "bb-badge__wrapper" }, h = { class: "bb-badge__content-inner" }, N = /* @__PURE__ */ p({
5
5
  __name: "BbBadge",
package/dist/index61.js CHANGED
@@ -7,9 +7,9 @@ import p from "./index85.js";
7
7
  /* empty css */
8
8
  import T from "./index113.js";
9
9
  /* empty css */
10
- import { pickBy as W } from "./index267.js";
11
- import { noop as w } from "./index268.js";
12
- import { useLocale as D } from "./index231.js";
10
+ import { pickBy as W } from "./index265.js";
11
+ import { noop as w } from "./index266.js";
12
+ import { useLocale as D } from "./index224.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 "./index231.js";
2
+ import { useLocale as f } from "./index224.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,17 +1,16 @@
1
- import { defineComponent as U, computed as V, ref as g, createBlock as L, openBlock as b, normalizeClass as R, withCtx as T, createElementBlock as D, createCommentVNode as _, unref as p, normalizeStyle as W, renderSlot as v, Fragment as F, renderList as G, createVNode as J, mergeProps as Q, createElementVNode as X, toDisplayString as Y, normalizeProps as Z, guardReactiveProps as x } from "vue";
2
- import { findRightIndex as H } from "./index275.js";
3
- import { useId as ee } from "./index8.js";
4
- import { useIntersectionObserver as te } from "./index137.js";
5
- import { useUntil as oe } from "./index271.js";
6
- import { wait as ne } from "./index135.js";
1
+ import { defineComponent as N, computed as R, ref as g, watch as W, createBlock as h, openBlock as k, unref as f, normalizeClass as G, withCtx as T, createElementVNode as I, normalizeStyle as J, renderSlot as m, createElementBlock as q, Fragment as F, renderList as Q, createVNode as X, mergeProps as Y, createCommentVNode as A, toDisplayString as Z, normalizeProps as x, guardReactiveProps as ee } from "vue";
2
+ import { findRightIndex as D } from "./index272.js";
3
+ import { useId as te } from "./index8.js";
4
+ import { useUntil as ne } from "./index248.js";
5
+ import { wait as oe } from "./index135.js";
7
6
  import ae from "./index13.js";
8
7
  /* empty css */
9
- import A from "./index85.js";
8
+ import B from "./index85.js";
10
9
  /* empty css */
11
- import le from "./index272.js";
10
+ import le from "./index250.js";
12
11
  /* empty css */
13
- import B from "./index276.js";
14
- const se = ["id", "aria-labelledby", "inert"], ie = { class: "item__content" }, Ee = /* @__PURE__ */ U({
12
+ import K from "./index273.js";
13
+ const se = ["id", "aria-labelledby", "inert"], ie = { class: "item__content" }, ge = /* @__PURE__ */ N({
15
14
  __name: "BbDropdown",
16
15
  props: {
17
16
  arrowPadding: { default: 10 },
@@ -29,43 +28,43 @@ const se = ["id", "aria-labelledby", "inert"], ie = { class: "item__content" },
29
28
  width: { default: 200 }
30
29
  },
31
30
  setup(O) {
32
- const u = O, d = u.id ?? `bb_${ee().id.value}`, c = V(() => {
33
- let e = u.items.findIndex((o) => !o.disabled), a = H(
31
+ const u = O, d = u.id ?? `bb_${te().id.value}`, c = R(() => {
32
+ let e = u.items.findIndex((n) => !n.disabled), o = D(
34
33
  u.items,
35
- (o) => !o.disabled
34
+ (n) => !n.disabled
36
35
  );
37
- return u.items.map((o, t) => {
38
- const n = `${d}-item-${o.key}`, { onClick: C, ...q } = o, z = async () => {
39
- await f();
36
+ return u.items.map((n, t) => {
37
+ const a = `${d}-item-${n.key}`, { onClick: _, ...C } = n, j = async () => {
38
+ await p();
40
39
  const s = document.querySelector(`#${d}`);
41
40
  if (s) s instanceof HTMLElement && s.focus();
42
41
  else return;
43
- C && C();
44
- }, N = (s) => {
42
+ _ && _();
43
+ }, z = (s) => {
45
44
  if (s.target instanceof HTMLElement && s.target.dataset.dropdownItem) {
46
45
  if (!i.value) return;
47
46
  if (s.key === "ArrowDown") {
48
- if (s.preventDefault(), i.value && t !== a) {
47
+ if (s.preventDefault(), i.value && t !== o) {
49
48
  const r = i.value.querySelector(
50
- B.map((y) => `#${n} ~ ${y}`).join(",")
49
+ K.map((v) => `#${a} ~ ${v}`).join(",")
51
50
  );
52
51
  r && r instanceof HTMLElement && r.focus();
53
52
  }
54
53
  } else if (s.key === "ArrowUp") {
55
54
  if (s.preventDefault(), i.value && t !== e) {
56
- const r = H(u.items, (k, h) => h < t && !k.disabled), w = Array.from(
55
+ const r = D(u.items, (w, L) => L < t && !w.disabled), y = Array.from(
57
56
  i.value.querySelectorAll(".bb-dropdown__item")
58
57
  )[r];
59
- w && w instanceof HTMLElement && w.focus();
58
+ y && y instanceof HTMLElement && y.focus();
60
59
  }
61
60
  } else if (s.key === "Tab") {
62
- if (t === a && !s.shiftKey) {
63
- const r = B.join(","), y = Array.from(
61
+ if (t === o && !s.shiftKey) {
62
+ const r = K.join(","), v = Array.from(
64
63
  document.querySelectorAll(r)
65
- ), w = y.findIndex(
66
- (h) => h.id === d
67
- ), k = y[w + 1];
68
- if (k) k instanceof HTMLElement && (s.preventDefault(), f(), k.focus());
64
+ ), y = v.findIndex(
65
+ (L) => L.id === d
66
+ ), w = v[y + 1];
67
+ if (w) w instanceof HTMLElement && (s.preventDefault(), p(), w.focus());
69
68
  else return;
70
69
  } else if (t === e && s.shiftKey) {
71
70
  const r = document.querySelector(`#${d}`);
@@ -76,92 +75,88 @@ const se = ["id", "aria-labelledby", "inert"], ie = { class: "item__content" },
76
75
  }
77
76
  };
78
77
  return {
79
- ...q,
80
- original: o,
81
- key: o.key.split(/\W+/g).join("_").toLowerCase(),
82
- disabled: q.disabled || u.disabled,
83
- id: n,
84
- onClick: z,
85
- onKeydown: N
78
+ ...C,
79
+ original: n,
80
+ key: n.key.split(/\W+/g).join("_").toLowerCase(),
81
+ disabled: C.disabled || u.disabled,
82
+ id: a,
83
+ onClick: j,
84
+ onKeydown: z
86
85
  };
87
86
  });
88
- }), m = g(), i = g();
89
- te(
90
- m,
91
- ([{ intersectionRatio: e }]) => {
92
- e !== 1 && l.value && f();
93
- },
94
- { threshold: [0, 1] }
95
- );
96
- const l = g(!1), E = oe(l), K = () => {
97
- l.value ? f() : $();
98
- }, P = async (e) => {
99
- let a = u.items.findIndex((t) => !t.disabled), o = H(
87
+ }), b = g(), i = g(), l = g(!1), E = ne(l), P = () => {
88
+ l.value ? p() : $();
89
+ }, V = async (e) => {
90
+ let o = u.items.findIndex((t) => !t.disabled), n = D(
100
91
  u.items,
101
92
  (t) => !t.disabled
102
93
  );
103
94
  if (e.key === "ArrowDown") {
104
- if (e.preventDefault(), l.value || await $(), i.value && c.value.length && a !== -1) {
105
- const t = c.value[a].id, n = i.value.querySelector(`#${t}`);
106
- n && n instanceof HTMLElement && n.focus();
95
+ if (e.preventDefault(), l.value || await $(), i.value && c.value.length && o !== -1) {
96
+ const t = c.value[o].id, a = i.value.querySelector(`#${t}`);
97
+ a && a instanceof HTMLElement && a.focus();
107
98
  }
108
99
  } else if (e.key === "ArrowUp") {
109
- if (e.preventDefault(), l.value || await $(), i.value && c.value.length && o !== -1) {
110
- const t = c.value[o].id, n = i.value.querySelector(`#${t}`);
111
- n && n instanceof HTMLElement && n.focus();
100
+ if (e.preventDefault(), l.value || await $(), i.value && c.value.length && n !== -1) {
101
+ const t = c.value[n].id, a = i.value.querySelector(`#${t}`);
102
+ a && a instanceof HTMLElement && a.focus();
112
103
  }
113
- } else if (e.key === "Tab" && l.value && !e.shiftKey && (e.preventDefault(), i.value && c.value.length && a !== -1)) {
114
- const t = c.value[a].id, n = i.value.querySelector(`#${t}`);
115
- n && n instanceof HTMLElement && n.focus();
104
+ } else if (e.key === "Tab" && l.value && !e.shiftKey && (e.preventDefault(), i.value && c.value.length && o !== -1)) {
105
+ const t = c.value[o].id, a = i.value.querySelector(`#${t}`);
106
+ a && a instanceof HTMLElement && a.focus();
116
107
  }
117
- }, I = (e) => {
118
- const a = e.target;
119
- if (a && a instanceof HTMLElement) {
120
- let o = !0;
121
- m.value && m.value.$el.contains(a) && (o = !1), i.value && i.value.contains(a) && (o = !1), o && f();
108
+ }, H = (e) => {
109
+ const o = e.target;
110
+ if (o && o instanceof HTMLElement) {
111
+ let n = !0;
112
+ b.value && b.value.$el.contains(o) && (n = !1), i.value && i.value.contains(o) && (n = !1), n && p();
122
113
  }
123
114
  }, M = (e) => {
124
- const a = e.target;
125
- if (a && a instanceof HTMLElement) {
126
- let o = !0;
127
- m.value && m.value.$el.contains(a) && (o = !1), o && f();
115
+ const o = e.target;
116
+ if (o && o instanceof HTMLElement) {
117
+ let n = !0;
118
+ b.value && b.value.$el.contains(o) && (n = !1), n && p();
128
119
  }
129
120
  }, S = (e) => {
130
- var a;
121
+ var o;
131
122
  if (l.value && e.key === "Escape") {
132
- if (((a = document.activeElement) == null ? void 0 : a.id) !== d) {
133
- const o = document.querySelector(`#${d}`);
134
- o instanceof HTMLElement && o.focus();
123
+ if (((o = document.activeElement) == null ? void 0 : o.id) !== d) {
124
+ const n = document.querySelector(`#${d}`);
125
+ n instanceof HTMLElement && n.focus();
135
126
  }
136
- f();
127
+ p();
137
128
  }
138
- }, j = g(!1), $ = async () => {
139
- j.value = !0, await ne(50), l.value = !0, document.addEventListener("click", I, { passive: !0 }), document.addEventListener("focusin", M, { passive: !0 }), document.addEventListener("keydown", S, { passive: !0 });
140
- }, f = async () => {
141
- l.value = !1, document.removeEventListener("click", I), document.removeEventListener("focusin", M), document.removeEventListener("keydown", S);
129
+ }, U = g(!1), $ = async () => {
130
+ U.value = !0, await oe(50), l.value = !0, document.addEventListener("click", H, { passive: !0 }), document.addEventListener("focusin", M, { passive: !0 }), document.addEventListener("keydown", S, { passive: !0 });
131
+ }, p = async () => {
132
+ l.value = !1;
142
133
  };
143
- return (e, a) => (b(), L(le, {
134
+ return W(l, (e) => {
135
+ e || (document.removeEventListener("click", H), document.removeEventListener("focusin", M), document.removeEventListener("keydown", S));
136
+ }), (e, o) => (k(), h(le, {
144
137
  ref_key: "wrapper",
145
- ref: m,
138
+ ref: b,
139
+ modelValue: l.value,
140
+ "onUpdate:modelValue": o[0] || (o[0] = (n) => l.value = n),
146
141
  "arrow-padding": e.arrowPadding,
147
142
  block: e.block,
148
- class: R(["bb-dropdown", {
143
+ class: G(["bb-dropdown", {
149
144
  [`bb-dropdown--${e.theme}`]: !0
150
145
  }]),
151
- "model-value": l.value,
152
146
  offset: e.offset,
153
147
  padding: e.padding,
154
148
  placement: e.placement,
149
+ "render-content": f(E),
155
150
  "transition-duration": e.transitionDuration
156
151
  }, {
157
152
  activator: T(() => [
158
- v(e.$slots, "activator", Z(x({
153
+ m(e.$slots, "activator", x(ee({
159
154
  props: {
160
- "aria-expanded": p(E) ? l.value : !1,
161
- "aria-controls": p(E) ? `menu_${p(d)}` : void 0,
162
- id: p(d),
163
- onClick: K,
164
- onKeydown: P,
155
+ "aria-expanded": f(E) ? l.value : !1,
156
+ "aria-controls": f(E) ? `menu_${f(d)}` : void 0,
157
+ id: f(d),
158
+ onClick: P,
159
+ onKeydown: V,
165
160
  disabled: e.disabled
166
161
  },
167
162
  disabled: e.disabled,
@@ -170,86 +165,85 @@ const se = ["id", "aria-labelledby", "inert"], ie = { class: "item__content" },
170
165
  })))
171
166
  ]),
172
167
  default: T(() => [
173
- p(E) ? (b(), D("span", {
174
- key: 0,
175
- id: `menu_${p(d)}`,
168
+ I("span", {
169
+ id: `menu_${f(d)}`,
176
170
  ref_key: "content",
177
171
  ref: i,
178
- "aria-labelledby": p(d),
172
+ "aria-labelledby": f(d),
179
173
  "aria-role": "menu",
180
174
  class: "bb-dropdown__items-container",
181
175
  inert: !l.value,
182
- style: W({ width: `${e.width}px` })
176
+ style: J({ width: `${e.width}px` })
183
177
  }, [
184
- v(e.$slots, "prepend", {
178
+ m(e.$slots, "prepend", {
185
179
  disabled: e.disabled,
186
180
  open: l.value,
187
181
  placement: e.placement
188
182
  }),
189
- (b(!0), D(F, null, G(c.value, ({ original: o, ...t }, n) => (b(), D(F, {
183
+ (k(!0), q(F, null, Q(c.value, ({ original: n, ...t }, a) => (k(), q(F, {
190
184
  key: t.key
191
185
  }, [
192
- v(e.$slots, "item:prepend", {
186
+ m(e.$slots, "item:prepend", {
193
187
  disabled: t.disabled,
194
- index: n,
195
- item: e.items[n],
188
+ index: a,
189
+ item: e.items[a],
196
190
  open: l.value,
197
191
  placement: e.placement,
198
192
  text: t.text
199
193
  }),
200
- J(ae, Q({
194
+ X(ae, Y({
201
195
  "aria-role": "menuitem",
202
196
  class: ["bb-dropdown__item", {
203
- "bb-dropdown__item--first": n === 0,
204
- "bb-dropdown__item--last": n === e.items.length - 1
197
+ "bb-dropdown__item--first": a === 0,
198
+ "bb-dropdown__item--last": a === e.items.length - 1
205
199
  }],
206
200
  "data-dropdown-item": !0,
207
201
  ref_for: !0
208
202
  }, t), {
209
203
  default: T(() => [
210
- v(e.$slots, t.key, {
204
+ m(e.$slots, t.key, {
211
205
  disabled: t.disabled,
212
- index: n,
213
- item: o,
206
+ index: a,
207
+ item: n,
214
208
  open: l.value,
215
209
  placement: e.placement,
216
210
  text: t.text
217
211
  }, () => [
218
- t["prepend:icon"] ? (b(), L(A, {
212
+ t["prepend:icon"] ? (k(), h(B, {
219
213
  key: 0,
220
214
  class: "item__prepend-icon",
221
215
  type: t["prepend:icon"]
222
- }, null, 8, ["type"])) : _("", !0),
223
- X("span", ie, Y(t.text), 1),
224
- t["append:icon"] ? (b(), L(A, {
216
+ }, null, 8, ["type"])) : A("", !0),
217
+ I("span", ie, Z(t.text), 1),
218
+ t["append:icon"] ? (k(), h(B, {
225
219
  key: 1,
226
220
  class: "item__append-icon",
227
221
  type: t["append:icon"]
228
- }, null, 8, ["type"])) : _("", !0)
222
+ }, null, 8, ["type"])) : A("", !0)
229
223
  ])
230
224
  ]),
231
225
  _: 2
232
226
  }, 1040, ["class"]),
233
- v(e.$slots, "item:append", {
227
+ m(e.$slots, "item:append", {
234
228
  disabled: t.disabled,
235
- index: n,
236
- item: e.items[n],
229
+ index: a,
230
+ item: e.items[a],
237
231
  open: l.value,
238
232
  placement: e.placement,
239
233
  text: t.text
240
234
  })
241
235
  ], 64))), 128)),
242
- v(e.$slots, "append", {
236
+ m(e.$slots, "append", {
243
237
  disabled: e.disabled,
244
238
  open: l.value,
245
239
  placement: e.placement
246
240
  })
247
- ], 12, se)) : _("", !0)
241
+ ], 12, se)
248
242
  ]),
249
243
  _: 3
250
- }, 8, ["arrow-padding", "block", "class", "model-value", "offset", "padding", "placement", "transition-duration"]));
244
+ }, 8, ["modelValue", "arrow-padding", "block", "class", "offset", "padding", "placement", "render-content", "transition-duration"]));
251
245
  }
252
246
  });
253
247
  export {
254
- Ee as default
248
+ ge as default
255
249
  };
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 "./index231.js";
12
+ import { useLocale as M } from "./index224.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 "./index270.js";
2
+ import { findInTree as ae } from "./index268.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("./index269.js")).default);
56
+ b || (b = (await import("./index267.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 "./index209.js";
2
+ import { isCssColor as I } from "./index227.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 "./index274.js";
2
+ import { throttle as c } from "./index269.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 "./index251.js";
2
+ import { useFocusTrap as be } from "./index232.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 "./index259.js";
6
- import me from "./index222.js";
5
+ import { useModalsState as b } from "./index234.js";
6
+ import me from "./index235.js";
7
7
  import { useMobile as ye } from "./index9.js";
8
- import { useLocale as he } from "./index231.js";
8
+ import { useLocale as he } from "./index224.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 "./index255.js";
7
- import { useLocale as H } from "./index231.js";
6
+ import { debounce as X } from "./index274.js";
7
+ import { useLocale as H } from "./index224.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",