bitboss-ui 2.1.3 → 2.1.5

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 (180) hide show
  1. package/dist/components/BaseSlider/BaseSlider.vue.d.ts +5 -0
  2. package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +12 -0
  3. package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +12 -0
  4. package/dist/index.css +1 -1
  5. package/dist/index100.js +33 -28
  6. package/dist/index106.js +9 -9
  7. package/dist/index111.js +1 -1
  8. package/dist/index113.js +1 -1
  9. package/dist/index117.js +35 -30
  10. package/dist/index121.js +12 -12
  11. package/dist/index13.js +1 -1
  12. package/dist/index131.js +4 -4
  13. package/dist/index136.js +1 -1
  14. package/dist/index137.js +2 -2
  15. package/dist/index138.js +1 -1
  16. package/dist/index139.js +2 -2
  17. package/dist/index15.js +8 -8
  18. package/dist/index17.js +3 -3
  19. package/dist/index19.js +8 -8
  20. package/dist/index206.js +138 -2
  21. package/dist/index207.js +2 -2
  22. package/dist/index208.js +2 -138
  23. package/dist/index209.js +5 -13
  24. package/dist/index21.js +16 -16
  25. package/dist/index210.js +5 -13
  26. package/dist/index211.js +5 -11
  27. package/dist/index212.js +5 -86
  28. package/dist/index213.js +7 -0
  29. package/dist/index214.js +5 -29
  30. package/dist/index215.js +5 -17
  31. package/dist/index216.js +3 -51
  32. package/dist/index217.js +2 -15
  33. package/dist/index218.js +8 -3
  34. package/dist/index219.js +250 -12
  35. package/dist/index220.js +52 -16
  36. package/dist/index221.js +44 -2
  37. package/dist/index222.js +5 -106
  38. package/dist/index224.js +12 -99
  39. package/dist/index225.js +88 -0
  40. package/dist/index227.js +31 -0
  41. package/dist/index228.js +17 -13
  42. package/dist/index229.js +51 -2
  43. package/dist/index23.js +15 -15
  44. package/dist/index230.js +15 -5
  45. package/dist/index231.js +12 -5
  46. package/dist/index232.js +16 -5
  47. package/dist/index233.js +2 -5
  48. package/dist/index234.js +2 -5
  49. package/dist/index235.js +2 -5
  50. package/dist/index236.js +4 -2
  51. package/dist/index237.js +105 -19
  52. package/dist/index239.js +102 -0
  53. package/dist/index241.js +66 -4
  54. package/dist/index243.js +13 -34
  55. package/dist/index244.js +2 -2
  56. package/dist/index245.js +2 -2
  57. package/dist/index246.js +2 -7
  58. package/dist/index247.js +7 -7
  59. package/dist/index248.js +7 -3
  60. package/dist/index249.js +13 -4
  61. package/dist/index25.js +3 -3
  62. package/dist/index250.js +10 -196
  63. package/dist/index251.js +5 -0
  64. package/dist/index252.js +5 -5
  65. package/dist/index253.js +20 -5
  66. package/dist/index254.js +111 -6
  67. package/dist/index256.js +175 -50
  68. package/dist/index257.js +4 -44
  69. package/dist/index258.js +197 -5
  70. package/dist/index260.js +9 -17
  71. package/dist/index261.js +2 -11
  72. package/dist/index262.js +33 -5
  73. package/dist/index263.js +17 -227
  74. package/dist/index264.js +11 -9
  75. package/dist/index265.js +6 -3
  76. package/dist/index266.js +226 -175
  77. package/dist/index269.js +6 -3
  78. package/dist/index27.js +1 -1
  79. package/dist/index270.js +16 -6
  80. package/dist/index271.js +9 -16
  81. package/dist/index272.js +3 -9
  82. package/dist/index273.js +9 -2
  83. package/dist/index274.js +8 -9
  84. package/dist/index275.js +2 -8
  85. package/dist/index276.js +1 -1
  86. package/dist/index278.js +279 -4
  87. package/dist/index279.js +2 -8
  88. package/dist/index280.js +16 -3
  89. package/dist/index281.js +2 -17
  90. package/dist/index282.js +15 -27
  91. package/dist/index283.js +2 -7
  92. package/dist/index284.js +18 -10
  93. package/dist/index285.js +2 -3
  94. package/dist/index286.js +15 -3
  95. package/dist/index287.js +2 -3
  96. package/dist/{index309.js → index288.js} +1 -1
  97. package/dist/index289.js +2 -7
  98. package/dist/index29.js +4 -4
  99. package/dist/index290.js +26 -3
  100. package/dist/index291.js +2 -280
  101. package/dist/index292.js +2 -2
  102. package/dist/index293.js +2 -125
  103. package/dist/index294.js +2 -2
  104. package/dist/index295.js +2 -15
  105. package/dist/index296.js +28 -2
  106. package/dist/index297.js +22 -16
  107. package/dist/index299.js +7 -16
  108. package/dist/index300.js +7 -2
  109. package/dist/index301.js +10 -18
  110. package/dist/index302.js +3 -2
  111. package/dist/index303.js +17 -3
  112. package/dist/index304.js +6 -2
  113. package/dist/index306.js +3 -6
  114. package/dist/index307.js +3 -5
  115. package/dist/index308.js +1 -1
  116. package/dist/index31.js +2 -2
  117. package/dist/index310.js +5 -2
  118. package/dist/index311.js +120 -22
  119. package/dist/index312.js +2 -2
  120. package/dist/index313.js +3 -2
  121. package/dist/index314.js +3 -2
  122. package/dist/index315.js +1 -1
  123. package/dist/index316.js +1 -1
  124. package/dist/index317.js +701 -22
  125. package/dist/index318.js +356 -0
  126. package/dist/index319.js +58 -2
  127. package/dist/index320.js +5 -5
  128. package/dist/index321.js +8 -701
  129. package/dist/index322.js +5 -354
  130. package/dist/index323.js +3 -57
  131. package/dist/index325.js +7 -58
  132. package/dist/index326.js +18 -57
  133. package/dist/index328.js +32 -227
  134. package/dist/index329.js +27 -128
  135. package/dist/index33.js +8 -8
  136. package/dist/index331.js +57 -32
  137. package/dist/index332.js +57 -27
  138. package/dist/index333.js +131 -0
  139. package/dist/index334.js +366 -44
  140. package/dist/index335.js +227 -7
  141. package/dist/index336.js +7 -5
  142. package/dist/index337.js +6 -8
  143. package/dist/index338.js +8 -7
  144. package/dist/index339.js +45 -17
  145. package/dist/index340.js +1 -1
  146. package/dist/index342.js +5 -0
  147. package/dist/index343.js +129 -3
  148. package/dist/index35.js +4 -4
  149. package/dist/index37.js +20 -20
  150. package/dist/index39.js +78 -70
  151. package/dist/index41.js +2 -2
  152. package/dist/index43.js +8 -8
  153. package/dist/index45.js +8 -8
  154. package/dist/index47.js +2 -2
  155. package/dist/index49.js +3 -3
  156. package/dist/index53.js +1 -1
  157. package/dist/index55.js +1 -1
  158. package/dist/index57.js +2 -2
  159. package/dist/index61.js +3 -3
  160. package/dist/index65.js +30 -25
  161. package/dist/index67.js +1 -1
  162. package/dist/index79.js +2 -2
  163. package/dist/index81.js +1 -1
  164. package/dist/index83.js +2 -2
  165. package/dist/index85.js +1 -1
  166. package/dist/index87.js +1 -1
  167. package/dist/index90.js +3 -3
  168. package/dist/index92.js +2 -2
  169. package/dist/index94.js +3 -3
  170. package/dist/index96.js +1 -1
  171. package/package.json +2 -2
  172. package/dist/index226.js +0 -68
  173. package/dist/index238.js +0 -115
  174. package/dist/index240.js +0 -4
  175. package/dist/index242.js +0 -4
  176. package/dist/index255.js +0 -252
  177. package/dist/index298.js +0 -4
  178. package/dist/index330.js +0 -371
  179. package/dist/index341.js +0 -131
  180. /package/dist/{index259.js → index223.js} +0 -0
package/dist/index39.js CHANGED
@@ -1,17 +1,17 @@
1
- import { defineComponent as re, ref as d, computed as f, onMounted as te, watch as le, createElementBlock as y, openBlock as g, mergeProps as P, renderSlot as v, createElementVNode as m, createCommentVNode as H, Fragment as oe, renderList as ne, normalizeProps as se, guardReactiveProps as ie, unref as c, normalizeStyle as G, normalizeClass as O } from "vue";
2
- import { head as ue } from "./index244.js";
3
- import { isCssColor as Y } from "./index240.js";
4
- import { isNil as S } from "./index245.js";
5
- import { getAsPercentageBetween as T, getAsPercentage as de, getValueFromPercentageInInterval as C } from "./index136.js";
6
- import { hash as j } from "./index218.js";
7
- import { snapToStep as me } from "./index246.js";
8
- import { last as ce } from "./index221.js";
9
- import { transpose as J } from "./index247.js";
10
- import { clamp as p } from "./index206.js";
11
- const be = { class: "bb-base-slider__slider-container" }, ve = {
1
+ import { defineComponent as te, ref as d, computed as p, onMounted as le, watch as oe, createElementBlock as y, openBlock as g, mergeProps as L, renderSlot as v, createElementVNode as m, createCommentVNode as H, Fragment as ne, renderList as se, normalizeProps as ie, guardReactiveProps as ue, unref as c, normalizeStyle as G, normalizeClass as O } from "vue";
2
+ import { head as de } from "./index245.js";
3
+ import { isCssColor as Y } from "./index235.js";
4
+ import { isNil as S } from "./index246.js";
5
+ import { getAsPercentageBetween as T, getAsPercentage as me, getValueFromPercentageInInterval as x } from "./index136.js";
6
+ import { hash as j } from "./index216.js";
7
+ import { snapToStep as ce } from "./index247.js";
8
+ import { last as be } from "./index217.js";
9
+ import { transpose as J } from "./index248.js";
10
+ import { clamp as f } from "./index207.js";
11
+ const ve = { class: "bb-base-slider__slider-container" }, fe = {
12
12
  key: 0,
13
13
  class: "bb-base-slider__ticks-container"
14
- }, fe = ["id", "disabled", "name", "readonly", "required", "value"], pe = ["aria-describedby", "aria-readonly", "aria-valuemax", "aria-valuemin", "aria-valuenow", "tabindex"], he = ["aria-describedby", "aria-readonly", "aria-valuemax", "aria-valuemin", "aria-valuenow", "tabindex"], Le = /* @__PURE__ */ re({
14
+ }, pe = ["id", "disabled", "name", "readonly", "required", "value"], he = ["aria-describedby", "aria-readonly", "aria-valuemax", "aria-valuemin", "aria-valuenow", "tabindex"], ye = ["aria-describedby", "aria-readonly", "aria-valuemax", "aria-valuemin", "aria-valuenow", "tabindex"], Ne = /* @__PURE__ */ te({
15
15
  __name: "BaseSlider",
16
16
  props: {
17
17
  ariaDescribedby: {},
@@ -21,6 +21,7 @@ const be = { class: "bb-base-slider__slider-container" }, ve = {
21
21
  hasErrors: { type: Boolean },
22
22
  id: {},
23
23
  max: { default: 100 },
24
+ maxPrecision: { default: 2 },
24
25
  min: { default: 0 },
25
26
  modelValue: { default: 0 },
26
27
  name: {},
@@ -36,29 +37,29 @@ const be = { class: "bb-base-slider__slider-container" }, ve = {
36
37
  const a = K, s = Q;
37
38
  if (a.min < Number.MIN_SAFE_INTEGER || a.max > Number.MAX_SAFE_INTEGER)
38
39
  throw new Error("BaseSlider min or max is too large");
39
- const I = d(), V = d(), b = d(), u = d(), n = d(0), l = d(0), E = f(() => Array.isArray(a.modelValue) ? ue(a.modelValue) ?? void 0 : S(a.modelValue) ? void 0 : Number(a.modelValue)), _ = f(() => Array.isArray(a.modelValue) ? ce(a.modelValue) ?? void 0 : S(a.modelValue) ? void 0 : Number(a.modelValue)), A = f(() => [n.value, l.value].sort(
40
+ const C = d(), V = d(), b = d(), u = d(), n = d(0), l = d(0), E = p(() => Array.isArray(a.modelValue) ? de(a.modelValue) ?? void 0 : S(a.modelValue) ? void 0 : Number(a.modelValue)), _ = p(() => Array.isArray(a.modelValue) ? be(a.modelValue) ?? void 0 : S(a.modelValue) ? void 0 : Number(a.modelValue)), A = p(() => [n.value, l.value].sort(
40
41
  (e, r) => e - r
41
42
  )), $ = d(!1);
42
43
  if (a.range && !Array.isArray(a.modelValue))
43
44
  throw new TypeError(
44
45
  "BaseSlider mode is set as range but modelValue is not an array"
45
46
  );
46
- te(() => {
47
+ le(() => {
47
48
  var e;
48
49
  a.autofocus && ((e = u.value) == null || e.focus());
49
50
  });
50
- let B = d(!1), o = d(null);
51
- const x = (e) => {
51
+ let P = d(!1), o = d(null);
52
+ const F = (e) => {
52
53
  if (u.value && u.value.contains(e.target))
53
54
  return "higher";
54
55
  if (b.value && b.value.contains(e.target))
55
56
  return "lower";
56
57
  throw new Error("Could not identify target thumb");
57
58
  }, U = (e) => {
58
- a.disabled || a.readonly || (o.value || (o.value = x(e)), B.value = !0, document.addEventListener("pointermove", L), document.addEventListener("pointerup", R), s("pointerdown", e));
59
+ a.disabled || a.readonly || (o.value || (o.value = F(e)), P.value = !0, document.addEventListener("pointermove", B), document.addEventListener("pointerup", z), s("pointerdown", e));
59
60
  };
60
- let z = f(() => B.value ? {} : { onPointerdown: U });
61
- const L = (e) => {
61
+ let I = p(() => P.value ? {} : { onPointerdown: U });
62
+ const B = (e) => {
62
63
  if (!(a.disabled || a.readonly) && V.value) {
63
64
  e instanceof PointerEvent ? s("pointermove", e) : s("click", e);
64
65
  const r = V.value.getBoundingClientRect(), t = e.clientX, i = r.left, h = r.width;
@@ -69,35 +70,42 @@ const be = { class: "bb-base-slider__slider-container" }, ve = {
69
70
  a.min,
70
71
  a.max
71
72
  );
72
- const ae = me(
73
+ const ae = ce(
73
74
  ee,
74
75
  a.min,
75
76
  a.max,
76
77
  a.step
77
- ), M = T(
78
+ ), re = T(
78
79
  ae,
79
80
  a.min,
80
81
  a.max
81
- );
82
+ ), M = f(re, 0, 100);
82
83
  o.value === "higher" ? l.value = M : o.value === "lower" && (n.value = M), s("update:modelValue", N());
83
84
  }
84
- }, N = () => a.range ? [
85
- C(
86
- n.value,
87
- a.min,
88
- a.max
89
- ),
90
- C(
91
- l.value,
92
- a.min,
93
- a.max
94
- )
95
- ].sort((e, r) => e - r) : C(
96
- l.value,
97
- a.min,
98
- a.max
99
- );
100
- le(
85
+ }, N = () => {
86
+ if (a.range)
87
+ return [
88
+ x(
89
+ n.value,
90
+ a.min,
91
+ a.max
92
+ ),
93
+ x(
94
+ l.value,
95
+ a.min,
96
+ a.max
97
+ )
98
+ ].sort((e, r) => e - r).map((e) => Number(e.toFixed(a.maxPrecision)));
99
+ {
100
+ const e = x(
101
+ l.value,
102
+ a.min,
103
+ a.max
104
+ );
105
+ return Number(e.toFixed(a.maxPrecision));
106
+ }
107
+ };
108
+ oe(
101
109
  () => a.modelValue,
102
110
  (e) => {
103
111
  if (a.range) {
@@ -108,44 +116,44 @@ const be = { class: "bb-base-slider__slider-container" }, ve = {
108
116
  return;
109
117
  }
110
118
  const t = [...e].sort((i, h) => i - h).map(
111
- (i) => p(T(i, a.min, a.max), 0, 100)
119
+ (i) => f(T(i, a.min, a.max), 0, 100)
112
120
  );
113
121
  n.value > l.value ? (n.value = t[1], l.value = t[0]) : (n.value = t[0], l.value = t[1]);
114
122
  } else {
115
123
  let r = e ?? a.min;
116
- const t = J(r, a.min, a.max, 0, 100), i = p(t, 0, 100);
124
+ const t = J(r, a.min, a.max, 0, 100), i = f(t, 0, 100);
117
125
  l.value = i;
118
126
  }
119
127
  },
120
128
  { immediate: !0 }
121
129
  );
122
- const R = (e) => {
123
- B.value = !1, o.value = null, document.removeEventListener("pointermove", L), document.removeEventListener("pointerup", R), s("pointerup", e);
124
- }, w = de(a.step, a.max - a.min), X = (e) => {
125
- s("keydown", e), !(a.disabled || a.readonly || e.key !== "ArrowLeft" && e.key !== "ArrowRight") && (e.key === "ArrowLeft" ? o.value === "higher" || document.activeElement === u.value || e.target === u.value ? l.value = p(
130
+ const z = (e) => {
131
+ P.value = !1, o.value = null, document.removeEventListener("pointermove", B), document.removeEventListener("pointerup", z), s("pointerup", e);
132
+ }, w = me(a.step, a.max - a.min), R = (e) => {
133
+ s("keydown", e), !(a.disabled || a.readonly || e.key !== "ArrowLeft" && e.key !== "ArrowRight") && (e.key === "ArrowLeft" ? o.value === "higher" || document.activeElement === u.value || e.target === u.value ? l.value = f(
126
134
  l.value - w,
127
135
  0,
128
136
  100
129
- ) : (o.value === "lower" || document.activeElement === b.value || e.target === b.value) && (n.value = p(
137
+ ) : (o.value === "lower" || document.activeElement === b.value || e.target === b.value) && (n.value = f(
130
138
  n.value - w,
131
139
  0,
132
140
  100
133
- )) : e.key === "ArrowRight" && (o.value === "higher" || document.activeElement === u.value || e.target === u.value ? l.value = p(
141
+ )) : e.key === "ArrowRight" && (o.value === "higher" || document.activeElement === u.value || e.target === u.value ? l.value = f(
134
142
  l.value + w,
135
143
  0,
136
144
  100
137
- ) : (o.value === "lower" || document.activeElement === b.value || e.target === b.value) && (n.value = p(
145
+ ) : (o.value === "lower" || document.activeElement === b.value || e.target === b.value) && (n.value = f(
138
146
  n.value + w,
139
147
  0,
140
148
  100
141
149
  ))), s("update:modelValue", N()));
142
- }, F = (e) => {
150
+ }, X = (e) => {
143
151
  s("focus", e);
144
- const r = x(e);
152
+ const r = F(e);
145
153
  r && (o.value = r), $.value || ($.value = !0, s("active"), document.addEventListener("focusin", k), document.addEventListener("click", k));
146
154
  }, k = (e) => {
147
155
  var r;
148
- e.target instanceof HTMLElement && ((r = I.value) != null && r.contains(e.target) || ($.value = !1, o.value = null, s("inactive"), document.removeEventListener("focusin", k), document.removeEventListener("click", k)));
156
+ e.target instanceof HTMLElement && ((r = C.value) != null && r.contains(e.target) || ($.value = !1, o.value = null, s("inactive"), document.removeEventListener("focusin", k), document.removeEventListener("click", k)));
149
157
  }, q = {
150
158
  class: {
151
159
  "bb-base-slider": !0,
@@ -157,14 +165,14 @@ const be = { class: "bb-base-slider__slider-container" }, ve = {
157
165
  onClick: (e) => {
158
166
  var t;
159
167
  if (a.range) return;
160
- (t = u.value) == null || t.focus(), L(e);
168
+ (t = u.value) == null || t.focus(), B(e);
161
169
  const r = N();
162
170
  j(r), j(a.modelValue);
163
171
  },
164
172
  style: {}
165
173
  };
166
174
  a.color && Y(a.color) && (q.style["--color"] = a.color);
167
- const W = f(() => {
175
+ const W = p(() => {
168
176
  const e = "bb-base-slider__track-background", r = {
169
177
  width: `${A.value[1] - A.value[0]}%`,
170
178
  left: `${A.value[0]}%`
@@ -173,7 +181,7 @@ const be = { class: "bb-base-slider__slider-container" }, ve = {
173
181
  class: e,
174
182
  style: r
175
183
  };
176
- }), Z = (e) => S(a.modelValue) ? !1 : Array.isArray(a.modelValue) ? a.modelValue.length === 0 ? !1 : a.modelValue[0] <= e && a.modelValue[1] >= e : e <= Number(a.modelValue), D = f(() => {
184
+ }), Z = (e) => S(a.modelValue) ? !1 : Array.isArray(a.modelValue) ? a.modelValue.length === 0 ? !1 : a.modelValue[0] <= e && a.modelValue[1] >= e : e <= Number(a.modelValue), D = p(() => {
177
185
  if (!a.ticks) return [];
178
186
  let e = [], r = a.min;
179
187
  for (; r <= a.max; ) {
@@ -187,14 +195,14 @@ const be = { class: "bb-base-slider__slider-container" }, ve = {
187
195
  }
188
196
  return e;
189
197
  });
190
- return (e, r) => (g(), y("span", P(q, {
198
+ return (e, r) => (g(), y("span", L(q, {
191
199
  ref_key: "container",
192
- ref: I
200
+ ref: C
193
201
  }), [
194
202
  v(e.$slots, "prepend"),
195
- m("span", be, [
196
- D.value.length ? (g(), y("span", ve, [
197
- (g(!0), y(oe, null, ne(D.value, (t) => (g(), y("span", {
203
+ m("span", ve, [
204
+ D.value.length ? (g(), y("span", fe, [
205
+ (g(!0), y(ne, null, se(D.value, (t) => (g(), y("span", {
198
206
  key: t.value,
199
207
  class: "bb-base-slider__tick"
200
208
  }, [
@@ -215,16 +223,16 @@ const be = { class: "bb-base-slider__slider-container" }, ve = {
215
223
  tabindex: -1,
216
224
  type: "text",
217
225
  value: JSON.stringify(e.modelValue)
218
- }, null, 8, fe),
226
+ }, null, 8, pe),
219
227
  m("span", {
220
228
  ref_key: "track",
221
229
  ref: V,
222
230
  class: "bb-base-slider__track-container"
223
231
  }, [
224
232
  r[0] || (r[0] = m("span", { class: "bb-base-slider__track-fill" }, null, -1)),
225
- m("span", se(ie(W.value)), null, 16)
233
+ m("span", ie(ue(W.value)), null, 16)
226
234
  ], 512),
227
- a.range ? (g(), y("span", P({ key: 1 }, c(z), {
235
+ a.range ? (g(), y("span", L({ key: 1 }, c(I), {
228
236
  key: "thumblower",
229
237
  ref_key: "thumblower",
230
238
  ref: b,
@@ -239,8 +247,8 @@ const be = { class: "bb-base-slider__slider-container" }, ve = {
239
247
  role: "slider",
240
248
  style: { left: `${n.value}%` },
241
249
  tabindex: e.disabled ? -1 : 0,
242
- onFocus: F,
243
- onKeydown: X
250
+ onFocus: X,
251
+ onKeydown: R
244
252
  }), [
245
253
  m("span", {
246
254
  class: O({
@@ -265,8 +273,8 @@ const be = { class: "bb-base-slider__slider-container" }, ve = {
265
273
  })
266
274
  ])
267
275
  ], 6)
268
- ], 16, pe)) : H("", !0),
269
- m("span", P(c(z), {
276
+ ], 16, he)) : H("", !0),
277
+ m("span", L(c(I), {
270
278
  key: "thumbhigher",
271
279
  ref_key: "thumbhigher",
272
280
  ref: u,
@@ -281,8 +289,8 @@ const be = { class: "bb-base-slider__slider-container" }, ve = {
281
289
  role: "slider",
282
290
  style: { left: `${l.value}%` },
283
291
  tabindex: e.disabled ? -1 : 0,
284
- onFocus: F,
285
- onKeydown: X
292
+ onFocus: X,
293
+ onKeydown: R
286
294
  }), [
287
295
  m("span", {
288
296
  class: O({
@@ -307,12 +315,12 @@ const be = { class: "bb-base-slider__slider-container" }, ve = {
307
315
  })
308
316
  ])
309
317
  ], 6)
310
- ], 16, he)
318
+ ], 16, ye)
311
319
  ]),
312
320
  v(e.$slots, "append")
313
321
  ], 16));
314
322
  }
315
323
  });
316
324
  export {
317
- Le as default
325
+ Ne as default
318
326
  };
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 "./index240.js";
3
- import { when as N } from "./index241.js";
2
+ import { isCssColor as b } from "./index235.js";
3
+ import { when as N } from "./index236.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 "./index212.js";
4
+ import N from "./index225.js";
5
5
  /* empty css */
6
- import { useItemsGetter as U } from "./index214.js";
7
- import { useIndexById as T } from "./index215.js";
8
- import { useBaseOptions as q } from "./index216.js";
9
- import { useCoherence as J } from "./index217.js";
10
- import { hash as Q } from "./index218.js";
11
- import { useHashedWatcher as $ } from "./index219.js";
12
- import { usePrefill as X } from "./index220.js";
6
+ import { useItemsGetter as U } from "./index227.js";
7
+ import { useIndexById as T } from "./index228.js";
8
+ import { useBaseOptions as q } from "./index229.js";
9
+ import { useCoherence as J } from "./index230.js";
10
+ import { hash as Q } from "./index216.js";
11
+ import { useHashedWatcher as $ } from "./index231.js";
12
+ import { usePrefill as X } from "./index232.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 "./index221.js";
7
- import { useBaseOptions as ne } from "./index216.js";
8
- import { useIndexById as re } from "./index215.js";
9
- import ie from "./index222.js";
6
+ import { last as le } from "./index217.js";
7
+ import { useBaseOptions as ne } from "./index229.js";
8
+ import { useIndexById as re } from "./index228.js";
9
+ import ie from "./index237.js";
10
10
  /* empty css */
11
- import ue from "./index224.js";
11
+ import ue from "./index239.js";
12
12
  /* empty css */
13
- import se from "./index226.js";
13
+ import se from "./index241.js";
14
14
  /* empty css */
15
- import de from "./index228.js";
16
- import { isEmpty as pe } from "./index229.js";
15
+ import de from "./index243.js";
16
+ import { isEmpty as pe } from "./index244.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 "./index228.js";
3
- import G from "./index226.js";
2
+ import E from "./index243.js";
3
+ import G from "./index241.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 "./index226.js";
2
+ import E from "./index241.js";
3
3
  /* empty css */
4
- import I from "./index228.js";
4
+ import I from "./index243.js";
5
5
  import { isNotNil as N } from "./index140.js";
6
- import { MaskInput as z } from "./index266.js";
6
+ import { MaskInput as z } from "./index256.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 "./index210.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 "./index240.js";
2
+ import { isCssColor as y } from "./index235.js";
3
3
  import { wait as C } from "./index135.js";
4
4
  const w = ["alt", "sizes", "src", "srcset"], B = {
5
5
  key: 1,
package/dist/index57.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as p, useSlots as d, computed as s, createElementBlock as m, openBlock as u, normalizeClass as g, createElementVNode as n, renderSlot as r, mergeProps as f, createTextVNode as _, toDisplayString as y } from "vue";
2
- import { isCssColor as l } from "./index240.js";
3
- import { isNil as B } from "./index245.js";
2
+ import { isCssColor as l } from "./index235.js";
3
+ import { isNil as B } from "./index246.js";
4
4
  const C = { class: "bb-badge__wrapper" }, h = { class: "bb-badge__content-inner" }, N = /* @__PURE__ */ p({
5
5
  __name: "BbBadge",
6
6
  props: {
package/dist/index61.js CHANGED
@@ -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 "./index264.js";
11
- import { noop as w } from "./index265.js";
12
- import { useLocale as D } from "./index210.js";
10
+ import { pickBy as W } from "./index260.js";
11
+ import { noop as w } from "./index261.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/index65.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defineComponent as f, ref as v, computed as g, createBlock as y, openBlock as B, withCtx as a, createVNode as $, mergeProps as w, renderSlot as i, normalizeProps as l, guardReactiveProps as r } from "vue";
1
+ import { defineComponent as f, ref as g, computed as v, createBlock as y, openBlock as B, withCtx as i, createVNode as $, mergeProps as w, renderSlot as a, normalizeProps as l, guardReactiveProps as t } from "vue";
2
2
  import T from "./index19.js";
3
3
  /* empty css */
4
4
  import V from "./index27.js";
@@ -11,6 +11,7 @@ const E = /* @__PURE__ */ f({
11
11
  compact: { type: Boolean },
12
12
  dependencies: {},
13
13
  depsDebounceTime: {},
14
+ direction: {},
14
15
  disabled: { type: Boolean },
15
16
  enforceCoherence: { type: Boolean },
16
17
  errors: {},
@@ -20,9 +21,11 @@ const E = /* @__PURE__ */ f({
20
21
  hint: {},
21
22
  id: {},
22
23
  inputDirection: {},
24
+ inputPosition: { default: "left" },
23
25
  items: {},
24
26
  itemText: {},
25
27
  itemValue: {},
28
+ labelPosition: {},
26
29
  legend: {},
27
30
  loadingText: {},
28
31
  max: {},
@@ -36,7 +39,7 @@ const E = /* @__PURE__ */ f({
36
39
  },
37
40
  emits: ["blur", "change", "click", "focus", "inactive", "input", "keydown", "mousedown", "mouseup", "update:modelValue"],
38
41
  setup(d, { emit: p }) {
39
- const m = d, n = p, s = v(!1), u = g(() => m.persistentHint || s.value), c = {
42
+ const u = d, n = p, s = g(!1), m = v(() => u.persistentHint || s.value), c = {
40
43
  onBlur: (e) => n("blur", e),
41
44
  onChange: (e) => n("change", e),
42
45
  onClick: (e) => n("click", e),
@@ -56,24 +59,26 @@ const E = /* @__PURE__ */ f({
56
59
  id: e.id,
57
60
  class: "bb-checkbox-group",
58
61
  compact: e.compact,
59
- direction: "vertical",
62
+ direction: e.direction,
60
63
  errors: e.errors,
61
64
  "has-errors": e.hasErrors,
62
65
  "hide-label": e.hideLegend,
63
66
  hint: e.hint,
67
+ "input-position": e.inputPosition,
64
68
  label: e.legend,
69
+ "label-position": e.labelPosition,
65
70
  "label-tag": "legend",
66
71
  name: e.name,
67
72
  reverse: e.reverse,
68
- "show-hint": u.value,
73
+ "show-hint": m.value,
69
74
  tag: "fieldset"
70
75
  }, {
71
- label: a((t) => [
72
- i(e.$slots, "legend", l(r(t)))
76
+ label: i((r) => [
77
+ a(e.$slots, "legend", l(t(r)))
73
78
  ]),
74
- input: a(({ id: t, hasErrors: b, ariaDescribedby: h }) => [
79
+ input: i(({ id: r, hasErrors: b, ariaDescribedby: h }) => [
75
80
  $(T, w({
76
- id: t,
81
+ id: r,
77
82
  "aria-describedby": h,
78
83
  autofocus: e.autofocus,
79
84
  color: e.color,
@@ -95,35 +100,35 @@ const E = /* @__PURE__ */ f({
95
100
  "no-data-text": e.noDataText,
96
101
  readonly: e.readonly
97
102
  }, c), {
98
- prepend: a((o) => [
99
- i(e.$slots, "prepend", l(r(o)))
103
+ prepend: i((o) => [
104
+ a(e.$slots, "prepend", l(t(o)))
100
105
  ]),
101
- loading: a((o) => [
102
- i(e.$slots, "loading", l(r(o)))
106
+ loading: i((o) => [
107
+ a(e.$slots, "loading", l(t(o)))
103
108
  ]),
104
- "no-data": a((o) => [
105
- i(e.$slots, "no-data", l(r(o)))
109
+ "no-data": i((o) => [
110
+ a(e.$slots, "no-data", l(t(o)))
106
111
  ]),
107
- "option:prepend": a((o) => [
108
- i(e.$slots, "option:prepend", l(r(o)))
112
+ "option:prepend": i((o) => [
113
+ a(e.$slots, "option:prepend", l(t(o)))
109
114
  ]),
110
- icon: a((o) => [
111
- i(e.$slots, "icon", l(r(o)))
115
+ icon: i((o) => [
116
+ a(e.$slots, "icon", l(t(o)))
112
117
  ]),
113
- label: a((o) => [
114
- i(e.$slots, "label", l(r(o)))
118
+ label: i((o) => [
119
+ a(e.$slots, "label", l(t(o)))
115
120
  ]),
116
- "option:append": a((o) => [
117
- i(e.$slots, "option:append", l(r(o)))
121
+ "option:append": i((o) => [
122
+ a(e.$slots, "option:append", l(t(o)))
118
123
  ]),
119
- append: a((o) => [
120
- i(e.$slots, "append", l(r(o)))
124
+ append: i((o) => [
125
+ a(e.$slots, "append", l(t(o)))
121
126
  ]),
122
127
  _: 2
123
128
  }, 1040, ["id", "aria-describedby", "autofocus", "color", "dependencies", "deps-debounce-time", "direction", "disabled", "enforce-coherence", "has-errors", "hide-label", "item-text", "item-value", "items", "loading-text", "max", "model-value", "model-value-debounce-time", "name", "no-data-text", "readonly"])
124
129
  ]),
125
130
  _: 3
126
- }, 8, ["id", "compact", "errors", "has-errors", "hide-label", "hint", "label", "name", "reverse", "show-hint"]));
131
+ }, 8, ["id", "compact", "direction", "errors", "has-errors", "hide-label", "hint", "input-position", "label", "label-position", "name", "reverse", "show-hint"]));
127
132
  }
128
133
  });
129
134
  export {
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 "./index210.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,13 +1,13 @@
1
1
  import { defineComponent as N, computed as R, ref as E, watch as W, createBlock as h, openBlock as k, unref as f, normalizeClass as G, withCtx as D, 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
2
  import { findRightIndex as T } from "./index267.js";
3
3
  import { useId as te } from "./index8.js";
4
- import { useUntil as ne } from "./index211.js";
4
+ import { useUntil as ne } from "./index250.js";
5
5
  import { wait as oe } from "./index135.js";
6
6
  import ae from "./index13.js";
7
7
  /* empty css */
8
8
  import B from "./index85.js";
9
9
  /* empty css */
10
- import le from "./index238.js";
10
+ import le from "./index254.js";
11
11
  /* empty css */
12
12
  import K from "./index268.js";
13
13
  const se = ["id", "aria-labelledby", "inert"], ie = { class: "item__content" }, Ee = /* @__PURE__ */ N({
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 "./index210.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 "./index271.js";
2
+ import { findInTree as ae } from "./index270.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("./index270.js")).default);
56
+ b || (b = (await import("./index269.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 "./index240.js";
2
+ import { isCssColor as I } from "./index235.js";
3
3
  const B = ["innerHTML"], k = /* @__PURE__ */ v({
4
4
  __name: "BbIcon",
5
5
  props: {
package/dist/index87.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as h, ref as t, onMounted as m, onBeforeUnmount as p, createBlock as g, openBlock as b, resolveDynamicComponent as w, withCtx as _, renderSlot as I } from "vue";
2
- import { throttle as c } from "./index269.js";
2
+ import { throttle as c } from "./index272.js";
3
3
  const M = /* @__PURE__ */ h({
4
4
  __name: "BbIntersection",
5
5
  props: {