bitboss-ui 2.0.77 → 2.0.79

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 (162) hide show
  1. package/dist/components/BaseCheckboxGroup/BaseCheckboxGroup.vue.d.ts +1 -1
  2. package/dist/components/BaseDialog/BaseDialog.vue.d.ts +1 -1
  3. package/dist/components/BaseRadioGroup/BaseRadioGroup.vue.d.ts +1 -1
  4. package/dist/components/BaseSwitchGroup/BaseSwitchGroup.vue.d.ts +1 -1
  5. package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +1 -1
  6. package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +1 -1
  7. package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +1 -1
  8. package/dist/components/BbSelect/BbSelect.vue.d.ts +1 -1
  9. package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +1 -1
  10. package/dist/components/OptionsContainer.vue.d.ts +1 -1
  11. package/dist/index110.js +5 -5
  12. package/dist/index118.js +25 -21
  13. package/dist/index120.js +51 -51
  14. package/dist/index122.js +1 -1
  15. package/dist/index126.js +1 -1
  16. package/dist/index127.js +1 -1
  17. package/dist/index128.js +1 -1
  18. package/dist/index13.js +1 -1
  19. package/dist/index130.js +1 -1
  20. package/dist/index132.js +2 -2
  21. package/dist/index133.js +2 -2
  22. package/dist/index15.js +4 -4
  23. package/dist/index17.js +3 -3
  24. package/dist/index19.js +2 -2
  25. package/dist/index204.js +2 -81
  26. package/dist/index205.js +5 -2
  27. package/dist/index206.js +14 -124
  28. package/dist/index207.js +16 -5
  29. package/dist/index208.js +17 -123
  30. package/dist/index209.js +18 -18
  31. package/dist/index21.js +14 -14
  32. package/dist/index210.js +24 -13
  33. package/dist/index211.js +3 -16
  34. package/dist/index212.js +2 -2
  35. package/dist/index213.js +8 -2
  36. package/dist/index214.js +248 -40
  37. package/dist/index215.js +50 -18
  38. package/dist/index216.js +43 -5
  39. package/dist/index217.js +4 -52
  40. package/dist/{index239.js → index218.js} +1 -1
  41. package/dist/index219.js +52 -12
  42. package/dist/index221.js +13 -369
  43. package/dist/index222.js +18 -162
  44. package/dist/index223.js +4 -84
  45. package/dist/index224.js +128 -0
  46. package/dist/index225.js +125 -3
  47. package/dist/index226.js +2 -3
  48. package/dist/index227.js +41 -7
  49. package/dist/index228.js +5 -7
  50. package/dist/index229.js +5 -2
  51. package/dist/index23.js +187 -186
  52. package/dist/index230.js +12 -4
  53. package/dist/index231.js +369 -2
  54. package/dist/index232.js +81 -19
  55. package/dist/index233.js +3 -27
  56. package/dist/index234.js +2 -3
  57. package/dist/index235.js +4 -249
  58. package/dist/index236.js +2 -52
  59. package/dist/index237.js +163 -43
  60. package/dist/index238.js +84 -5
  61. package/dist/index240.js +3 -4
  62. package/dist/index241.js +7 -2
  63. package/dist/index242.js +2 -18
  64. package/dist/index243.js +17 -105
  65. package/dist/index244.js +108 -0
  66. package/dist/{index245.js → index246.js} +1 -1
  67. package/dist/index248.js +2 -10
  68. package/dist/index249.js +9 -2
  69. package/dist/index25.js +109 -105
  70. package/dist/index250.js +3 -281
  71. package/dist/index251.js +6 -6
  72. package/dist/index252.js +16 -2
  73. package/dist/index253.js +9 -2
  74. package/dist/index254.js +23 -2
  75. package/dist/index255.js +89 -2
  76. package/dist/index257.js +7 -124
  77. package/dist/index258.js +3 -431
  78. package/dist/index260.js +7 -3
  79. package/dist/index262.js +281 -7
  80. package/dist/index263.js +6 -22
  81. package/dist/index264.js +4 -0
  82. package/dist/index265.js +2 -3
  83. package/dist/index266.js +2 -12
  84. package/dist/index267.js +2 -9
  85. package/dist/index268.js +2 -9
  86. package/dist/index269.js +2 -17
  87. package/dist/index27.js +1 -1
  88. package/dist/index270.js +2 -4
  89. package/dist/index271.js +2 -224
  90. package/dist/index272.js +2 -436
  91. package/dist/index273.js +2 -127
  92. package/dist/index274.js +25 -197
  93. package/dist/index275.js +22 -89
  94. package/dist/index277.js +2 -2
  95. package/dist/index278.js +126 -2
  96. package/dist/index279.js +431 -2
  97. package/dist/index280.js +21 -1
  98. package/dist/index282.js +1 -1
  99. package/dist/index283.js +222 -26
  100. package/dist/index284.js +199 -21
  101. package/dist/index285.js +438 -0
  102. package/dist/index286.js +125 -7
  103. package/dist/index287.js +4 -3
  104. package/dist/index288.js +3 -9
  105. package/dist/index289.js +12 -23
  106. package/dist/index29.js +3 -3
  107. package/dist/index290.js +9 -6
  108. package/dist/index291.js +8 -15
  109. package/dist/index292.js +17 -3
  110. package/dist/index293.js +4 -3
  111. package/dist/index294.js +88 -210
  112. package/dist/index295.js +3 -5
  113. package/dist/index296.js +2 -65
  114. package/dist/index297.js +211 -2
  115. package/dist/index298.js +2 -33
  116. package/dist/index299.js +5 -5
  117. package/dist/index300.js +66 -8
  118. package/dist/index301.js +4 -7
  119. package/dist/index302.js +4 -19
  120. package/dist/index303.js +58 -6
  121. package/dist/index304.js +3 -11
  122. package/dist/index305.js +4 -3
  123. package/dist/index306.js +8 -89
  124. package/dist/index307.js +9 -0
  125. package/dist/index308.js +7 -4
  126. package/dist/index309.js +19 -4
  127. package/dist/index31.js +2 -2
  128. package/dist/index310.js +32 -58
  129. package/dist/index311.js +3 -46
  130. package/dist/index312.js +47 -2
  131. package/dist/index313.js +13 -0
  132. package/dist/index314.js +2 -12
  133. package/dist/index315.js +1 -1
  134. package/dist/index317.js +424 -2
  135. package/dist/index33.js +2 -2
  136. package/dist/index35.js +3 -3
  137. package/dist/index37.js +99 -98
  138. package/dist/index39.js +4 -4
  139. package/dist/index41.js +2 -2
  140. package/dist/index43.js +2 -2
  141. package/dist/index45.js +8 -8
  142. package/dist/index47.js +2 -2
  143. package/dist/index49.js +2 -2
  144. package/dist/index55.js +1 -1
  145. package/dist/index57.js +1 -1
  146. package/dist/index61.js +2 -2
  147. package/dist/index75.js +35 -35
  148. package/dist/index79.js +2 -2
  149. package/dist/index81.js +1 -1
  150. package/dist/index84.js +110 -106
  151. package/dist/index86.js +1 -1
  152. package/dist/index88.js +62 -62
  153. package/dist/index90.js +1 -1
  154. package/dist/style.css +1 -1
  155. package/package.json +1 -1
  156. package/dist/index220.js +0 -7
  157. package/dist/index247.js +0 -4
  158. package/dist/index256.js +0 -4
  159. package/dist/index276.js +0 -6
  160. package/dist/index281.js +0 -4
  161. package/dist/index316.js +0 -426
  162. /package/dist/{index259.js → index261.js} +0 -0
package/dist/index75.js CHANGED
@@ -1,12 +1,14 @@
1
- import { defineComponent as W, defineAsyncComponent as X, computed as A, ref as w, openBlock as T, createElementBlock as D, mergeProps as C, createElementVNode as B, renderSlot as g, normalizeProps as Y, guardReactiveProps as Z, unref as h, createVNode as O, withCtx as K, normalizeStyle as _, Fragment as P, renderList as x } from "vue";
2
- import { findRightIndex as H } from "./index288.js";
3
- import { useId as ee } from "./index8.js";
4
- import { wait as te } from "./index131.js";
5
- import { useIntersectionObserver as ne } from "./index132.js";
6
- import oe from "./index13.js";
1
+ import { defineComponent as J, computed as A, ref as w, openBlock as T, createElementBlock as D, mergeProps as B, createElementVNode as C, renderSlot as g, normalizeProps as Q, guardReactiveProps as W, unref as h, createVNode as O, withCtx as K, normalizeStyle as X, Fragment as P, renderList as Y } from "vue";
2
+ import { findRightIndex as H } from "./index253.js";
3
+ import { useId as Z } from "./index8.js";
4
+ import { wait as x } from "./index131.js";
5
+ import { useIntersectionObserver as ee } from "./index132.js";
6
+ import te from "./index13.js";
7
7
  /* empty css */
8
- import j from "./index289.js";
9
- const fe = /* @__PURE__ */ W({
8
+ import j from "./index254.js";
9
+ import ne from "./index255.js";
10
+ /* empty css */
11
+ const pe = /* @__PURE__ */ J({
10
12
  __name: "BbDropdown",
11
13
  props: {
12
14
  arrowPadding: { default: 10 },
@@ -23,21 +25,19 @@ const fe = /* @__PURE__ */ W({
23
25
  width: { default: 200 }
24
26
  },
25
27
  setup(z) {
26
- const N = X(
27
- () => import("./index287.js")
28
- ), r = z, d = r.id ?? `bb_${ee().id.value}`, m = A(() => {
28
+ const r = z, d = r.id ?? `bb_${Z().id.value}`, m = A(() => {
29
29
  let e = r.items.findIndex((t) => !t.disabled), o = H(
30
30
  r.items,
31
31
  (t) => !t.disabled
32
32
  );
33
33
  return r.items.map((t, n) => {
34
- const i = `${d}-item-${t.key}`, { onClick: F, ...q } = t, J = async () => {
34
+ const i = `${d}-item-${t.key}`, { onClick: q, ...F } = t, _ = async () => {
35
35
  await b();
36
36
  const s = document.querySelector(`#${d}`);
37
37
  if (s) s instanceof HTMLElement && s.focus();
38
38
  else return;
39
- F && F();
40
- }, Q = (s) => {
39
+ q && q();
40
+ }, G = (s) => {
41
41
  if (s.target instanceof HTMLElement && s.target.dataset.dropdownItem) {
42
42
  if (!a.value) return;
43
43
  if (s.key === "ArrowDown") {
@@ -72,24 +72,24 @@ const fe = /* @__PURE__ */ W({
72
72
  }
73
73
  };
74
74
  return {
75
- ...q,
76
- disabled: q.disabled || r.disabled,
75
+ ...F,
76
+ disabled: F.disabled || r.disabled,
77
77
  id: i,
78
- onClick: J,
79
- onKeydown: Q
78
+ onClick: _,
79
+ onKeydown: G
80
80
  };
81
81
  });
82
82
  }), v = w(), a = w();
83
- ne(
83
+ ee(
84
84
  v,
85
85
  ([{ intersectionRatio: e }]) => {
86
86
  e !== 1 && l.value && b();
87
87
  },
88
88
  { threshold: [0, 1] }
89
89
  );
90
- const c = w(!1), l = w(!1), f = w(!1), p = w(!0), R = () => {
90
+ const c = w(!1), l = w(!1), f = w(!1), p = w(!0), N = () => {
91
91
  c.value || f.value || (l.value ? b() : $());
92
- }, U = async (e) => {
92
+ }, R = async (e) => {
93
93
  let o = r.items.findIndex((n) => !n.disabled), t = H(
94
94
  r.items,
95
95
  (n) => !n.disabled
@@ -131,29 +131,29 @@ const fe = /* @__PURE__ */ W({
131
131
  }
132
132
  b();
133
133
  }
134
- }, V = w(!1), $ = async () => {
135
- V.value = !0, await te(50), l.value = !0, document.addEventListener("click", I, { passive: !0 }), document.addEventListener("focusin", M, { passive: !0 }), document.addEventListener("keydown", S, { passive: !0 });
134
+ }, U = w(!1), $ = async () => {
135
+ U.value = !0, await x(50), l.value = !0, document.addEventListener("click", I, { passive: !0 }), document.addEventListener("focusin", M, { passive: !0 }), document.addEventListener("keydown", S, { passive: !0 });
136
136
  }, b = async () => {
137
137
  l.value = !1, document.removeEventListener("click", I), document.removeEventListener("focusin", M), document.removeEventListener("keydown", S);
138
- }, G = A(() => ({
138
+ }, V = A(() => ({
139
139
  class: {
140
140
  "bb-dropdown--block": r.block,
141
141
  [`bb-dropdown--theme-${r.theme}`]: r.theme
142
142
  }
143
143
  }));
144
- return (e, o) => (T(), D("span", C({ class: "bb-dropdown" }, G.value), [
145
- B("span", {
144
+ return (e, o) => (T(), D("span", B({ class: "bb-dropdown" }, V.value), [
145
+ C("span", {
146
146
  ref_key: "wrapper",
147
147
  ref: v,
148
148
  class: "bb-dropdown__wrapper"
149
149
  }, [
150
- g(e.$slots, "activator", Y(Z({
150
+ g(e.$slots, "activator", Q(W({
151
151
  props: {
152
152
  "aria-expanded": l.value,
153
153
  "aria-controls": `menu_${h(d)}`,
154
154
  id: h(d),
155
- onClick: R,
156
- onKeydown: U,
155
+ onClick: N,
156
+ onKeydown: R,
157
157
  disabled: e.disabled
158
158
  },
159
159
  closed: p.value,
@@ -164,7 +164,7 @@ const fe = /* @__PURE__ */ W({
164
164
  placement: e.placement
165
165
  })))
166
166
  ], 512),
167
- O(h(N), {
167
+ O(ne, {
168
168
  "arrow-padding": e.arrowPadding,
169
169
  "base-class": "bb-dropdown",
170
170
  "container-attributes": {
@@ -182,11 +182,11 @@ const fe = /* @__PURE__ */ W({
182
182
  wrapper: v.value
183
183
  }, {
184
184
  default: K(() => [
185
- B("span", {
185
+ C("span", {
186
186
  ref_key: "content",
187
187
  ref: a,
188
188
  class: "bb-dropdown__items-container",
189
- style: _({ width: `${e.width}px` })
189
+ style: X({ width: `${e.width}px` })
190
190
  }, [
191
191
  g(e.$slots, "prepend", {
192
192
  closed: p.value,
@@ -196,7 +196,7 @@ const fe = /* @__PURE__ */ W({
196
196
  opening: c.value,
197
197
  placement: e.placement
198
198
  }),
199
- (T(!0), D(P, null, x(m.value, (t, n) => (T(), D(P, {
199
+ (T(!0), D(P, null, Y(m.value, (t, n) => (T(), D(P, {
200
200
  key: t.key
201
201
  }, [
202
202
  g(e.$slots, "item:prepend", {
@@ -210,7 +210,7 @@ const fe = /* @__PURE__ */ W({
210
210
  placement: e.placement,
211
211
  text: t.text
212
212
  }),
213
- O(oe, C({
213
+ O(te, B({
214
214
  "aria-role": "menuitem",
215
215
  class: ["bb-dropdown__item", {
216
216
  "bb-dropdown__item--first": n === 0,
@@ -274,5 +274,5 @@ const fe = /* @__PURE__ */ W({
274
274
  }
275
275
  });
276
276
  export {
277
- fe as default
277
+ pe as default
278
278
  };
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 "./index291.js";
2
+ import { findInTree as ae } from "./index252.js";
3
3
  import { useId as re } from "./index8.js";
4
4
  import oe from "./index127.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("./index290.js")).default);
56
+ b || (b = (await import("./index251.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 "./index226.js";
2
+ import { throttle as c } from "./index240.js";
3
3
  const M = /* @__PURE__ */ h({
4
4
  __name: "BbIntersection",
5
5
  props: {
package/dist/index84.js CHANGED
@@ -1,9 +1,10 @@
1
- import { defineComponent as te, ref as l, useAttrs as oe, getCurrentInstance as le, computed as p, nextTick as se, onBeforeUnmount as x, onMounted as ae, watch as ne, openBlock as g, createBlock as ie, Teleport as re, createElementVNode as s, mergeProps as O, createElementBlock as V, renderSlot as n, createTextVNode as ue, toDisplayString as S, createCommentVNode as z } from "vue";
2
- import { useFocusTrap as ce } from "./index214.js";
1
+ import { defineComponent as te, ref as l, useAttrs as oe, getCurrentInstance as le, computed as p, nextTick as se, onBeforeUnmount as N, onMounted as ae, watch as ne, openBlock as g, createBlock as ie, withCtx as re, createElementVNode as s, mergeProps as O, createElementBlock as V, renderSlot as n, createTextVNode as ue, toDisplayString as S, createCommentVNode as z } from "vue";
2
+ import { useFocusTrap as ce } from "./index227.js";
3
3
  import { useId as A } from "./index8.js";
4
4
  import { wait as E } from "./index131.js";
5
- import { useModalsState as b } from "./index227.js";
6
- const de = ["inert"], fe = { class: "bb-offcanvas-close" }, ve = ["aria-label"], ge = /* @__PURE__ */ te({
5
+ import { useModalsState as b } from "./index241.js";
6
+ import de from "./index230.js";
7
+ const fe = ["inert"], ve = { class: "bb-offcanvas-close" }, pe = ["aria-label"], ke = /* @__PURE__ */ te({
7
8
  __name: "BbOffCanvas",
8
9
  props: {
9
10
  closeLabel: { default: "Chiudi" },
@@ -26,11 +27,11 @@ const de = ["inert"], fe = { class: "bb-offcanvas-close" }, ve = ["aria-label"],
26
27
  },
27
28
  emits: ["shown", "hidden", "update:modelValue"],
28
29
  setup(H, { emit: I }) {
29
- var L, N;
30
- const e = H, u = I, k = `title_${A().id.value}`, C = `description_${A().id.value}`, c = l(null), T = l(null), W = l(null), F = l(null), R = l(null), K = l(null), P = oe(), $ = !!((N = (L = le()) == null ? void 0 : L.proxy) != null && N.$nuxt), d = l(0), U = p(() => {
30
+ var x, L;
31
+ const e = H, u = I, _ = `title_${A().id.value}`, k = `description_${A().id.value}`, c = l(null), $ = l(null), W = l(null), F = l(null), R = l(null), K = l(null), P = oe(), T = !!((L = (x = le()) == null ? void 0 : x.proxy) != null && L.$nuxt), d = l(0), U = p(() => {
31
32
  const { openedModals: t } = b();
32
33
  return !t.value || t.value === d.value;
33
- }), { activate: j, deactivate: q } = ce(T, {
34
+ }), { activate: j, deactivate: q } = ce($, {
34
35
  initialFocus: e.focusTarget ?? void 0,
35
36
  clickOutsideDeactivates: (t) => t.target === c.value,
36
37
  allowOutsideClick: !0,
@@ -38,21 +39,21 @@ const de = ["inert"], fe = { class: "bb-offcanvas-close" }, ve = ["aria-label"],
38
39
  escapeDeactivates: () => (se(() => {
39
40
  u("update:modelValue", !1);
40
41
  }), !0)
41
- }), G = p(() => e.closeLabel), _ = l(!1), f = l(!1), m = l(!0), v = l(!1), i = l(e.eager || e.modelValue), D = l(null), J = p(() => f.value || v.value), Q = () => {
42
+ }), G = p(() => e.closeLabel), C = l(!1), f = l(!1), m = l(!0), v = l(!1), i = l(e.eager || e.modelValue), D = l(null), J = p(() => f.value || v.value), Q = () => {
42
43
  if (!globalThis.document) return;
43
44
  const t = window.innerWidth - document.documentElement.clientWidth;
44
45
  document.body.style.overflow = "hidden", document.body.style.paddingRight = `${t}px`;
45
46
  }, w = () => {
46
47
  globalThis.document && (document.body.style.overflow = "auto", document.body.style.paddingRight = "0px");
47
48
  };
48
- x(() => {
49
+ N(() => {
49
50
  if (e.modelValue) {
50
51
  const { openedModals: t, modalHasClosed: o } = b();
51
52
  t.value && (o(), d.value = 0, w());
52
53
  }
53
54
  }), ae(() => {
54
- !e.modelValue && !i.value || $ && !globalThis.document || M();
55
- }), x(() => {
55
+ !e.modelValue && !i.value || T && !globalThis.document || M();
56
+ }), N(() => {
56
57
  if (e.modelValue) {
57
58
  const { openedModals: t, modalHasClosed: o } = b();
58
59
  t.value && (o(), d.value = 0, w());
@@ -60,7 +61,7 @@ const de = ["inert"], fe = { class: "bb-offcanvas-close" }, ve = ["aria-label"],
60
61
  }), ne(
61
62
  () => e.modelValue,
62
63
  () => {
63
- !e.modelValue && !i.value || $ && !globalThis.document || M();
64
+ !e.modelValue && !i.value || T && !globalThis.document || M();
64
65
  },
65
66
  { flush: "post" }
66
67
  );
@@ -68,9 +69,9 @@ const de = ["inert"], fe = { class: "bb-offcanvas-close" }, ve = ["aria-label"],
68
69
  if (e.modelValue) {
69
70
  i.value || (i.value = !0), m.value = !1, v.value = !1, f.value = !0;
70
71
  const { modalHasOpened: t, openedModals: o } = b();
71
- t(), d.value = o.value, Q(), await E(e.transitionDuration), f.value = !1, _.value = !0, u("shown"), j();
72
+ t(), d.value = o.value, Q(), await E(e.transitionDuration), f.value = !1, C.value = !0, u("shown"), j();
72
73
  } else {
73
- q(), f.value = !1, _.value = !1, v.value = !0;
74
+ q(), f.value = !1, C.value = !1, v.value = !0;
74
75
  const { modalHasClosed: t, openedModals: o } = b();
75
76
  t(), d.value = 0, o.value || w(), await E(e.transitionDuration), v.value = !1, m.value = !0, u("hidden"), D.value instanceof HTMLElement && D.value.focus();
76
77
  }
@@ -86,7 +87,7 @@ const de = ["inert"], fe = { class: "bb-offcanvas-close" }, ve = ["aria-label"],
86
87
  "bb-offcanvas bb-offcanvas__overlay": !0,
87
88
  "bb-offcanvas--fullscreen": e.fullscreen,
88
89
  "bb-offcanvas--faded": !U.value,
89
- "bb-offcanvas--open": _.value,
90
+ "bb-offcanvas--open": C.value,
90
91
  "bb-offcanvas--opening": f.value,
91
92
  "bb-offcanvas--closed": m.value,
92
93
  "bb-offcanvas--closing": v.value,
@@ -120,7 +121,7 @@ const de = ["inert"], fe = { class: "bb-offcanvas-close" }, ve = ["aria-label"],
120
121
  role: "dialog",
121
122
  "aria-modal": !0
122
123
  };
123
- i.value && (o["aria-labelledby"] = k, e.description && (o["aria-describedby"] = C));
124
+ i.value && (o["aria-labelledby"] = _, e.description && (o["aria-describedby"] = k));
124
125
  let a, r;
125
126
  const h = {
126
127
  sm: 384,
@@ -139,101 +140,104 @@ const de = ["inert"], fe = { class: "bb-offcanvas-close" }, ve = ["aria-label"],
139
140
  ...o
140
141
  };
141
142
  });
142
- return (t, o) => (g(), ie(re, { to: "body" }, [
143
- s("div", O(Y.value, {
144
- ref_key: "overlay",
145
- ref: c,
146
- inert: m.value
147
- }), [
148
- s("div", O(Z.value, {
149
- ref_key: "panel",
150
- ref: T
143
+ return (t, o) => (g(), ie(de, null, {
144
+ default: re(() => [
145
+ s("div", O(Y.value, {
146
+ ref_key: "overlay",
147
+ ref: c,
148
+ inert: m.value
151
149
  }), [
152
- i.value ? (g(), V("div", {
153
- key: 0,
154
- ref_key: "content",
155
- ref: W,
156
- class: "bb-offcanvas__content"
157
- }, [
158
- n(t.$slots, "content", { close: B }, () => [
159
- s("div", {
160
- ref_key: "header",
161
- ref: F,
162
- class: "bb-offcanvas__header"
163
- }, [
164
- n(t.$slots, "header", {
165
- close: B,
166
- title: t.title,
167
- titleId: k
168
- }, () => [
169
- s("span", {
170
- id: k,
171
- class: "bb-offcanvas__title"
172
- }, [
173
- n(t.$slots, "title", { text: t.title }, () => [
174
- ue(S(t.title), 1)
175
- ])
176
- ]),
177
- s("span", fe, [
178
- t.showClose ? (g(), V("button", {
179
- key: 0,
180
- "aria-label": G.value,
181
- type: "button",
182
- onClick: B
150
+ s("div", O(Z.value, {
151
+ ref_key: "panel",
152
+ ref: $
153
+ }), [
154
+ i.value ? (g(), V("div", {
155
+ key: 0,
156
+ ref_key: "content",
157
+ ref: W,
158
+ class: "bb-offcanvas__content"
159
+ }, [
160
+ n(t.$slots, "content", { close: B }, () => [
161
+ s("div", {
162
+ ref_key: "header",
163
+ ref: F,
164
+ class: "bb-offcanvas__header"
165
+ }, [
166
+ n(t.$slots, "header", {
167
+ close: B,
168
+ title: t.title,
169
+ titleId: _
170
+ }, () => [
171
+ s("span", {
172
+ id: _,
173
+ class: "bb-offcanvas__title"
183
174
  }, [
184
- n(t.$slots, "close", {}, () => [
185
- o[0] || (o[0] = s("span", { class: "bb-offcanvas-close__icon" }, [
186
- s("svg", {
187
- "aria-hidden": "true",
188
- fill: "none",
189
- viewBox: "0 0 24 24",
190
- xmlns: "http://www.w3.org/2000/svg"
191
- }, [
192
- s("path", {
193
- d: "M23 23L1 1M23 1L1 23",
194
- stroke: "currentColor",
195
- "stroke-linecap": "round",
196
- "stroke-width": "2"
197
- })
198
- ])
199
- ], -1))
175
+ n(t.$slots, "title", { text: t.title }, () => [
176
+ ue(S(t.title), 1)
200
177
  ])
201
- ], 8, ve)) : z("", !0)
178
+ ]),
179
+ s("span", ve, [
180
+ t.showClose ? (g(), V("button", {
181
+ key: 0,
182
+ "aria-label": G.value,
183
+ type: "button",
184
+ onClick: B
185
+ }, [
186
+ n(t.$slots, "close", {}, () => [
187
+ o[0] || (o[0] = s("span", { class: "bb-offcanvas-close__icon" }, [
188
+ s("svg", {
189
+ "aria-hidden": "true",
190
+ fill: "none",
191
+ viewBox: "0 0 24 24",
192
+ xmlns: "http://www.w3.org/2000/svg"
193
+ }, [
194
+ s("path", {
195
+ d: "M23 23L1 1M23 1L1 23",
196
+ stroke: "currentColor",
197
+ "stroke-linecap": "round",
198
+ "stroke-width": "2"
199
+ })
200
+ ])
201
+ ], -1))
202
+ ])
203
+ ], 8, pe)) : z("", !0)
204
+ ])
202
205
  ])
203
- ])
204
- ], 512),
205
- s("div", {
206
- ref_key: "body",
207
- ref: R,
208
- class: "bb-offcanvas__body scrollbar-border"
209
- }, [
210
- n(t.$slots, "description", {
211
- descriptionId: C,
212
- text: t.description
213
- }, () => [
214
- t.description ? (g(), V("div", {
215
- key: 0,
216
- id: C,
217
- class: "bb-offcanvas__description sr-only"
218
- }, S(t.description), 1)) : z("", !0)
219
- ]),
220
- n(t.$slots, "default")
221
- ], 512),
222
- o[1] || (o[1] = s("div", { style: { flex: "10000 10000 0%" } }, null, -1)),
223
- s("div", {
224
- ref_key: "footer",
225
- ref: K,
226
- class: "bb-offcanvas__footer"
227
- }, [
228
- n(t.$slots, "footer")
229
- ], 512)
230
- ])
231
- ], 512)) : z("", !0)
232
- ], 16)
233
- ], 16, de)
234
- ]));
206
+ ], 512),
207
+ s("div", {
208
+ ref_key: "body",
209
+ ref: R,
210
+ class: "bb-offcanvas__body scrollbar-border"
211
+ }, [
212
+ n(t.$slots, "description", {
213
+ descriptionId: k,
214
+ text: t.description
215
+ }, () => [
216
+ t.description ? (g(), V("div", {
217
+ key: 0,
218
+ id: k,
219
+ class: "bb-offcanvas__description sr-only"
220
+ }, S(t.description), 1)) : z("", !0)
221
+ ]),
222
+ n(t.$slots, "default")
223
+ ], 512),
224
+ o[1] || (o[1] = s("div", { style: { flex: "10000 10000 0%" } }, null, -1)),
225
+ s("div", {
226
+ ref_key: "footer",
227
+ ref: K,
228
+ class: "bb-offcanvas__footer"
229
+ }, [
230
+ n(t.$slots, "footer")
231
+ ], 512)
232
+ ])
233
+ ], 512)) : z("", !0)
234
+ ], 16)
235
+ ], 16, fe)
236
+ ]),
237
+ _: 3
238
+ }));
235
239
  }
236
240
  });
237
241
  export {
238
- ge as default
242
+ ke as default
239
243
  };
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 "./index286.js";
2
+ import { debounce as F } from "./index257.js";
3
3
  /* empty css */
4
4
  /* empty css */
5
5
  import w from "./index13.js";