bitboss-ui 2.1.0 → 2.1.2

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 (185) hide show
  1. package/dist/components/BaseButton/BaseButton.vue.d.ts +1 -1
  2. package/dist/components/BaseDialog/BaseDialog.vue.d.ts +1 -1
  3. package/dist/components/BaseNumberInput/BaseNumberInput.vue.d.ts +2 -0
  4. package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +10 -2
  5. package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +1 -1
  6. package/dist/components/BbPopover/BbPopover.vue.d.ts +1 -1
  7. package/dist/components/BbSmoothHeight/BbSmoothHeight.vue.d.ts +2 -2
  8. package/dist/components/BbTooltip/BbTooltip.vue.d.ts +1 -1
  9. package/dist/index.css +1 -1
  10. package/dist/index106.js +9 -9
  11. package/dist/index111.js +1 -1
  12. package/dist/index113.js +1 -1
  13. package/dist/index121.js +12 -12
  14. package/dist/index129.js +1 -1
  15. package/dist/index13.js +1 -1
  16. package/dist/index131.js +4 -4
  17. package/dist/index133.js +1 -1
  18. package/dist/index136.js +1 -1
  19. package/dist/index137.js +2 -2
  20. package/dist/index139.js +2 -2
  21. package/dist/index15.js +8 -8
  22. package/dist/index17.js +3 -3
  23. package/dist/index19.js +8 -8
  24. package/dist/index206.js +138 -2
  25. package/dist/index207.js +2 -138
  26. package/dist/index209.js +86 -2
  27. package/dist/index21.js +16 -16
  28. package/dist/index211.js +29 -2
  29. package/dist/index212.js +17 -66
  30. package/dist/index213.js +53 -0
  31. package/dist/index214.js +15 -13
  32. package/dist/index215.js +3 -13
  33. package/dist/index216.js +12 -13
  34. package/dist/index217.js +15 -10
  35. package/dist/index218.js +4 -5
  36. package/dist/index219.js +13 -5
  37. package/dist/index220.js +11 -5
  38. package/dist/index221.js +20 -5
  39. package/dist/index222.js +197 -5
  40. package/dist/index224.js +66 -2
  41. package/dist/index226.js +13 -2
  42. package/dist/index227.js +111 -18
  43. package/dist/index229.js +36 -0
  44. package/dist/index23.js +15 -15
  45. package/dist/index230.js +2 -86
  46. package/dist/index231.js +4 -0
  47. package/dist/index232.js +17 -28
  48. package/dist/index233.js +11 -15
  49. package/dist/index234.js +6 -17
  50. package/dist/index235.js +4 -51
  51. package/dist/index236.js +106 -15
  52. package/dist/index238.js +100 -12
  53. package/dist/index240.js +219 -188
  54. package/dist/index241.js +5 -0
  55. package/dist/index242.js +2 -5
  56. package/dist/index243.js +2 -5
  57. package/dist/index244.js +12 -7
  58. package/dist/index245.js +5 -250
  59. package/dist/index246.js +5 -52
  60. package/dist/index247.js +5 -44
  61. package/dist/index248.js +4 -4
  62. package/dist/index249.js +5 -60
  63. package/dist/index25.js +35 -42
  64. package/dist/index250.js +5 -18
  65. package/dist/index251.js +2 -12
  66. package/dist/index252.js +2 -6
  67. package/dist/index253.js +176 -105
  68. package/dist/index254.js +12 -0
  69. package/dist/index255.js +3 -100
  70. package/dist/index256.js +7 -0
  71. package/dist/index257.js +5 -228
  72. package/dist/index258.js +7 -176
  73. package/dist/index259.js +250 -2
  74. package/dist/index260.js +52 -3
  75. package/dist/index261.js +42 -32
  76. package/dist/index262.js +5 -2
  77. package/dist/index263.js +60 -10
  78. package/dist/index264.js +2 -3
  79. package/dist/index265.js +9 -6
  80. package/dist/index266.js +8 -16
  81. package/dist/index267.js +9 -3
  82. package/dist/index268.js +23 -9
  83. package/dist/index269.js +9 -9
  84. package/dist/index27.js +1 -1
  85. package/dist/index270.js +3 -23
  86. package/dist/index271.js +6 -9
  87. package/dist/index272.js +16 -8
  88. package/dist/index273.js +2 -5
  89. package/dist/index274.js +67 -8
  90. package/dist/index275.js +5 -2
  91. package/dist/index276.js +5 -67
  92. package/dist/index277.js +8 -5
  93. package/dist/index278.js +3 -4
  94. package/dist/index279.js +17 -3
  95. package/dist/index280.js +30 -0
  96. package/dist/index281.js +3 -7
  97. package/dist/index282.js +3 -7
  98. package/dist/index284.js +7 -4
  99. package/dist/index285.js +1 -1
  100. package/dist/index286.js +7 -3
  101. package/dist/index287.js +11 -3
  102. package/dist/index288.js +4 -17
  103. package/dist/index289.js +2 -28
  104. package/dist/index29.js +91 -87
  105. package/dist/index290.js +3 -280
  106. package/dist/index291.js +3 -2
  107. package/dist/index292.js +2 -125
  108. package/dist/index293.js +4 -2
  109. package/dist/index294.js +5 -15
  110. package/dist/index295.js +280 -2
  111. package/dist/index296.js +2 -16
  112. package/dist/index297.js +125 -2
  113. package/dist/index298.js +2 -16
  114. package/dist/index299.js +15 -2
  115. package/dist/index300.js +2 -19
  116. package/dist/index301.js +16 -2
  117. package/dist/index302.js +2 -19
  118. package/dist/index303.js +16 -2
  119. package/dist/index304.js +2 -27
  120. package/dist/index305.js +19 -2
  121. package/dist/index306.js +2 -2
  122. package/dist/index307.js +6 -2
  123. package/dist/index308.js +19 -2
  124. package/dist/index309.js +2 -2
  125. package/dist/index31.js +2 -2
  126. package/dist/index310.js +27 -22
  127. package/dist/index311.js +4 -0
  128. package/dist/index312.js +2 -3
  129. package/dist/index313.js +2 -3
  130. package/dist/index314.js +1 -1
  131. package/dist/index315.js +2 -6
  132. package/dist/index316.js +21 -1
  133. package/dist/index318.js +1 -1
  134. package/dist/index322.js +7 -32
  135. package/dist/index323.js +6 -28
  136. package/dist/index324.js +10 -0
  137. package/dist/index325.js +33 -2
  138. package/dist/index326.js +27 -128
  139. package/dist/index328.js +2 -8
  140. package/dist/index329.js +227 -5
  141. package/dist/index33.js +8 -8
  142. package/dist/index330.js +57 -7
  143. package/dist/index331.js +58 -47
  144. package/dist/index332.js +46 -6
  145. package/dist/index333.js +127 -17
  146. package/dist/index334.js +367 -56
  147. package/dist/index335.js +7 -58
  148. package/dist/index336.js +17 -226
  149. package/dist/index338.js +1 -1
  150. package/dist/index340.js +1 -1
  151. package/dist/index342.js +467 -421
  152. package/dist/index343.js +422 -113
  153. package/dist/index344.js +123 -478
  154. package/dist/index35.js +4 -4
  155. package/dist/index37.js +20 -20
  156. package/dist/index39.js +15 -15
  157. package/dist/index41.js +2 -2
  158. package/dist/index43.js +8 -8
  159. package/dist/index45.js +8 -8
  160. package/dist/index47.js +2 -2
  161. package/dist/index49.js +3 -3
  162. package/dist/index53.js +1 -1
  163. package/dist/index55.js +1 -1
  164. package/dist/index57.js +2 -2
  165. package/dist/index61.js +3 -3
  166. package/dist/index67.js +1 -1
  167. package/dist/index79.js +4 -4
  168. package/dist/index81.js +1 -1
  169. package/dist/index83.js +2 -2
  170. package/dist/index85.js +1 -1
  171. package/dist/index87.js +1 -1
  172. package/dist/index90.js +59 -66
  173. package/dist/index92.js +2 -2
  174. package/dist/index94.js +3 -3
  175. package/dist/index96.js +1 -1
  176. package/package.json +2 -2
  177. package/dist/index210.js +0 -6
  178. package/dist/index223.js +0 -7
  179. package/dist/index225.js +0 -4
  180. package/dist/index228.js +0 -115
  181. package/dist/index237.js +0 -5
  182. package/dist/index239.js +0 -6
  183. package/dist/index283.js +0 -13
  184. package/dist/index317.js +0 -7
  185. package/dist/index327.js +0 -371
package/dist/index39.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as U, ref as d, computed as h, onMounted as W, watch as Z, createElementBlock as g, openBlock as w, mergeProps as T, renderSlot as f, createElementVNode as c, createCommentVNode as H, Fragment as ee, renderList as ae, normalizeProps as re, guardReactiveProps as te, unref as b, normalizeStyle as F, normalizeClass as I } from "vue";
2
- import { clamp as le } from "./index206.js";
3
- import { head as O } from "./index262.js";
4
- import { isCssColor as Y } from "./index209.js";
5
- import { isNil as P } from "./index259.js";
2
+ import { clamp as le } from "./index207.js";
3
+ import { head as O } from "./index264.js";
4
+ import { isCssColor as Y } from "./index243.js";
5
+ import { isNil as P } from "./index242.js";
6
6
  import { isNotNil as ne } from "./index140.js";
7
7
  import { transposeValue as y } from "./index136.js";
8
- import { hash as J } from "./index237.js";
8
+ import { hash as J } from "./index215.js";
9
9
  const oe = { class: "bb-base-slider__slider-container" }, ie = {
10
10
  key: 0,
11
11
  class: "bb-base-slider__ticks-container"
@@ -38,7 +38,7 @@ const oe = { class: "bb-base-slider__slider-container" }, ie = {
38
38
  originalBounds: { min: a.min, max: a.max },
39
39
  targetBounds: { min: 0, max: 100 },
40
40
  step: 1
41
- }), A = d(!1);
41
+ }), x = d(!1);
42
42
  if (a.range && !Array.isArray(a.modelValue))
43
43
  throw new TypeError(
44
44
  "BaseSlider mode is set as range but modelValue is not an array"
@@ -68,7 +68,7 @@ const oe = { class: "bb-base-slider__slider-container" }, ie = {
68
68
  },
69
69
  { immediate: !0 }
70
70
  );
71
- let N = d(!1), t = d(null);
71
+ let A = d(!1), t = d(null);
72
72
  const S = (e) => {
73
73
  if (v.value && v.value.contains(e.target))
74
74
  return "higher";
@@ -76,10 +76,10 @@ const oe = { class: "bb-base-slider__slider-container" }, ie = {
76
76
  return "lower";
77
77
  throw new Error("Could not identify target thumb");
78
78
  }, G = (e) => {
79
- a.disabled || a.readonly || (t.value || (t.value = S(e)), N.value = !0, document.addEventListener("pointermove", x), document.addEventListener("pointerup", z), u("pointerdown", e));
79
+ a.disabled || a.readonly || (t.value || (t.value = S(e)), A.value = !0, document.addEventListener("pointermove", N), document.addEventListener("pointerup", z), u("pointerdown", e));
80
80
  };
81
- let M = h(() => N.value ? {} : { onPointerdown: G });
82
- const x = (e) => {
81
+ let M = h(() => A.value ? {} : { onPointerdown: G });
82
+ const N = (e) => {
83
83
  if (!(a.disabled || a.readonly) && B.value) {
84
84
  const r = B.value.getBoundingClientRect(), l = e.clientX, i = r.left, s = r.width;
85
85
  e instanceof PointerEvent ? u("pointermove", e) : u("click", e);
@@ -104,7 +104,7 @@ const oe = { class: "bb-base-slider__slider-container" }, ie = {
104
104
  );
105
105
  return a.range ? l : l[1];
106
106
  }, z = (e) => {
107
- N.value = !1, t.value = null, document.removeEventListener("pointermove", x), document.removeEventListener("pointerup", z), u("pointerup", e), u("update:modelValue", k());
107
+ A.value = !1, t.value = null, document.removeEventListener("pointermove", N), document.removeEventListener("pointerup", z), u("pointerup", e), u("update:modelValue", k());
108
108
  }, X = (e) => {
109
109
  u("keydown", e), !(a.disabled || a.readonly || e.key !== "ArrowLeft" && e.key !== "ArrowRight") && (e.key === "ArrowLeft" ? t.value === "higher" || document.activeElement === v.value ? o.value = Math.max(
110
110
  o.value - p,
@@ -122,10 +122,10 @@ const oe = { class: "bb-base-slider__slider-container" }, ie = {
122
122
  }, q = (e) => {
123
123
  u("focus", e);
124
124
  const r = S(e);
125
- r && (t.value = r), A.value || (A.value = !0, u("active"), document.addEventListener("focusin", V), document.addEventListener("click", V));
125
+ r && (t.value = r), x.value || (x.value = !0, u("active"), document.addEventListener("focusin", V), document.addEventListener("click", V));
126
126
  }, V = (e) => {
127
127
  var r;
128
- e.target instanceof HTMLElement && ((r = C.value) != null && r.contains(e.target) || (A.value = !1, t.value = null, u("inactive"), document.removeEventListener("focusin", V), document.removeEventListener("click", V)));
128
+ e.target instanceof HTMLElement && ((r = C.value) != null && r.contains(e.target) || (x.value = !1, t.value = null, u("inactive"), document.removeEventListener("focusin", V), document.removeEventListener("click", V)));
129
129
  }, D = {
130
130
  class: {
131
131
  "bb-base-slider": !0,
@@ -137,7 +137,7 @@ const oe = { class: "bb-base-slider__slider-container" }, ie = {
137
137
  onClick: (e) => {
138
138
  var l;
139
139
  if (a.range) return;
140
- (l = v.value) == null || l.focus(), x(e);
140
+ (l = v.value) == null || l.focus(), N(e);
141
141
  const r = k();
142
142
  J(r) !== J(a.modelValue) && u("update:modelValue", k());
143
143
  },
@@ -203,7 +203,7 @@ const oe = { class: "bb-base-slider__slider-container" }, ie = {
203
203
  readonly: e.readonly,
204
204
  required: e.required,
205
205
  tabindex: -1,
206
- type: "number",
206
+ type: "text",
207
207
  value: JSON.stringify(e.modelValue)
208
208
  }, null, 8, se),
209
209
  c("span", {
package/dist/index41.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as I, ref as f, computed as n, watch as S, createElementBlock as h, openBlock as y, normalizeProps as r, guardReactiveProps as d, createCommentVNode as A, createElementVNode as l, mergeProps as V, renderSlot as F } from "vue";
2
- import { isCssColor as b } from "./index209.js";
3
- import { when as N } from "./index210.js";
2
+ import { isCssColor as b } from "./index243.js";
3
+ import { when as N } from "./index235.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 "./index230.js";
4
+ import N from "./index209.js";
5
5
  /* empty css */
6
- import { useItemsGetter as U } from "./index232.js";
7
- import { useIndexById as T } from "./index234.js";
8
- import { useBaseOptions as q } from "./index235.js";
9
- import { useCoherence as J } from "./index236.js";
10
- import { hash as Q } from "./index237.js";
11
- import { useHashedWatcher as $ } from "./index238.js";
12
- import { usePrefill as X } from "./index233.js";
6
+ import { useItemsGetter as U } from "./index211.js";
7
+ import { useIndexById as T } from "./index212.js";
8
+ import { useBaseOptions as q } from "./index213.js";
9
+ import { useCoherence as J } from "./index214.js";
10
+ import { hash as Q } from "./index215.js";
11
+ import { useHashedWatcher as $ } from "./index216.js";
12
+ import { usePrefill as X } from "./index217.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 "./index226.js";
7
- import { useBaseOptions as ne } from "./index235.js";
8
- import { useIndexById as re } from "./index234.js";
9
- import ie from "./index253.js";
6
+ import { last as le } from "./index231.js";
7
+ import { useBaseOptions as ne } from "./index213.js";
8
+ import { useIndexById as re } from "./index212.js";
9
+ import ie from "./index236.js";
10
10
  /* empty css */
11
- import ue from "./index255.js";
11
+ import ue from "./index238.js";
12
12
  /* empty css */
13
- import se from "./index212.js";
13
+ import se from "./index224.js";
14
14
  /* empty css */
15
- import de from "./index214.js";
16
- import { isEmpty as pe } from "./index225.js";
15
+ import de from "./index226.js";
16
+ import { isEmpty as pe } from "./index230.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 "./index214.js";
3
- import G from "./index212.js";
2
+ import E from "./index226.js";
3
+ import G from "./index224.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 "./index212.js";
2
+ import E from "./index224.js";
3
3
  /* empty css */
4
- import I from "./index214.js";
4
+ import I from "./index226.js";
5
5
  import { isNotNil as N } from "./index140.js";
6
- import { MaskInput as z } from "./index258.js";
6
+ import { MaskInput as z } from "./index253.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 "./index216.js";
6
+ import { useLocale as g } from "./index219.js";
7
7
  const $ = {
8
8
  class: "bb-alert__inner-container",
9
9
  role: "alert"
package/dist/index55.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as b, computed as z, ref as o, onMounted as g, createElementBlock as l, openBlock as i, normalizeProps as _, guardReactiveProps as h, renderSlot as k } from "vue";
2
- import { isCssColor as y } from "./index209.js";
2
+ import { isCssColor as y } from "./index243.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 "./index209.js";
3
- import { isNil as B } from "./index259.js";
2
+ import { isCssColor as l } from "./index243.js";
3
+ import { isNil as B } from "./index242.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 "./index263.js";
11
- import { noop as w } from "./index264.js";
12
- import { useLocale as D } from "./index216.js";
10
+ import { pickBy as W } from "./index254.js";
11
+ import { noop as w } from "./index255.js";
12
+ import { useLocale as D } from "./index219.js";
13
13
  const E = {
14
14
  key: 2,
15
15
  class: "bb-button__loading-label sr-only"
package/dist/index67.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as i, createElementBlock as o, openBlock as a, createElementVNode as t, createCommentVNode as p, renderSlot as b, createTextVNode as m, toDisplayString as u, withModifiers as d, unref as _ } from "vue";
2
- import { useLocale as f } from "./index216.js";
2
+ import { useLocale as f } from "./index219.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,15 +1,15 @@
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
- import { findRightIndex as T } from "./index269.js";
2
+ import { findRightIndex as T } from "./index267.js";
3
3
  import { useId as te } from "./index8.js";
4
- import { useUntil as ne } from "./index217.js";
4
+ import { useUntil as ne } from "./index220.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 "./index228.js";
10
+ import le from "./index227.js";
11
11
  /* empty css */
12
- import K from "./index270.js";
12
+ import K from "./index268.js";
13
13
  const se = ["id", "aria-labelledby", "inert"], ie = { class: "item__content" }, Ee = /* @__PURE__ */ N({
14
14
  __name: "BbDropdown",
15
15
  props: {
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 "./index216.js";
12
+ import { useLocale as M } from "./index219.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 "./index266.js";
2
+ import { findInTree as ae } from "./index272.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("./index265.js")).default);
56
+ b || (b = (await import("./index271.js")).default);
57
57
  const o = b.getType(r);
58
58
  if (!o)
59
59
  throw new Error(
package/dist/index85.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as v, ref as p, getCurrentInstance as c, onServerPrefetch as w, onBeforeMount as z, inject as _, watch as b, computed as f, createElementBlock as h, openBlock as $, mergeProps as g } from "vue";
2
- import { isCssColor as I } from "./index209.js";
2
+ import { isCssColor as I } from "./index243.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 "./index267.js";
2
+ import { throttle as c } from "./index270.js";
3
3
  const M = /* @__PURE__ */ h({
4
4
  __name: "BbIntersection",
5
5
  props: {
package/dist/index90.js CHANGED
@@ -1,22 +1,20 @@
1
- import { defineComponent as O, mergeModels as E, useModel as P, computed as p, ref as T, watch as q, onMounted as A, createElementBlock as d, openBlock as c, withModifiers as H, normalizeStyle as K, normalizeClass as R, unref as v, createCommentVNode as y, Fragment as U, createElementVNode as s, renderSlot as l, createTextVNode as j, toDisplayString as V, createVNode as G, withCtx as J, nextTick as Q } from "vue";
2
- import { parseSize as X } from "./index215.js";
3
- import { useId as z } from "./index8.js";
4
- import { useLocale as Y } from "./index216.js";
5
- import { useMobile as Z } from "./index9.js";
6
- import { useUntil as x } from "./index217.js";
1
+ import { defineComponent as O, mergeModels as E, useModel as P, computed as p, ref as T, watch as q, onMounted as A, createElementBlock as d, openBlock as c, withModifiers as H, normalizeStyle as K, normalizeClass as R, unref as v, createCommentVNode as y, Fragment as U, createElementVNode as l, renderSlot as s, createTextVNode as j, toDisplayString as z, nextTick as G } from "vue";
2
+ import { parseSize as J } from "./index244.js";
3
+ import { useId as D } from "./index8.js";
4
+ import { useLocale as Q } from "./index219.js";
5
+ import { useMobile as X } from "./index9.js";
6
+ import { useUntil as Y } from "./index220.js";
7
7
  import { wait as h } from "./index135.js";
8
- import ee from "./index111.js";
9
- /* empty css */
10
- const te = ["aria-describedby", "aria-labelledby", "aria-live", "inert"], oe = {
8
+ const Z = ["aria-describedby", "aria-labelledby", "aria-live", "inert"], x = {
11
9
  ref: "header",
12
10
  class: "bb-offcanvas__header"
13
- }, se = { class: "bb-offcanvas__close" }, le = ["aria-label", "disabled"], ae = {
11
+ }, ee = { class: "bb-offcanvas__close" }, oe = ["aria-label", "disabled"], te = {
14
12
  ref: "body",
15
13
  class: "bb-offcanvas__body scrollbar-border"
16
- }, ne = {
14
+ }, le = {
17
15
  ref: "footer",
18
16
  class: "bb-offcanvas__footer"
19
- }, ve = /* @__PURE__ */ O({
17
+ }, ue = /* @__PURE__ */ O({
20
18
  __name: "BbOffCanvas",
21
19
  props: /* @__PURE__ */ E({
22
20
  closeLabel: {},
@@ -39,106 +37,106 @@ const te = ["aria-describedby", "aria-labelledby", "aria-live", "inert"], oe = {
39
37
  modelModifiers: {}
40
38
  }),
41
39
  emits: /* @__PURE__ */ E(["shown", "hidden"], ["update:modelValue"]),
42
- setup(w, { emit: D }) {
43
- const t = w, g = D, o = P(w, "modelValue"), { t: S } = Y(), N = p(
44
- () => t.closeLabel || S("dialog.closeLabel").value
45
- ), i = T(null), u = x(
46
- () => o.value || t.eager,
40
+ setup(g, { emit: S }) {
41
+ const o = g, w = S, t = P(g, "modelValue"), { t: V } = Q(), I = p(
42
+ () => o.closeLabel || V("dialog.closeLabel").value
43
+ ), i = T(null), u = Y(
44
+ () => t.value || o.eager,
47
45
  {
48
- initialValue: o.value || t.eager
46
+ initialValue: t.value || o.eager
49
47
  }
50
- ), f = `title_${z().id.value}`, m = `description_${z().id.value}`, C = (e) => {
51
- if (e.key === "Escape" && (t.disabled || t.persistent))
48
+ ), f = `title_${D().id.value}`, m = `description_${D().id.value}`, C = (e) => {
49
+ if (e.key === "Escape" && (o.disabled || o.persistent))
52
50
  return e.preventDefault(), a.value = !0, h(200).then(() => {
53
51
  a.value = !1;
54
52
  }), !1;
55
- }, _ = async (e) => {
56
- var n, B, $, L;
53
+ }, k = async (e) => {
54
+ var n, B, L, M;
57
55
  e ? ((n = window.globalThis) != null && n.document && !document.documentElement.style.getPropertyValue("--scrollbar-width") && (document.documentElement.style.setProperty(
58
56
  "--scrollbar-width",
59
57
  `${W()}px`
60
- ), document.addEventListener("keydown", C)), (B = i.value) == null || B.showModal(), t.focusTarget && Q(() => {
61
- var M;
62
- const b = (M = i.value) == null ? void 0 : M.querySelector(t.focusTarget);
58
+ ), document.addEventListener("keydown", C)), (B = i.value) == null || B.showModal(), o.focusTarget && G(() => {
59
+ var $;
60
+ const b = ($ = i.value) == null ? void 0 : $.querySelector(o.focusTarget);
63
61
  b && b instanceof HTMLElement && b.focus();
64
- }), g("shown")) : (await h(t.transitionDuration), ($ = window.globalThis) != null && $.document && document.removeEventListener("keydown", C), (L = i.value) == null || L.close(), g("hidden"));
62
+ }), w("shown")) : (await h(o.transitionDuration), (L = window.globalThis) != null && L.document && document.removeEventListener("keydown", C), (M = i.value) == null || M.close(), w("hidden"));
65
63
  };
66
- q(o, _), A(() => {
67
- o.value && _(!0);
64
+ q(t, k), A(() => {
65
+ t.value && k(!0);
68
66
  });
69
- const I = p(() => k.value ? "100%" : t.size === "auto" ? "fit-content" : X(t.size, {
67
+ const N = p(() => _.value ? "100%" : o.size === "auto" ? "fit-content" : J(o.size, {
70
68
  sm: 384,
71
69
  md: 652,
72
70
  lg: 896
73
71
  })), r = (e) => {
74
- if (e.preventDefault(), t.disabled || t.persistent)
72
+ if (e.preventDefault(), o.disabled || o.persistent)
75
73
  return a.value = !0, h(300).then(() => {
76
74
  a.value = !1;
77
75
  }), !1;
78
- o.value = !1;
79
- }, a = T(!1), W = () => globalThis.document ? window.innerWidth - document.documentElement.clientWidth : 0, { isMobile: F } = Z(), k = p(
80
- () => t.fullscreen === !0 || t.fullscreen === "mobile" && F.value
76
+ t.value = !1;
77
+ }, a = T(!1), W = () => globalThis.document ? window.innerWidth - document.documentElement.clientWidth : 0, { isMobile: F } = X(), _ = p(
78
+ () => o.fullscreen === !0 || o.fullscreen === "mobile" && F.value
81
79
  );
82
80
  return (e, n) => (c(), d("dialog", {
83
81
  ref_key: "dialog",
84
82
  ref: i,
85
83
  "aria-describedby": v(u) && e.description ? m : void 0,
86
84
  "aria-labelledby": v(u) && e.title ? f : void 0,
87
- "aria-live": o.value ? "polite" : "off",
85
+ "aria-live": t.value ? "polite" : "off",
88
86
  class: R([
89
87
  "bb-offcanvas",
90
88
  [
91
89
  {
92
- "bb-offcanvas--open": o.value,
93
- "bb-offcanvas--fullscreen": k.value,
90
+ "bb-offcanvas--open": t.value,
91
+ "bb-offcanvas--fullscreen": _.value,
94
92
  "bb-offcanvas--compact": e.compact,
95
93
  "bb-offcanvas--deny-close": a.value,
96
- [`bb-offcanvas--${t.direction}`]: !0
94
+ [`bb-offcanvas--${o.direction}`]: !0
97
95
  },
98
96
  e.overlayClasses,
99
97
  e.panelClasses
100
98
  ].flat()
101
99
  ]),
102
- inert: !o.value,
100
+ inert: !t.value,
103
101
  style: K({
104
- "--max-size": I.value,
105
- "--transition-duration": `${t.transitionDuration}ms`
102
+ "--max-size": N.value,
103
+ "--transition-duration": `${o.transitionDuration}ms`
106
104
  }),
107
105
  onCancel: r,
108
106
  onClick: H(r, ["self"])
109
107
  }, [
110
108
  v(u) ? (c(), d(U, { key: 0 }, [
111
- s("div", oe, [
112
- l(e.$slots, "header", {
109
+ l("div", x, [
110
+ s(e.$slots, "header", {
113
111
  close: r,
114
112
  title: e.title,
115
113
  titleId: f
116
114
  }, () => [
117
- s("span", {
115
+ l("span", {
118
116
  id: f,
119
117
  class: "bb-offcanvas__title"
120
118
  }, [
121
- l(e.$slots, "title", { text: e.title }, () => [
122
- j(V(e.title), 1)
119
+ s(e.$slots, "title", { text: e.title }, () => [
120
+ j(z(e.title), 1)
123
121
  ])
124
122
  ]),
125
- s("span", se, [
123
+ l("span", ee, [
126
124
  e.showClose ? (c(), d("button", {
127
125
  key: 0,
128
- "aria-label": N.value,
129
- disabled: t.disabled,
126
+ "aria-label": I.value,
127
+ disabled: o.disabled,
130
128
  type: "button",
131
129
  onClick: r
132
130
  }, [
133
- l(e.$slots, "close", {}, () => [
134
- n[0] || (n[0] = s("span", { class: "bb-offcanvas__close-icon" }, [
135
- s("svg", {
131
+ s(e.$slots, "close", {}, () => [
132
+ n[0] || (n[0] = l("span", { class: "bb-offcanvas__close-icon" }, [
133
+ l("svg", {
136
134
  "aria-hidden": "true",
137
135
  fill: "none",
138
136
  viewBox: "0 0 24 24",
139
137
  xmlns: "http://www.w3.org/2000/svg"
140
138
  }, [
141
- s("path", {
139
+ l("path", {
142
140
  d: "M23 23L1 1M23 1L1 23",
143
141
  stroke: "currentColor",
144
142
  "stroke-linecap": "round",
@@ -147,12 +145,12 @@ const te = ["aria-describedby", "aria-labelledby", "aria-live", "inert"], oe = {
147
145
  ])
148
146
  ], -1))
149
147
  ])
150
- ], 8, le)) : y("", !0)
148
+ ], 8, oe)) : y("", !0)
151
149
  ])
152
150
  ])
153
151
  ], 512),
154
- s("div", ae, [
155
- l(e.$slots, "description", {
152
+ l("div", te, [
153
+ s(e.$slots, "description", {
156
154
  descriptionId: m,
157
155
  text: e.description
158
156
  }, () => [
@@ -160,22 +158,17 @@ const te = ["aria-describedby", "aria-labelledby", "aria-live", "inert"], oe = {
160
158
  key: 0,
161
159
  id: m,
162
160
  class: "bb-offcanvas__description sr-only"
163
- }, V(e.description), 1)) : y("", !0)
161
+ }, z(e.description), 1)) : y("", !0)
164
162
  ]),
165
- G(ee, { "transition-duration": 500 }, {
166
- default: J(() => [
167
- l(e.$slots, "default")
168
- ]),
169
- _: 3
170
- })
163
+ s(e.$slots, "default")
171
164
  ], 512),
172
- s("div", ne, [
173
- l(e.$slots, "footer")
165
+ l("div", le, [
166
+ s(e.$slots, "footer")
174
167
  ], 512)
175
168
  ], 64)) : y("", !0)
176
- ], 46, te));
169
+ ], 46, Z));
177
170
  }
178
171
  });
179
172
  export {
180
- ve as default
173
+ ue as default
181
174
  };
package/dist/index92.js CHANGED
@@ -3,8 +3,8 @@ import { defineComponent as V, mergeModels as W, useModel as U, computed as d, r
3
3
  /* empty css */
4
4
  import P from "./index13.js";
5
5
  /* empty css */
6
- import { debounce as X } from "./index268.js";
7
- import { useLocale as H } from "./index216.js";
6
+ import { debounce as X } from "./index269.js";
7
+ import { useLocale as H } from "./index219.js";
8
8
  import { useRoute as J } from "./index142.js";
9
9
  const K = ["aria-label"], Q = { class: "bb-pagination__page-label sr-only" }, Y = { class: "bb-pagination__page-label" }, Z = { class: "bb-pagination__page-label" }, ee = { class: "bb-pagination__page-label sr-only" }, ue = /* @__PURE__ */ V({
10
10
  __name: "BbPagination",
package/dist/index94.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as V, ref as m, computed as g, createBlock as k, openBlock as y, unref as l, normalizeClass as D, withCtx as v, createElementVNode as d, createCommentVNode as M, renderSlot as C, toDisplayString as z, normalizeProps as I, guardReactiveProps as O, nextTick as S } from "vue";
2
2
  import { useId as H } from "./index8.js";
3
3
  import { useIntersectionObserver as N } from "./index137.js";
4
- import { useLocale as U } from "./index216.js";
5
- import { useUntil as W } from "./index217.js";
4
+ import { useLocale as U } from "./index219.js";
5
+ import { useUntil as W } from "./index220.js";
6
6
  import q from "./index13.js";
7
7
  /* empty css */
8
- import A from "./index228.js";
8
+ import A from "./index227.js";
9
9
  /* empty css */
10
10
  const R = ["inert"], Z = { class: "bb-popover__close-label sr-only" }, ee = /* @__PURE__ */ V({
11
11
  __name: "BbPopover",
package/dist/index96.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as r, computed as a, createElementBlock as l, openBlock as s, normalizeClass as m, createElementVNode as n, normalizeStyle as c } from "vue";
2
- import { clamp as p } from "./index206.js";
2
+ import { clamp as p } from "./index207.js";
3
3
  import { getAsPercentageBetween as i } from "./index136.js";
4
4
  const _ = /* @__PURE__ */ r({
5
5
  __name: "BbProgress",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bitboss-ui",
3
- "version": "2.1.0",
3
+ "version": "2.1.2",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "scripts": {
@@ -92,4 +92,4 @@
92
92
  "lint-staged": {
93
93
  "*.{js,css,md,html,json,vue,ts}": "prettier --write"
94
94
  }
95
- }
95
+ }
package/dist/index210.js DELETED
@@ -1,6 +0,0 @@
1
- import { curry as e } from "./index278.js";
2
- const t = (n, o, r) => n(r) ? o(r) : r, s = e(t);
3
- export {
4
- t as baseWhen,
5
- s as when
6
- };
package/dist/index223.js DELETED
@@ -1,7 +0,0 @@
1
- import { getDefaultExportFromCjs as r } from "./index315.js";
2
- import { __require as t } from "./index300.js";
3
- var o = t();
4
- const a = /* @__PURE__ */ r(o);
5
- export {
6
- a as default
7
- };
package/dist/index225.js DELETED
@@ -1,4 +0,0 @@
1
- const n = (t) => t == null || Number.isNaN(t) || typeof t == "object" && Object.keys(t).length === 0 || typeof t == "string" && t.trim().length === 0 || t instanceof Map && [...t.keys()].length === 0 || t instanceof Set && [...t.keys()].length === 0;
2
- export {
3
- n as isEmpty
4
- };