bitboss-ui 0.2.72 → 0.2.74

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 (124) hide show
  1. package/dist/index101.js +1 -1
  2. package/dist/index103.js +2 -2
  3. package/dist/index109.js +1 -1
  4. package/dist/index11.js +2 -2
  5. package/dist/index111.js +4 -4
  6. package/dist/index113.js +1 -1
  7. package/dist/index116.js +1 -1
  8. package/dist/index117.js +1 -1
  9. package/dist/index118.js +1 -1
  10. package/dist/index119.js +1 -1
  11. package/dist/index125.js +1 -1
  12. package/dist/index126.js +1 -1
  13. package/dist/index131.js +2 -2
  14. package/dist/index15.js +8 -8
  15. package/dist/index17.js +8 -8
  16. package/dist/index19.js +3 -3
  17. package/dist/index197.js +2 -235
  18. package/dist/index197.js.map +1 -1
  19. package/dist/index198.js +4 -10
  20. package/dist/index198.js.map +1 -1
  21. package/dist/index199.js +235 -2
  22. package/dist/index199.js.map +1 -1
  23. package/dist/index200.js +3 -4
  24. package/dist/index200.js.map +1 -1
  25. package/dist/index201.js +3 -3
  26. package/dist/index201.js.map +1 -1
  27. package/dist/index202.js +3 -3
  28. package/dist/index202.js.map +1 -1
  29. package/dist/index203.js +35 -5
  30. package/dist/index203.js.map +1 -1
  31. package/dist/index204.js +6 -16
  32. package/dist/index204.js.map +1 -1
  33. package/dist/index205.js +5 -16
  34. package/dist/index205.js.map +1 -1
  35. package/dist/index206.js +15 -18
  36. package/dist/index206.js.map +1 -1
  37. package/dist/index207.js +13 -17
  38. package/dist/index207.js.map +1 -1
  39. package/dist/index208.js +18 -28
  40. package/dist/index208.js.map +1 -1
  41. package/dist/index209.js +20 -8
  42. package/dist/index209.js.map +1 -1
  43. package/dist/index21.js +2 -2
  44. package/dist/index210.js +29 -2
  45. package/dist/index210.js.map +1 -1
  46. package/dist/index211.js +8 -3
  47. package/dist/index211.js.map +1 -1
  48. package/dist/index212.js +2 -35
  49. package/dist/index212.js.map +1 -1
  50. package/dist/index213.js +10 -6
  51. package/dist/index213.js.map +1 -1
  52. package/dist/index214.js +2 -368
  53. package/dist/index214.js.map +1 -1
  54. package/dist/index215.js +2 -134
  55. package/dist/index215.js.map +1 -1
  56. package/dist/index216.js +121 -2
  57. package/dist/index216.js.map +1 -1
  58. package/dist/index217.js +2 -174
  59. package/dist/index217.js.map +1 -1
  60. package/dist/index218.js +368 -23
  61. package/dist/index218.js.map +1 -1
  62. package/dist/index219.js +1 -1
  63. package/dist/index220.js +134 -2
  64. package/dist/index220.js.map +1 -1
  65. package/dist/index221.js +166 -113
  66. package/dist/index221.js.map +1 -1
  67. package/dist/index222.js +23 -2
  68. package/dist/index222.js.map +1 -1
  69. package/dist/index226.js +1 -1
  70. package/dist/index228.js +4 -5
  71. package/dist/index228.js.map +1 -1
  72. package/dist/index229.js +224 -160
  73. package/dist/index229.js.map +1 -1
  74. package/dist/index230.js +260 -1
  75. package/dist/index230.js.map +1 -1
  76. package/dist/index231.js +433 -67
  77. package/dist/index231.js.map +1 -1
  78. package/dist/index232.js +88 -3
  79. package/dist/index232.js.map +1 -1
  80. package/dist/index233.js +69 -224
  81. package/dist/index233.js.map +1 -1
  82. package/dist/index234.js +159 -257
  83. package/dist/index234.js.map +1 -1
  84. package/dist/index235.js +1 -297
  85. package/dist/index235.js.map +1 -1
  86. package/dist/index236.js +5 -6
  87. package/dist/index236.js.map +1 -1
  88. package/dist/index237.js +200 -2
  89. package/dist/index237.js.map +1 -1
  90. package/dist/index238.js +295 -2
  91. package/dist/index238.js.map +1 -1
  92. package/dist/index239.js +6 -2
  93. package/dist/index239.js.map +1 -1
  94. package/dist/index240.js +2 -2
  95. package/dist/index243.js +2 -435
  96. package/dist/index243.js.map +1 -1
  97. package/dist/index244.js +2 -89
  98. package/dist/index244.js.map +1 -1
  99. package/dist/index245.js +2 -2
  100. package/dist/index246.js +2 -117
  101. package/dist/index246.js.map +1 -1
  102. package/dist/index248.js +2 -200
  103. package/dist/index248.js.map +1 -1
  104. package/dist/index249.js +117 -2
  105. package/dist/index249.js.map +1 -1
  106. package/dist/index25.js +2 -2
  107. package/dist/index254.js +2 -3
  108. package/dist/index254.js.map +1 -1
  109. package/dist/index255.js +3 -2
  110. package/dist/index255.js.map +1 -1
  111. package/dist/index29.js +3 -3
  112. package/dist/index31.js +6 -6
  113. package/dist/index33.js +1 -1
  114. package/dist/index35.js +2 -2
  115. package/dist/index47.js +1 -1
  116. package/dist/index49.js +1 -1
  117. package/dist/index65.js +3 -3
  118. package/dist/index72.js +1 -1
  119. package/dist/index75.js +1 -1
  120. package/dist/index79.js +3 -3
  121. package/dist/index99.js +102 -98
  122. package/dist/index99.js.map +1 -1
  123. package/dist/style.css +1 -1
  124. package/package.json +1 -1
package/dist/index249.js CHANGED
@@ -1,5 +1,120 @@
1
- import e from "./index197.js";
1
+ const l = Math.min, a = Math.max, P = Math.round, M = Math.floor, O = (t) => ({
2
+ x: t,
3
+ y: t
4
+ }), m = {
5
+ left: "right",
6
+ right: "left",
7
+ bottom: "top",
8
+ top: "bottom"
9
+ }, p = {
10
+ start: "end",
11
+ end: "start"
12
+ };
13
+ function S(t, n, o) {
14
+ return a(t, l(n, o));
15
+ }
16
+ function w(t, n) {
17
+ return typeof t == "function" ? t(n) : t;
18
+ }
19
+ function f(t) {
20
+ return t.split("-")[0];
21
+ }
22
+ function g(t) {
23
+ return t.split("-")[1];
24
+ }
25
+ function h(t) {
26
+ return t === "x" ? "y" : "x";
27
+ }
28
+ function x(t) {
29
+ return t === "y" ? "height" : "width";
30
+ }
31
+ function b(t) {
32
+ return ["top", "bottom"].includes(f(t)) ? "y" : "x";
33
+ }
34
+ function d(t) {
35
+ return h(b(t));
36
+ }
37
+ function j(t, n, o) {
38
+ o === void 0 && (o = !1);
39
+ const s = g(t), i = d(t), e = x(i);
40
+ let r = i === "x" ? s === (o ? "end" : "start") ? "right" : "left" : s === "start" ? "bottom" : "top";
41
+ return n.reference[e] > n.floating[e] && (r = u(r)), [r, u(r)];
42
+ }
43
+ function C(t) {
44
+ const n = u(t);
45
+ return [c(t), n, c(n)];
46
+ }
47
+ function c(t) {
48
+ return t.replace(/start|end/g, (n) => p[n]);
49
+ }
50
+ function A(t, n, o) {
51
+ const s = ["left", "right"], i = ["right", "left"], e = ["top", "bottom"], r = ["bottom", "top"];
52
+ switch (t) {
53
+ case "top":
54
+ case "bottom":
55
+ return o ? n ? i : s : n ? s : i;
56
+ case "left":
57
+ case "right":
58
+ return n ? e : r;
59
+ default:
60
+ return [];
61
+ }
62
+ }
63
+ function L(t, n, o, s) {
64
+ const i = g(t);
65
+ let e = A(f(t), o === "start", s);
66
+ return i && (e = e.map((r) => r + "-" + i), n && (e = e.concat(e.map(c)))), e;
67
+ }
68
+ function u(t) {
69
+ return t.replace(/left|right|bottom|top/g, (n) => m[n]);
70
+ }
71
+ function y(t) {
72
+ return {
73
+ top: 0,
74
+ right: 0,
75
+ bottom: 0,
76
+ left: 0,
77
+ ...t
78
+ };
79
+ }
80
+ function E(t) {
81
+ return typeof t != "number" ? y(t) : {
82
+ top: t,
83
+ right: t,
84
+ bottom: t,
85
+ left: t
86
+ };
87
+ }
88
+ function R(t) {
89
+ return {
90
+ ...t,
91
+ top: t.y,
92
+ left: t.x,
93
+ right: t.x + t.width,
94
+ bottom: t.y + t.height
95
+ };
96
+ }
2
97
  export {
3
- e as default
98
+ S as clamp,
99
+ O as createCoords,
100
+ w as evaluate,
101
+ y as expandPaddingObject,
102
+ M as floor,
103
+ g as getAlignment,
104
+ d as getAlignmentAxis,
105
+ j as getAlignmentSides,
106
+ x as getAxisLength,
107
+ C as getExpandedPlacements,
108
+ c as getOppositeAlignmentPlacement,
109
+ h as getOppositeAxis,
110
+ L as getOppositeAxisPlacements,
111
+ u as getOppositePlacement,
112
+ E as getPaddingObject,
113
+ f as getSide,
114
+ b as getSideAxis,
115
+ a as max,
116
+ l as min,
117
+ R as rectToClientRect,
118
+ P as round
4
119
  };
5
120
  //# sourceMappingURL=index249.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index249.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
1
+ {"version":3,"file":"index249.js","sources":["../node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs"],"sourcesContent":["/**\n * Custom positioning reference element.\n * @see https://floating-ui.com/docs/virtual-elements\n */\n\nconst sides = ['top', 'right', 'bottom', 'left'];\nconst alignments = ['start', 'end'];\nconst placements = /*#__PURE__*/sides.reduce((acc, side) => acc.concat(side, side + \"-\" + alignments[0], side + \"-\" + alignments[1]), []);\nconst min = Math.min;\nconst max = Math.max;\nconst round = Math.round;\nconst floor = Math.floor;\nconst createCoords = v => ({\n x: v,\n y: v\n});\nconst oppositeSideMap = {\n left: 'right',\n right: 'left',\n bottom: 'top',\n top: 'bottom'\n};\nconst oppositeAlignmentMap = {\n start: 'end',\n end: 'start'\n};\nfunction clamp(start, value, end) {\n return max(start, min(value, end));\n}\nfunction evaluate(value, param) {\n return typeof value === 'function' ? value(param) : value;\n}\nfunction getSide(placement) {\n return placement.split('-')[0];\n}\nfunction getAlignment(placement) {\n return placement.split('-')[1];\n}\nfunction getOppositeAxis(axis) {\n return axis === 'x' ? 'y' : 'x';\n}\nfunction getAxisLength(axis) {\n return axis === 'y' ? 'height' : 'width';\n}\nfunction getSideAxis(placement) {\n return ['top', 'bottom'].includes(getSide(placement)) ? 'y' : 'x';\n}\nfunction getAlignmentAxis(placement) {\n return getOppositeAxis(getSideAxis(placement));\n}\nfunction getAlignmentSides(placement, rects, rtl) {\n if (rtl === void 0) {\n rtl = false;\n }\n const alignment = getAlignment(placement);\n const alignmentAxis = getAlignmentAxis(placement);\n const length = getAxisLength(alignmentAxis);\n let mainAlignmentSide = alignmentAxis === 'x' ? alignment === (rtl ? 'end' : 'start') ? 'right' : 'left' : alignment === 'start' ? 'bottom' : 'top';\n if (rects.reference[length] > rects.floating[length]) {\n mainAlignmentSide = getOppositePlacement(mainAlignmentSide);\n }\n return [mainAlignmentSide, getOppositePlacement(mainAlignmentSide)];\n}\nfunction getExpandedPlacements(placement) {\n const oppositePlacement = getOppositePlacement(placement);\n return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];\n}\nfunction getOppositeAlignmentPlacement(placement) {\n return placement.replace(/start|end/g, alignment => oppositeAlignmentMap[alignment]);\n}\nfunction getSideList(side, isStart, rtl) {\n const lr = ['left', 'right'];\n const rl = ['right', 'left'];\n const tb = ['top', 'bottom'];\n const bt = ['bottom', 'top'];\n switch (side) {\n case 'top':\n case 'bottom':\n if (rtl) return isStart ? rl : lr;\n return isStart ? lr : rl;\n case 'left':\n case 'right':\n return isStart ? tb : bt;\n default:\n return [];\n }\n}\nfunction getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {\n const alignment = getAlignment(placement);\n let list = getSideList(getSide(placement), direction === 'start', rtl);\n if (alignment) {\n list = list.map(side => side + \"-\" + alignment);\n if (flipAlignment) {\n list = list.concat(list.map(getOppositeAlignmentPlacement));\n }\n }\n return list;\n}\nfunction getOppositePlacement(placement) {\n return placement.replace(/left|right|bottom|top/g, side => oppositeSideMap[side]);\n}\nfunction expandPaddingObject(padding) {\n return {\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n ...padding\n };\n}\nfunction getPaddingObject(padding) {\n return typeof padding !== 'number' ? expandPaddingObject(padding) : {\n top: padding,\n right: padding,\n bottom: padding,\n left: padding\n };\n}\nfunction rectToClientRect(rect) {\n return {\n ...rect,\n top: rect.y,\n left: rect.x,\n right: rect.x + rect.width,\n bottom: rect.y + rect.height\n };\n}\n\nexport { alignments, clamp, createCoords, evaluate, expandPaddingObject, floor, getAlignment, getAlignmentAxis, getAlignmentSides, getAxisLength, getExpandedPlacements, getOppositeAlignmentPlacement, getOppositeAxis, getOppositeAxisPlacements, getOppositePlacement, getPaddingObject, getSide, getSideAxis, max, min, placements, rectToClientRect, round, sides };\n"],"names":["min","max","round","floor","createCoords","v","oppositeSideMap","oppositeAlignmentMap","clamp","start","value","end","evaluate","param","getSide","placement","getAlignment","getOppositeAxis","axis","getAxisLength","getSideAxis","getAlignmentAxis","getAlignmentSides","rects","rtl","alignment","alignmentAxis","length","mainAlignmentSide","getOppositePlacement","getExpandedPlacements","oppositePlacement","getOppositeAlignmentPlacement","getSideList","side","isStart","lr","rl","tb","bt","getOppositeAxisPlacements","flipAlignment","direction","list","expandPaddingObject","padding","getPaddingObject","rectToClientRect","rect"],"mappings":"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","x_google_ignoreList":[0]}
package/dist/index25.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as g, computed as n, ref as _, openBlock as w, createElementBlock as B, normalizeClass as C, createElementVNode as l, normalizeProps as t, guardReactiveProps as u, renderSlot as V } from "vue";
2
- import { isCssColor as i } from "./index199.js";
3
- import { when as E } from "./index200.js";
2
+ import { isCssColor as i } from "./index197.js";
3
+ import { when as E } from "./index198.js";
4
4
  const N = {
5
5
  "aria-hidden": "true",
6
6
  class: "bb-base-radio-container"
package/dist/index254.js CHANGED
@@ -1,6 +1,5 @@
1
- import o from "./index229.js";
2
- import "./index230.js";
1
+ import f from "./index233.js";
3
2
  export {
4
- o as default
3
+ f as default
5
4
  };
6
5
  //# sourceMappingURL=index254.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index254.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
1
+ {"version":3,"file":"index254.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
package/dist/index255.js CHANGED
@@ -1,5 +1,6 @@
1
- import f from "./index231.js";
1
+ import o from "./index234.js";
2
+ import "./index235.js";
2
3
  export {
3
- f as default
4
+ o as default
4
5
  };
5
6
  //# sourceMappingURL=index255.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index255.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
1
+ {"version":3,"file":"index255.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
package/dist/index29.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as C, ref as b, computed as f, openBlock as l, createElementBlock as i, mergeProps as g, createElementVNode as r, Fragment as I, renderList as V, normalizeClass as B, toDisplayString as h, renderSlot as x } from "vue";
2
- import { booleanishToBoolean as M } from "./index220.js";
3
- import { identity as F } from "./index216.js";
4
- import { isCssColor as p } from "./index199.js";
2
+ import { booleanishToBoolean as M } from "./index214.js";
3
+ import { identity as F } from "./index215.js";
4
+ import { isCssColor as p } from "./index197.js";
5
5
  import { isNotNil as T } from "./index124.js";
6
6
  const H = { class: "bb-base-rating__inner-container" }, D = { class: "bb-base-rating__label-text" }, N = ["id", "autofocus", "checked", "disabled", "name", "value"], j = ["height", "width"], A = /* @__PURE__ */ r("path", {
7
7
  d: "m8.243 7.34l-6.38.925l-.113.023a1 1 0 0 0-.44 1.684l4.622 4.499l-1.09 6.355l-.013.11a1 1 0 0 0 1.464.944l5.706-3l5.693 3l.1.046a1 1 0 0 0 1.352-1.1l-1.091-6.355l4.624-4.5l.078-.085a1 1 0 0 0-.633-1.62l-6.38-.926l-2.852-5.78a1 1 0 0 0-1.794 0L8.243 7.34z",
package/dist/index31.js CHANGED
@@ -3,20 +3,20 @@ import Ae from "./index115.js";
3
3
  import "./index158.js";
4
4
  import Me from "./index119.js";
5
5
  import "./index185.js";
6
- import { useFloating as Je } from "./index221.js";
6
+ import { useFloating as Je } from "./index216.js";
7
7
  import { clamp as qe } from "./index196.js";
8
8
  import { deepEqual as se } from "./index123.js";
9
- import { head as G } from "./index222.js";
9
+ import { head as G } from "./index217.js";
10
10
  import { isNotNil as E } from "./index124.js";
11
- import { last as ze } from "./index210.js";
11
+ import { last as ze } from "./index212.js";
12
12
  import { useItemText as He } from "./index125.js";
13
13
  import { useItemValue as Pe } from "./index126.js";
14
14
  import { wait as X } from "./index122.js";
15
- import { waitFor as je } from "./index213.js";
16
- import { when as Qe } from "./index200.js";
15
+ import { waitFor as je } from "./index204.js";
16
+ import { when as Qe } from "./index198.js";
17
17
  import We from "./index116.js";
18
18
  import "./index160.js";
19
- import { autoUpdate as Ue, flip as Ke, shift as Re } from "./index214.js";
19
+ import { autoUpdate as Ue, flip as Ke, shift as Re } from "./index218.js";
20
20
  import { offset as Ye } from "./index219.js";
21
21
  const Ze = { class: "bb-base-select__input-container" }, Ge = ["id", "autocomplete", "autofocus", "disabled", "placeholder", "aria-controls", "aria-expanded", "readonly"], Xe = { class: "bb-base-select__chevron" }, el = /* @__PURE__ */ w("svg", {
22
22
  fill: "none",
package/dist/index33.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as R, ref as l, onMounted as S, watchEffect as z, computed as y, openBlock as D, createElementBlock as F, mergeProps as h, renderSlot as g, createElementVNode as t, normalizeProps as H, guardReactiveProps as T, normalizeStyle as E, unref as X } from "vue";
2
2
  import { clamp as K } from "./index196.js";
3
- import { isCssColor as w } from "./index199.js";
3
+ import { isCssColor as w } from "./index197.js";
4
4
  import { isNil as O } from "./index120.js";
5
5
  import { transposeValue as L } from "./index121.js";
6
6
  const Y = { class: "bb-base-slider__slider-container" }, j = ["id", "disabled", "name", "readonly", "value"], q = ["aria-readonly", "aria-valuemax", "aria-valuemin", "aria-valuenow", "tabindex"], W = /* @__PURE__ */ R({
package/dist/index35.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as I, ref as b, computed as n, watch as F, openBlock as m, createElementBlock as p, normalizeClass as N, normalizeProps as c, mergeProps as h, createCommentVNode as S, createElementVNode as l, renderSlot as x, guardReactiveProps as f } from "vue";
2
- import { isCssColor as V } from "./index199.js";
3
- import { when as A } from "./index200.js";
2
+ import { isCssColor as V } from "./index197.js";
3
+ import { when as A } from "./index198.js";
4
4
  const J = { class: "bb-base-switch-container" }, M = /* @__PURE__ */ l("span", { class: "bb-base-switch-container__icon-thumb" }, null, -1), O = [
5
5
  M
6
6
  ], H = /* @__PURE__ */ I({
package/dist/index47.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as p, computed as u, ref as d, watch as f, openBlock as a, createElementBlock as l, normalizeProps as b, guardReactiveProps as z, createElementVNode as v, renderSlot as g, createCommentVNode as h } from "vue";
2
- import { isCssColor as _ } from "./index199.js";
2
+ import { isCssColor as _ } from "./index197.js";
3
3
  const k = { class: "bb-avatar__fallback" }, C = ["alt", "sizes", "src", "srcset"], B = /* @__PURE__ */ p({
4
4
  __name: "BbAvatar",
5
5
  props: {
package/dist/index49.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 "./index199.js";
2
+ import { isCssColor as r } from "./index197.js";
3
3
  import { isNil as B } from "./index120.js";
4
4
  const C = { class: "bb-badge__wrapper" }, h = { class: "bb-badge__content-inner" }, S = /* @__PURE__ */ p({
5
5
  __name: "BbBadge",
package/dist/index65.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as Y, computed as M, ref as v, openBlock as D, createElementBlock as H, mergeProps as S, createElementVNode as h, renderSlot as y, normalizeProps as Z, guardReactiveProps as ee, unref as c, createBlock as te, Teleport as oe, normalizeClass as ne, normalizeStyle as z, Fragment as N, renderList as ae, createVNode as le, withCtx as se, createCommentVNode as ie } from "vue";
2
2
  import { findRightIndex as I } from "./index223.js";
3
- import { useFloating as re, arrow as ue } from "./index221.js";
3
+ import { useFloating as re, arrow as ue } from "./index216.js";
4
4
  import { useId as de } from "./index7.js";
5
5
  import { wait as U } from "./index122.js";
6
6
  import ce from "./index9.js";
7
7
  import "./index10.js";
8
- import V from "./index218.js";
9
- import { autoUpdate as fe, flip as pe, shift as be } from "./index214.js";
8
+ import V from "./index222.js";
9
+ import { autoUpdate as fe, flip as pe, shift as be } from "./index218.js";
10
10
  import { offset as me } from "./index219.js";
11
11
  const ve = ["id", "aria-labelledby"], we = { class: "bb-dropdown__items-container" }, Me = /* @__PURE__ */ Y({
12
12
  __name: "BbDropdown",
package/dist/index72.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 "./index211.js";
2
+ import { throttle as c } from "./index202.js";
3
3
  const M = /* @__PURE__ */ h({
4
4
  __name: "BbIntersection",
5
5
  props: {
package/dist/index75.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as q, ref as s, useAttrs as G, computed as m, onMounted as J, watch as Q, onBeforeUnmount as X, openBlock as y, createBlock as Y, Teleport as Z, createElementVNode as o, mergeProps as N, createElementBlock as w, renderSlot as l, createTextVNode as ee, toDisplayString as z, createCommentVNode as B, nextTick as te } from "vue";
2
- import { useFocusTrap as oe } from "./index212.js";
2
+ import { useFocusTrap as oe } from "./index203.js";
3
3
  import { useId as L } from "./index7.js";
4
4
  import { wait as O } from "./index122.js";
5
5
  const se = { class: "bb-offcanvas-close" }, ae = { class: "bb-offcanvas-close__content" }, ne = { class: "bb-offcanvas-close__label" }, le = /* @__PURE__ */ o("span", { class: "bb-offcanvas-close__icon" }, [
package/dist/index79.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as V, ref as a, computed as _, openBlock as p, createElementBlock as h, mergeProps as B, createElementVNode as d, renderSlot as P, normalizeProps as I, guardReactiveProps as R, unref as g, createBlock as D, Teleport as U, normalizeClass as W, normalizeStyle as j, createCommentVNode as y, withCtx as G, nextTick as J } from "vue";
2
- import { useFloating as K, arrow as Q } from "./index221.js";
3
- import { useFocusTrap as X } from "./index212.js";
2
+ import { useFloating as K, arrow as Q } from "./index216.js";
3
+ import { useFocusTrap as X } from "./index203.js";
4
4
  import { useId as Y } from "./index7.js";
5
5
  import { wait as E } from "./index122.js";
6
6
  import Z from "./index9.js";
7
7
  import "./index10.js";
8
- import { autoUpdate as ee, flip as oe, shift as te } from "./index214.js";
8
+ import { autoUpdate as ee, flip as oe, shift as te } from "./index218.js";
9
9
  import { offset as ae } from "./index219.js";
10
10
  const re = ["id"], ne = {
11
11
  key: 1,
package/dist/index99.js CHANGED
@@ -1,14 +1,14 @@
1
- import { defineComponent as D, getCurrentInstance as z, ref as K, computed as p, watch as _, nextTick as H, openBlock as u, createElementBlock as d, unref as J, normalizeClass as g, createElementVNode as v, Fragment as w, renderList as B, createVNode as O, withCtx as j, renderSlot as $, toDisplayString as G, createCommentVNode as M } from "vue";
2
- import { useId as Q } from "./index7.js";
3
- import { useRoute as W } from "./index129.js";
4
- import { useRouter as X } from "./index130.js";
5
- import { wait as Y } from "./index122.js";
6
- import Z from "./index9.js";
1
+ import { defineComponent as K, ref as F, getCurrentInstance as H, computed as p, watch as _, nextTick as J, openBlock as u, createElementBlock as d, unref as O, normalizeClass as g, createElementVNode as m, Fragment as w, renderList as N, createVNode as j, withCtx as G, renderSlot as q, toDisplayString as M, createCommentVNode as Q } from "vue";
2
+ import { useId as W } from "./index7.js";
3
+ import { useRoute as X } from "./index129.js";
4
+ import { useRouter as Y } from "./index130.js";
5
+ import { wait as Z } from "./index122.js";
6
+ import ee from "./index9.js";
7
7
  import "./index10.js";
8
- const ee = ["id"], te = { class: "bb-tab__label-boundary" }, ae = {
8
+ const ae = ["id"], te = { class: "bb-tab__label-boundary" }, le = {
9
9
  class: "bb-tab__label-container",
10
10
  role: "tablist"
11
- }, le = { class: "bb-tab__label" }, se = { class: "bb-tab__panes-container" }, ie = ["id", "aria-labelledby"], ye = /* @__PURE__ */ D({
11
+ }, se = { class: "bb-tab__label" }, ie = { class: "bb-tab__panes-container" }, re = ["id", "aria-labelledby"], fe = /* @__PURE__ */ K({
12
12
  __name: "BbTab",
13
13
  props: {
14
14
  disabled: { type: Boolean },
@@ -21,24 +21,24 @@ const ee = ["id"], te = { class: "bb-tab__label-boundary" }, ae = {
21
21
  querykey: { default: "tab" }
22
22
  },
23
23
  emits: ["update:modelValue"],
24
- setup(N, { expose: F, emit: A }) {
25
- var T, x, S, I, V, L, C;
26
- const a = N, P = A, o = W(), k = X(), b = a.id ?? Q().id.value, y = `bb-tab_${b}`, q = !!((x = (T = z()) == null ? void 0 : T.proxy) != null && x.$inertia), l = K(null), i = p(
27
- () => a.items.findIndex((e) => e.key === l.value)
28
- ), f = p(() => i.value === 0), m = p(() => i.value === a.items.length - 1);
29
- if (a.items.forEach((e) => {
24
+ setup(A, { expose: P, emit: U }) {
25
+ var x, S, I, V, L, C, E;
26
+ const t = A, D = U, o = X(), v = Y(), k = F(), $ = t.id ?? W().id.value, b = `bb-tab_${$}`, T = !!((S = (x = H()) == null ? void 0 : x.proxy) != null && S.$inertia), l = F(null), i = p(
27
+ () => t.items.findIndex((e) => e.key === l.value)
28
+ ), y = p(() => i.value === 0), f = p(() => i.value === t.items.length - 1);
29
+ if (t.items.forEach((e) => {
30
30
  if (!e.key)
31
31
  throw console.error("A tab item has no key", e), new Error("A tab item has no key " + JSON.stringify(e));
32
- }), a.navigation && ((I = (S = o.value) == null ? void 0 : S.query) != null && I[a.querykey]))
33
- l.value = (L = (V = o.value) == null ? void 0 : V.query) == null ? void 0 : L[a.querykey];
34
- else if (a.navigation && q && ((C = globalThis == null ? void 0 : globalThis.location) != null && C.href) && new URL(globalThis.location.href).searchParams.get(a.querykey))
32
+ }), t.navigation && ((V = (I = o.value) == null ? void 0 : I.query) != null && V[t.querykey]))
33
+ l.value = (C = (L = o.value) == null ? void 0 : L.query) == null ? void 0 : C[t.querykey];
34
+ else if (t.navigation && T && ((E = globalThis == null ? void 0 : globalThis.location) != null && E.href) && new URL(globalThis.location.href).searchParams.get(t.querykey))
35
35
  l.value = new URL(globalThis.location.href).searchParams.get(
36
- a.querykey
36
+ t.querykey
37
37
  );
38
- else if (a.modelValue)
39
- l.value = a.modelValue;
40
- else if (a.items[0]) {
41
- const e = a.items.find((t) => !t.disabled);
38
+ else if (t.modelValue)
39
+ l.value = t.modelValue;
40
+ else if (t.items[0]) {
41
+ const e = t.items.find((a) => !a.disabled);
42
42
  if (!e)
43
43
  throw new Error(
44
44
  "No tab has been selected so it defaulted to the first available. Still, all the tabs are disabled so no tab can be selected."
@@ -47,20 +47,20 @@ const ee = ["id"], te = { class: "bb-tab__label-boundary" }, ae = {
47
47
  l.value = s;
48
48
  }
49
49
  const c = async (e, s = !1) => {
50
- var t, n, E, R;
51
- if (a.navigation && o.value && ((n = (t = o.value) == null ? void 0 : t.query) == null ? void 0 : n[a.querykey]) !== e)
52
- k == null || k.push({
50
+ var a, n, R, B;
51
+ if (t.navigation && o.value && ((n = (a = o.value) == null ? void 0 : a.query) == null ? void 0 : n[t.querykey]) !== e)
52
+ v == null || v.push({
53
53
  ...o,
54
- query: { ...(E = o.value) == null ? void 0 : E.query, [a.querykey]: e },
54
+ query: { ...(R = o.value) == null ? void 0 : R.query, [t.querykey]: e },
55
55
  replace: s
56
56
  });
57
- else if (a.navigation && q && ((R = globalThis == null ? void 0 : globalThis.location) != null && R.href) && new URL(globalThis.location.href).searchParams.get(a.querykey) !== e) {
57
+ else if (t.navigation && T && ((B = globalThis == null ? void 0 : globalThis.location) != null && B.href) && new URL(globalThis.location.href).searchParams.get(t.querykey) !== e) {
58
58
  const h = new URL(globalThis.location.href);
59
- h.searchParams.set(a.querykey, e), Y(0).then(() => {
59
+ h.searchParams.set(t.querykey, e), Z(0).then(() => {
60
60
  s ? history.replaceState({}, "", h.toString()) : history.pushState({}, "", h.toString());
61
61
  });
62
62
  }
63
- a.modelValue !== e && P("update:modelValue", e), l.value = e;
63
+ t.modelValue !== e && D("update:modelValue", e), l.value = e;
64
64
  };
65
65
  l.value && c(l.value, !0);
66
66
  const r = (e) => {
@@ -70,25 +70,25 @@ const ee = ["id"], te = { class: "bb-tab__label-boundary" }, ae = {
70
70
  s = 0;
71
71
  break;
72
72
  case "previous":
73
- s = (i.value + a.items.length - 1) % a.items.length;
73
+ s = (i.value + t.items.length - 1) % t.items.length;
74
74
  break;
75
75
  case "next":
76
- s = (i.value + 1) % a.items.length;
76
+ s = (i.value + 1) % t.items.length;
77
77
  break;
78
78
  case "last":
79
- s = a.items.length - 1;
79
+ s = t.items.length - 1;
80
80
  break;
81
81
  }
82
82
  if (s === null)
83
83
  throw new Error("Could not navigate to next tab");
84
- if (a.items[s].disabled)
84
+ if (t.items[s].disabled)
85
85
  return;
86
- const t = a.items[s].key, n = document.querySelector(
87
- `#${y}_tab_${t}`
86
+ const a = t.items[s].key, n = document.querySelector(
87
+ `#${b}_tab_${a}`
88
88
  );
89
- n == null || n.focus(), c(t);
90
- }, U = (e) => {
91
- if (!a.disabled)
89
+ n == null || n.focus(), c(a);
90
+ }, z = (e) => {
91
+ if (!t.disabled)
92
92
  if (e.key === "ArrowRight")
93
93
  r("next");
94
94
  else if (e.key === "ArrowLeft")
@@ -101,14 +101,14 @@ const ee = ["id"], te = { class: "bb-tab__label-boundary" }, ae = {
101
101
  return;
102
102
  };
103
103
  return _(
104
- () => a.modelValue,
104
+ () => t.modelValue,
105
105
  (e) => {
106
106
  e && c(e);
107
107
  }
108
108
  ), _(
109
109
  () => {
110
110
  var e, s;
111
- return (s = (e = o.value) == null ? void 0 : e.query) == null ? void 0 : s[a.querykey];
111
+ return (s = (e = o.value) == null ? void 0 : e.query) == null ? void 0 : s[t.querykey];
112
112
  },
113
113
  (e) => {
114
114
  e && typeof e == "string" && c(e);
@@ -116,69 +116,73 @@ const ee = ["id"], te = { class: "bb-tab__label-boundary" }, ae = {
116
116
  ), _(
117
117
  l,
118
118
  async () => {
119
- const e = document.querySelector(
120
- `#${b} [role=tablist] .bb-tab__btn--active`
121
- );
122
- e ? (await H(), e.scrollIntoView({
123
- behavior: "smooth",
124
- block: "center",
125
- inline: "nearest"
126
- })) : console.log("No element found with selector", `#${b} [role=tablist] .bb-tab__btn--active`);
119
+ if (k.value) {
120
+ const e = k.value.querySelector(
121
+ "[role=tablist] .bb-tab__btn--active"
122
+ );
123
+ e && (await J(), e.scrollIntoView({
124
+ behavior: "smooth",
125
+ block: "nearest",
126
+ inline: "nearest"
127
+ }));
128
+ }
127
129
  },
128
130
  { flush: "post" }
129
- ), F({
130
- isFirst: f,
131
- isLast: m,
131
+ ), P({
132
+ isFirst: y,
133
+ isLast: f,
132
134
  current: l,
133
135
  currentIndex: i,
134
136
  goTo: r
135
137
  }), (e, s) => (u(), d("div", {
136
- id: J(b),
138
+ id: O($),
137
139
  class: g(["bb-tab", {
138
140
  [`bb-tab--${e.direction}`]: !0,
139
141
  "bb-tab--disabled": !0
140
- }])
142
+ }]),
143
+ ref_key: "tabs",
144
+ ref: k
141
145
  }, [
142
- v("div", te, [
143
- v("ul", ae, [
144
- (u(!0), d(w, null, B(e.items, (t) => (u(), d("li", {
145
- key: t.key,
146
+ m("div", te, [
147
+ m("ul", le, [
148
+ (u(!0), d(w, null, N(e.items, (a) => (u(), d("li", {
149
+ key: a.key,
146
150
  role: "presentation"
147
151
  }, [
148
- O(Z, {
149
- id: `${y}_tab_${t.key}`,
150
- "aria-selected": l.value === t.key,
151
- class: g(["bb-tab__btn", { "bb-tab__btn--active": l.value === t.key }]),
152
- disabled: t.disabled || e.disabled,
152
+ j(ee, {
153
+ id: `${b}_tab_${a.key}`,
154
+ "aria-selected": l.value === a.key,
155
+ class: g(["bb-tab__btn", { "bb-tab__btn--active": l.value === a.key }]),
156
+ disabled: a.disabled || e.disabled,
153
157
  role: "tab",
154
- tabindex: l.value === t.key ? 0 : -1,
155
- onClick: (n) => c(t.key),
156
- onKeydown: U
158
+ tabindex: l.value === a.key ? 0 : -1,
159
+ onClick: (n) => c(a.key),
160
+ onKeydown: z
157
161
  }, {
158
- default: j(() => [
159
- $(e.$slots, `label-${t.key}`, {
162
+ default: G(() => [
163
+ q(e.$slots, `label-${a.key}`, {
160
164
  current: l.value,
161
165
  currentIndex: i.value,
162
- disabled: !!(t.disabled || e.disabled),
166
+ disabled: !!(a.disabled || e.disabled),
163
167
  goTo: r,
164
- isFirst: f.value,
165
- isLast: m.value,
166
- selected: l.value === t.key,
167
- text: t.label,
168
- value: t.key
168
+ isFirst: y.value,
169
+ isLast: f.value,
170
+ selected: l.value === a.key,
171
+ text: a.label,
172
+ value: a.key
169
173
  }, () => [
170
- $(e.$slots, "label", {
174
+ q(e.$slots, "label", {
171
175
  current: l.value,
172
176
  currentIndex: i.value,
173
- disabled: !!(t.disabled || e.disabled),
177
+ disabled: !!(a.disabled || e.disabled),
174
178
  goTo: r,
175
- isFirst: f.value,
176
- isLast: m.value,
177
- selected: l.value === t.key,
178
- text: t.label,
179
- value: t.key
179
+ isFirst: y.value,
180
+ isLast: f.value,
181
+ selected: l.value === a.key,
182
+ text: a.label,
183
+ value: a.key
180
184
  }, () => [
181
- v("span", le, G(t.label), 1)
185
+ m("span", se, M(a.label), 1)
182
186
  ])
183
187
  ])
184
188
  ]),
@@ -187,38 +191,38 @@ const ee = ["id"], te = { class: "bb-tab__label-boundary" }, ae = {
187
191
  ]))), 128))
188
192
  ])
189
193
  ]),
190
- v("div", se, [
191
- (u(!0), d(w, null, B(e.items, (t) => (u(), d(w, {
192
- key: t.key
194
+ m("div", ie, [
195
+ (u(!0), d(w, null, N(e.items, (a) => (u(), d(w, {
196
+ key: a.key
193
197
  }, [
194
- l.value === t.key || e.eager || t.eager ? (u(), d("section", {
198
+ l.value === a.key || e.eager || a.eager ? (u(), d("section", {
195
199
  key: 0,
196
- id: `${y}_tabpanel_${t.key}`,
197
- "aria-labelledby": `${y}_tab_${t.key}`,
200
+ id: `${b}_tabpanel_${a.key}`,
201
+ "aria-labelledby": `${b}_tab_${a.key}`,
198
202
  class: g(["bb-tab__pane", {
199
- "bb-tab__pane--shown": l.value === t.key
203
+ "bb-tab__pane--shown": l.value === a.key
200
204
  }]),
201
205
  role: "tabpanel",
202
206
  tabindex: "0"
203
207
  }, [
204
- $(e.$slots, t.key, {
208
+ q(e.$slots, a.key, {
205
209
  current: l.value,
206
210
  currentIndex: i.value,
207
- disabled: !!(t.disabled || e.disabled),
211
+ disabled: !!(a.disabled || e.disabled),
208
212
  goTo: r,
209
- isFirst: f.value,
210
- isLast: m.value,
211
- selected: l.value === t.key,
212
- text: t.label,
213
- value: t.key
213
+ isFirst: y.value,
214
+ isLast: f.value,
215
+ selected: l.value === a.key,
216
+ text: a.label,
217
+ value: a.key
214
218
  })
215
- ], 10, ie)) : M("", !0)
219
+ ], 10, re)) : Q("", !0)
216
220
  ], 64))), 128))
217
221
  ])
218
- ], 10, ee));
222
+ ], 10, ae));
219
223
  }
220
224
  });
221
225
  export {
222
- ye as default
226
+ fe as default
223
227
  };
224
228
  //# sourceMappingURL=index99.js.map