bitboss-ui 2.0.71 → 2.0.73

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 (149) hide show
  1. package/dist/components/BbPagination/BbPagination.vue.d.ts +5 -0
  2. package/dist/index106.js +16 -16
  3. package/dist/index110.js +59 -60
  4. package/dist/index118.js +1 -1
  5. package/dist/index120.js +57 -58
  6. package/dist/index122.js +1 -1
  7. package/dist/index126.js +1 -1
  8. package/dist/index127.js +1 -1
  9. package/dist/index128.js +1 -1
  10. package/dist/index13.js +1 -1
  11. package/dist/index130.js +1 -1
  12. package/dist/index132.js +2 -2
  13. package/dist/index133.js +2 -2
  14. package/dist/index15.js +4 -4
  15. package/dist/index17.js +3 -3
  16. package/dist/index19.js +3 -3
  17. package/dist/index204.js +2 -81
  18. package/dist/index205.js +2 -2
  19. package/dist/index206.js +4 -8
  20. package/dist/index207.js +2 -164
  21. package/dist/index208.js +3 -84
  22. package/dist/index209.js +10 -0
  23. package/dist/index21.js +12 -12
  24. package/dist/index210.js +51 -124
  25. package/dist/index212.js +13 -125
  26. package/dist/index213.js +5 -19
  27. package/dist/index214.js +2 -2
  28. package/dist/index215.js +2 -2
  29. package/dist/index216.js +19 -2
  30. package/dist/index217.js +19 -2
  31. package/dist/index218.js +26 -40
  32. package/dist/index219.js +3 -20
  33. package/dist/index220.js +2 -6
  34. package/dist/index221.js +243 -47
  35. package/dist/index222.js +54 -0
  36. package/dist/index223.js +44 -13
  37. package/dist/index224.js +4 -4
  38. package/dist/index225.js +59 -368
  39. package/dist/index226.js +126 -2
  40. package/dist/index227.js +125 -4
  41. package/dist/index228.js +2 -2
  42. package/dist/index229.js +41 -3
  43. package/dist/index23.js +13 -13
  44. package/dist/index230.js +20 -7
  45. package/dist/index231.js +6 -3
  46. package/dist/index232.js +5 -19
  47. package/dist/index233.js +367 -25
  48. package/dist/index234.js +3 -3
  49. package/dist/index235.js +7 -249
  50. package/dist/index236.js +162 -50
  51. package/dist/index237.js +78 -38
  52. package/dist/index239.js +4 -60
  53. package/dist/index240.js +80 -3
  54. package/dist/index241.js +2 -2
  55. package/dist/index242.js +18 -2
  56. package/dist/index243.js +105 -17
  57. package/dist/{index246.js → index245.js} +1 -1
  58. package/dist/index247.js +4 -0
  59. package/dist/index25.js +5 -5
  60. package/dist/index250.js +4 -3
  61. package/dist/index251.js +224 -9
  62. package/dist/index252.js +3 -23
  63. package/dist/index254.js +7 -16
  64. package/dist/index255.js +280 -8
  65. package/dist/index256.js +6 -3
  66. package/dist/index257.js +2 -12
  67. package/dist/index258.js +2 -9
  68. package/dist/index259.js +2 -9
  69. package/dist/index260.js +2 -17
  70. package/dist/index261.js +2 -4
  71. package/dist/index262.js +2 -281
  72. package/dist/index263.js +2 -6
  73. package/dist/index264.js +2 -2
  74. package/dist/index265.js +2 -2
  75. package/dist/index266.js +2 -2
  76. package/dist/index267.js +28 -2
  77. package/dist/index268.js +22 -2
  78. package/dist/index27.js +1 -1
  79. package/dist/index270.js +2 -431
  80. package/dist/index271.js +121 -171
  81. package/dist/index272.js +431 -3
  82. package/dist/index273.js +178 -0
  83. package/dist/index274.js +22 -7
  84. package/dist/index276.js +5 -0
  85. package/dist/index277.js +11 -3
  86. package/dist/index278.js +7 -434
  87. package/dist/index279.js +8 -126
  88. package/dist/index280.js +14 -197
  89. package/dist/index281.js +3 -88
  90. package/dist/index282.js +200 -224
  91. package/dist/index283.js +436 -2
  92. package/dist/index284.js +127 -2
  93. package/dist/index285.js +3 -2
  94. package/dist/index286.js +9 -2
  95. package/dist/index287.js +23 -2
  96. package/dist/index288.js +89 -2
  97. package/dist/index289.js +6 -28
  98. package/dist/index29.js +18 -19
  99. package/dist/index290.js +15 -21
  100. package/dist/index291.js +11 -0
  101. package/dist/index292.js +3 -2
  102. package/dist/index293.js +3 -5
  103. package/dist/index294.js +204 -59
  104. package/dist/index295.js +5 -3
  105. package/dist/index296.js +65 -2
  106. package/dist/index297.js +2 -211
  107. package/dist/index298.js +5 -79
  108. package/dist/index299.js +10 -0
  109. package/dist/index300.js +33 -4
  110. package/dist/index301.js +7 -4
  111. package/dist/index302.js +17 -57
  112. package/dist/index303.js +6 -4
  113. package/dist/index304.js +3 -7
  114. package/dist/index305.js +10 -32
  115. package/dist/index306.js +84 -4
  116. package/dist/index308.js +4 -11
  117. package/dist/index309.js +4 -7
  118. package/dist/index31.js +2 -2
  119. package/dist/index310.js +57 -17
  120. package/dist/index311.js +47 -2
  121. package/dist/index312.js +2 -47
  122. package/dist/{index313.js → index314.js} +1 -1
  123. package/dist/index33.js +13 -13
  124. package/dist/index35.js +3 -3
  125. package/dist/index37.js +13 -13
  126. package/dist/index39.js +4 -4
  127. package/dist/index41.js +2 -2
  128. package/dist/index43.js +11 -11
  129. package/dist/index45.js +6 -6
  130. package/dist/index47.js +2 -2
  131. package/dist/index49.js +2 -2
  132. package/dist/index55.js +1 -1
  133. package/dist/index57.js +1 -1
  134. package/dist/index61.js +21 -23
  135. package/dist/index75.js +47 -48
  136. package/dist/index79.js +4 -7
  137. package/dist/index81.js +1 -1
  138. package/dist/index84.js +2 -2
  139. package/dist/index86.js +27 -26
  140. package/dist/index88.js +86 -86
  141. package/dist/index90.js +1 -1
  142. package/package.json +1 -1
  143. package/dist/index211.js +0 -7
  144. package/dist/index238.js +0 -7
  145. package/dist/index244.js +0 -108
  146. package/dist/index253.js +0 -8
  147. package/dist/index269.js +0 -128
  148. package/dist/index275.js +0 -24
  149. package/dist/index307.js +0 -9
package/dist/index37.js CHANGED
@@ -6,23 +6,23 @@ import { useMobile as Re } from "./index9.js";
6
6
  import Je from "./index127.js";
7
7
  /* empty css */
8
8
  import { isNotNil as Ye } from "./index134.js";
9
- import { last as je } from "./index217.js";
10
- import { matchAnyKey as j } from "./index243.js";
11
- import { useFloating as Ge } from "./index210.js";
9
+ import { last as je } from "./index220.js";
10
+ import { matchAnyKey as j } from "./index242.js";
11
+ import { useFloating as Ge } from "./index226.js";
12
12
  import { useIntersectionObserver as Xe } from "./index132.js";
13
- import { useLogger as Ze } from "./index206.js";
14
- import { useOptions as et } from "./index207.js";
13
+ import { useLogger as Ze } from "./index209.js";
14
+ import { useOptions as et } from "./index236.js";
15
15
  import { wait as L } from "./index131.js";
16
- import { when as tt } from "./index227.js";
17
- import ot from "./index244.js";
16
+ import { when as tt } from "./index206.js";
17
+ import ot from "./index243.js";
18
18
  /* empty css */
19
- import nt from "./index246.js";
19
+ import nt from "./index245.js";
20
20
  /* empty css */
21
- import lt from "./index221.js";
21
+ import lt from "./index210.js";
22
22
  /* empty css */
23
- import at from "./index223.js";
24
- import { waitFor as it } from "./index220.js";
25
- import { autoUpdate as rt, flip as st, offset as ut, shift as pt } from "./index225.js";
23
+ import at from "./index212.js";
24
+ import { waitFor as it } from "./index231.js";
25
+ import { autoUpdate as rt, flip as st, offset as ut, shift as pt } from "./index233.js";
26
26
  const dt = { class: "bb-base-select__input-container" }, ct = {
27
27
  key: 1,
28
28
  class: "bb-base-select__max-reached"
@@ -71,7 +71,7 @@ const dt = { class: "bb-base-select__input-container" }, ct = {
71
71
  const t = G, h = X;
72
72
  if (t.multiple && !Array.isArray(t.modelValue))
73
73
  throw new Error('Multiple is set to "true" but modelValue is not an array.');
74
- const Z = Me(() => import("./index242.js")), A = v(null), B = v(null), a = v(null), H = v(null), P = v(null), u = y(
74
+ const Z = Me(() => import("./index241.js")), A = v(null), B = v(null), a = v(null), H = v(null), P = v(null), u = y(
75
75
  () => t.comma ? H.value : P.value
76
76
  ), { isMobile: ee } = Re(), te = y(
77
77
  () => t.allowWriting === "not-mobile" && ee.value ? "none" : void 0
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, openBlock as g, createElementBlock as w, mergeProps as T, renderSlot as f, createElementVNode as c, Fragment as ee, renderList as ae, createCommentVNode as H, normalizeProps as re, guardReactiveProps as te, unref as b, normalizeClass as F, normalizeStyle as I } from "vue";
2
- import { clamp as le } from "./index205.js";
3
- import { head as O } from "./index241.js";
4
- import { isCssColor as Y } from "./index226.js";
2
+ import { clamp as le } from "./index204.js";
3
+ import { head as O } from "./index247.js";
4
+ import { isCssColor as Y } from "./index205.js";
5
5
  import { isNil as P } from "./index129.js";
6
6
  import { isNotNil as ne } from "./index134.js";
7
7
  import { transposeValue as y } from "./index130.js";
8
- import { hash as J } from "./index234.js";
8
+ import { hash as J } from "./index219.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, openBlock as h, createElementBlock as y, normalizeProps as r, guardReactiveProps as d, mergeProps as V, createCommentVNode as q, createElementVNode as l, renderSlot as A } from "vue";
2
- import { isCssColor as b } from "./index226.js";
3
- import { when as F } from "./index227.js";
2
+ import { isCssColor as b } from "./index205.js";
3
+ import { when as F } from "./index206.js";
4
4
  const N = { class: "bb-base-switch-container" }, $ = /* @__PURE__ */ I({
5
5
  __name: "BaseSwitch",
6
6
  props: {
package/dist/index43.js CHANGED
@@ -1,10 +1,10 @@
1
- import { defineComponent as $, ref as p, toRef as l, openBlock as w, createBlock as B, unref as f, withCtx as i, renderSlot as s, normalizeProps as b, guardReactiveProps as h, createVNode as O, mergeProps as v, createSlots as z } from "vue";
2
- import { useOptions as F } from "./index207.js";
1
+ import { defineComponent as V, ref as p, toRef as l, openBlock as w, createBlock as B, unref as f, withCtx as i, renderSlot as s, normalizeProps as b, guardReactiveProps as h, createVNode as O, mergeProps as v, createSlots as z } from "vue";
2
+ import { useOptions as F } from "./index236.js";
3
3
  import M from "./index41.js";
4
4
  /* empty css */
5
- import S from "./index208.js";
5
+ import S from "./index237.js";
6
6
  /* empty css */
7
- const I = /* @__PURE__ */ $({
7
+ const I = /* @__PURE__ */ V({
8
8
  __name: "BaseSwitchGroup",
9
9
  props: {
10
10
  ariaDescribedby: {},
@@ -53,9 +53,9 @@ const I = /* @__PURE__ */ $({
53
53
  queryDebounceTime: 0,
54
54
  resetQueryOnOptionSelected: !1,
55
55
  stash: !1
56
- }), C = (e, t) => {
56
+ }), $ = (e, t) => {
57
57
  o("change", e), t.selected ? L(t) : D(t);
58
- }, E = {
58
+ }, C = {
59
59
  onBlur: (e) => o("blur", e),
60
60
  onClick: (e) => o("click", e),
61
61
  onFocus: (e) => {
@@ -94,11 +94,11 @@ const I = /* @__PURE__ */ $({
94
94
  "option:prepend": i((n) => [
95
95
  s(e.$slots, "option:prepend", b(h(n)))
96
96
  ]),
97
- input: i(({ option: n, index: V }) => [
97
+ input: i(({ option: n, index: E }) => [
98
98
  O(M, v({
99
- id: n.valueHash,
99
+ id: `${e.id}-${n.valueHash}`,
100
100
  "aria-describedby": e.ariaDescribedby,
101
- autofocus: e.autofocus && !V,
101
+ autofocus: e.autofocus && !E,
102
102
  checked: n.selected,
103
103
  color: e.color,
104
104
  disabled: n.disabled,
@@ -106,8 +106,8 @@ const I = /* @__PURE__ */ $({
106
106
  name: e.name,
107
107
  readonly: e.readonly,
108
108
  "true-value": n.value
109
- }, E, {
110
- onChange: (c) => C(c, n)
109
+ }, C, {
110
+ onChange: (c) => $(c, n)
111
111
  }), z({ _: 2 }, [
112
112
  e.$slots.icon ? {
113
113
  name: "icon",
package/dist/index45.js CHANGED
@@ -4,15 +4,15 @@ import { defineComponent as Y, ref as i, computed as k, toRef as B, openBlock as
4
4
  import ue from "./index127.js";
5
5
  /* empty css */
6
6
  import { isNotNil as se } from "./index134.js";
7
- import { last as de } from "./index217.js";
8
- import { useOptions as pe } from "./index207.js";
9
- import ce from "./index244.js";
7
+ import { last as de } from "./index220.js";
8
+ import { useOptions as pe } from "./index236.js";
9
+ import ce from "./index243.js";
10
10
  /* empty css */
11
- import me from "./index246.js";
11
+ import me from "./index245.js";
12
12
  /* empty css */
13
- import fe from "./index221.js";
13
+ import fe from "./index210.js";
14
14
  /* empty css */
15
- import ve from "./index223.js";
15
+ import ve from "./index212.js";
16
16
  const ye = { class: "bb-base-tag__input-container" }, be = ["id", "aria-describedby", "autocomplete", "autofocus", "disabled", "placeholder", "readonly", "required", "onKeydown"], qe = /* @__PURE__ */ Y({
17
17
  __name: "BaseTag",
18
18
  props: {
package/dist/index47.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as w, ref as g, computed as u, onMounted as y, watch as V, nextTick as k, openBlock as x, createBlock as B, normalizeClass as $, withCtx as r, renderSlot as t, createVNode as i, createElementVNode as C, mergeProps as T } from "vue";
2
- import v from "./index223.js";
3
- import E from "./index221.js";
2
+ import v from "./index212.js";
3
+ import E from "./index210.js";
4
4
  /* empty css */
5
5
  import G from "./index127.js";
6
6
  /* empty css */
package/dist/index49.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as m, computed as b, openBlock as c, createElementBlock as f, Fragment as y, createVNode as p, normalizeClass as h, withCtx as n, renderSlot as r, createElementVNode as l, mergeProps as g } from "vue";
2
- import B from "./index221.js";
2
+ import B from "./index210.js";
3
3
  /* empty css */
4
- import k from "./index223.js";
4
+ import k from "./index212.js";
5
5
  const w = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus", "disabled", "name", "placeholder", "readonly", "required", "type", "value"], V = /* @__PURE__ */ m({
6
6
  __name: "BaseTextInput",
7
7
  props: {
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 "./index226.js";
2
+ import { isCssColor as _ } from "./index205.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 "./index226.js";
2
+ import { isCssColor as r } from "./index205.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/index61.js CHANGED
@@ -1,19 +1,18 @@
1
- import { defineComponent as f, ref as g, computed as c, useAttrs as v, toRef as B, openBlock as t, createBlock as a, unref as p, mergeProps as k, withCtx as C, createVNode as h, createCommentVNode as l, createElementVNode as L, normalizeClass as S, renderSlot as A, createTextVNode as V, toDisplayString as x, createElementBlock as F } from "vue";
1
+ import { defineComponent as _, ref as f, computed as c, useAttrs as g, toRef as v, openBlock as t, createBlock as a, unref as p, mergeProps as B, withCtx as k, createVNode as C, createCommentVNode as l, createElementVNode as h, normalizeClass as L, renderSlot as S, createTextVNode as V, toDisplayString as x, createElementBlock as F } from "vue";
2
2
  /* empty css */
3
3
  /* empty css */
4
4
  import N from "./index13.js";
5
5
  /* empty css */
6
6
  import r from "./index126.js";
7
7
  /* empty css */
8
- import $ from "./index128.js";
8
+ import P from "./index128.js";
9
9
  /* empty css */
10
- import { pickBy as P } from "./index248.js";
11
- import { noop as T } from "./index249.js";
12
- const W = {
10
+ import { pickBy as $ } from "./index248.js";
11
+ import { noop as A } from "./index249.js";
12
+ const T = {
13
13
  key: 2,
14
14
  class: "bb-button__loading-label sr-only"
15
- }, J = /* @__PURE__ */ f({
16
- inheritAttrs: !1,
15
+ }, H = /* @__PURE__ */ _({
17
16
  __name: "BbButton",
18
17
  props: {
19
18
  autoLoading: { type: Boolean },
@@ -51,12 +50,12 @@ const W = {
51
50
  type: {}
52
51
  },
53
52
  setup(d) {
54
- const e = d, i = g(0), n = c(
53
+ const e = d, i = f(0), n = c(
55
54
  () => e.loading || !!i.value && e.autoLoading
56
- ), u = c(() => e.disabled), { onClick: b = T, ...m } = v(), y = async (...o) => {
57
- n.value && e.disabledWhileLoading || (i.value++, await b(...o), i.value--);
58
- }, _ = B(() => ({
59
- ...P(
55
+ ), u = c(() => e.disabled), { onClick: b = A } = g(), m = async (o) => {
56
+ o.stopImmediatePropagation(), !(n.value && e.disabledWhileLoading) && (i.value++, await b(o), i.value--);
57
+ }, y = v(() => ({
58
+ ...$(
60
59
  e,
61
60
  (o, s) => ![
62
61
  "append:icon",
@@ -67,10 +66,9 @@ const W = {
67
66
  "loading",
68
67
  "prepend:icon"
69
68
  ].includes(s)
70
- ),
71
- ...m
69
+ )
72
70
  }));
73
- return (o, s) => (t(), a(p(N), k(_.value, {
71
+ return (o, s) => (t(), a(p(N), B(y.value, {
74
72
  "aria-disabled": n.value ? !0 : void 0,
75
73
  class: {
76
74
  "bb-button": !0,
@@ -79,10 +77,10 @@ const W = {
79
77
  },
80
78
  disabled: u.value,
81
79
  tabindex: n.value ? -1 : void 0,
82
- onClick: y
80
+ onClick: m
83
81
  }), {
84
- default: C(() => [
85
- h(p($), { class: "bb-button__spinner" }),
82
+ default: k(() => [
83
+ C(p(P), { class: "bb-button__spinner" }),
86
84
  e.icon ? (t(), a(r, {
87
85
  key: 0,
88
86
  class: "bb-button__icon",
@@ -92,14 +90,14 @@ const W = {
92
90
  class: "bb-button__prepend-icon",
93
91
  type: e["prepend:icon"]
94
92
  }, null, 8, ["type"])) : l("", !0),
95
- L("span", {
96
- class: S(["bb-button__content", { "sr-only": !!o.icon }])
93
+ h("span", {
94
+ class: L(["bb-button__content", { "sr-only": !!o.icon }])
97
95
  }, [
98
- A(o.$slots, "default", {}, () => [
96
+ S(o.$slots, "default", {}, () => [
99
97
  V(x(o.text), 1)
100
98
  ])
101
99
  ], 2),
102
- n.value ? (t(), F("span", W, "caricamento")) : l("", !0),
100
+ n.value ? (t(), F("span", T, "caricamento")) : l("", !0),
103
101
  !o.icon && e["append:icon"] ? (t(), a(r, {
104
102
  key: 3,
105
103
  class: "bb-button__append-icon",
@@ -111,5 +109,5 @@ const W = {
111
109
  }
112
110
  });
113
111
  export {
114
- J as default
112
+ H as default
115
113
  };
package/dist/index75.js CHANGED
@@ -1,12 +1,12 @@
1
- import { defineComponent as Q, defineAsyncComponent as W, computed as A, ref as g, openBlock as $, createElementBlock as D, mergeProps as B, createElementVNode as O, renderSlot as w, normalizeProps as X, guardReactiveProps as Y, unref as h, createBlock as Z, withCtx as K, normalizeStyle as _, Fragment as P, renderList as x, createVNode as ee, createCommentVNode as te } from "vue";
2
- import { findRightIndex as H } from "./index251.js";
3
- import { useId as ne } from "./index8.js";
4
- import { wait as oe } from "./index131.js";
5
- import { useIntersectionObserver as ae } from "./index132.js";
6
- import le from "./index13.js";
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 "./index286.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";
7
7
  /* empty css */
8
- import N from "./index252.js";
9
- const me = /* @__PURE__ */ Q({
8
+ import j from "./index287.js";
9
+ const fe = /* @__PURE__ */ W({
10
10
  __name: "BbDropdown",
11
11
  props: {
12
12
  arrowPadding: { default: 10 },
@@ -22,44 +22,44 @@ const me = /* @__PURE__ */ Q({
22
22
  items: {},
23
23
  width: { default: 200 }
24
24
  },
25
- setup(V) {
26
- const j = W(
27
- () => import("./index250.js")
28
- ), r = V, d = r.id ?? `bb_${ne().id.value}`, m = A(() => {
25
+ setup(z) {
26
+ const N = X(
27
+ () => import("./index285.js")
28
+ ), r = z, d = r.id ?? `bb_${ee().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, G = async () => {
34
+ const i = `${d}-item-${t.key}`, { onClick: F, ...q } = t, J = 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
39
  F && F();
40
- }, J = (s) => {
40
+ }, Q = (s) => {
41
41
  if (s.target instanceof HTMLElement && s.target.dataset.dropdownItem) {
42
42
  if (!a.value) return;
43
43
  if (s.key === "ArrowDown") {
44
44
  if (s.preventDefault(), a.value && n !== o) {
45
45
  const u = a.value.querySelector(
46
- N.map((y) => `#${i} ~ ${y}`).join(",")
46
+ j.map((y) => `#${i} ~ ${y}`).join(",")
47
47
  );
48
48
  u && u instanceof HTMLElement && u.focus();
49
49
  }
50
50
  } else if (s.key === "ArrowUp") {
51
51
  if (s.preventDefault(), a.value && n !== e) {
52
- const u = H(r.items, (E, T) => T < n && !E.disabled), k = Array.from(
52
+ const u = H(r.items, (E, L) => L < n && !E.disabled), k = Array.from(
53
53
  a.value.querySelectorAll(".bb-dropdown__item")
54
54
  )[u];
55
55
  k && k instanceof HTMLElement && k.focus();
56
56
  }
57
57
  } else if (s.key === "Tab") {
58
58
  if (n === o && !s.shiftKey) {
59
- const u = N.join(","), y = Array.from(
59
+ const u = j.join(","), y = Array.from(
60
60
  document.querySelectorAll(u)
61
61
  ), k = y.findIndex(
62
- (T) => T.id === d
62
+ (L) => L.id === d
63
63
  ), E = y[k + 1];
64
64
  if (E) E instanceof HTMLElement && (s.preventDefault(), b(), E.focus());
65
65
  else return;
@@ -75,34 +75,34 @@ const me = /* @__PURE__ */ Q({
75
75
  ...q,
76
76
  disabled: q.disabled || r.disabled,
77
77
  id: i,
78
- onClick: G,
79
- onKeydown: J
78
+ onClick: J,
79
+ onKeydown: Q
80
80
  };
81
81
  });
82
- }), v = g(), a = g();
83
- ae(
82
+ }), v = w(), a = w();
83
+ ne(
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 = g(!1), l = g(!1), f = g(!1), p = g(!0), z = () => {
91
- c.value || f.value || (l.value ? b() : L());
92
- }, R = async (e) => {
90
+ const c = w(!1), l = w(!1), f = w(!1), p = w(!0), R = () => {
91
+ c.value || f.value || (l.value ? b() : $());
92
+ }, U = async (e) => {
93
93
  let o = r.items.findIndex((n) => !n.disabled), t = H(
94
94
  r.items,
95
95
  (n) => !n.disabled
96
96
  );
97
97
  if (e.key === "ArrowDown") {
98
98
  if (e.preventDefault(), f.value || c.value) return;
99
- if (p.value && await L(), a.value && m.value.length && o !== -1) {
99
+ if (p.value && await $(), a.value && m.value.length && o !== -1) {
100
100
  const n = m.value[o].id, i = a.value.querySelector(`#${n}`);
101
101
  i && i instanceof HTMLElement && i.focus();
102
102
  }
103
103
  } else if (e.key === "ArrowUp") {
104
104
  if (e.preventDefault(), f.value || c.value) return;
105
- if (p.value && await L(), a.value && m.value.length && t !== -1) {
105
+ if (p.value && await $(), a.value && m.value.length && t !== -1) {
106
106
  const n = m.value[t].id, i = a.value.querySelector(`#${n}`);
107
107
  i && i instanceof HTMLElement && i.focus();
108
108
  }
@@ -131,29 +131,29 @@ const me = /* @__PURE__ */ Q({
131
131
  }
132
132
  b();
133
133
  }
134
- }, C = g(!1), L = async () => {
135
- C.value = !0, await oe(50), l.value = !0, document.addEventListener("click", I, { passive: !0 }), document.addEventListener("focusin", M, { passive: !0 }), document.addEventListener("keydown", S, { passive: !0 });
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 });
136
136
  }, b = async () => {
137
137
  l.value = !1, document.removeEventListener("click", I), document.removeEventListener("focusin", M), document.removeEventListener("keydown", S);
138
- }, U = A(() => ({
138
+ }, G = 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) => ($(), D("span", B({ class: "bb-dropdown" }, U.value), [
145
- O("span", {
144
+ return (e, o) => (T(), D("span", C({ class: "bb-dropdown" }, G.value), [
145
+ B("span", {
146
146
  ref_key: "wrapper",
147
147
  ref: v,
148
148
  class: "bb-dropdown__wrapper"
149
149
  }, [
150
- w(e.$slots, "activator", X(Y({
150
+ g(e.$slots, "activator", Y(Z({
151
151
  props: {
152
152
  "aria-expanded": l.value,
153
153
  "aria-controls": `menu_${h(d)}`,
154
154
  id: h(d),
155
- onClick: z,
156
- onKeydown: R,
155
+ onClick: R,
156
+ onKeydown: U,
157
157
  disabled: e.disabled
158
158
  },
159
159
  closed: p.value,
@@ -164,8 +164,7 @@ const me = /* @__PURE__ */ Q({
164
164
  placement: e.placement
165
165
  })))
166
166
  ], 512),
167
- C.value || e.eager ? ($(), Z(h(j), {
168
- key: 0,
167
+ O(h(N), {
169
168
  "arrow-padding": e.arrowPadding,
170
169
  "base-class": "bb-dropdown",
171
170
  "container-attributes": {
@@ -183,13 +182,13 @@ const me = /* @__PURE__ */ Q({
183
182
  wrapper: v.value
184
183
  }, {
185
184
  default: K(() => [
186
- O("span", {
185
+ B("span", {
187
186
  ref_key: "content",
188
187
  ref: a,
189
188
  class: "bb-dropdown__items-container",
190
189
  style: _({ width: `${e.width}px` })
191
190
  }, [
192
- w(e.$slots, "prepend", {
191
+ g(e.$slots, "prepend", {
193
192
  closed: p.value,
194
193
  closing: f.value,
195
194
  disabled: e.disabled,
@@ -197,10 +196,10 @@ const me = /* @__PURE__ */ Q({
197
196
  opening: c.value,
198
197
  placement: e.placement
199
198
  }),
200
- ($(!0), D(P, null, x(m.value, (t, n) => ($(), D(P, {
199
+ (T(!0), D(P, null, x(m.value, (t, n) => (T(), D(P, {
201
200
  key: t.key
202
201
  }, [
203
- w(e.$slots, "item:prepend", {
202
+ g(e.$slots, "item:prepend", {
204
203
  closed: p.value,
205
204
  closing: f.value,
206
205
  disabled: t.disabled,
@@ -211,7 +210,7 @@ const me = /* @__PURE__ */ Q({
211
210
  placement: e.placement,
212
211
  text: t.text
213
212
  }),
214
- ee(le, B({
213
+ O(oe, C({
215
214
  "aria-role": "menuitem",
216
215
  class: ["bb-dropdown__item", {
217
216
  "bb-dropdown__item--first": n === 0,
@@ -221,7 +220,7 @@ const me = /* @__PURE__ */ Q({
221
220
  ref_for: !0
222
221
  }, t), {
223
222
  default: K(() => [
224
- w(e.$slots, t.key, {
223
+ g(e.$slots, t.key, {
225
224
  closed: p.value,
226
225
  closing: f.value,
227
226
  disabled: t.disabled,
@@ -232,7 +231,7 @@ const me = /* @__PURE__ */ Q({
232
231
  placement: e.placement,
233
232
  text: t.text
234
233
  }, () => [
235
- w(e.$slots, "item", {
234
+ g(e.$slots, "item", {
236
235
  closed: p.value,
237
236
  closing: f.value,
238
237
  disabled: t.disabled,
@@ -247,7 +246,7 @@ const me = /* @__PURE__ */ Q({
247
246
  ]),
248
247
  _: 2
249
248
  }, 1040, ["class"]),
250
- w(e.$slots, "item:append", {
249
+ g(e.$slots, "item:append", {
251
250
  closed: p.value,
252
251
  closing: f.value,
253
252
  disabled: t.disabled,
@@ -259,7 +258,7 @@ const me = /* @__PURE__ */ Q({
259
258
  text: t.text
260
259
  })
261
260
  ], 64))), 128)),
262
- w(e.$slots, "append", {
261
+ g(e.$slots, "append", {
263
262
  closed: p.value,
264
263
  closing: f.value,
265
264
  disabled: e.disabled,
@@ -270,10 +269,10 @@ const me = /* @__PURE__ */ Q({
270
269
  ], 4)
271
270
  ]),
272
271
  _: 3
273
- }, 8, ["arrow-padding", "container-attributes", "eager", "offset", "open", "padding", "placement", "theme", "transition-duration", "wrapper"])) : te("", !0)
272
+ }, 8, ["arrow-padding", "container-attributes", "eager", "offset", "open", "padding", "placement", "theme", "transition-duration", "wrapper"])
274
273
  ], 16));
275
274
  }
276
275
  });
277
276
  export {
278
- me as default
277
+ fe as default
279
278
  };
package/dist/index79.js CHANGED
@@ -1,12 +1,9 @@
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 "./index254.js";
2
+ import { findInTree as ae } from "./index290.js";
3
3
  import { useId as re } from "./index8.js";
4
4
  import oe from "./index127.js";
5
5
  /* empty css */
6
- const le = ["accept", "autofocus", "disabled", "multiple"], se = {
7
- "aria-hidden": "true",
8
- class: "bb-dropzone__submittable-label"
9
- }, ne = ["id", "disabled", "multiple", "name"], ie = { class: "bb-dropzone__errors" }, fe = /* @__PURE__ */ j({
6
+ const le = ["accept", "autofocus", "disabled", "multiple"], se = { class: "bb-dropzone__submittable-label" }, ne = ["id", "disabled", "multiple", "name"], ie = { class: "bb-dropzone__errors" }, fe = /* @__PURE__ */ j({
10
7
  __name: "BbDropzone",
11
8
  props: {
12
9
  autofocus: {},
@@ -56,7 +53,7 @@ const le = ["accept", "autofocus", "disabled", "multiple"], se = {
56
53
  const r = a.accept[t];
57
54
  if (r.includes("/")) e.push(r);
58
55
  else {
59
- b || (b = (await import("./index253.js")).default);
56
+ b || (b = (await import("./index289.js")).default);
60
57
  const o = b.getType(r);
61
58
  if (!o)
62
59
  throw new Error(
@@ -196,7 +193,7 @@ const le = ["accept", "autofocus", "disabled", "multiple"], se = {
196
193
  id: Q(z),
197
194
  ref_key: "submittable",
198
195
  ref: d,
199
- class: "bb-dropzone__submittable-input sr-only",
196
+ class: "bb-dropzone__submittable-input",
200
197
  disabled: e.disabled,
201
198
  multiple: e.multiple,
202
199
  name: e.name,
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 "./index229.js";
2
+ import { throttle as c } from "./index234.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 "./index218.js";
2
+ import { useFocusTrap as ce } from "./index229.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 "./index230.js";
5
+ import { useModalsState as b } from "./index235.js";
6
6
  const de = ["inert"], fe = { class: "bb-offcanvas-close" }, ve = ["aria-label"], ge = /* @__PURE__ */ te({
7
7
  __name: "BbOffCanvas",
8
8
  props: {