bitboss-ui 0.1.97 → 0.1.99
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.
- package/dist/components/BbTooltip/BbTooltip.vue.d.ts +1 -1
- package/dist/index10.js +2 -2
- package/dist/index100.js +2 -2
- package/dist/index102.js +2 -2
- package/dist/index108.js +1 -1
- package/dist/index110.js +70 -68
- package/dist/index110.js.map +1 -1
- package/dist/index115.js +1 -1
- package/dist/index116.js +1 -1
- package/dist/index117.js +1 -1
- package/dist/index118.js +1 -1
- package/dist/index124.js +1 -1
- package/dist/index125.js +1 -1
- package/dist/index127.js +2 -2
- package/dist/index14.js +8 -8
- package/dist/index16.js +9 -9
- package/dist/index18.js +3 -3
- package/dist/index195.js +351 -3
- package/dist/index195.js.map +1 -1
- package/dist/index196.js +133 -34
- package/dist/index196.js.map +1 -1
- package/dist/index197.js +5 -6
- package/dist/index197.js.map +1 -1
- package/dist/index198.js +19 -2
- package/dist/index198.js.map +1 -1
- package/dist/index199.js +2 -4
- package/dist/index199.js.map +1 -1
- package/dist/index20.js +2 -2
- package/dist/index200.js +2 -5
- package/dist/index200.js.map +1 -1
- package/dist/index201.js +184 -14
- package/dist/index201.js.map +1 -1
- package/dist/index202.js +23 -16
- package/dist/index202.js.map +1 -1
- package/dist/index203.js +368 -18
- package/dist/index203.js.map +1 -1
- package/dist/index204.js +3 -20
- package/dist/index204.js.map +1 -1
- package/dist/index205.js +34 -28
- package/dist/index205.js.map +1 -1
- package/dist/index206.js +6 -8
- package/dist/index206.js.map +1 -1
- package/dist/index207.js +2 -2
- package/dist/index207.js.map +1 -1
- package/dist/index208.js +4 -2
- package/dist/index208.js.map +1 -1
- package/dist/index209.js +16 -2
- package/dist/index209.js.map +1 -1
- package/dist/index210.js +16 -3
- package/dist/index210.js.map +1 -1
- package/dist/index211.js +20 -3
- package/dist/index211.js.map +1 -1
- package/dist/index212.js +27 -349
- package/dist/index212.js.map +1 -1
- package/dist/index213.js +8 -2
- package/dist/index213.js.map +1 -1
- package/dist/index214.js +225 -359
- package/dist/index214.js.map +1 -1
- package/dist/index215.js +2 -10
- package/dist/index215.js.map +1 -1
- package/dist/index216.js +10 -134
- package/dist/index216.js.map +1 -1
- package/dist/index217.js +2 -186
- package/dist/index217.js.map +1 -1
- package/dist/index218.js +3 -23
- package/dist/index218.js.map +1 -1
- package/dist/index219.js +3 -235
- package/dist/index219.js.map +1 -1
- package/dist/index220.js +8 -27
- package/dist/index220.js.map +1 -1
- package/dist/index221.js +115 -12
- package/dist/index221.js.map +1 -1
- package/dist/index222.js +27 -8
- package/dist/index222.js.map +1 -1
- package/dist/index223.js +12 -115
- package/dist/index223.js.map +1 -1
- package/dist/index224.js +72 -428
- package/dist/index224.js.map +1 -1
- package/dist/index225.js +5 -88
- package/dist/index225.js.map +1 -1
- package/dist/index226.js +2 -4
- package/dist/index226.js.map +1 -1
- package/dist/index227.js +293 -198
- package/dist/index227.js.map +1 -1
- package/dist/index228.js +2 -295
- package/dist/index228.js.map +1 -1
- package/dist/index229.js +2 -6
- package/dist/index229.js.map +1 -1
- package/dist/index230.js +117 -2
- package/dist/index230.js.map +1 -1
- package/dist/index231.js +106 -2
- package/dist/index231.js.map +1 -1
- package/dist/index232.js +435 -2
- package/dist/index232.js.map +1 -1
- package/dist/index233.js +89 -2
- package/dist/index233.js.map +1 -1
- package/dist/index234.js +200 -2
- package/dist/index234.js.map +1 -1
- package/dist/index235.js +4 -2
- package/dist/index235.js.map +1 -1
- package/dist/index236.js +2 -224
- package/dist/index236.js.map +1 -1
- package/dist/index237.js +2 -258
- package/dist/index237.js.map +1 -1
- package/dist/index238.js +2 -69
- package/dist/index238.js.map +1 -1
- package/dist/index239.js +2 -162
- package/dist/index239.js.map +1 -1
- package/dist/index24.js +2 -2
- package/dist/index240.js +2 -2
- package/dist/index240.js.map +1 -1
- package/dist/index241.js +161 -78
- package/dist/index241.js.map +1 -1
- package/dist/index242.js +2 -2
- package/dist/index242.js.map +1 -1
- package/dist/index244.js +68 -116
- package/dist/index244.js.map +1 -1
- package/dist/index245.js +218 -100
- package/dist/index245.js.map +1 -1
- package/dist/index246.js +258 -2
- package/dist/index246.js.map +1 -1
- package/dist/index250.js +1 -1
- package/dist/index251.js +3 -2
- package/dist/index251.js.map +1 -1
- package/dist/index252.js +2 -3
- package/dist/index252.js.map +1 -1
- package/dist/index28.js +3 -3
- package/dist/index30.js +6 -6
- package/dist/index32.js +1 -1
- package/dist/index34.js +2 -2
- package/dist/index46.js +1 -1
- package/dist/index48.js +1 -1
- package/dist/index64.js +5 -5
- package/dist/index68.js +2 -2
- package/dist/index71.js +1 -1
- package/dist/index74.js +1 -1
- package/dist/index76.js +1 -1
- package/dist/index78.js +4 -4
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -20,7 +20,7 @@ type BbTooltipSlots = {
|
|
|
20
20
|
};
|
|
21
21
|
declare const onMouseenter: () => void;
|
|
22
22
|
declare const onFocus: () => void;
|
|
23
|
-
declare const closeTooltip: () => Promise<void
|
|
23
|
+
declare const closeTooltip: import("lodash").DebouncedFunc<() => Promise<void>>;
|
|
24
24
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<BbTooltipProps>, {
|
|
25
25
|
arrowPadding: number;
|
|
26
26
|
padding: number;
|
package/dist/index10.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as B, ref as h, computed as n, watch as L, openBlock as c, createElementBlock as i, normalizeClass as E, normalizeProps as p, mergeProps as d, createCommentVNode as I, createElementVNode as l, renderSlot as F, guardReactiveProps as M } from "vue";
|
|
2
|
-
import { isCssColor as f } from "./
|
|
3
|
-
import { when as N } from "./
|
|
2
|
+
import { isCssColor as f } from "./index207.js";
|
|
3
|
+
import { when as N } from "./index208.js";
|
|
4
4
|
const A = {
|
|
5
5
|
class: "bb-base-checkbox-container",
|
|
6
6
|
"aria-hidden": "true"
|
package/dist/index100.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent as ie, ref as O, computed as p, onMounted as de, watch as q, openBlock as c, createBlock as be, resolveDynamicComponent as re, normalizeClass as f, withCtx as ue, createElementBlock as d, toDisplayString as m, createCommentVNode as v, createElementVNode as o, renderSlot as y, createVNode as J, unref as C, Fragment as N, renderList as T, createTextVNode as pe, mergeProps as fe } from "vue";
|
|
2
|
-
import { add as me } from "./
|
|
2
|
+
import { add as me } from "./index240.js";
|
|
3
3
|
import { clamp as ye } from "./index194.js";
|
|
4
4
|
import { deepEqual as he } from "./index122.js";
|
|
5
5
|
import { isNil as j } from "./index119.js";
|
|
6
6
|
import { isNotNil as _e } from "./index123.js";
|
|
7
7
|
import { useId as ke } from "./index6.js";
|
|
8
8
|
import { useItemValue as ge } from "./index125.js";
|
|
9
|
-
import { when as ve } from "./
|
|
9
|
+
import { when as ve } from "./index208.js";
|
|
10
10
|
import G from "./index10.js";
|
|
11
11
|
import "./index11.js";
|
|
12
12
|
import Ce from "./index24.js";
|
package/dist/index102.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as m, openBlock as c, createBlock as b, withCtx as a, renderSlot as r, normalizeProps as i, guardReactiveProps as n, createVNode as h, mergeProps as y } from "vue";
|
|
2
2
|
import f from "./index20.js";
|
|
3
3
|
import "./index21.js";
|
|
4
|
-
import v from "./
|
|
5
|
-
import "./
|
|
4
|
+
import v from "./index241.js";
|
|
5
|
+
import "./index242.js";
|
|
6
6
|
const w = /* @__PURE__ */ m({
|
|
7
7
|
__name: "BbTag",
|
|
8
8
|
props: {
|
package/dist/index108.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as s, openBlock as e, createBlock as o, Teleport as l, createElementVNode as c, normalizeClass as m, createVNode as i, TransitionGroup as p, withCtx as u, createElementBlock as d, Fragment as f, renderList as _, unref as r, mergeProps as b } from "vue";
|
|
2
2
|
import { state as k, useToast as C } from "./index4.js";
|
|
3
|
-
import B from "./
|
|
3
|
+
import B from "./index244.js";
|
|
4
4
|
const N = /* @__PURE__ */ s({
|
|
5
5
|
__name: "BbToast",
|
|
6
6
|
props: {
|
package/dist/index110.js
CHANGED
|
@@ -1,23 +1,25 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useFloating as
|
|
3
|
-
import { useId as
|
|
4
|
-
import { wait as
|
|
5
|
-
import
|
|
1
|
+
import { defineComponent as A, ref as o, computed as E, openBlock as b, createElementBlock as $, mergeProps as D, createElementVNode as i, renderSlot as L, normalizeProps as H, guardReactiveProps as I, unref as s, createBlock as M, Teleport as R, normalizeClass as U, normalizeStyle as j, withCtx as q, createCommentVNode as O } from "vue";
|
|
2
|
+
import { useFloating as G, arrow as J } from "./index221.js";
|
|
3
|
+
import { useId as K } from "./index6.js";
|
|
4
|
+
import { wait as P } from "./index121.js";
|
|
5
|
+
import Q from "./index8.js";
|
|
6
6
|
import "./index9.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
7
|
+
import { throttle as m } from "./index204.js";
|
|
8
|
+
import { waitFor as W } from "./index206.js";
|
|
9
|
+
import { autoUpdate as X } from "./index195.js";
|
|
10
|
+
import { flip as Y, shift as Z } from "./index203.js";
|
|
11
|
+
const ee = { class: "bb-tooltip__bubble" }, te = /* @__PURE__ */ i("svg", {
|
|
10
12
|
viewBox: "0 0 24 24",
|
|
11
13
|
fill: "none",
|
|
12
14
|
xmlns: "http://www.w3.org/2000/svg"
|
|
13
15
|
}, [
|
|
14
|
-
/* @__PURE__ */
|
|
16
|
+
/* @__PURE__ */ i("path", {
|
|
15
17
|
d: "M23 23L1 1M23 1L1 23",
|
|
16
18
|
stroke: "currentColor",
|
|
17
19
|
"stroke-width": "2",
|
|
18
20
|
"stroke-linecap": "round"
|
|
19
21
|
})
|
|
20
|
-
], -1),
|
|
22
|
+
], -1), de = /* @__PURE__ */ A({
|
|
21
23
|
__name: "BbTooltip",
|
|
22
24
|
props: {
|
|
23
25
|
arrowPadding: { default: 10 },
|
|
@@ -31,121 +33,121 @@ const Y = { class: "bb-tooltip__bubble" }, Z = /* @__PURE__ */ r("svg", {
|
|
|
31
33
|
theme: { default: "default" },
|
|
32
34
|
transitionDuration: { default: 150 }
|
|
33
35
|
},
|
|
34
|
-
setup(
|
|
35
|
-
const t =
|
|
36
|
-
i,
|
|
36
|
+
setup(T) {
|
|
37
|
+
const t = T, v = `bb_${t.id ?? K().id.value}`, u = o(), c = o(), w = o(), { floatingStyles: F, placement: _, middlewareData: g } = G(
|
|
37
38
|
u,
|
|
39
|
+
c,
|
|
38
40
|
{
|
|
39
41
|
placement: t.placement,
|
|
40
|
-
whileElementsMounted:
|
|
42
|
+
whileElementsMounted: X,
|
|
41
43
|
middleware: [
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
element:
|
|
44
|
+
Y(),
|
|
45
|
+
Z({ padding: t.padding }),
|
|
46
|
+
J({
|
|
47
|
+
element: w,
|
|
46
48
|
padding: t.arrowPadding
|
|
47
49
|
})
|
|
48
50
|
]
|
|
49
51
|
}
|
|
50
|
-
),
|
|
51
|
-
if (
|
|
52
|
-
const { x: e, y:
|
|
52
|
+
), h = o(!0), a = o(!1), l = o(!1), r = o(!1), p = o(!0), z = E(() => {
|
|
53
|
+
if (g.value.arrow) {
|
|
54
|
+
const { x: e, y: n } = g.value.arrow;
|
|
53
55
|
return {
|
|
54
56
|
style: {
|
|
55
57
|
left: `${e}px`,
|
|
56
|
-
top: `${
|
|
58
|
+
top: `${n}px`
|
|
57
59
|
}
|
|
58
60
|
};
|
|
59
61
|
}
|
|
60
62
|
}), y = () => {
|
|
61
|
-
l.value ||
|
|
62
|
-
},
|
|
63
|
-
const
|
|
64
|
-
if (
|
|
63
|
+
l.value || a.value || t.disabled || (V(), document.addEventListener("mouseover", k, { passive: !0 }), document.addEventListener("keydown", B, { passive: !0 }));
|
|
64
|
+
}, S = y, k = m((e) => {
|
|
65
|
+
const n = e.target;
|
|
66
|
+
if (n && n instanceof HTMLElement) {
|
|
65
67
|
let f = !0;
|
|
66
|
-
|
|
68
|
+
u.value && u.value.contains(n) && (f = !1), c.value && c.value.contains(n) && (f = !1), f && d();
|
|
67
69
|
}
|
|
68
|
-
},
|
|
69
|
-
l.value && e.key === "Escape" &&
|
|
70
|
-
},
|
|
71
|
-
|
|
72
|
-
},
|
|
73
|
-
|
|
74
|
-
},
|
|
75
|
-
l.value = !1,
|
|
76
|
-
},
|
|
70
|
+
}, t.transitionDuration), B = (e) => {
|
|
71
|
+
l.value && e.key === "Escape" && d();
|
|
72
|
+
}, N = () => {
|
|
73
|
+
h.value = !1, d();
|
|
74
|
+
}, C = o(!1), V = m(async () => {
|
|
75
|
+
h.value && (C.value = !0, p.value = !1, r.value = !1, a.value = !0, await P(50), l.value = !0, a.value = !1);
|
|
76
|
+
}, t.transitionDuration), d = m(async () => {
|
|
77
|
+
await W(() => !a.value), document.removeEventListener("mouseover", k), document.removeEventListener("keydown", B), l.value = !1, a.value = !1, r.value = !0, await P(t.transitionDuration), r.value = !1, p.value = !0;
|
|
78
|
+
}, t.transitionDuration), x = E(() => ({
|
|
77
79
|
class: {
|
|
78
80
|
"bb-tooltip--block": t.block,
|
|
79
81
|
[`bb-tooltip--theme-${t.theme}`]: t.theme
|
|
80
82
|
}
|
|
81
83
|
}));
|
|
82
|
-
return (e,
|
|
83
|
-
|
|
84
|
+
return (e, n) => (b(), $("span", D({ class: "bb-tooltip" }, x.value), [
|
|
85
|
+
i("span", {
|
|
84
86
|
class: "bb-tooltip__wrapper",
|
|
85
87
|
ref_key: "wrapper",
|
|
86
|
-
ref:
|
|
88
|
+
ref: u
|
|
87
89
|
}, [
|
|
88
|
-
L(e.$slots, "activator",
|
|
90
|
+
L(e.$slots, "activator", H(I({
|
|
89
91
|
props: {
|
|
90
|
-
"aria-describedby":
|
|
92
|
+
"aria-describedby": v,
|
|
91
93
|
onMouseenter: y,
|
|
92
|
-
onFocus:
|
|
93
|
-
onBlur:
|
|
94
|
+
onFocus: s(S),
|
|
95
|
+
onBlur: s(d),
|
|
94
96
|
disabled: e.disabled
|
|
95
97
|
},
|
|
96
|
-
closed:
|
|
97
|
-
closing:
|
|
98
|
+
closed: p.value,
|
|
99
|
+
closing: r.value,
|
|
98
100
|
disabled: e.disabled,
|
|
99
101
|
open: l.value,
|
|
100
|
-
opening:
|
|
101
|
-
placement:
|
|
102
|
+
opening: a.value,
|
|
103
|
+
placement: s(_)
|
|
102
104
|
})))
|
|
103
105
|
], 512),
|
|
104
|
-
(
|
|
105
|
-
|
|
106
|
+
(b(), M(R, { to: "body" }, [
|
|
107
|
+
C.value || e.eager ? (b(), $("span", {
|
|
106
108
|
key: 0,
|
|
107
|
-
class:
|
|
108
|
-
[`bb-tooltip__bubble-container--${
|
|
109
|
+
class: U(["bb-tooltip__bubble-container", {
|
|
110
|
+
[`bb-tooltip__bubble-container--${s(_)}`]: !0,
|
|
109
111
|
[`bb-tooltip__bubble-container--${e.theme}`]: e.theme,
|
|
110
|
-
"bb-tooltip__bubble-container--hidden":
|
|
111
|
-
"bb-tooltip__bubble-container--closing":
|
|
112
|
-
"bb-tooltip__bubble-container--opening":
|
|
112
|
+
"bb-tooltip__bubble-container--hidden": p.value,
|
|
113
|
+
"bb-tooltip__bubble-container--closing": r.value,
|
|
114
|
+
"bb-tooltip__bubble-container--opening": a.value,
|
|
113
115
|
"bb-tooltip__bubble-container--open": l.value
|
|
114
116
|
}]),
|
|
115
117
|
ref_key: "content",
|
|
116
|
-
ref:
|
|
117
|
-
style:
|
|
118
|
-
...
|
|
118
|
+
ref: c,
|
|
119
|
+
style: j({
|
|
120
|
+
...s(F),
|
|
119
121
|
transitionDuration: `${t.transitionDuration}ms`
|
|
120
122
|
}),
|
|
121
|
-
id:
|
|
123
|
+
id: v
|
|
122
124
|
}, [
|
|
123
|
-
|
|
125
|
+
i("span", D({
|
|
124
126
|
class: "bb-tooltip__arrow",
|
|
125
127
|
ref_key: "bubblearrow",
|
|
126
|
-
ref:
|
|
128
|
+
ref: w
|
|
127
129
|
}, z.value), null, 16),
|
|
128
|
-
|
|
129
|
-
e.showClose ? (
|
|
130
|
+
i("span", ee, [
|
|
131
|
+
e.showClose ? (b(), M(Q, {
|
|
130
132
|
key: 0,
|
|
131
133
|
tabindex: "-1",
|
|
132
134
|
"aria-hidden": "true",
|
|
133
135
|
class: "bb-tooltip__close",
|
|
134
|
-
onClick:
|
|
136
|
+
onClick: N
|
|
135
137
|
}, {
|
|
136
|
-
default:
|
|
137
|
-
|
|
138
|
+
default: q(() => [
|
|
139
|
+
te
|
|
138
140
|
]),
|
|
139
141
|
_: 1
|
|
140
|
-
})) :
|
|
142
|
+
})) : O("", !0),
|
|
141
143
|
L(e.$slots, "default")
|
|
142
144
|
])
|
|
143
|
-
], 6)) :
|
|
145
|
+
], 6)) : O("", !0)
|
|
144
146
|
]))
|
|
145
147
|
], 16));
|
|
146
148
|
}
|
|
147
149
|
});
|
|
148
150
|
export {
|
|
149
|
-
|
|
151
|
+
de as default
|
|
150
152
|
};
|
|
151
153
|
//# sourceMappingURL=index110.js.map
|
package/dist/index110.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index110.js","sources":["../src/components/BbTooltip/BbTooltip.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, normalizeProps as _normalizeProps, guardReactiveProps as _guardReactiveProps, renderSlot as _renderSlot, createElementVNode as _createElementVNode, mergeProps as _mergeProps, openBlock as _openBlock, createElementBlock as _createElementBlock, withCtx as _withCtx, createBlock as _createBlock, createCommentVNode as _createCommentVNode, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, Teleport as _Teleport } from \"vue\"\n\nconst _hoisted_1 = { class: \"bb-tooltip__bubble\" }\nconst _hoisted_2 = /*#__PURE__*/_createElementVNode(\"svg\", {\n viewBox: \"0 0 24 24\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\"\n}, [\n /*#__PURE__*/_createElementVNode(\"path\", {\n d: \"M23 23L1 1M23 1L1 23\",\n stroke: \"currentColor\",\n \"stroke-width\": \"2\",\n \"stroke-linecap\": \"round\"\n })\n], -1)\n\nimport { computed, ref } from \"vue\";\nimport { useFloating, autoUpdate, flip, shift, arrow } from \"@floating-ui/vue\";\nimport { useId } from \"@/composables/useId\";\nimport { wait } from \"@/utilities/functions/wait\";\nimport BaseButton from \"../BaseButton/BaseButton.vue\";\nimport type { CommonProps } from \"@/types/CommonProps\";\nimport type { Placement } from \"@floating-ui/vue\";\n\nexport type BbTooltipProps = Pick<\n CommonProps,\n | \"arrowPadding\"\n | \"block\"\n | \"disabled\"\n | \"eager\"\n | \"id\"\n | \"padding\"\n | \"placement\"\n | \"showClose\"\n | \"theme\"\n | \"transitionDuration\"\n>;\n\ntype BbTooltipSlots = {\n activator?: (props: {\n props: {\n \"aria-describedby\": string;\n onMouseenter: typeof onMouseenter;\n onFocus: typeof onFocus;\n onBlur: typeof closeTooltip;\n };\n closed: boolean;\n closing: boolean;\n disabled?: boolean;\n open: boolean;\n opening: boolean;\n placement: Placement;\n }) => any;\n default?: (props: {}) => any;\n};\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'BbTooltip',\n props: {\n arrowPadding: { default: 10 },\n block: { type: Boolean },\n disabled: { type: Boolean },\n eager: { type: Boolean },\n id: {},\n padding: { default: 10 },\n placement: { default: \"top\" },\n showClose: { type: Boolean, default: true },\n theme: { default: \"default\" },\n transitionDuration: { default: 150 }\n },\n setup(__props: any) {\n\nconst props = __props;\n\n\n\nconst id = `bb_${props.id ?? useId().id.value}`;\n\nconst wrapper = ref<HTMLElement>();\nconst content = ref<HTMLElement>();\nconst bubblearrow = ref<HTMLElement>();\n\nconst { floatingStyles, placement, middlewareData } = useFloating(\n wrapper,\n content,\n {\n placement: props.placement,\n whileElementsMounted: autoUpdate,\n middleware: [\n flip(),\n shift({ padding: props.padding }),\n arrow({\n element: bubblearrow,\n padding: props.arrowPadding,\n }),\n ],\n }\n);\n\nconst canOpen = ref(true);\n\nconst opening = ref(false);\nconst open = ref(false);\nconst closing = ref(false);\nconst closed = ref(true);\n\nconst arrowAttributes = computed(() => {\n if (middlewareData.value.arrow) {\n const { x, y } = middlewareData.value.arrow;\n return {\n style: {\n left: `${x}px`,\n top: `${y}px`,\n },\n };\n }\n});\n\nconst onMouseenter = () => {\n if (open.value || opening.value || props.disabled) return;\n openTooltip();\n document.addEventListener(\"mouseover\", onMouseOver, { passive: true });\n document.addEventListener(\"keydown\", onEsc, { passive: true });\n};\n\nconst onFocus = onMouseenter;\n\nconst onMouseOver = (event: Event) => {\n const target = event.target;\n if (!target) return;\n if (target instanceof HTMLElement) {\n let isOutside = true;\n\n if (wrapper.value) {\n if (wrapper.value.contains(target)) {\n isOutside = false;\n }\n }\n if (content.value) {\n if (content.value.contains(target)) {\n isOutside = false;\n }\n }\n\n if (isOutside) {\n closeTooltip();\n }\n }\n};\n\nconst onEsc = (event: KeyboardEvent) => {\n if (open.value) {\n if (event.key === \"Escape\") {\n closeTooltip();\n }\n }\n};\n\n/* On click of close button tooltip is disallowed from reappearing */\nconst onClickClose = () => {\n canOpen.value = false;\n closeTooltip();\n};\n\nconst hasOpenedOnce = ref(false);\nconst openTooltip = async () => {\n if (!canOpen.value) return;\n hasOpenedOnce.value = true;\n closed.value = false;\n closing.value = false;\n opening.value = true;\n await wait(50);\n open.value = true;\n opening.value = false;\n};\n\nconst closeTooltip = async () => {\n open.value = false;\n opening.value = false;\n closing.value = true;\n await wait(props.transitionDuration);\n closing.value = false;\n closed.value = true;\n document.removeEventListener(\"mouseover\", onMouseOver);\n document.removeEventListener(\"keydown\", onEsc);\n};\n\nconst attributes = computed(() => {\n const classes = {\n \"bb-tooltip--block\": props.block,\n [`bb-tooltip--theme-${props.theme}`]: props.theme,\n };\n return {\n class: classes,\n };\n});\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"span\", _mergeProps({ class: \"bb-tooltip\" }, attributes.value), [\n _createElementVNode(\"span\", {\n class: \"bb-tooltip__wrapper\",\n ref_key: \"wrapper\",\n ref: wrapper\n }, [\n _renderSlot(_ctx.$slots, \"activator\", _normalizeProps(_guardReactiveProps({\n props: {\n 'aria-describedby': id,\n onMouseenter: onMouseenter,\n onFocus: _unref(onFocus),\n onBlur: closeTooltip,\n disabled: _ctx.disabled,\n },\n closed: closed.value,\n closing: closing.value,\n disabled: _ctx.disabled,\n open: open.value,\n opening: opening.value,\n placement: _unref(placement),\n })))\n ], 512),\n (_openBlock(), _createBlock(_Teleport, { to: \"body\" }, [\n (hasOpenedOnce.value || _ctx.eager)\n ? (_openBlock(), _createElementBlock(\"span\", {\n key: 0,\n class: _normalizeClass([\"bb-tooltip__bubble-container\", {\n [`bb-tooltip__bubble-container--${_unref(placement)}`]: true,\n [`bb-tooltip__bubble-container--${_ctx.theme}`]: _ctx.theme,\n 'bb-tooltip__bubble-container--hidden': closed.value,\n 'bb-tooltip__bubble-container--closing': closing.value,\n 'bb-tooltip__bubble-container--opening': opening.value,\n 'bb-tooltip__bubble-container--open': open.value,\n }]),\n ref_key: \"content\",\n ref: content,\n style: _normalizeStyle({\n ..._unref(floatingStyles),\n transitionDuration: `${props.transitionDuration}ms`,\n }),\n id: id\n }, [\n _createElementVNode(\"span\", _mergeProps({\n class: \"bb-tooltip__arrow\",\n ref_key: \"bubblearrow\",\n ref: bubblearrow\n }, arrowAttributes.value), null, 16),\n _createElementVNode(\"span\", _hoisted_1, [\n (_ctx.showClose)\n ? (_openBlock(), _createBlock(BaseButton, {\n key: 0,\n tabindex: \"-1\",\n \"aria-hidden\": \"true\",\n class: \"bb-tooltip__close\",\n onClick: onClickClose\n }, {\n default: _withCtx(() => [\n _hoisted_2\n ]),\n _: 1\n }))\n : _createCommentVNode(\"\", true),\n _renderSlot(_ctx.$slots, \"default\")\n ])\n ], 6))\n : _createCommentVNode(\"\", true)\n ]))\n ], 16))\n}\n}\n\n})"],"names":["_hoisted_1","_hoisted_2","_sfc_main","_defineComponent","__props","props","id","useId","wrapper","ref","content","bubblearrow","floatingStyles","placement","middlewareData","useFloating","autoUpdate","flip","shift","arrow","canOpen","opening","open","closing","closed","arrowAttributes","computed","x","y","onMouseenter","openTooltip","onMouseOver","onEsc","onFocus","event","target","isOutside","closeTooltip","onClickClose","hasOpenedOnce","wait","attributes","_ctx","_cache","_openBlock","_createElementBlock","_mergeProps","_createElementVNode","_renderSlot","_normalizeProps","_guardReactiveProps","_unref","_createBlock","_Teleport","_normalizeClass","_normalizeStyle","BaseButton","_withCtx","_createCommentVNode"],"mappings":";;;;;;;;AAGA,MAAMA,IAAa,EAAE,OAAO,wBACtBC,sBAA8C,OAAO;AAAA,EACzD,SAAS;AAAA,EACT,MAAM;AAAA,EACN,OAAO;AACT,GAAG;AAAA,oBACgC,QAAQ;AAAA,IACvC,GAAG;AAAA,IACH,QAAQ;AAAA,IACR,gBAAgB;AAAA,IAChB,kBAAkB;AAAA,EAAA,CACnB;AACH,GAAG,EAAE,GA2CuBC,KAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,cAAc,EAAE,SAAS,GAAG;AAAA,IAC5B,OAAO,EAAE,MAAM,QAAQ;AAAA,IACvB,UAAU,EAAE,MAAM,QAAQ;AAAA,IAC1B,OAAO,EAAE,MAAM,QAAQ;AAAA,IACvB,IAAI,CAAC;AAAA,IACL,SAAS,EAAE,SAAS,GAAG;AAAA,IACvB,WAAW,EAAE,SAAS,MAAM;AAAA,IAC5B,WAAW,EAAE,MAAM,SAAS,SAAS,GAAK;AAAA,IAC1C,OAAO,EAAE,SAAS,UAAU;AAAA,IAC5B,oBAAoB,EAAE,SAAS,IAAI;AAAA,EACrC;AAAA,EACA,MAAMC,GAAc;AAEtB,UAAMC,IAAQD,GAIRE,IAAK,MAAMD,EAAM,MAAME,IAAQ,GAAG,KAAK,IAEvCC,IAAUC,KACVC,IAAUD,KAC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,EAAoB,IAAI,EAAI;AAAA,YAChCV,EAAYN,EAAK,QAAQ,SAAS;AAAA,UAAA,CACnC;AAAA,QACA,GAAA,CAAC,KACJgB,EAAoB,IAAI,EAAI;AAAA,MAAA,CACjC;AAAA,OACA,EAAE;AAAA,EAEP;AAEA,CAAC;"}
|
|
1
|
+
{"version":3,"file":"index110.js","sources":["../src/components/BbTooltip/BbTooltip.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, normalizeProps as _normalizeProps, guardReactiveProps as _guardReactiveProps, renderSlot as _renderSlot, createElementVNode as _createElementVNode, mergeProps as _mergeProps, openBlock as _openBlock, createElementBlock as _createElementBlock, withCtx as _withCtx, createBlock as _createBlock, createCommentVNode as _createCommentVNode, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, Teleport as _Teleport } from \"vue\"\n\nconst _hoisted_1 = { class: \"bb-tooltip__bubble\" }\nconst _hoisted_2 = /*#__PURE__*/_createElementVNode(\"svg\", {\n viewBox: \"0 0 24 24\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\"\n}, [\n /*#__PURE__*/_createElementVNode(\"path\", {\n d: \"M23 23L1 1M23 1L1 23\",\n stroke: \"currentColor\",\n \"stroke-width\": \"2\",\n \"stroke-linecap\": \"round\"\n })\n], -1)\n\nimport { computed, ref } from \"vue\";\nimport { useFloating, autoUpdate, flip, shift, arrow } from \"@floating-ui/vue\";\nimport { useId } from \"@/composables/useId\";\nimport { wait } from \"@/utilities/functions/wait\";\nimport BaseButton from \"../BaseButton/BaseButton.vue\";\nimport type { CommonProps } from \"@/types/CommonProps\";\nimport type { Placement } from \"@floating-ui/vue\";\nimport { throttle } from \"@/utilities/functions/throttle\";\nimport { waitFor } from \"@/utilities/functions/waitFor\";\n\nexport type BbTooltipProps = Pick<\n CommonProps,\n | \"arrowPadding\"\n | \"block\"\n | \"disabled\"\n | \"eager\"\n | \"id\"\n | \"padding\"\n | \"placement\"\n | \"showClose\"\n | \"theme\"\n | \"transitionDuration\"\n>;\n\ntype BbTooltipSlots = {\n activator?: (props: {\n props: {\n \"aria-describedby\": string;\n onMouseenter: typeof onMouseenter;\n onFocus: typeof onFocus;\n onBlur: typeof closeTooltip;\n };\n closed: boolean;\n closing: boolean;\n disabled?: boolean;\n open: boolean;\n opening: boolean;\n placement: Placement;\n }) => any;\n default?: (props: {}) => any;\n};\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'BbTooltip',\n props: {\n arrowPadding: { default: 10 },\n block: { type: Boolean },\n disabled: { type: Boolean },\n eager: { type: Boolean },\n id: {},\n padding: { default: 10 },\n placement: { default: \"top\" },\n showClose: { type: Boolean, default: true },\n theme: { default: \"default\" },\n transitionDuration: { default: 150 }\n },\n setup(__props: any) {\n\nconst props = __props;\n\n\n\nconst id = `bb_${props.id ?? useId().id.value}`;\n\nconst wrapper = ref<HTMLElement>();\nconst content = ref<HTMLElement>();\nconst bubblearrow = ref<HTMLElement>();\n\nconst { floatingStyles, placement, middlewareData } = useFloating(\n wrapper,\n content,\n {\n placement: props.placement,\n whileElementsMounted: autoUpdate,\n middleware: [\n flip(),\n shift({ padding: props.padding }),\n arrow({\n element: bubblearrow,\n padding: props.arrowPadding,\n }),\n ],\n }\n);\n\nconst canOpen = ref(true);\n\nconst opening = ref(false);\nconst open = ref(false);\nconst closing = ref(false);\nconst closed = ref(true);\n\nconst arrowAttributes = computed(() => {\n if (middlewareData.value.arrow) {\n const { x, y } = middlewareData.value.arrow;\n return {\n style: {\n left: `${x}px`,\n top: `${y}px`,\n },\n };\n }\n});\n\nconst onMouseenter = () => {\n if (open.value || opening.value || props.disabled) return;\n openTooltip();\n document.addEventListener(\"mouseover\", onMouseOver, { passive: true });\n document.addEventListener(\"keydown\", onEsc, { passive: true });\n};\n\nconst onFocus = onMouseenter;\n\nconst onMouseOver = throttle((event: Event) => {\n const target = event.target;\n if (!target) return;\n if (target instanceof HTMLElement) {\n let isOutside = true;\n\n if (wrapper.value) {\n if (wrapper.value.contains(target)) {\n isOutside = false;\n }\n }\n if (content.value) {\n if (content.value.contains(target)) {\n isOutside = false;\n }\n }\n\n if (isOutside) {\n closeTooltip();\n }\n }\n}, props.transitionDuration);\n\nconst onEsc = (event: KeyboardEvent) => {\n if (open.value) {\n if (event.key === \"Escape\") {\n closeTooltip();\n }\n }\n};\n\n/* On click of close button tooltip is disallowed from reappearing */\nconst onClickClose = () => {\n canOpen.value = false;\n closeTooltip();\n};\n\nconst hasOpenedOnce = ref(false);\nconst openTooltip = throttle(async () => {\n if (!canOpen.value) return;\n hasOpenedOnce.value = true;\n closed.value = false;\n closing.value = false;\n opening.value = true;\n await wait(50);\n open.value = true;\n opening.value = false;\n}, props.transitionDuration);\n\nconst closeTooltip = throttle(async () => {\n await waitFor(() => !opening.value);\n document.removeEventListener(\"mouseover\", onMouseOver);\n document.removeEventListener(\"keydown\", onEsc);\n open.value = false;\n opening.value = false;\n closing.value = true;\n await wait(props.transitionDuration);\n closing.value = false;\n closed.value = true;\n}, props.transitionDuration);\n\nconst attributes = computed(() => {\n const classes = {\n \"bb-tooltip--block\": props.block,\n [`bb-tooltip--theme-${props.theme}`]: props.theme,\n };\n return {\n class: classes,\n };\n});\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"span\", _mergeProps({ class: \"bb-tooltip\" }, attributes.value), [\n _createElementVNode(\"span\", {\n class: \"bb-tooltip__wrapper\",\n ref_key: \"wrapper\",\n ref: wrapper\n }, [\n _renderSlot(_ctx.$slots, \"activator\", _normalizeProps(_guardReactiveProps({\n props: {\n 'aria-describedby': id,\n onMouseenter: onMouseenter,\n onFocus: _unref(onFocus),\n onBlur: _unref(closeTooltip),\n disabled: _ctx.disabled,\n },\n closed: closed.value,\n closing: closing.value,\n disabled: _ctx.disabled,\n open: open.value,\n opening: opening.value,\n placement: _unref(placement),\n })))\n ], 512),\n (_openBlock(), _createBlock(_Teleport, { to: \"body\" }, [\n (hasOpenedOnce.value || _ctx.eager)\n ? (_openBlock(), _createElementBlock(\"span\", {\n key: 0,\n class: _normalizeClass([\"bb-tooltip__bubble-container\", {\n [`bb-tooltip__bubble-container--${_unref(placement)}`]: true,\n [`bb-tooltip__bubble-container--${_ctx.theme}`]: _ctx.theme,\n 'bb-tooltip__bubble-container--hidden': closed.value,\n 'bb-tooltip__bubble-container--closing': closing.value,\n 'bb-tooltip__bubble-container--opening': opening.value,\n 'bb-tooltip__bubble-container--open': open.value,\n }]),\n ref_key: \"content\",\n ref: content,\n style: _normalizeStyle({\n ..._unref(floatingStyles),\n transitionDuration: `${props.transitionDuration}ms`,\n }),\n id: id\n }, [\n _createElementVNode(\"span\", _mergeProps({\n class: \"bb-tooltip__arrow\",\n ref_key: \"bubblearrow\",\n ref: bubblearrow\n }, arrowAttributes.value), null, 16),\n _createElementVNode(\"span\", _hoisted_1, [\n (_ctx.showClose)\n ? (_openBlock(), _createBlock(BaseButton, {\n key: 0,\n tabindex: \"-1\",\n \"aria-hidden\": \"true\",\n class: \"bb-tooltip__close\",\n onClick: onClickClose\n }, {\n default: _withCtx(() => [\n _hoisted_2\n ]),\n _: 1\n }))\n : _createCommentVNode(\"\", true),\n _renderSlot(_ctx.$slots, \"default\")\n ])\n ], 6))\n : _createCommentVNode(\"\", true)\n ]))\n ], 16))\n}\n}\n\n})"],"names":["_hoisted_1","_hoisted_2","_sfc_main","_defineComponent","__props","props","id","useId","wrapper","ref","content","bubblearrow","floatingStyles","placement","middlewareData","useFloating","autoUpdate","flip","shift","arrow","canOpen","opening","open","closing","closed","arrowAttributes","computed","x","y","onMouseenter","openTooltip","onMouseOver","onEsc","onFocus","throttle","event","target","isOutside","closeTooltip","onClickClose","hasOpenedOnce","wait","waitFor","attributes","_ctx","_cache","_openBlock","_createElementBlock","_mergeProps","_createElementVNode","_renderSlot","_normalizeProps","_guardReactiveProps","_unref","_createBlock","_Teleport","_normalizeClass","_normalizeStyle","BaseButton","_withCtx","_createCommentVNode"],"mappings":";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
1
|
import { defineComponent as i, ref as a, watch as s, computed as u, openBlock as c, createElementBlock as p, normalizeProps as d, guardReactiveProps as m, createElementVNode as b, renderSlot as v, createCommentVNode as f } from "vue";
|
|
2
2
|
import { wait as V } from "./index121.js";
|
|
3
|
-
import { throttle as _ } from "./
|
|
3
|
+
import { throttle as _ } from "./index204.js";
|
|
4
4
|
const h = { class: "bb-collapsible__content" }, k = /* @__PURE__ */ i({
|
|
5
5
|
__name: "BbCollapsible",
|
|
6
6
|
props: {
|
package/dist/index116.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as m, getCurrentInstance as d, inject as x, computed as l, ref as y, watchEffect as _, openBlock as b, createElementBlock as h, mergeProps as w } from "vue";
|
|
2
|
-
import { isCssColor as z } from "./
|
|
2
|
+
import { isCssColor as z } from "./index207.js";
|
|
3
3
|
const g = ["innerHTML"], $ = /* @__PURE__ */ m({
|
|
4
4
|
__name: "BbIcon",
|
|
5
5
|
props: {
|
package/dist/index117.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as v, ref as r, onMounted as p, onBeforeUnmount as h, openBlock as i, createBlock as l, resolveDynamicComponent as u, normalizeStyle as m, withCtx as f, renderSlot as d } from "vue";
|
|
2
|
-
import { throttle as g } from "./
|
|
2
|
+
import { throttle as g } from "./index204.js";
|
|
3
3
|
const O = /* @__PURE__ */ v({
|
|
4
4
|
__name: "BbSmoothHeight",
|
|
5
5
|
props: {
|
package/dist/index118.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as m, computed as r, openBlock as a, createElementBlock as d, normalizeProps as u, guardReactiveProps as z, createElementVNode as c } from "vue";
|
|
2
|
-
import { isCssColor as f } from "./
|
|
2
|
+
import { isCssColor as f } from "./index207.js";
|
|
3
3
|
const _ = /* @__PURE__ */ c("svg", {
|
|
4
4
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5
5
|
viewBox: "0 0 512 512"
|
package/dist/index124.js
CHANGED
package/dist/index125.js
CHANGED
package/dist/index127.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { toValue as B } from "./
|
|
2
|
-
import { tryOnScopeDispose as E } from "./
|
|
1
|
+
import { toValue as B } from "./index216.js";
|
|
2
|
+
import { tryOnScopeDispose as E } from "./index216.js";
|
|
3
3
|
import { ref as c, computed as t } from "vue";
|
|
4
4
|
function h(a) {
|
|
5
5
|
var l;
|
package/dist/index14.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { defineComponent as de, ref as k, computed as h, watch as ue, openBlock as d, createElementBlock as u, mergeProps as ce, createElementVNode as i, createTextVNode as be, toDisplayString as f, unref as p, withDirectives as L, createVNode as g, Transition as V, withCtx as w, vShow as z, createCommentVNode as A, normalizeClass as x, Fragment as O, renderList as S, renderSlot as R, nextTick as me } from "vue";
|
|
2
|
-
import c from "./
|
|
3
|
-
import fe from "./
|
|
4
|
-
import pe from "./
|
|
5
|
-
import he from "./
|
|
6
|
-
import ye from "./
|
|
7
|
-
import _e from "./
|
|
8
|
-
import { groupBy as W } from "./
|
|
2
|
+
import c from "./index197.js";
|
|
3
|
+
import fe from "./index209.js";
|
|
4
|
+
import pe from "./index210.js";
|
|
5
|
+
import he from "./index198.js";
|
|
6
|
+
import ye from "./index211.js";
|
|
7
|
+
import _e from "./index212.js";
|
|
8
|
+
import { groupBy as W } from "./index213.js";
|
|
9
9
|
import { isNil as ve } from "./index119.js";
|
|
10
|
-
import { last as $ } from "./
|
|
10
|
+
import { last as $ } from "./index200.js";
|
|
11
11
|
const ke = { class: "bb-base-date-picker__header" }, ge = ["disabled"], Ve = /* @__PURE__ */ i("span", null, null, -1), we = {
|
|
12
12
|
class: "bb-base-date-picker__selected-day-label",
|
|
13
13
|
"aria-live": "polite"
|
package/dist/index16.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { defineComponent as R, ref as l, computed as Y, watch as J, onMounted as Q, onBeforeUnmount as X, openBlock as B, createElementBlock as Z, normalizeClass as C, renderSlot as u, createElementVNode as g, withDirectives as x, mergeProps as T, unref as d, toDisplayString as ee, createBlock as ae, Teleport as te, createVNode as ne, createSlots as oe, renderList as le, withCtx as ie, normalizeProps as re, guardReactiveProps as se } from "vue";
|
|
2
|
-
import { autoUpdate as ue, computePosition as de } from "./
|
|
3
|
-
import ce from "./
|
|
4
|
-
import c from "./
|
|
5
|
-
import fe from "./
|
|
6
|
-
import { identity as pe } from "./
|
|
7
|
-
import { last as me } from "./
|
|
2
|
+
import { autoUpdate as ue, computePosition as de } from "./index195.js";
|
|
3
|
+
import ce from "./index196.js";
|
|
4
|
+
import c from "./index197.js";
|
|
5
|
+
import fe from "./index198.js";
|
|
6
|
+
import { identity as pe } from "./index199.js";
|
|
7
|
+
import { last as me } from "./index200.js";
|
|
8
8
|
import { useId as be } from "./index6.js";
|
|
9
|
-
import { vMaska as ve } from "./
|
|
9
|
+
import { vMaska as ve } from "./index201.js";
|
|
10
10
|
import { wait as I } from "./index121.js";
|
|
11
11
|
import ye from "./index14.js";
|
|
12
12
|
import "./index15.js";
|
|
13
|
-
import O from "./
|
|
14
|
-
import { offset as ge, flip as he, shift as ke } from "./
|
|
13
|
+
import O from "./index202.js";
|
|
14
|
+
import { offset as ge, flip as he, shift as ke } from "./index203.js";
|
|
15
15
|
const we = ["autocomplete", "autofocus", "data-maska", "disabled", "id", "name", "placeholder", "readonly", "value", "aria-describedby"], Ee = ["id"], Pe = /* @__PURE__ */ R({
|
|
16
16
|
__name: "BaseDatePickerInput",
|
|
17
17
|
props: {
|
package/dist/index18.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as J, ref as l, useAttrs as Q, computed as h, onMounted as A, onBeforeUnmount as X, watch as Y, nextTick as E, openBlock as _, createBlock as Z, Teleport as ee, createElementVNode as o, mergeProps as N, createElementBlock as V, renderSlot as i, createTextVNode as te, toDisplayString as D, createCommentVNode as M } from "vue";
|
|
2
|
-
import { throttle as le } from "./
|
|
3
|
-
import { useFocusTrap as oe } from "./
|
|
2
|
+
import { throttle as le } from "./index204.js";
|
|
3
|
+
import { useFocusTrap as oe } from "./index205.js";
|
|
4
4
|
import { useId as W } from "./index6.js";
|
|
5
5
|
import { wait as L } from "./index121.js";
|
|
6
|
-
import { waitFor as ae } from "./
|
|
6
|
+
import { waitFor as ae } from "./index206.js";
|
|
7
7
|
const se = { class: "bb-base-dialog-close" }, ne = { class: "bb-base-dialog-close__content" }, ie = { class: "bb-base-dialog-close__label" }, re = /* @__PURE__ */ o("span", { class: "bb-base-dialog-close__icon" }, [
|
|
8
8
|
/* @__PURE__ */ o("svg", {
|
|
9
9
|
viewBox: "0 0 24 24",
|