bitboss-ui 2.0.101 → 2.0.102

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 (139) hide show
  1. package/dist/index100.js +4 -4
  2. package/dist/index111.js +6 -6
  3. package/dist/index119.js +2 -2
  4. package/dist/index121.js +4 -4
  5. package/dist/index123.js +1 -1
  6. package/dist/index127.js +1 -1
  7. package/dist/index128.js +1 -1
  8. package/dist/index129.js +1 -1
  9. package/dist/index13.js +54 -45
  10. package/dist/index131.js +1 -1
  11. package/dist/index133.js +2 -2
  12. package/dist/index15.js +4 -4
  13. package/dist/index17.js +3 -3
  14. package/dist/index19.js +3 -3
  15. package/dist/index206.js +2 -126
  16. package/dist/index207.js +2 -2
  17. package/dist/index208.js +13 -122
  18. package/dist/index209.js +15 -18
  19. package/dist/index21.js +13 -13
  20. package/dist/index210.js +18 -15
  21. package/dist/index211.js +16 -13
  22. package/dist/index212.js +27 -2
  23. package/dist/index213.js +3 -2
  24. package/dist/index214.js +2 -41
  25. package/dist/index215.js +7 -19
  26. package/dist/index216.js +249 -5
  27. package/dist/index217.js +44 -45
  28. package/dist/index218.js +46 -0
  29. package/dist/index219.js +4 -12
  30. package/dist/index220.js +60 -5
  31. package/dist/index221.js +51 -10
  32. package/dist/index223.js +12 -3
  33. package/dist/index224.js +2 -3
  34. package/dist/index225.js +4 -8
  35. package/dist/index226.js +2 -2
  36. package/dist/index227.js +20 -4
  37. package/dist/index228.js +4 -2
  38. package/dist/index229.js +3 -2
  39. package/dist/index23.js +15 -15
  40. package/dist/index230.js +166 -17
  41. package/dist/index231.js +84 -27
  42. package/dist/index233.js +7 -249
  43. package/dist/index234.js +123 -49
  44. package/dist/index235.js +125 -44
  45. package/dist/index236.js +2 -5
  46. package/dist/index237.js +41 -60
  47. package/dist/index238.js +6 -3
  48. package/dist/index239.js +5 -7
  49. package/dist/index240.js +12 -168
  50. package/dist/index241.js +368 -83
  51. package/dist/index242.js +5 -0
  52. package/dist/index243.js +7 -8
  53. package/dist/index244.js +1 -1
  54. package/dist/index246.js +1 -1
  55. package/dist/index248.js +1 -1
  56. package/dist/index25.js +6 -6
  57. package/dist/index256.js +4 -4
  58. package/dist/index258.js +9 -6
  59. package/dist/index259.js +6 -16
  60. package/dist/index260.js +16 -3
  61. package/dist/index261.js +11 -0
  62. package/dist/index262.js +8 -7
  63. package/dist/index263.js +279 -174
  64. package/dist/index264.js +5 -8
  65. package/dist/index265.js +2 -224
  66. package/dist/index266.js +2 -281
  67. package/dist/index267.js +2 -6
  68. package/dist/index268.js +2 -2
  69. package/dist/index269.js +2 -2
  70. package/dist/index27.js +1 -1
  71. package/dist/index271.js +2 -2
  72. package/dist/index272.js +2 -2
  73. package/dist/index273.js +2 -126
  74. package/dist/index274.js +2 -431
  75. package/dist/index275.js +27 -21
  76. package/dist/index276.js +24 -0
  77. package/dist/index278.js +6 -3
  78. package/dist/index279.js +3 -9
  79. package/dist/index281.js +4 -2
  80. package/dist/index282.js +224 -2
  81. package/dist/index283.js +176 -2
  82. package/dist/index284.js +3 -2
  83. package/dist/index285.js +12 -2
  84. package/dist/index286.js +9 -2
  85. package/dist/index287.js +14 -25
  86. package/dist/index288.js +4 -22
  87. package/dist/index289.js +9 -0
  88. package/dist/index29.js +3 -3
  89. package/dist/index290.js +10 -435
  90. package/dist/index291.js +2 -127
  91. package/dist/index292.js +122 -196
  92. package/dist/index293.js +424 -82
  93. package/dist/index294.js +22 -3
  94. package/dist/index296.js +2 -9
  95. package/dist/index297.js +87 -15
  96. package/dist/index298.js +200 -4
  97. package/dist/index299.js +435 -6
  98. package/dist/index300.js +126 -10
  99. package/dist/index301.js +2 -3
  100. package/dist/index302.js +1 -1
  101. package/dist/index303.js +3 -213
  102. package/dist/index304.js +213 -5
  103. package/dist/index305.js +66 -2
  104. package/dist/index306.js +5 -66
  105. package/dist/index31.js +2 -2
  106. package/dist/index311.js +32 -4
  107. package/dist/index312.js +8 -8
  108. package/dist/index313.js +7 -32
  109. package/dist/index314.js +4 -3
  110. package/dist/index315.js +7 -6
  111. package/dist/index318.js +7 -8
  112. package/dist/index319.js +4 -8
  113. package/dist/index320.js +2 -47
  114. package/dist/index321.js +47 -2
  115. package/dist/{index323.js → index322.js} +1 -1
  116. package/dist/index33.js +2 -2
  117. package/dist/index35.js +3 -3
  118. package/dist/index37.js +10 -10
  119. package/dist/index39.js +3 -3
  120. package/dist/index41.js +2 -2
  121. package/dist/index43.js +2 -2
  122. package/dist/index45.js +4 -4
  123. package/dist/index47.js +2 -2
  124. package/dist/index49.js +2 -2
  125. package/dist/index55.js +1 -1
  126. package/dist/index57.js +1 -1
  127. package/dist/index61.js +11 -7
  128. package/dist/index79.js +2 -2
  129. package/dist/index81.js +1 -1
  130. package/dist/index84.js +3 -3
  131. package/dist/index86.js +1 -1
  132. package/dist/index88.js +2 -2
  133. package/dist/index90.js +1 -1
  134. package/package.json +1 -1
  135. package/dist/index222.js +0 -371
  136. package/dist/index232.js +0 -5
  137. package/dist/index277.js +0 -4
  138. package/dist/index280.js +0 -10
  139. package/dist/index295.js +0 -14
package/dist/index306.js CHANGED
@@ -1,68 +1,7 @@
1
- import { defineComponent as d, openBlock as s, createElementBlock as i, normalizeClass as b, createElementVNode as t, createBlock as l, createCommentVNode as o, toDisplayString as n, withCtx as u } from "vue";
2
- import g from "./index13.js";
3
- /* empty css */
4
- import h from "./index127.js";
5
- /* empty css */
6
- const k = { class: "bb-toast-message__icon-container" }, f = { class: "bb-toast-message__content" }, C = {
7
- key: 0,
8
- class: "bb-toast-message__title"
9
- }, w = { class: "bb-toast-message__text" }, E = /* @__PURE__ */ d({
10
- __name: "BbToastMessage",
11
- props: {
12
- title: {},
13
- text: {},
14
- icon: {},
15
- theme: { default: "default" },
16
- id: {},
17
- showClose: { type: Boolean }
18
- },
19
- emits: ["click:close"],
20
- setup(r, { emit: c }) {
21
- const m = r, p = c, _ = () => {
22
- p("click:close", m.id);
23
- };
24
- return (e, a) => (s(), i("div", {
25
- "aria-atomic": "true",
26
- "aria-live": "polite",
27
- "aria-role": "alert",
28
- class: b(["bb-toast-message", { [`bb-toast-message--${e.theme}`]: e.theme }])
29
- }, [
30
- t("div", k, [
31
- e.icon ? (s(), l(h, {
32
- key: 0,
33
- class: "bb-toast-message__icon",
34
- type: e.icon
35
- }, null, 8, ["type"])) : o("", !0)
36
- ]),
37
- t("div", f, [
38
- e.title ? (s(), i("p", C, n(e.title), 1)) : o("", !0),
39
- t("p", w, n(e.text), 1)
40
- ]),
41
- e.showClose ? (s(), l(g, {
42
- key: 0,
43
- "aria-label": "Chiudi",
44
- class: "bb-toast-message__close",
45
- onClick: _
46
- }, {
47
- default: u(() => a[0] || (a[0] = [
48
- t("svg", {
49
- fill: "none",
50
- viewBox: "0 0 24 24",
51
- xmlns: "http://www.w3.org/2000/svg"
52
- }, [
53
- t("path", {
54
- d: "M23 23L1 1M23 1L1 23",
55
- stroke: "currentColor",
56
- "stroke-linecap": "round",
57
- "stroke-width": "2"
58
- })
59
- ], -1)
60
- ])),
61
- _: 1
62
- })) : o("", !0)
63
- ], 2));
64
- }
65
- });
1
+ const o = (l, n, f = (r) => r, u) => l.map((r) => Array.isArray(r[n]) ? [
2
+ f(r, u),
3
+ ...o(r[n], n, f, f(r, u))
4
+ ] : [f(r, u)]).flat();
66
5
  export {
67
- E as default
6
+ o as flattenTree
68
7
  };
package/dist/index31.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as g, computed as s, ref as B, openBlock as _, createElementBlock as w, normalizeProps as t, guardReactiveProps as l, createElementVNode as u, mergeProps as V, renderSlot as C } from "vue";
2
- import { isCssColor as c } from "./index226.js";
3
- import { when as E } from "./index227.js";
2
+ import { isCssColor as c } from "./index224.js";
3
+ import { when as E } from "./index225.js";
4
4
  const A = {
5
5
  "aria-hidden": "true",
6
6
  class: "bb-base-radio-container"
package/dist/index311.js CHANGED
@@ -1,7 +1,35 @@
1
- import { getType as t } from "./index314.js";
2
- function o(r) {
3
- return t(r) === "Array";
1
+ import { openBlock as e, createElementBlock as t, createElementVNode as o } from "vue";
2
+ /* empty css */
3
+ import n from "./index278.js";
4
+ const l = {}, s = {
5
+ class: "bb-error-icon",
6
+ fill: "none",
7
+ viewBox: "0 0 20 20",
8
+ xmlns: "http://www.w3.org/2000/svg"
9
+ };
10
+ function i(c, r) {
11
+ return e(), t("svg", s, r[0] || (r[0] = [
12
+ o("path", {
13
+ d: "M9.99422 18.3333C14.5966 18.3333 18.3276 14.6024 18.3276 9.99999C18.3276 5.39762 14.5966 1.66666 9.99422 1.66666C5.39185 1.66666 1.66089 5.39762 1.66089 9.99999C1.66089 14.6024 5.39185 18.3333 9.99422 18.3333Z",
14
+ fill: "currentColor"
15
+ }, null, -1),
16
+ o("path", {
17
+ d: "M9.99414 6.66666V9.99999",
18
+ stroke: "white",
19
+ "stroke-linecap": "round",
20
+ "stroke-linejoin": "round",
21
+ "stroke-width": "2"
22
+ }, null, -1),
23
+ o("path", {
24
+ d: "M9.99414 13.3333H10.0025",
25
+ stroke: "white",
26
+ "stroke-linecap": "round",
27
+ "stroke-linejoin": "round",
28
+ "stroke-width": "2"
29
+ }, null, -1)
30
+ ]));
4
31
  }
32
+ const a = /* @__PURE__ */ n(l, [["render", i]]);
5
33
  export {
6
- o as isArray
34
+ a as default
7
35
  };
package/dist/index312.js CHANGED
@@ -1,10 +1,10 @@
1
- import { getType as o } from "./index314.js";
2
- function c(e) {
3
- if (o(e) !== "Object")
4
- return !1;
5
- const t = Object.getPrototypeOf(e);
6
- return !!t && t.constructor === Object && t === Object.prototype;
7
- }
1
+ const e = {
2
+ common: {
3
+ closeLabel: "Chiudi",
4
+ loadingText: "Caricamento...",
5
+ noDataText: "Nessun elemento da visualizzare"
6
+ }
7
+ };
8
8
  export {
9
- c as isPlainObject
9
+ e as default
10
10
  };
package/dist/index313.js CHANGED
@@ -1,35 +1,10 @@
1
- import { openBlock as e, createElementBlock as t, createElementVNode as o } from "vue";
2
- /* empty css */
3
- import n from "./index262.js";
4
- const l = {}, s = {
5
- class: "bb-error-icon",
6
- fill: "none",
7
- viewBox: "0 0 20 20",
8
- xmlns: "http://www.w3.org/2000/svg"
1
+ const o = {
2
+ common: {
3
+ closeLabel: "Close",
4
+ loadingText: "Loading...",
5
+ noDataText: "No data to display"
6
+ }
9
7
  };
10
- function i(c, r) {
11
- return e(), t("svg", s, r[0] || (r[0] = [
12
- o("path", {
13
- d: "M9.99422 18.3333C14.5966 18.3333 18.3276 14.6024 18.3276 9.99999C18.3276 5.39762 14.5966 1.66666 9.99422 1.66666C5.39185 1.66666 1.66089 5.39762 1.66089 9.99999C1.66089 14.6024 5.39185 18.3333 9.99422 18.3333Z",
14
- fill: "currentColor"
15
- }, null, -1),
16
- o("path", {
17
- d: "M9.99414 6.66666V9.99999",
18
- stroke: "white",
19
- "stroke-linecap": "round",
20
- "stroke-linejoin": "round",
21
- "stroke-width": "2"
22
- }, null, -1),
23
- o("path", {
24
- d: "M9.99414 13.3333H10.0025",
25
- stroke: "white",
26
- "stroke-linecap": "round",
27
- "stroke-linejoin": "round",
28
- "stroke-width": "2"
29
- }, null, -1)
30
- ]));
31
- }
32
- const a = /* @__PURE__ */ n(l, [["render", i]]);
33
8
  export {
34
- a as default
9
+ o as default
35
10
  };
package/dist/index314.js CHANGED
@@ -1,6 +1,7 @@
1
- function e(t) {
2
- return Object.prototype.toString.call(t).slice(8, -1);
1
+ import { getType as t } from "./index319.js";
2
+ function o(r) {
3
+ return t(r) === "Array";
3
4
  }
4
5
  export {
5
- e as getType
6
+ o as isArray
6
7
  };
package/dist/index315.js CHANGED
@@ -1,9 +1,10 @@
1
- function l(n, c, r = 1) {
2
- const o = Math.max(Math.ceil((c - n) / r), 0), t = new Array(o);
3
- for (let e = 0; e < o; e++, n += r)
4
- t[e] = n;
5
- return t;
1
+ import { getType as o } from "./index319.js";
2
+ function c(e) {
3
+ if (o(e) !== "Object")
4
+ return !1;
5
+ const t = Object.getPrototypeOf(e);
6
+ return !!t && t.constructor === Object && t === Object.prototype;
6
7
  }
7
8
  export {
8
- l as range
9
+ c as isPlainObject
9
10
  };
package/dist/index318.js CHANGED
@@ -1,10 +1,9 @@
1
- const e = {
2
- common: {
3
- closeLabel: "Chiudi",
4
- loadingText: "Caricamento...",
5
- noDataText: "Nessun elemento da visualizzare"
6
- }
7
- };
1
+ function l(n, c, r = 1) {
2
+ const o = Math.max(Math.ceil((c - n) / r), 0), t = new Array(o);
3
+ for (let e = 0; e < o; e++, n += r)
4
+ t[e] = n;
5
+ return t;
6
+ }
8
7
  export {
9
- e as default
8
+ l as range
10
9
  };
package/dist/index319.js CHANGED
@@ -1,10 +1,6 @@
1
- const o = {
2
- common: {
3
- closeLabel: "Close",
4
- loadingText: "Loading...",
5
- noDataText: "No data to display"
6
- }
7
- };
1
+ function e(t) {
2
+ return Object.prototype.toString.call(t).slice(8, -1);
3
+ }
8
4
  export {
9
- o as default
5
+ e as getType
10
6
  };
package/dist/index320.js CHANGED
@@ -1,49 +1,4 @@
1
- import { observeElementRect as f, observeElementOffset as s, elementScroll as d, Virtualizer as p } from "./index324.js";
2
- import { defaultKeyExtractor as S, defaultRangeExtractor as V, measureElement as b } from "./index324.js";
3
- import { computed as g, unref as l, shallowRef as E, watch as o, triggerRef as i, onScopeDispose as v } from "vue";
4
- function w(e) {
5
- const t = new p(l(e)), a = E(t), u = t._didMount();
6
- return o(
7
- () => l(e).getScrollElement(),
8
- (r) => {
9
- r && t._willUpdate();
10
- },
11
- {
12
- immediate: !0
13
- }
14
- ), o(
15
- () => l(e),
16
- (r) => {
17
- t.setOptions({
18
- ...r,
19
- onChange: (c, m) => {
20
- var n;
21
- i(a), (n = r.onChange) == null || n.call(r, c, m);
22
- }
23
- }), t._willUpdate(), i(a);
24
- },
25
- {
26
- immediate: !0
27
- }
28
- ), v(u), a;
29
- }
30
- function z(e) {
31
- return w(
32
- g(() => ({
33
- observeElementRect: f,
34
- observeElementOffset: s,
35
- scrollToFn: d,
36
- ...l(e)
37
- }))
38
- );
39
- }
1
+ import f from "./index305.js";
40
2
  export {
41
- p as Virtualizer,
42
- S as defaultKeyExtractor,
43
- V as defaultRangeExtractor,
44
- d as elementScroll,
45
- b as measureElement,
46
- s as observeElementOffset,
47
- f as observeElementRect,
48
- z as useVirtualizer
3
+ f as default
49
4
  };
package/dist/index321.js CHANGED
@@ -1,4 +1,49 @@
1
- import f from "./index306.js";
1
+ import { observeElementRect as f, observeElementOffset as s, elementScroll as d, Virtualizer as p } from "./index324.js";
2
+ import { defaultKeyExtractor as S, defaultRangeExtractor as V, measureElement as b } from "./index324.js";
3
+ import { computed as g, unref as l, shallowRef as E, watch as o, triggerRef as i, onScopeDispose as v } from "vue";
4
+ function w(e) {
5
+ const t = new p(l(e)), a = E(t), u = t._didMount();
6
+ return o(
7
+ () => l(e).getScrollElement(),
8
+ (r) => {
9
+ r && t._willUpdate();
10
+ },
11
+ {
12
+ immediate: !0
13
+ }
14
+ ), o(
15
+ () => l(e),
16
+ (r) => {
17
+ t.setOptions({
18
+ ...r,
19
+ onChange: (c, m) => {
20
+ var n;
21
+ i(a), (n = r.onChange) == null || n.call(r, c, m);
22
+ }
23
+ }), t._willUpdate(), i(a);
24
+ },
25
+ {
26
+ immediate: !0
27
+ }
28
+ ), v(u), a;
29
+ }
30
+ function z(e) {
31
+ return w(
32
+ g(() => ({
33
+ observeElementRect: f,
34
+ observeElementOffset: s,
35
+ scrollToFn: d,
36
+ ...l(e)
37
+ }))
38
+ );
39
+ }
2
40
  export {
3
- f as default
41
+ p as Virtualizer,
42
+ S as defaultKeyExtractor,
43
+ V as defaultRangeExtractor,
44
+ d as elementScroll,
45
+ b as measureElement,
46
+ s as observeElementOffset,
47
+ f as observeElementRect,
48
+ z as useVirtualizer
4
49
  };
@@ -1,4 +1,4 @@
1
- import { getDefaultExportFromCjs as dr, commonjsGlobal as D } from "./index267.js";
1
+ import { getDefaultExportFromCjs as dr, commonjsGlobal as D } from "./index264.js";
2
2
  import { __module as M } from "./index326.js";
3
3
  M.exports;
4
4
  (function(j, F) {
package/dist/index33.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as B, ref as f, toRef as l, openBlock as E, createBlock as $, unref as b, withCtx as t, renderSlot as i, normalizeProps as c, guardReactiveProps as m, createVNode as C, mergeProps as v, createSlots as w } from "vue";
2
- import { useOptions as q } from "./index240.js";
2
+ import { useOptions as q } from "./index230.js";
3
3
  import z from "./index31.js";
4
4
  /* empty css */
5
- import F from "./index241.js";
5
+ import F from "./index231.js";
6
6
  /* empty css */
7
7
  const N = /* @__PURE__ */ B({
8
8
  __name: "BaseRadioGroup",
package/dist/index35.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as C, ref as g, computed as f, openBlock as l, createElementBlock as i, mergeProps as h, createElementVNode as r, renderSlot as p, Fragment as B, renderList as I, normalizeClass as V, toDisplayString as M } from "vue";
2
- import { booleanishToBoolean as D } from "./index228.js";
3
- import { identity as F } from "./index212.js";
4
- import { isCssColor as v } from "./index226.js";
2
+ import { booleanishToBoolean as D } from "./index226.js";
3
+ import { identity as F } from "./index236.js";
4
+ import { isCssColor as v } from "./index224.js";
5
5
  import { isNotNil as T } from "./index134.js";
6
6
  const $ = { class: "bb-base-rating__inner-container" }, q = { class: "bb-base-rating__label-text sr-only" }, x = ["id", "aria-describedby", "autofocus", "checked", "disabled", "name", "required", "value"], H = ["height", "width"], J = /* @__PURE__ */ C({
7
7
  __name: "BaseRating",
package/dist/index37.js CHANGED
@@ -6,24 +6,24 @@ import { useMobile as We } from "./index9.js";
6
6
  import Re from "./index128.js";
7
7
  /* empty css */
8
8
  import { isNotNil as Je } from "./index134.js";
9
- import { last as Ye } from "./index213.js";
9
+ import { last as Ye } from "./index214.js";
10
10
  import { matchAnyKey as j } from "./index245.js";
11
- import { useFloating as je } from "./index206.js";
11
+ import { useFloating as je } from "./index234.js";
12
12
  import { useIntersectionObserver as Ge } from "./index132.js";
13
- import { useLogger as Xe } from "./index225.js";
14
- import { useOptions as Ze } from "./index240.js";
13
+ import { useLogger as Xe } from "./index215.js";
14
+ import { useOptions as Ze } from "./index230.js";
15
15
  import { wait as L } from "./index130.js";
16
- import { when as et } from "./index227.js";
16
+ import { when as et } from "./index225.js";
17
17
  import tt from "./index246.js";
18
18
  /* empty css */
19
19
  import ot from "./index248.js";
20
20
  /* empty css */
21
- import nt from "./index217.js";
21
+ import nt from "./index221.js";
22
22
  /* empty css */
23
- import lt from "./index219.js";
24
- import { waitFor as at } from "./index216.js";
25
- import it from "./index221.js";
26
- import { autoUpdate as rt, flip as st, offset as ut, shift as pt } from "./index222.js";
23
+ import lt from "./index223.js";
24
+ import { waitFor as at } from "./index238.js";
25
+ import it from "./index240.js";
26
+ import { autoUpdate as rt, flip as st, offset as ut, shift as pt } from "./index241.js";
27
27
  const dt = { class: "bb-base-select__input-container" }, ct = {
28
28
  key: 1,
29
29
  class: "bb-base-select__max-reached"
package/dist/index39.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as U, ref as d, computed as h, onMounted as W, watch as Z, openBlock as g, createElementBlock as w, mergeProps as T, renderSlot as f, createElementVNode as c, Fragment as ee, renderList as ae, createCommentVNode as H, normalizeProps as re, guardReactiveProps as te, unref as b, normalizeClass as F, normalizeStyle as I } from "vue";
2
- import { clamp as le } from "./index229.js";
2
+ import { clamp as le } from "./index206.js";
3
3
  import { head as O } from "./index250.js";
4
- import { isCssColor as Y } from "./index226.js";
4
+ import { isCssColor as Y } from "./index224.js";
5
5
  import { isNil as P } from "./index251.js";
6
6
  import { isNotNil as ne } from "./index134.js";
7
7
  import { transposeValue as y } from "./index131.js";
8
- import { hash as J } from "./index232.js";
8
+ import { hash as J } from "./index213.js";
9
9
  const oe = { class: "bb-base-slider__slider-container" }, ie = {
10
10
  key: 0,
11
11
  class: "bb-base-slider__ticks-container"
package/dist/index41.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as I, ref as f, computed as n, watch as S, openBlock as h, createElementBlock as y, normalizeProps as r, guardReactiveProps as d, mergeProps as V, createCommentVNode as A, createElementVNode as l, renderSlot as F } from "vue";
2
- import { isCssColor as b } from "./index226.js";
3
- import { when as N } from "./index227.js";
2
+ import { isCssColor as b } from "./index224.js";
3
+ import { when as N } from "./index225.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,8 +1,8 @@
1
1
  import { defineComponent as B, ref as b, toRef as l, openBlock as w, createBlock as O, unref as v, withCtx as i, renderSlot as s, normalizeProps as m, guardReactiveProps as p, createVNode as z, mergeProps as h, createSlots as F } from "vue";
2
- import { useOptions as M } from "./index240.js";
2
+ import { useOptions as M } from "./index230.js";
3
3
  import S from "./index41.js";
4
4
  /* empty css */
5
- import H from "./index241.js";
5
+ import H from "./index231.js";
6
6
  /* empty css */
7
7
  const G = /* @__PURE__ */ B({
8
8
  __name: "BaseSwitchGroup",
package/dist/index45.js CHANGED
@@ -4,15 +4,15 @@ import { defineComponent as Y, ref as i, computed as k, toRef as B, openBlock as
4
4
  import ue from "./index128.js";
5
5
  /* empty css */
6
6
  import { isNotNil as se } from "./index134.js";
7
- import { last as de } from "./index213.js";
8
- import { useOptions as pe } from "./index240.js";
7
+ import { last as de } from "./index214.js";
8
+ import { useOptions as pe } from "./index230.js";
9
9
  import ce from "./index246.js";
10
10
  /* empty css */
11
11
  import me from "./index248.js";
12
12
  /* empty css */
13
- import fe from "./index217.js";
13
+ import fe from "./index221.js";
14
14
  /* empty css */
15
- import ve from "./index219.js";
15
+ import ve from "./index223.js";
16
16
  const ye = { class: "bb-base-tag__input-container" }, be = ["id", "aria-describedby", "autocomplete", "autofocus", "disabled", "placeholder", "readonly", "required", "onKeydown"], qe = /* @__PURE__ */ Y({
17
17
  __name: "BaseTag",
18
18
  props: {
package/dist/index47.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as w, ref as y, computed as u, onMounted as g, watch as B, nextTick as x, openBlock as V, createBlock as k, normalizeClass as $, withCtx as t, renderSlot as r, createVNode as i, createElementVNode as C, mergeProps as T } from "vue";
2
- import v from "./index219.js";
3
- import E from "./index217.js";
2
+ import v from "./index223.js";
3
+ import E from "./index221.js";
4
4
  /* empty css */
5
5
  import G from "./index128.js";
6
6
  /* empty css */
package/dist/index49.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as m, computed as c, openBlock as b, createElementBlock as f, Fragment as y, createVNode as r, normalizeClass as h, withCtx as n, renderSlot as t, createElementVNode as l, mergeProps as g } from "vue";
2
- import B from "./index217.js";
2
+ import B from "./index221.js";
3
3
  /* empty css */
4
- import k from "./index219.js";
4
+ import k from "./index223.js";
5
5
  const w = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus", "disabled", "name", "placeholder", "readonly", "required", "type", "value"], V = /* @__PURE__ */ m({
6
6
  __name: "BaseTextInput",
7
7
  props: {
package/dist/index55.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as z, computed as b, ref as o, onMounted as g, openBlock as l, createElementBlock as i, normalizeProps as h, guardReactiveProps as k, renderSlot as y } from "vue";
2
- import { isCssColor as _ } from "./index226.js";
2
+ import { isCssColor as _ } from "./index224.js";
3
3
  import { wait as C } from "./index130.js";
4
4
  const w = ["alt", "sizes", "src", "srcset"], B = {
5
5
  key: 1,
package/dist/index57.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as p, useSlots as d, computed as n, openBlock as m, createElementBlock as u, normalizeClass as g, createElementVNode as s, renderSlot as l, mergeProps as f, createTextVNode as _, toDisplayString as y } from "vue";
2
- import { isCssColor as r } from "./index226.js";
2
+ import { isCssColor as r } from "./index224.js";
3
3
  import { isNil as B } from "./index251.js";
4
4
  const C = { class: "bb-badge__wrapper" }, h = { class: "bb-badge__content-inner" }, S = /* @__PURE__ */ p({
5
5
  __name: "BbBadge",
package/dist/index61.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defineComponent as _, ref as f, computed as c, useAttrs as g, toRef as v, openBlock as t, createBlock as a, unref as p, mergeProps as B, withCtx as k, createVNode as C, createCommentVNode as l, createElementVNode as h, normalizeClass as L, renderSlot as S, createTextVNode as V, toDisplayString as x, createElementBlock as F } from "vue";
1
+ import { defineComponent as f, ref as _, computed as p, useAttrs as g, toRef as v, openBlock as t, createBlock as a, unref as c, mergeProps as B, withCtx as k, createVNode as C, createCommentVNode as l, createElementVNode as h, normalizeClass as L, renderSlot as S, createTextVNode as V, toDisplayString as x, createElementBlock as F } from "vue";
2
2
  /* empty css */
3
3
  /* empty css */
4
4
  import N from "./index13.js";
@@ -12,7 +12,7 @@ import { noop as A } from "./index253.js";
12
12
  const T = {
13
13
  key: 2,
14
14
  class: "bb-button__loading-label sr-only"
15
- }, H = /* @__PURE__ */ _({
15
+ }, H = /* @__PURE__ */ f({
16
16
  __name: "BbButton",
17
17
  props: {
18
18
  autoLoading: { type: Boolean },
@@ -50,10 +50,14 @@ const T = {
50
50
  type: {}
51
51
  },
52
52
  setup(d) {
53
- const e = d, i = f(0), n = c(
53
+ const e = d, i = _(0), n = p(
54
54
  () => e.loading || !!i.value && e.autoLoading
55
- ), u = c(() => e.disabled), { onClick: b = A } = g(), m = async (o) => {
56
- o.stopImmediatePropagation(), !(n.value && e.disabledWhileLoading) && (i.value++, await b(o), i.value--);
55
+ ), u = p(() => e.disabled), { onClick: b = A } = g(), m = async (o) => {
56
+ if (o.stopImmediatePropagation(), n.value && e.disabledWhileLoading) {
57
+ e.type === "submit" && o.preventDefault();
58
+ return;
59
+ }
60
+ i.value++, await b(o), i.value--;
57
61
  }, y = v(() => ({
58
62
  ...$(
59
63
  e,
@@ -68,7 +72,7 @@ const T = {
68
72
  ].includes(s)
69
73
  )
70
74
  }));
71
- return (o, s) => (t(), a(p(N), B(y.value, {
75
+ return (o, s) => (t(), a(c(N), B(y.value, {
72
76
  "aria-disabled": n.value ? !0 : void 0,
73
77
  class: {
74
78
  "bb-button": !0,
@@ -80,7 +84,7 @@ const T = {
80
84
  onClick: m
81
85
  }), {
82
86
  default: k(() => [
83
- C(p(P), { class: "bb-button__spinner" }),
87
+ C(c(P), { class: "bb-button__spinner" }),
84
88
  e.icon ? (t(), a(r, {
85
89
  key: 0,
86
90
  class: "bb-button__icon",
package/dist/index79.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as j, ref as g, watch as x, computed as m, openBlock as V, createBlock as G, resolveDynamicComponent as K, normalizeClass as O, withCtx as M, createElementVNode as c, withModifiers as y, renderSlot as U, normalizeProps as Y, guardReactiveProps as Z, createTextVNode as J, unref as Q, createVNode as W, createElementBlock as F, Fragment as X, renderList as ee, toDisplayString as te } from "vue";
2
- import { findInTree as ae } from "./index259.js";
2
+ import { findInTree as ae } from "./index260.js";
3
3
  import { useId as re } from "./index8.js";
4
4
  import oe from "./index128.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("./index258.js")).default);
56
+ b || (b = (await import("./index259.js")).default);
57
57
  const o = b.getType(r);
58
58
  if (!o)
59
59
  throw new Error(
package/dist/index81.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as h, ref as t, onMounted as m, onBeforeUnmount as p, openBlock as g, createBlock as b, resolveDynamicComponent as w, withCtx as _, renderSlot as I } from "vue";
2
- import { throttle as c } from "./index238.js";
2
+ import { throttle as c } from "./index242.js";
3
3
  const M = /* @__PURE__ */ h({
4
4
  __name: "BbIntersection",
5
5
  props: {
package/dist/index84.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as le, ref as l, useAttrs as se, computed as u, getCurrentInstance as ae, nextTick as ne, onBeforeUnmount as O, onMounted as ie, watch as re, openBlock as g, createBlock as ue, withCtx as ce, createElementVNode as s, mergeProps as S, createElementBlock as z, renderSlot as n, createTextVNode as de, toDisplayString as A, createCommentVNode as $ } from "vue";
2
- import { useFocusTrap as fe } from "./index214.js";
2
+ import { useFocusTrap as fe } from "./index237.js";
3
3
  import { useId as E } from "./index8.js";
4
4
  import { wait as H } from "./index130.js";
5
- import { useModalsState as b } from "./index239.js";
6
- import ve from "./index221.js";
5
+ import { useModalsState as b } from "./index243.js";
6
+ import ve from "./index240.js";
7
7
  import { useMobile as pe } from "./index9.js";
8
8
  const be = ["inert"], me = { class: "bb-offcanvas-close" }, ye = ["aria-label"], Ve = /* @__PURE__ */ le({
9
9
  __name: "BbOffCanvas",
package/dist/index86.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as P, computed as _, ref as g, onMounted as A, onBeforeUnmount as E, openBlock as y, createElementBlock as k, normalizeClass as C, createElementVNode as i, createVNode as V, unref as S, withCtx as h, renderSlot as v, Fragment as W, renderList as R, toDisplayString as M, nextTick as $ } from "vue";
2
- import { debounce as F } from "./index264.js";
2
+ import { debounce as F } from "./index258.js";
3
3
  /* empty css */
4
4
  /* empty css */
5
5
  import w from "./index13.js";
package/dist/index88.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as M, ref as n, computed as v, openBlock as k, createElementBlock as O, mergeProps as F, createElementVNode as p, renderSlot as y, normalizeProps as S, guardReactiveProps as H, createVNode as V, withCtx as C, createBlock as q, createCommentVNode as I, nextTick as W } from "vue";
2
- import { useFocusTrap as z } from "./index214.js";
2
+ import { useFocusTrap as z } from "./index237.js";
3
3
  import { useId as A } from "./index8.js";
4
4
  import { useIntersectionObserver as R } from "./index132.js";
5
- import { waitFor as j } from "./index216.js";
5
+ import { waitFor as j } from "./index238.js";
6
6
  import G from "./index13.js";
7
7
  /* empty css */
8
8
  import J from "./index256.js";
package/dist/index90.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as r, computed as a, openBlock as l, createElementBlock as s, normalizeClass as m, createElementVNode as n, normalizeStyle as c } from "vue";
2
- import { clamp as p } from "./index229.js";
2
+ import { clamp as p } from "./index206.js";
3
3
  import { getAsPercentageBetween as i } from "./index131.js";
4
4
  const _ = /* @__PURE__ */ r({
5
5
  __name: "BbProgress",