bitboss-ui 2.0.47 → 2.0.48

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 (127) hide show
  1. package/dist/index108.js +198 -181
  2. package/dist/index110.js +4 -4
  3. package/dist/index118.js +1 -1
  4. package/dist/index120.js +5 -5
  5. package/dist/index122.js +1 -1
  6. package/dist/index126.js +1 -1
  7. package/dist/index127.js +1 -1
  8. package/dist/index128.js +1 -1
  9. package/dist/index13.js +1 -1
  10. package/dist/index15.js +2 -2
  11. package/dist/index17.js +3 -3
  12. package/dist/index19.js +2 -2
  13. package/dist/index206.js +158 -8
  14. package/dist/index207.js +84 -2
  15. package/dist/index209.js +2 -2
  16. package/dist/index21.js +14 -14
  17. package/dist/index210.js +4 -5
  18. package/dist/index211.js +2 -16
  19. package/dist/index212.js +124 -14
  20. package/dist/index213.js +5 -19
  21. package/dist/index214.js +122 -16
  22. package/dist/index215.js +18 -26
  23. package/dist/index216.js +16 -3
  24. package/dist/index217.js +16 -2
  25. package/dist/index218.js +2 -249
  26. package/dist/index219.js +2 -52
  27. package/dist/index220.js +41 -44
  28. package/dist/index221.js +20 -5
  29. package/dist/index222.js +5 -48
  30. package/dist/index225.js +1 -1
  31. package/dist/index226.js +5 -20
  32. package/dist/index227.js +368 -3
  33. package/dist/index228.js +3 -3
  34. package/dist/index229.js +3 -41
  35. package/dist/index23.js +13 -13
  36. package/dist/index230.js +7 -6
  37. package/dist/index231.js +8 -7
  38. package/dist/index232.js +4 -3
  39. package/dist/index233.js +17 -156
  40. package/dist/index234.js +27 -84
  41. package/dist/index235.js +5 -0
  42. package/dist/index236.js +249 -2
  43. package/dist/index237.js +49 -123
  44. package/dist/index238.js +44 -125
  45. package/dist/index239.js +5 -2
  46. package/dist/index240.js +49 -5
  47. package/dist/index241.js +2 -369
  48. package/dist/index242.js +18 -2
  49. package/dist/index243.js +105 -17
  50. package/dist/{index246.js → index245.js} +1 -1
  51. package/dist/index247.js +4 -0
  52. package/dist/index25.js +5 -5
  53. package/dist/index250.js +3 -6
  54. package/dist/index251.js +8 -15
  55. package/dist/index252.js +23 -3
  56. package/dist/index253.js +6 -9
  57. package/dist/index254.js +16 -23
  58. package/dist/index256.js +4 -3
  59. package/dist/index257.js +5 -0
  60. package/dist/index258.js +11 -6
  61. package/dist/index259.js +7 -174
  62. package/dist/index260.js +9 -4
  63. package/dist/index261.js +17 -281
  64. package/dist/index262.js +280 -5
  65. package/dist/index263.js +6 -2
  66. package/dist/index264.js +2 -2
  67. package/dist/index265.js +2 -2
  68. package/dist/index269.js +126 -2
  69. package/dist/index27.js +1 -1
  70. package/dist/index270.js +431 -2
  71. package/dist/index271.js +176 -2
  72. package/dist/index272.js +3 -2
  73. package/dist/index274.js +7 -22
  74. package/dist/index277.js +224 -3
  75. package/dist/index278.js +199 -11
  76. package/dist/index279.js +434 -7
  77. package/dist/index280.js +126 -8
  78. package/dist/index281.js +87 -15
  79. package/dist/index282.js +2 -431
  80. package/dist/index283.js +2 -89
  81. package/dist/index284.js +2 -200
  82. package/dist/index285.js +2 -66
  83. package/dist/index286.js +2 -2
  84. package/dist/index287.js +2 -5
  85. package/dist/index288.js +28 -2
  86. package/dist/index289.js +21 -125
  87. package/dist/index291.js +5 -0
  88. package/dist/index292.js +3 -436
  89. package/dist/index293.js +210 -126
  90. package/dist/index294.js +65 -2
  91. package/dist/index295.js +2 -3
  92. package/dist/index296.js +5 -211
  93. package/dist/index300.js +2 -2
  94. package/dist/index302.js +1 -1
  95. package/dist/index303.js +1 -1
  96. package/dist/index304.js +1 -1
  97. package/dist/index305.js +3 -6
  98. package/dist/index306.js +5 -17
  99. package/dist/index307.js +6 -6
  100. package/dist/index308.js +18 -10
  101. package/dist/index309.js +11 -2
  102. package/dist/index31.js +2 -2
  103. package/dist/index310.js +2 -4
  104. package/dist/index312.js +2 -2
  105. package/dist/index314.js +1 -1
  106. package/dist/index315.js +47 -2
  107. package/dist/index316.js +2 -47
  108. package/dist/index33.js +2 -2
  109. package/dist/index35.js +3 -3
  110. package/dist/index37.js +11 -11
  111. package/dist/index39.js +3 -3
  112. package/dist/index41.js +2 -2
  113. package/dist/index43.js +2 -2
  114. package/dist/index45.js +4 -4
  115. package/dist/index55.js +1 -1
  116. package/dist/index57.js +1 -1
  117. package/dist/index75.js +3 -3
  118. package/dist/index79.js +2 -2
  119. package/dist/index81.js +1 -1
  120. package/dist/index84.js +2 -2
  121. package/dist/index88.js +3 -3
  122. package/package.json +1 -1
  123. package/dist/index208.js +0 -6
  124. package/dist/index244.js +0 -108
  125. package/dist/index273.js +0 -30
  126. package/dist/index276.js +0 -226
  127. /package/dist/{index290.js → index275.js} +0 -0
package/dist/index108.js CHANGED
@@ -1,15 +1,15 @@
1
- import { defineComponent as se, ref as n, computed as _, getCurrentInstance as re, watch as y, nextTick as ne, onMounted as oe, openBlock as b, createElementBlock as m, unref as ue, normalizeClass as x, createElementVNode as c, renderSlot as v, normalizeProps as M, guardReactiveProps as O, normalizeStyle as j, Fragment as G, renderList as Q, createVNode as X, withCtx as T, toDisplayString as de, createBlock as ce, Transition as be, createCommentVNode as he } from "vue";
2
- import { useId as fe } from "./index8.js";
3
- import { useRoute as ye } from "./index136.js";
4
- import { useRouter as me } from "./index137.js";
5
- import { wait as ve } from "./index131.js";
6
- import { useScroll as pe, useWindowSize as ke } from "./index132.js";
7
- import ge from "./index13.js";
1
+ import { defineComponent as ae, ref as r, computed as $, getCurrentInstance as ie, watch as b, nextTick as se, onMounted as ne, openBlock as h, createElementBlock as p, Fragment as x, createTextVNode as re, toDisplayString as U, createElementVNode as d, unref as oe, normalizeClass as I, renderSlot as k, normalizeProps as K, guardReactiveProps as J, normalizeStyle as M, renderList as O, createVNode as j, withCtx as L, createBlock as ue, Transition as de, createCommentVNode as ce } from "vue";
2
+ import { useId as be } from "./index8.js";
3
+ import { useRoute as he } from "./index136.js";
4
+ import { useRouter as fe } from "./index137.js";
5
+ import { wait as ye } from "./index131.js";
6
+ import { useScroll as me, useWindowSize as ve } from "./index132.js";
7
+ import pe from "./index13.js";
8
8
  /* empty css */
9
- import _e from "./index127.js";
9
+ import ke from "./index127.js";
10
10
  /* empty css */
11
- import { throttledWatch as we } from "./index204.js";
12
- const $e = ["id"], Se = { class: "bb-tab__label-boundary" }, qe = { class: "bb-tab__label" }, xe = { class: "bb-tab__panes-container" }, Te = ["id", "aria-labelledby"], Fe = /* @__PURE__ */ se({
11
+ import { throttledWatch as ge } from "./index204.js";
12
+ const _e = ["id"], we = { class: "bb-tab__label-boundary" }, $e = { class: "bb-tab__label" }, Se = { class: "bb-tab__panes-container" }, qe = ["id", "aria-labelledby"], We = /* @__PURE__ */ ae({
13
13
  __name: "BbTab",
14
14
  props: {
15
15
  disabled: { type: Boolean },
@@ -24,52 +24,57 @@ const $e = ["id"], Se = { class: "bb-tab__label-boundary" }, qe = { class: "bb-t
24
24
  replace: { type: Boolean }
25
25
  },
26
26
  emits: ["update:modelValue"],
27
- setup(Y, { expose: Z, emit: ee }) {
28
- var D, F, N, A, H, U, K;
29
- const t = Y, te = ee, d = ye(), w = me(), $ = n(), I = t.id ?? fe().id.value, p = `bb-tab_${I}`, h = n(), { isScrolling: le, arrivedState: L } = pe(h), V = _(() => ({
30
- isScrolling: le.value,
31
- left: L.left,
32
- right: L.right
33
- })), B = !!((F = (D = re()) == null ? void 0 : D.proxy) != null && F.$inertia), i = n(null), o = _(
27
+ setup(G, { expose: Q, emit: X }) {
28
+ var A, H;
29
+ const t = G, Y = X, c = he(), S = fe(), q = r(), V = t.id ?? be().id.value, g = `bb-tab_${V}`, f = r(), { isScrolling: Z, arrivedState: B } = me(f), C = $(() => ({
30
+ isScrolling: Z.value,
31
+ left: B.left,
32
+ right: B.right
33
+ })), P = !!((H = (A = ie()) == null ? void 0 : A.proxy) != null && H.$inertia), i = r(null), o = $(
34
34
  () => t.items.findIndex((e) => e.key === i.value)
35
- ), k = _(() => o.value === 0), g = _(() => o.value === t.items.length - 1);
36
- if (t.items.forEach((e) => {
35
+ ), _ = $(() => o.value === 0), w = $(() => o.value === t.items.length - 1);
36
+ t.items.forEach((e) => {
37
37
  if (!e.key)
38
38
  throw console.error("A tab item has no key", e), new Error("A tab item has no key " + JSON.stringify(e));
39
- }), t.navigation && ((A = (N = d.value) == null ? void 0 : N.query) != null && A[t.querykey]))
40
- i.value = (U = (H = d.value) == null ? void 0 : H.query) == null ? void 0 : U[t.querykey];
41
- else if (t.navigation && B && ((K = globalThis == null ? void 0 : globalThis.location) != null && K.href) && new URL(globalThis.location.href).searchParams.get(t.querykey))
42
- i.value = new URL(globalThis.location.href).searchParams.get(
43
- t.querykey
44
- );
45
- else if (t.modelValue)
46
- i.value = t.modelValue;
47
- else if (t.items[0]) {
48
- const e = t.items.find((l) => !l.disabled);
49
- if (!e)
50
- throw new Error(
51
- "No tab has been selected so it defaulted to the first available. Still, all the tabs are disabled so no tab can be selected."
39
+ });
40
+ const R = () => {
41
+ var e, a, l, n, s;
42
+ if (t.navigation && ((a = (e = c.value) == null ? void 0 : e.query) != null && a[t.querykey]))
43
+ i.value = (n = (l = c.value) == null ? void 0 : l.query) == null ? void 0 : n[t.querykey];
44
+ else if (t.navigation && P && ((s = globalThis == null ? void 0 : globalThis.location) != null && s.href) && new URL(globalThis.location.href).searchParams.get(t.querykey))
45
+ i.value = new URL(globalThis.location.href).searchParams.get(
46
+ t.querykey
52
47
  );
53
- const a = e.key;
54
- i.value = a;
55
- }
56
- const f = async (e, a = !1) => {
57
- var l, r, s, J;
58
- if (t.navigation && d.value && ((r = (l = d.value) == null ? void 0 : l.query) == null ? void 0 : r[t.querykey]) !== e)
59
- w == null || w.push({
60
- ...d,
61
- query: { ...(s = d.value) == null ? void 0 : s.query, [t.querykey]: e },
48
+ else if (t.modelValue)
49
+ i.value = t.modelValue;
50
+ else if (t.items[0]) {
51
+ const m = t.items.find((le) => !le.disabled);
52
+ if (!m)
53
+ throw new Error(
54
+ "No tab has been selected so it defaulted to the first available. Still, all the tabs are disabled so no tab can be selected."
55
+ );
56
+ const v = m.key;
57
+ i.value = v;
58
+ }
59
+ };
60
+ R();
61
+ const y = async (e, a = !1) => {
62
+ var l, n, s, m;
63
+ if (t.navigation && c.value && ((n = (l = c.value) == null ? void 0 : l.query) == null ? void 0 : n[t.querykey]) !== e)
64
+ S == null || S.push({
65
+ ...c,
66
+ query: { ...(s = c.value) == null ? void 0 : s.query, [t.querykey]: e },
62
67
  replace: a
63
68
  });
64
- else if (t.navigation && B && ((J = globalThis == null ? void 0 : globalThis.location) != null && J.href) && new URL(globalThis.location.href).searchParams.get(t.querykey) !== e) {
65
- const q = new URL(globalThis.location.href);
66
- q.searchParams.set(t.querykey, e), ve(0).then(() => {
67
- a ? history.replaceState({}, "", q.toString()) : history.pushState({}, "", q.toString());
69
+ else if (t.navigation && P && ((m = globalThis == null ? void 0 : globalThis.location) != null && m.href) && new URL(globalThis.location.href).searchParams.get(t.querykey) !== e) {
70
+ const v = new URL(globalThis.location.href);
71
+ v.searchParams.set(t.querykey, e), ye(0).then(() => {
72
+ a ? history.replaceState({}, "", v.toString()) : history.pushState({}, "", v.toString());
68
73
  });
69
74
  }
70
- t.modelValue !== e && te("update:modelValue", e), i.value = e;
75
+ t.modelValue !== e && Y("update:modelValue", e), i.value = e;
71
76
  };
72
- i.value && f(i.value, !0);
77
+ i.value && y(i.value, !0);
73
78
  const u = (e) => {
74
79
  var a = null;
75
80
  switch (e) {
@@ -97,11 +102,11 @@ const $e = ["id"], Se = { class: "bb-tab__label-boundary" }, qe = { class: "bb-t
97
102
  if (a === null)
98
103
  throw new Error("Could not navigate to next tab");
99
104
  if (t.items[a].disabled) return;
100
- const l = t.items[a].key, r = document.querySelector(
101
- `#${p}_tab_${l}`
105
+ const l = t.items[a].key, n = document.querySelector(
106
+ `#${g}_tab_${l}`
102
107
  );
103
- r == null || r.focus(), f(l, t.replace);
104
- }, ae = (e) => {
108
+ n == null || n.focus(), y(l, t.replace);
109
+ }, ee = (e) => {
105
110
  if (!t.disabled)
106
111
  if (e.key === "ArrowRight")
107
112
  u("next");
@@ -114,27 +119,27 @@ const $e = ["id"], Se = { class: "bb-tab__label-boundary" }, qe = { class: "bb-t
114
119
  else
115
120
  return;
116
121
  };
117
- y(
122
+ b(
118
123
  () => t.modelValue,
119
124
  (e) => {
120
- e && f(e, t.replace);
125
+ e && y(e, t.replace);
121
126
  }
122
- ), y(
127
+ ), b(
123
128
  () => {
124
129
  var e, a;
125
- return (a = (e = d.value) == null ? void 0 : e.query) == null ? void 0 : a[t.querykey];
130
+ return (a = (e = c.value) == null ? void 0 : e.query) == null ? void 0 : a[t.querykey];
126
131
  },
127
132
  (e) => {
128
- e && typeof e == "string" && f(e, t.replace);
133
+ e && typeof e == "string" && y(e, t.replace);
129
134
  }
130
- ), y(
135
+ ), b(
131
136
  i,
132
137
  async () => {
133
- if ($.value) {
134
- const e = $.value.querySelector(
138
+ if (q.value) {
139
+ const e = q.value.querySelector(
135
140
  "[role=tablist] .bb-tab__btn--active"
136
141
  );
137
- e && (await ne(), e.scrollIntoView({
142
+ e && (await se(), e.scrollIntoView({
138
143
  behavior: "smooth",
139
144
  block: "nearest",
140
145
  inline: "nearest"
@@ -143,153 +148,165 @@ const $e = ["id"], Se = { class: "bb-tab__label-boundary" }, qe = { class: "bb-t
143
148
  },
144
149
  { flush: "post" }
145
150
  );
146
- const C = n("right");
147
- y(
151
+ const E = r("right");
152
+ b(
148
153
  i,
149
154
  (e, a) => {
150
155
  if (e && a) {
151
- const l = t.items.findIndex((s) => s.key === e), r = t.items.findIndex((s) => s.key === a);
152
- C.value = l > r ? "right" : "left";
156
+ const l = t.items.findIndex((s) => s.key === e), n = t.items.findIndex((s) => s.key === a);
157
+ E.value = l > n ? "right" : "left";
153
158
  }
154
159
  },
155
160
  { flush: "sync" }
156
161
  );
157
- const R = n(0), E = n(0), P = n(0), W = n(0), z = n(0), S = () => {
158
- if (!h.value) return;
159
- const e = h.value.querySelector(
162
+ const N = r(0), W = r(0), z = r(0), D = r(0), F = r(0), T = () => {
163
+ if (!f.value) return;
164
+ const e = f.value.querySelector(
160
165
  ".bb-tab__btn--active"
161
166
  );
162
- e && (P.value = e.offsetLeft, W.value = e.offsetTop, R.value = e.clientWidth, E.value = e.clientHeight, z.value = h.value.scrollWidth);
167
+ e && (z.value = e.offsetLeft, D.value = e.offsetTop, N.value = e.clientWidth, W.value = e.clientHeight, F.value = f.value.scrollWidth);
163
168
  };
164
- oe(S), y(i, S, { flush: "post" });
165
- const { width: ie } = ke();
166
- return we(ie, S, { throttle: 100 }), Z({
167
- isFirst: k,
168
- isLast: g,
169
+ ne(T), b(i, T, { flush: "post" });
170
+ const { width: te } = ve();
171
+ return ge(te, T, { throttle: 100 }), b(
172
+ () => t.items,
173
+ () => {
174
+ i.value && !t.items.find((e) => e.key === i.value) && R();
175
+ },
176
+ {
177
+ immediate: !0,
178
+ deep: !0
179
+ }
180
+ ), Q({
181
+ isFirst: _,
182
+ isLast: w,
169
183
  current: i,
170
184
  currentIndex: o,
171
185
  goTo: u
172
- }), (e, a) => (b(), m("div", {
173
- id: ue(I),
174
- ref_key: "tabs",
175
- ref: $,
176
- class: x(["bb-tab", {
177
- [`bb-tab--${e.direction}`]: !0,
178
- "bb-tab--disabled": !0
179
- }])
180
- }, [
181
- c("div", Se, [
182
- c("span", null, [
183
- v(e.$slots, "header:prepend", M(O(V.value)))
184
- ]),
185
- c("ul", {
186
- ref_key: "tablist",
187
- ref: h,
188
- class: "bb-tab__label-container",
189
- role: "tablist",
190
- style: j({
191
- "--inner-width": `${z.value}px`
192
- })
193
- }, [
194
- c("span", {
195
- class: "bb-tab__highlight",
196
- style: j({
197
- "--width": `${R.value}px`,
198
- "--height": `${E.value}px`,
199
- "--left": `${P.value}px`,
200
- "--top": `${W.value}px`
186
+ }), (e, a) => (h(), p(x, null, [
187
+ re(U(e.items) + " ", 1),
188
+ d("div", {
189
+ id: oe(V),
190
+ ref_key: "tabs",
191
+ ref: q,
192
+ class: I(["bb-tab", {
193
+ [`bb-tab--${e.direction}`]: !0,
194
+ "bb-tab--disabled": !0
195
+ }])
196
+ }, [
197
+ d("div", we, [
198
+ d("span", null, [
199
+ k(e.$slots, "header:prepend", K(J(C.value)))
200
+ ]),
201
+ d("ul", {
202
+ ref_key: "tablist",
203
+ ref: f,
204
+ class: "bb-tab__label-container",
205
+ role: "tablist",
206
+ style: M({
207
+ "--inner-width": `${F.value}px`
201
208
  })
202
- }, null, 4),
203
- (b(!0), m(G, null, Q(e.items, (l) => (b(), m("li", {
204
- key: l.key,
205
- role: "presentation"
206
209
  }, [
207
- X(ge, {
208
- id: `${p}_tab_${l.key}`,
209
- "aria-selected": i.value === l.key,
210
- class: x(["bb-tab__btn", { "bb-tab__btn--active": i.value === l.key }]),
211
- disabled: l.disabled || e.disabled,
212
- role: "tab",
213
- tabindex: i.value === l.key ? 0 : -1,
214
- onClick: (r) => f(l.key, t.replace),
215
- onKeydown: ae
216
- }, {
217
- default: T(() => [
218
- v(e.$slots, `label-${l.key}`, {
219
- current: i.value,
220
- currentIndex: o.value,
221
- disabled: !!(l.disabled || e.disabled),
222
- goTo: u,
223
- isFirst: k.value,
224
- isLast: g.value,
225
- selected: i.value === l.key,
226
- text: l.label,
227
- value: l.key
228
- }, () => [
229
- v(e.$slots, "label", {
210
+ d("span", {
211
+ class: "bb-tab__highlight",
212
+ style: M({
213
+ "--width": `${N.value}px`,
214
+ "--height": `${W.value}px`,
215
+ "--left": `${z.value}px`,
216
+ "--top": `${D.value}px`
217
+ })
218
+ }, null, 4),
219
+ (h(!0), p(x, null, O(e.items, (l) => (h(), p("li", {
220
+ key: l.key,
221
+ role: "presentation"
222
+ }, [
223
+ j(pe, {
224
+ id: `${g}_tab_${l.key}`,
225
+ "aria-selected": i.value === l.key,
226
+ class: I(["bb-tab__btn", { "bb-tab__btn--active": i.value === l.key }]),
227
+ disabled: l.disabled || e.disabled,
228
+ role: "tab",
229
+ tabindex: i.value === l.key ? 0 : -1,
230
+ onClick: (n) => y(l.key, t.replace),
231
+ onKeydown: ee
232
+ }, {
233
+ default: L(() => [
234
+ k(e.$slots, `label-${l.key}`, {
230
235
  current: i.value,
231
236
  currentIndex: o.value,
232
237
  disabled: !!(l.disabled || e.disabled),
233
238
  goTo: u,
234
- isFirst: k.value,
235
- isLast: g.value,
239
+ isFirst: _.value,
240
+ isLast: w.value,
236
241
  selected: i.value === l.key,
237
242
  text: l.label,
238
243
  value: l.key
239
244
  }, () => [
240
- c("span", qe, de(l.label), 1)
245
+ k(e.$slots, "label", {
246
+ current: i.value,
247
+ currentIndex: o.value,
248
+ disabled: !!(l.disabled || e.disabled),
249
+ goTo: u,
250
+ isFirst: _.value,
251
+ isLast: w.value,
252
+ selected: i.value === l.key,
253
+ text: l.label,
254
+ value: l.key
255
+ }, () => [
256
+ d("span", $e, U(l.label), 1)
257
+ ])
241
258
  ])
242
- ])
243
- ]),
244
- _: 2
245
- }, 1032, ["id", "aria-selected", "class", "disabled", "tabindex", "onClick"])
246
- ]))), 128))
247
- ], 4),
248
- c("span", null, [
249
- v(e.$slots, "header:append", M(O(V.value)))
259
+ ]),
260
+ _: 2
261
+ }, 1032, ["id", "aria-selected", "class", "disabled", "tabindex", "onClick"])
262
+ ]))), 128))
263
+ ], 4),
264
+ d("span", null, [
265
+ k(e.$slots, "header:append", K(J(C.value)))
266
+ ])
267
+ ]),
268
+ d("div", Se, [
269
+ j(ke, null, {
270
+ default: L(() => [
271
+ (h(!0), p(x, null, O(e.items, (l) => (h(), ue(de, {
272
+ key: l.key,
273
+ css: e.animate,
274
+ name: `tab-slide-${E.value}`
275
+ }, {
276
+ default: L(() => [
277
+ i.value === l.key || e.eager || l.eager ? (h(), p("section", {
278
+ key: 0,
279
+ id: `${g}_tabpanel_${l.key}`,
280
+ "aria-labelledby": `${g}_tab_${l.key}`,
281
+ class: I(["bb-tab__pane", {
282
+ "bb-tab__pane--shown": i.value === l.key
283
+ }]),
284
+ role: "tabpanel",
285
+ tabindex: "0"
286
+ }, [
287
+ k(e.$slots, l.key, {
288
+ current: i.value,
289
+ currentIndex: o.value,
290
+ disabled: !!(l.disabled || e.disabled),
291
+ goTo: u,
292
+ isFirst: _.value,
293
+ isLast: w.value,
294
+ selected: i.value === l.key,
295
+ text: l.label,
296
+ value: l.key
297
+ })
298
+ ], 10, qe)) : ce("", !0)
299
+ ]),
300
+ _: 2
301
+ }, 1032, ["css", "name"]))), 128))
302
+ ]),
303
+ _: 3
304
+ })
250
305
  ])
251
- ]),
252
- c("div", xe, [
253
- X(_e, null, {
254
- default: T(() => [
255
- (b(!0), m(G, null, Q(e.items, (l) => (b(), ce(be, {
256
- key: l.key,
257
- css: e.animate,
258
- name: `tab-slide-${C.value}`
259
- }, {
260
- default: T(() => [
261
- i.value === l.key || e.eager || l.eager ? (b(), m("section", {
262
- key: 0,
263
- id: `${p}_tabpanel_${l.key}`,
264
- "aria-labelledby": `${p}_tab_${l.key}`,
265
- class: x(["bb-tab__pane", {
266
- "bb-tab__pane--shown": i.value === l.key
267
- }]),
268
- role: "tabpanel",
269
- tabindex: "0"
270
- }, [
271
- v(e.$slots, l.key, {
272
- current: i.value,
273
- currentIndex: o.value,
274
- disabled: !!(l.disabled || e.disabled),
275
- goTo: u,
276
- isFirst: k.value,
277
- isLast: g.value,
278
- selected: i.value === l.key,
279
- text: l.label,
280
- value: l.key
281
- })
282
- ], 10, Te)) : he("", !0)
283
- ]),
284
- _: 2
285
- }, 1032, ["css", "name"]))), 128))
286
- ]),
287
- _: 3
288
- })
289
- ])
290
- ], 10, $e));
306
+ ], 10, _e)
307
+ ], 64));
291
308
  }
292
309
  });
293
310
  export {
294
- Fe as default
311
+ We as default
295
312
  };
package/dist/index110.js CHANGED
@@ -1,15 +1,15 @@
1
1
  import { defineComponent as oe, ref as x, computed as y, toRef as B, watch as ne, openBlock as n, createBlock as de, resolveDynamicComponent as ce, normalizeClass as r, unref as u, withCtx as ie, createElementBlock as d, toDisplayString as p, createCommentVNode as _, createElementVNode as o, renderSlot as f, createVNode as I, Fragment as w, renderList as T, createTextVNode as be, mergeProps as re } from "vue";
2
- import { add as ue } from "./index286.js";
2
+ import { add as ue } from "./index295.js";
3
3
  import { clamp as pe } from "./index205.js";
4
4
  import { isNil as M } from "./index129.js";
5
5
  import { useId as fe } from "./index8.js";
6
- import { useItemValue as me } from "./index280.js";
7
- import { when as ye } from "./index208.js";
6
+ import { useItemValue as me } from "./index260.js";
7
+ import { when as ye } from "./index210.js";
8
8
  import J from "./index17.js";
9
9
  /* empty css */
10
10
  import he from "./index31.js";
11
11
  /* empty css */
12
- import { useOptions as ke } from "./index233.js";
12
+ import { useOptions as ke } from "./index206.js";
13
13
  const _e = {
14
14
  key: 0,
15
15
  class: "sr-only"
package/dist/index118.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as s, openBlock as e, createBlock as o, Teleport as l, createElementVNode as c, normalizeClass as m, createVNode as i, TransitionGroup as p, withCtx as u, createElementBlock as f, Fragment as d, renderList as _, unref as r, mergeProps as b } from "vue";
2
2
  import { state as k, useToast as C } from "./index11.js";
3
- import B from "./index285.js";
3
+ import B from "./index294.js";
4
4
  const N = /* @__PURE__ */ s({
5
5
  __name: "BbToast",
6
6
  props: {
package/dist/index120.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as z, defineAsyncComponent as A, ref as a, watch as I, computed as R, openBlock as v, createElementBlock as S, mergeProps as U, createElementVNode as c, renderSlot as E, normalizeProps as W, guardReactiveProps as j, unref as u, createBlock as D, withCtx as L, createCommentVNode as M } from "vue";
2
- import { useFloating as q, arrow as G } from "./index237.js";
2
+ import { useFloating as q, arrow as G } from "./index212.js";
3
3
  import { useId as J } from "./index8.js";
4
4
  import { wait as P } from "./index131.js";
5
5
  import K from "./index13.js";
6
6
  /* empty css */
7
- import { throttle as b } from "./index228.js";
8
- import { waitFor as Q } from "./index230.js";
9
- import { autoUpdate as X, flip as Y, shift as Z, hide as x } from "./index241.js";
7
+ import { throttle as b } from "./index229.js";
8
+ import { waitFor as Q } from "./index222.js";
9
+ import { autoUpdate as X, flip as Y, shift as Z, hide as x } from "./index227.js";
10
10
  const ue = /* @__PURE__ */ z({
11
11
  __name: "BbTooltip",
12
12
  props: {
@@ -24,7 +24,7 @@ const ue = /* @__PURE__ */ z({
24
24
  },
25
25
  setup(F) {
26
26
  const O = A(
27
- () => import("./index252.js")
27
+ () => import("./index250.js")
28
28
  ), t = F, w = `bb_${t.id ?? J().id.value}`, s = a(), d = a(), _ = a(), { placement: g, middlewareData: $ } = q(s, d, {
29
29
  placement: t.placement,
30
30
  whileElementsMounted: X,
package/dist/index122.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as $, computed as g, resolveComponent as y, openBlock as f, createElementBlock as i, Fragment as k, renderList as h, normalizeClass as b, createElementVNode as s, renderSlot as t, createVNode as v, createSlots as B, withCtx as _, mergeProps as C } from "vue";
2
- import { flattenTree as T } from "./index287.js";
2
+ import { flattenTree as T } from "./index296.js";
3
3
  const w = { class: "bb-tree-row" }, E = { class: "bb-tree-main-content" }, N = /* @__PURE__ */ $({
4
4
  __name: "BbTree",
5
5
  props: {
package/dist/index126.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as m, getCurrentInstance as d, inject as x, computed as l, ref as y, watchEffect as z, openBlock as _, createElementBlock as b, mergeProps as h } from "vue";
2
- import { isCssColor as w } from "./index207.js";
2
+ import { isCssColor as w } from "./index209.js";
3
3
  const g = ["innerHTML"], $ = /* @__PURE__ */ m({
4
4
  __name: "BbIcon",
5
5
  props: {
package/dist/index127.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as v, ref as r, onMounted as p, onBeforeUnmount as h, openBlock as i, createBlock as l, resolveDynamicComponent as u, normalizeStyle as m, withCtx as f, renderSlot as d } from "vue";
2
- import { throttle as g } from "./index228.js";
2
+ import { throttle as g } from "./index229.js";
3
3
  const O = /* @__PURE__ */ v({
4
4
  __name: "BbSmoothHeight",
5
5
  props: {
package/dist/index128.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as p, computed as s, openBlock as b, createElementBlock as a, normalizeProps as _, guardReactiveProps as x, createStaticVNode as m } from "vue";
2
- import { isCssColor as u } from "./index207.js";
2
+ import { isCssColor as u } from "./index209.js";
3
3
  const f = /* @__PURE__ */ p({
4
4
  __name: "BbSpinner",
5
5
  props: {
package/dist/index13.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as y, getCurrentInstance as p, computed as s, resolveComponent as d, openBlock as k, createBlock as h, resolveDynamicComponent as C, mergeProps as x, withCtx as S, renderSlot as L, createTextVNode as B, toDisplayString as N } from "vue";
2
2
  import { _config as o } from "./index4.js";
3
- import { useLogger as m } from "./index206.js";
3
+ import { useLogger as m } from "./index231.js";
4
4
  const P = /* @__PURE__ */ y({
5
5
  __name: "BaseButton",
6
6
  props: {
package/dist/index15.js CHANGED
@@ -2,8 +2,8 @@ import { defineComponent as k, ref as y, computed as v, watchPostEffect as h, op
2
2
  import z from "./index223.js";
3
3
  /* empty css */
4
4
  import I from "./index225.js";
5
- import { vMaska as M } from "./index226.js";
6
- import { isHex as D } from "./index227.js";
5
+ import { vMaska as M } from "./index221.js";
6
+ import { isHex as D } from "./index232.js";
7
7
  const F = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus", "disabled", "name", "placeholder", "readonly", "required", "value"], P = ["aria-invalid", "disabled", "required"], T = /* @__PURE__ */ k({
8
8
  __name: "BaseColorInput",
9
9
  props: {
package/dist/index17.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as E, ref as m, computed as n, watch as _, openBlock as p, createElementBlock as h, normalizeProps as i, guardReactiveProps as f, mergeProps as k, createCommentVNode as I, createElementVNode as s, renderSlot as q } from "vue";
2
- import { isCssColor as y } from "./index207.js";
3
- import { when as F } from "./index208.js";
4
- import { booleanishToBoolean as N } from "./index209.js";
2
+ import { isCssColor as y } from "./index209.js";
3
+ import { when as F } from "./index210.js";
4
+ import { booleanishToBoolean as N } from "./index211.js";
5
5
  const S = {
6
6
  "aria-hidden": "true",
7
7
  class: "bb-base-checkbox-container"
package/dist/index19.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as $, ref as p, toRef as l, openBlock as B, createBlock as w, unref as f, withCtx as i, renderSlot as s, normalizeProps as b, guardReactiveProps as h, createVNode as O, mergeProps as v } from "vue";
2
- import { useOptions as z } from "./index233.js";
2
+ import { useOptions as z } from "./index206.js";
3
3
  import F from "./index17.js";
4
4
  /* empty css */
5
- import M from "./index234.js";
5
+ import M from "./index207.js";
6
6
  /* empty css */
7
7
  const G = /* @__PURE__ */ $({
8
8
  __name: "BaseCheckboxGroup",