@bridge-ui/vue 0.22.1 → 0.24.0
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/ai/skills/bridge-ui-overlays/SKILL.md +4 -2
- package/dist/Actions/Snackbar/BridgeSnackbarAction.vue_vue_type_script_setup_true_lang.js +4 -4
- package/dist/Actions/Snackbar/BridgeSnackbarItem.vue_vue_type_script_setup_true_lang.js +31 -25
- package/dist/Actions/Snackbar/bridgeSnackbar.types.d.ts +14 -7
- package/dist/Actions/Snackbar/index.d.ts +1 -1
- package/dist/Actions/index.d.ts +1 -1
- package/dist/Components/ColorField/composables/useColorField.js +1 -1
- package/dist/Components/DateField/composables/useDateField.js +1 -1
- package/dist/Components/DateRangeField/composables/useDateRangeField.js +1 -1
- package/dist/Components/DateTimeField/composables/useDateTimeField.js +1 -1
- package/dist/Components/DateTimeRangeField/composables/useDateTimeRangeField.js +1 -1
- package/dist/Components/Drawer/Drawer.vue_vue_type_script_setup_true_lang.js +7 -7
- package/dist/Components/Drawer/composables/useDrawer.d.ts +1 -0
- package/dist/Components/Drawer/composables/useDrawer.js +96 -90
- package/dist/Components/Menu/composables/useMenu.d.ts +8 -8
- package/dist/Components/Menu/composables/useMenu.js +81 -195
- package/dist/Components/Modal/Modal.vue_vue_type_script_setup_true_lang.js +7 -7
- package/dist/Components/Modal/composables/useModal.d.ts +1 -0
- package/dist/Components/Modal/composables/useModal.js +120 -114
- package/dist/Components/Popover/Popover.js +4 -0
- package/dist/Components/Popover/Popover.vue.d.ts +39 -0
- package/dist/Components/Popover/Popover.vue_vue_type_script_setup_true_lang.js +100 -0
- package/dist/Components/Popover/composables/popoverParts.d.ts +52 -0
- package/dist/Components/Popover/composables/popoverParts.js +35 -0
- package/dist/Components/Popover/composables/usePopover.d.ts +68 -0
- package/dist/Components/Popover/composables/usePopover.js +119 -0
- package/dist/Components/Popover/composables/usePopoverBase.d.ts +130 -0
- package/dist/Components/Popover/composables/usePopoverBase.js +210 -0
- package/dist/Components/Popover/index.d.ts +4 -0
- package/dist/Components/Popover/index.js +3 -0
- package/dist/Components/Popover/popover.types.d.ts +207 -0
- package/dist/Components/Resizable/composables/useResizable.js +85 -85
- package/dist/Components/Snackbar/Snackbar.vue.d.ts +1 -1
- package/dist/Components/Snackbar/Snackbar.vue_vue_type_script_setup_true_lang.js +23 -23
- package/dist/Components/Snackbar/composables/useSnackbar.js +107 -107
- package/dist/Components/Snackbar/snackbar.types.d.ts +1 -1
- package/dist/Components/TimeField/composables/useTimeField.js +1 -1
- package/dist/Components/TimeRangeField/composables/useTimeRangeField.js +1 -1
- package/dist/augments.d.ts +5 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +78 -76
- package/docs/README.md +1 -0
- package/docs/components/Menu.md +4 -0
- package/docs/components/Popover.md +210 -0
- package/package.json +2 -2
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { mergePartBind as e, resolveVnodeRefElement as t, useBridgeUIComponent as n, useBridgeUIMergedRegistryClasses as ee } from "../../../Utils/index.js";
|
|
2
2
|
import { snackbarDefaultIcons as te } from "../snackbarDefaultIcons.js";
|
|
3
|
-
import { computed as r, nextTick as ne, onBeforeUnmount as
|
|
4
|
-
import { get as
|
|
5
|
-
import { snackbarColorProps as
|
|
6
|
-
import { cn as
|
|
7
|
-
import { requestAfterNextPaint as
|
|
8
|
-
import { LAYER_STACK_BASE_Z_INDEX as
|
|
3
|
+
import { computed as r, nextTick as ne, onBeforeUnmount as i, ref as a, toValue as re, useAttrs as ie, watch as o } from "vue";
|
|
4
|
+
import { get as s, isNil as ae, isNull as oe, isObject as se, omit as ce } from "es-toolkit/compat";
|
|
5
|
+
import { snackbarColorProps as le, snackbarPaddingProps as ue, snackbarPositionProps as de, snackbarRoundedProps as fe, snackbarTransitionProps as pe } from "@bridge-ui/core/Tokens";
|
|
6
|
+
import { cn as c, mergeBridgeUILayeredClasses as l, splitComponentProps as me } from "@bridge-ui/core/Utils";
|
|
7
|
+
import { requestAfterNextPaint as u } from "@bridge-ui/core/Runtime";
|
|
8
|
+
import { LAYER_STACK_BASE_Z_INDEX as d, SNACKBAR_LEAVE_FALLBACK_MS as he, acquireLayerStackOrder as ge, getLayerStackEntry as _e, getSnackbarTransitionClass as ve, hasSnackbarTransition as ye, pushLayerStack as be, resolveEffectiveSnackbarTransition as xe, subscribeLayerStack as f } from "@bridge-ui/core/Layer";
|
|
9
9
|
// src/Components/Snackbar/composables/useSnackbar.ts
|
|
10
|
-
var
|
|
10
|
+
var Se = [
|
|
11
11
|
"img",
|
|
12
12
|
"icon",
|
|
13
13
|
"color",
|
|
@@ -25,175 +25,175 @@ var Ce = [
|
|
|
25
25
|
"description",
|
|
26
26
|
"progressbar"
|
|
27
27
|
];
|
|
28
|
-
function
|
|
29
|
-
let
|
|
28
|
+
function p(p, Ce, m = {}) {
|
|
29
|
+
let we = ie(), h = a(!1), g = a(""), _ = a(1), v = a(0), y = a(!1), b = a(!1), x = a(0), S = a(!1), C = null, w = a(0), T = a(null), E = null, D = null, O = a(d), k = null, A = a("closed"), j = a(null), M = null, N = r(() => me({
|
|
30
30
|
props: {
|
|
31
|
-
...
|
|
32
|
-
...
|
|
31
|
+
...we,
|
|
32
|
+
...p
|
|
33
33
|
},
|
|
34
|
-
bridgeKeys:
|
|
35
|
-
})), { merged:
|
|
36
|
-
libDefaults:
|
|
34
|
+
bridgeKeys: Se
|
|
35
|
+
})), { merged: P, entry: F } = n({
|
|
36
|
+
libDefaults: Ce,
|
|
37
37
|
componentName: "Snackbar",
|
|
38
|
-
props: () =>
|
|
39
|
-
}),
|
|
40
|
-
entry:
|
|
41
|
-
props: () =>
|
|
42
|
-
}),
|
|
43
|
-
let e =
|
|
44
|
-
return
|
|
45
|
-
}),
|
|
46
|
-
let e =
|
|
47
|
-
return
|
|
48
|
-
}),
|
|
49
|
-
let e =
|
|
50
|
-
return
|
|
38
|
+
props: () => N.value.componentProps
|
|
39
|
+
}), I = r(() => P.value.customProps), L = r(() => ce(N.value.inheritedAttrs, ["onShowChange"])), R = ee({
|
|
40
|
+
entry: F,
|
|
41
|
+
props: () => N.value.componentProps
|
|
42
|
+
}), z = r(() => !ae(m.show) && re(m.show)), B = r(() => {
|
|
43
|
+
let e = P.value.transition ?? "none", t = e in pe ? e : "none";
|
|
44
|
+
return xe(t);
|
|
45
|
+
}), V = r(() => ye(B.value)), Te = r(() => ve(B.value)), H = r(() => {
|
|
46
|
+
let e = l(le, F.value?.tokens?.color);
|
|
47
|
+
return s(e, P.value.color);
|
|
48
|
+
}), Ee = r(() => {
|
|
49
|
+
let e = l(ue, F.value?.tokens?.padding);
|
|
50
|
+
return s(e, P.value.padding);
|
|
51
51
|
}), De = r(() => {
|
|
52
|
-
let e =
|
|
53
|
-
return
|
|
54
|
-
}), Oe = r(() =>
|
|
52
|
+
let e = l(fe, F.value?.tokens?.rounded);
|
|
53
|
+
return s(e, P.value.rounded);
|
|
54
|
+
}), Oe = r(() => oe(P.value.icon) ? null : P.value.icon ? P.value.icon : s(H.value, "icon") ?? s(te, P.value.color)), U = r(() => P.value.duration === !1 ? 0 : P.value.duration ?? 0), W = r(() => z.value && h.value && U.value > 0 && P.value.progressbar !== !1), G = r(() => P.value.teleportTo !== !1), ke = r(() => {
|
|
55
55
|
if (!G.value) return "";
|
|
56
|
-
let e =
|
|
57
|
-
return
|
|
56
|
+
let e = l(de, F.value?.tokens?.position);
|
|
57
|
+
return s(e, P.value.position ?? "bottom-center");
|
|
58
58
|
});
|
|
59
59
|
function K() {
|
|
60
|
-
|
|
60
|
+
j.value &&= (clearTimeout(j.value), null);
|
|
61
61
|
}
|
|
62
62
|
function q() {
|
|
63
|
-
|
|
63
|
+
M !== null && (clearTimeout(M), M = null);
|
|
64
64
|
}
|
|
65
65
|
function J() {
|
|
66
|
-
|
|
66
|
+
D?.(), D = null;
|
|
67
67
|
}
|
|
68
68
|
function Y(e) {
|
|
69
|
-
e ||
|
|
69
|
+
e || m.onClose?.(), se(m.show) && "value" in m.show && (m.show.value = e), m.onShowChange?.(e);
|
|
70
70
|
}
|
|
71
71
|
function X() {
|
|
72
|
-
|
|
72
|
+
b.value && (b.value = !1, A.value = "closed", K(), q(), z.value ? Y(!1) : m.onLeaveComplete?.(), h.value = !1);
|
|
73
73
|
}
|
|
74
74
|
function Ae() {
|
|
75
|
-
J(), K(),
|
|
76
|
-
|
|
77
|
-
},
|
|
75
|
+
J(), K(), b.value = !0, V.value ? (A.value = "closed", q(), M = setTimeout(() => {
|
|
76
|
+
M = null, X();
|
|
77
|
+
}, he)) : X();
|
|
78
78
|
}
|
|
79
79
|
function je() {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
})) :
|
|
80
|
+
b.value = !1, q(), V.value ? (A.value = "closed", J(), D = u(() => {
|
|
81
|
+
A.value = "open";
|
|
82
|
+
})) : A.value = "open";
|
|
83
83
|
}
|
|
84
84
|
function Z() {
|
|
85
|
-
|
|
85
|
+
z.value && Y(!1);
|
|
86
86
|
}
|
|
87
87
|
function Q(e) {
|
|
88
|
-
K(),
|
|
88
|
+
K(), v.value = e, x.value = Date.now(), w.value = e, j.value = setTimeout(() => {
|
|
89
89
|
Z();
|
|
90
90
|
}, e);
|
|
91
91
|
}
|
|
92
92
|
function Me() {
|
|
93
|
-
!
|
|
93
|
+
!j.value || U.value <= 0 || (K(), v.value -= Date.now() - x.value, _.value = Math.max(v.value / U.value, 0), S.value = !1, y.value = !0);
|
|
94
94
|
}
|
|
95
95
|
function Ne() {
|
|
96
|
-
if (U.value <= 0 || !
|
|
97
|
-
let e = Math.max(
|
|
98
|
-
|
|
99
|
-
|
|
96
|
+
if (U.value <= 0 || !y.value) return;
|
|
97
|
+
let e = Math.max(v.value, 0);
|
|
98
|
+
y.value = !1, S.value = !1, requestAnimationFrame(() => {
|
|
99
|
+
S.value = !0;
|
|
100
100
|
}), Q(e);
|
|
101
101
|
}
|
|
102
102
|
function Pe(e) {
|
|
103
|
-
|
|
103
|
+
b.value && h.value && A.value === "closed" && e.target === e.currentTarget && e.propertyName !== "none" && e.elapsedTime !== 0 && X();
|
|
104
104
|
}
|
|
105
|
-
|
|
106
|
-
e ? (
|
|
107
|
-
}, { immediate: !0 }),
|
|
108
|
-
|
|
109
|
-
|
|
105
|
+
o(z, (e) => {
|
|
106
|
+
e ? (h.value = !0, je()) : h.value && Ae();
|
|
107
|
+
}, { immediate: !0 }), o([
|
|
108
|
+
z,
|
|
109
|
+
h,
|
|
110
110
|
U
|
|
111
111
|
], ([e, t, n]) => {
|
|
112
|
-
!e || !t || n <= 0 ? K() : (
|
|
113
|
-
}, { immediate: !0 }),
|
|
114
|
-
|
|
115
|
-
|
|
112
|
+
!e || !t || n <= 0 ? K() : (y.value = !1, Q(n));
|
|
113
|
+
}, { immediate: !0 }), o([U, W], ([, e], t, n) => {
|
|
114
|
+
S.value = !1, _.value = 1, e && n(u(() => {
|
|
115
|
+
S.value = !0;
|
|
116
116
|
}));
|
|
117
117
|
}, { immediate: !0 });
|
|
118
118
|
function $() {
|
|
119
|
-
let e =
|
|
120
|
-
e && (
|
|
119
|
+
let e = _e(g.value);
|
|
120
|
+
e && (O.value = e.zIndex);
|
|
121
121
|
}
|
|
122
122
|
function Fe(e) {
|
|
123
|
-
|
|
123
|
+
T.value = t(e), E?.setContainer(T.value);
|
|
124
124
|
}
|
|
125
|
-
|
|
126
|
-
t && (e ? (
|
|
127
|
-
order:
|
|
125
|
+
o([h, G], ([e, t]) => {
|
|
126
|
+
t && (e ? (C = ge(), E = be({
|
|
127
|
+
order: C,
|
|
128
128
|
lockScroll: !1,
|
|
129
|
-
id:
|
|
130
|
-
container:
|
|
129
|
+
id: m.stackId,
|
|
130
|
+
container: T.value ?? void 0,
|
|
131
131
|
onEscape: () => {
|
|
132
132
|
Z();
|
|
133
133
|
}
|
|
134
|
-
}),
|
|
135
|
-
|
|
136
|
-
})) : (
|
|
137
|
-
}, { immediate: !0 }),
|
|
138
|
-
K(), q(), J(),
|
|
134
|
+
}), g.value = E.id, O.value = E.zIndex, $(), k = f($), ne(() => {
|
|
135
|
+
E?.setContainer(T.value);
|
|
136
|
+
})) : (k?.(), k = null, E?.release(), E = null, C = null, g.value = "", O.value = d));
|
|
137
|
+
}, { immediate: !0 }), i(() => {
|
|
138
|
+
K(), q(), J(), k?.(), k = null, E?.release(), E = null;
|
|
139
139
|
});
|
|
140
|
-
let Ie = r(() => e(
|
|
140
|
+
let Ie = r(() => e(I.value?.portal, {
|
|
141
141
|
"data-snackbar-layer": !0,
|
|
142
|
-
style: { zIndex:
|
|
143
|
-
},
|
|
142
|
+
style: { zIndex: O.value }
|
|
143
|
+
}, c({
|
|
144
144
|
"fixed inset-0 flex pointer-events-none px-4 py-6 sm:p-5 sm:pt-4": !0,
|
|
145
145
|
[ke.value ?? ""]: !0,
|
|
146
|
-
[
|
|
147
|
-
}))), Le = r(() => e(
|
|
148
|
-
...
|
|
146
|
+
[s(R.value, "portal") ?? ""]: !0
|
|
147
|
+
}))), Le = r(() => e(I.value?.root, {
|
|
148
|
+
...L.value,
|
|
149
149
|
"data-snackbar-part": "panel",
|
|
150
150
|
onMouseenter: Me,
|
|
151
151
|
onMouseleave: Ne,
|
|
152
|
-
"data-state":
|
|
152
|
+
"data-state": A.value,
|
|
153
153
|
onTransitionend: Pe,
|
|
154
|
-
role:
|
|
155
|
-
"aria-live":
|
|
156
|
-
},
|
|
154
|
+
role: L.value.role ?? "status",
|
|
155
|
+
"aria-live": L.value["aria-live"] ?? "polite"
|
|
156
|
+
}, c({
|
|
157
157
|
"relative w-full max-w-sm overflow-hidden pointer-events-auto": !0,
|
|
158
158
|
"bg-white shadow-lg ring-1 ring-black/5": !0,
|
|
159
159
|
"dark:bg-dark-800 dark:border dark:border-dark-700": !0,
|
|
160
|
-
[
|
|
161
|
-
[
|
|
162
|
-
[
|
|
163
|
-
}))), Re = r(() => e(
|
|
160
|
+
[s(De.value, "base") ?? ""]: !0,
|
|
161
|
+
[Te.value]: V.value,
|
|
162
|
+
[s(R.value, "root") ?? ""]: !0
|
|
163
|
+
}))), Re = r(() => e(I.value?.icon, {}, c({
|
|
164
164
|
"w-6 h-6 shrink-0": !0,
|
|
165
|
-
[
|
|
166
|
-
[
|
|
167
|
-
}))), ze = r(() => e(
|
|
165
|
+
[s(H.value, "iconColor") ?? ""]: !0,
|
|
166
|
+
[s(R.value, "icon") ?? ""]: !0
|
|
167
|
+
}))), ze = r(() => e(I.value?.title, {}, c({
|
|
168
168
|
"font-medium": !0,
|
|
169
|
-
[
|
|
170
|
-
[
|
|
171
|
-
}))), Be = r(() => e(
|
|
169
|
+
[s(H.value, "titleColor") ?? ""]: !0,
|
|
170
|
+
[s(R.value, "title") ?? ""]: !0
|
|
171
|
+
}))), Be = r(() => e(I.value?.description, {}, c({
|
|
172
172
|
"mt-1 font-normal text-dark-500 dark:text-dark-500": !0,
|
|
173
|
-
[
|
|
174
|
-
}))), Ve = r(() => e(
|
|
175
|
-
class:
|
|
173
|
+
[s(R.value, "description") ?? ""]: !0
|
|
174
|
+
}))), Ve = r(() => e(I.value?.progress, {}, {
|
|
175
|
+
class: c({
|
|
176
176
|
"absolute bottom-0 left-0 h-0.5 w-full rounded-full": !0,
|
|
177
|
-
[
|
|
178
|
-
[
|
|
177
|
+
[s(H.value, "progressColor") ?? ""]: !0,
|
|
178
|
+
[s(R.value, "progress") ?? ""]: !0
|
|
179
179
|
}),
|
|
180
180
|
style: W.value ? {
|
|
181
181
|
transformOrigin: "left center",
|
|
182
|
-
transform: `scaleX(${
|
|
183
|
-
transition:
|
|
182
|
+
transform: `scaleX(${S.value && !y.value ? 0 : _.value})`,
|
|
183
|
+
transition: S.value && !y.value ? `transform ${w.value}ms linear` : "none"
|
|
184
184
|
} : void 0
|
|
185
185
|
}));
|
|
186
186
|
function He(t) {
|
|
187
|
-
return e(
|
|
188
|
-
|
|
189
|
-
[
|
|
190
|
-
[
|
|
187
|
+
return e(I.value?.content, {}, c({
|
|
188
|
+
"w-0 flex-1 flex flex-col justify-center": t,
|
|
189
|
+
[s(Ee.value, "content") ?? ""]: !0,
|
|
190
|
+
[s(R.value, "content") ?? ""]: !0
|
|
191
191
|
}));
|
|
192
192
|
}
|
|
193
193
|
return {
|
|
194
|
-
merged:
|
|
194
|
+
merged: P,
|
|
195
195
|
iconBind: Re,
|
|
196
|
-
rendered:
|
|
196
|
+
rendered: h,
|
|
197
197
|
panelBind: Le,
|
|
198
198
|
titleBind: ze,
|
|
199
199
|
isPortaled: G,
|
|
@@ -207,4 +207,4 @@ function f(f, we, p = {}) {
|
|
|
207
207
|
descriptionBind: Be
|
|
208
208
|
};
|
|
209
209
|
}
|
|
210
|
-
export {
|
|
210
|
+
export { p as useSnackbar };
|
|
@@ -209,7 +209,7 @@ export interface SnackbarSlots {
|
|
|
209
209
|
*/
|
|
210
210
|
title?: Slot<undefined>;
|
|
211
211
|
/**
|
|
212
|
-
* Content before the close button (e.g. compact accept action
|
|
212
|
+
* Content before the close button (e.g. a compact accept action).
|
|
213
213
|
*/
|
|
214
214
|
trailing?: Slot<undefined>;
|
|
215
215
|
}
|
|
@@ -105,7 +105,7 @@ function C(C, w, T) {
|
|
|
105
105
|
G.inputBind.value.onFocus?.(e), H(!0);
|
|
106
106
|
},
|
|
107
107
|
onKeydown: (e) => {
|
|
108
|
-
G.inputBind.value.onKeydown?.(e), e.key === "Escape" && H(!1);
|
|
108
|
+
G.inputBind.value.onKeydown?.(e), e.key === "Escape" && (A.value && e.preventDefault(), H(!1));
|
|
109
109
|
}
|
|
110
110
|
}, void 0, G.inputBind.value)), te = l(() => N.value.overlay), ne = l(() => {
|
|
111
111
|
let e = N.value.customProps?.menu;
|
|
@@ -103,7 +103,7 @@ function C(h, C, w) {
|
|
|
103
103
|
B.inputBind.value.onFocus?.(e), L(!0);
|
|
104
104
|
},
|
|
105
105
|
onKeydown: (e) => {
|
|
106
|
-
B.inputBind.value.onKeydown?.(e), e.key === "Escape" && L(!1);
|
|
106
|
+
B.inputBind.value.onKeydown?.(e), e.key === "Escape" && (O.value && e.preventDefault(), L(!1));
|
|
107
107
|
}
|
|
108
108
|
}, void 0, B.inputBind.value)), X = l(() => j.value.overlay), Z = l(() => ({
|
|
109
109
|
modal: j.value.customProps?.modal,
|
package/dist/augments.d.ts
CHANGED
|
@@ -32,6 +32,7 @@ import { ModalClasses, ModalProps } from './Components/Modal';
|
|
|
32
32
|
import { NumberFieldClasses, NumberFieldProps } from './Components/NumberField';
|
|
33
33
|
import { OtpFieldClasses, OtpFieldProps } from './Components/OtpField';
|
|
34
34
|
import { PasswordFieldClasses, PasswordFieldProps } from './Components/PasswordField';
|
|
35
|
+
import { PopoverClasses, PopoverProps } from './Components/Popover';
|
|
35
36
|
import { ProgressClasses, ProgressProps } from './Components/Progress';
|
|
36
37
|
import { RadioClasses, RadioProps } from './Components/Radio';
|
|
37
38
|
import { ResizableClasses, ResizableProps } from './Components/Resizable/resizable.types';
|
|
@@ -180,6 +181,10 @@ declare module "@bridge-ui/core/Config" {
|
|
|
180
181
|
classes: PasswordFieldClasses;
|
|
181
182
|
defaultProps: Partial<Pick<PasswordFieldProps, "size" | "color" | "rounded" | "variant" | "showErrorIcon" | "hideErrorMessage" | "showDescriptionOnError">>;
|
|
182
183
|
}
|
|
184
|
+
interface PopoverConfigOverrides {
|
|
185
|
+
classes: PopoverClasses;
|
|
186
|
+
defaultProps: Partial<Pick<PopoverProps, "arrow" | "shadow" | "rounded">>;
|
|
187
|
+
}
|
|
183
188
|
interface ProgressConfigOverrides {
|
|
184
189
|
classes: ProgressClasses;
|
|
185
190
|
defaultProps: Partial<Pick<ProgressProps, "size" | "color" | "rounded" | "variant">>;
|
package/dist/index.d.ts
CHANGED
|
@@ -110,6 +110,8 @@ export { Pagination, usePagination } from './Components/Pagination';
|
|
|
110
110
|
export type { PaginationClasses, PaginationColorOverrides, PaginationCustomProps, PaginationEmits, PaginationOwnProps, PaginationProps, PaginationRoundedOverrides, PaginationSizeOverrides, PaginationSlots, PaginationVariantOverrides, } from './Components/Pagination';
|
|
111
111
|
export { PasswordField, usePasswordField } from './Components/PasswordField';
|
|
112
112
|
export type { PasswordFieldClasses, PasswordFieldCustomProps, PasswordFieldOwnProps, PasswordFieldProps, PasswordFieldSlots, } from './Components/PasswordField';
|
|
113
|
+
export { Popover, usePopover } from './Components/Popover';
|
|
114
|
+
export type { PopoverClasses, PopoverCustomProps, PopoverEmits, PopoverOptions, PopoverOwnProps, PopoverProps, PopoverRoundedOverrides, PopoverShadowOverrides, PopoverSlots, } from './Components/Popover';
|
|
113
115
|
export { Progress, useProgress } from './Components/Progress';
|
|
114
116
|
export type { ProgressClasses, ProgressColorOverrides, ProgressCustomProps, ProgressOwnProps, ProgressProps, ProgressRoundedOverrides, ProgressSizeOverrides, ProgressVariantOverrides, } from './Components/Progress';
|
|
115
117
|
export { Radio, useRadio } from './Components/Radio';
|
package/dist/index.js
CHANGED
|
@@ -117,79 +117,81 @@ import { usePagination as ft } from "./Components/Pagination/composables/usePagi
|
|
|
117
117
|
import pt from "./Components/Pagination/Pagination.js";
|
|
118
118
|
import { usePasswordField as mt } from "./Components/PasswordField/composables/usePasswordField.js";
|
|
119
119
|
import ht from "./Components/PasswordField/PasswordField.js";
|
|
120
|
-
import {
|
|
121
|
-
import _t from "./Components/
|
|
122
|
-
import vt from "./
|
|
123
|
-
import
|
|
124
|
-
import
|
|
125
|
-
import xt from "./
|
|
126
|
-
import {
|
|
127
|
-
import
|
|
128
|
-
import wt from "./Components/Resizable/
|
|
129
|
-
import {
|
|
130
|
-
import Et from "./Components/
|
|
131
|
-
import {
|
|
132
|
-
import Ot from "./Components/
|
|
133
|
-
import kt from "./Components/
|
|
134
|
-
import At from "./Components/
|
|
135
|
-
import
|
|
136
|
-
import
|
|
137
|
-
import {
|
|
138
|
-
import {
|
|
139
|
-
import {
|
|
140
|
-
import {
|
|
141
|
-
import {
|
|
142
|
-
import Rt from "./Components/Sidebar/
|
|
143
|
-
import zt from "./Components/Sidebar/
|
|
144
|
-
import Bt from "./Components/Sidebar/
|
|
145
|
-
import
|
|
146
|
-
import Ht from "./Components/
|
|
147
|
-
import Ut from "./Components/
|
|
148
|
-
import Wt from "./Components/
|
|
149
|
-
import Gt from "./Components/Sidebar/
|
|
150
|
-
import
|
|
151
|
-
import qt from "./Components/
|
|
152
|
-
import {
|
|
153
|
-
import Yt from "./Components/
|
|
154
|
-
import {
|
|
155
|
-
import Zt from "./Components/
|
|
156
|
-
import {
|
|
157
|
-
import $t from "./Components/
|
|
158
|
-
import {
|
|
159
|
-
import tn from "./Components/
|
|
160
|
-
import {
|
|
161
|
-
import rn from "./Components/
|
|
162
|
-
import {
|
|
163
|
-
import on from "./Components/
|
|
164
|
-
import {
|
|
165
|
-
import
|
|
166
|
-
import ln from "./Components/
|
|
167
|
-
import {
|
|
168
|
-
import dn from "./Components/
|
|
169
|
-
import {
|
|
170
|
-
import pn from "./Components/
|
|
171
|
-
import {
|
|
172
|
-
import hn from "./Components/
|
|
173
|
-
import {
|
|
174
|
-
import _n from "./Components/
|
|
175
|
-
import {
|
|
176
|
-
import yn from "./Components/
|
|
177
|
-
import {
|
|
178
|
-
import xn from "./Components/
|
|
179
|
-
import {
|
|
180
|
-
import
|
|
181
|
-
import wn from "./Components/
|
|
182
|
-
import Tn from "./Components/
|
|
183
|
-
import
|
|
184
|
-
import
|
|
185
|
-
import On from "./Components/
|
|
186
|
-
import kn from "./Components/
|
|
187
|
-
import
|
|
188
|
-
import
|
|
189
|
-
import Mn from "./Components/ToggleGroup/
|
|
190
|
-
import {
|
|
191
|
-
import Pn from "./Components/
|
|
192
|
-
import {
|
|
193
|
-
import
|
|
194
|
-
import {
|
|
195
|
-
|
|
120
|
+
import { usePopover as gt } from "./Components/Popover/composables/usePopover.js";
|
|
121
|
+
import _t from "./Components/Popover/Popover.js";
|
|
122
|
+
import { useRadio as vt } from "./Components/Radio/composables/useRadio.js";
|
|
123
|
+
import yt from "./Components/Radio/Radio.js";
|
|
124
|
+
import bt from "./Provider/BridgeUIProvider.js";
|
|
125
|
+
import { createBridgeUI as xt } from "./Provider/createBridgeUI.js";
|
|
126
|
+
import { useRating as St } from "./Components/Rating/composables/useRating.js";
|
|
127
|
+
import Ct from "./Components/Rating/Rating.js";
|
|
128
|
+
import { RESIZABLE_INJECTION_KEY as wt } from "./Components/Resizable/resizableInjectionKey.js";
|
|
129
|
+
import { useResizable as Tt } from "./Components/Resizable/composables/useResizable.js";
|
|
130
|
+
import Et from "./Components/Resizable/Resizable.js";
|
|
131
|
+
import { useResizableHandle as Dt } from "./Components/ResizableHandle/composables/useResizableHandle.js";
|
|
132
|
+
import Ot from "./Components/ResizableHandle/ResizableHandle.js";
|
|
133
|
+
import { useResizablePanel as kt } from "./Components/ResizablePanel/composables/useResizablePanel.js";
|
|
134
|
+
import At from "./Components/ResizablePanel/ResizablePanel.js";
|
|
135
|
+
import jt from "./Components/Select/Select.js";
|
|
136
|
+
import Mt from "./Components/Select/SelectOption.js";
|
|
137
|
+
import { useSidebar as Nt } from "./Components/Sidebar/composables/useSidebar.js";
|
|
138
|
+
import { useSidebarInset as Pt } from "./Components/Sidebar/composables/useSidebarInset.js";
|
|
139
|
+
import { useSidebarList as Ft } from "./Components/Sidebar/composables/useSidebarList.js";
|
|
140
|
+
import { useSidebarListItem as It } from "./Components/Sidebar/composables/useSidebarListItem.js";
|
|
141
|
+
import { useSidebarProvider as Lt } from "./Components/Sidebar/composables/useSidebarProvider.js";
|
|
142
|
+
import { useSidebarShell as Rt } from "./Components/Sidebar/composables/useSidebarShell.js";
|
|
143
|
+
import { useSidebarTrigger as zt } from "./Components/Sidebar/composables/useSidebarTrigger.js";
|
|
144
|
+
import Bt from "./Components/Sidebar/Sidebar.js";
|
|
145
|
+
import Vt from "./Components/Sidebar/SidebarInset.js";
|
|
146
|
+
import Ht from "./Components/Sidebar/SidebarList.js";
|
|
147
|
+
import { useTooltip as Ut } from "./Components/Tooltip/composables/useTooltip.js";
|
|
148
|
+
import Wt from "./Components/Tooltip/Tooltip.js";
|
|
149
|
+
import Gt from "./Components/Sidebar/SidebarListItem.js";
|
|
150
|
+
import Kt from "./Components/Sidebar/SidebarProvider.js";
|
|
151
|
+
import qt from "./Components/Sidebar/SidebarTrigger.js";
|
|
152
|
+
import { useSkeleton as Jt } from "./Components/Skeleton/composables/useSkeleton.js";
|
|
153
|
+
import Yt from "./Components/Skeleton/Skeleton.js";
|
|
154
|
+
import { useSlider as Xt } from "./Components/Slider/composables/useSlider.js";
|
|
155
|
+
import Zt from "./Components/Slider/Slider.js";
|
|
156
|
+
import { useSnackbar as Qt } from "./Components/Snackbar/composables/useSnackbar.js";
|
|
157
|
+
import $t from "./Components/Snackbar/Snackbar.js";
|
|
158
|
+
import { useSpinner as en } from "./Components/Spinner/composables/useSpinner.js";
|
|
159
|
+
import tn from "./Components/Spinner/Spinner.js";
|
|
160
|
+
import { useStep as nn } from "./Components/Step/composables/useStep.js";
|
|
161
|
+
import rn from "./Components/Step/Step.js";
|
|
162
|
+
import { useStepper as an } from "./Components/Stepper/composables/useStepper.js";
|
|
163
|
+
import on from "./Components/Stepper/Stepper.js";
|
|
164
|
+
import { useSwitch as sn } from "./Components/Switch/composables/useSwitch.js";
|
|
165
|
+
import cn from "./Components/Switch/Switch.js";
|
|
166
|
+
import { TABS_INJECTION_KEY as ln } from "./Components/Tabs/tabsInjectionKey.js";
|
|
167
|
+
import { useTab as un } from "./Components/Tab/composables/useTab.js";
|
|
168
|
+
import dn from "./Components/Tab/Tab.js";
|
|
169
|
+
import { useTabItem as fn } from "./Components/TabItem/composables/useTabItem.js";
|
|
170
|
+
import pn from "./Components/TabItem/TabItem.js";
|
|
171
|
+
import { useTabList as mn } from "./Components/TabList/composables/useTabList.js";
|
|
172
|
+
import hn from "./Components/TabList/TabList.js";
|
|
173
|
+
import { useTabPanel as gn } from "./Components/TabPanel/composables/useTabPanel.js";
|
|
174
|
+
import _n from "./Components/TabPanel/TabPanel.js";
|
|
175
|
+
import { useTabs as vn } from "./Components/Tabs/composables/useTabs.js";
|
|
176
|
+
import yn from "./Components/Tabs/Tabs.js";
|
|
177
|
+
import { useTextarea as bn } from "./Components/Textarea/composables/useTextarea.js";
|
|
178
|
+
import xn from "./Components/Textarea/Textarea.js";
|
|
179
|
+
import { useTextField as Sn } from "./Components/TextField/composables/useTextField.js";
|
|
180
|
+
import Cn from "./Components/TextField/TextField.js";
|
|
181
|
+
import { useTimeField as wn } from "./Components/TimeField/composables/useTimeField.js";
|
|
182
|
+
import { useTimePicker as Tn } from "./Components/TimePicker/composables/useTimePicker.js";
|
|
183
|
+
import En from "./Components/TimePicker/TimePicker.js";
|
|
184
|
+
import Dn from "./Components/TimeField/TimeField.js";
|
|
185
|
+
import { useTimeRangeField as On } from "./Components/TimeRangeField/composables/useTimeRangeField.js";
|
|
186
|
+
import { useTimeRangePicker as kn } from "./Components/TimeRangePicker/composables/useTimeRangePicker.js";
|
|
187
|
+
import An from "./Components/TimeRangePicker/TimeRangePicker.js";
|
|
188
|
+
import jn from "./Components/TimeRangeField/TimeRangeField.js";
|
|
189
|
+
import { TOGGLE_GROUP_INJECTION_KEY as Mn } from "./Components/ToggleGroup/toggleGroupInjectionKey.js";
|
|
190
|
+
import { useToggleGroup as Nn } from "./Components/ToggleGroup/composables/useToggleGroup.js";
|
|
191
|
+
import Pn from "./Components/ToggleGroup/ToggleGroup.js";
|
|
192
|
+
import { useToggleItem as Fn } from "./Components/ToggleItem/composables/useToggleItem.js";
|
|
193
|
+
import In from "./Components/ToggleItem/ToggleItem.js";
|
|
194
|
+
import { SEMANTIC_ICON_NAMES as Ln, interpolateMessage as Rn, resolveMessage as zn, selectPluralMessage as Bn } from "@bridge-ui/core/Adapters";
|
|
195
|
+
import { cn as Vn } from "@bridge-ui/core/Utils";
|
|
196
|
+
import { BRIDGE_UI_DEFAULT_GLOBAL as Hn, mergeBridgeUIComponents as Un, mergeBridgeUIGlobal as Wn, resolveBridgeUIOptions as Gn } from "@bridge-ui/core/Config";
|
|
197
|
+
export { c as ACCORDION_INJECTION_KEY, p as Accordion, g as AccordionItem, x as ActionFooter, T as Alert, Y as Autocomplete, X as AutocompleteOption, Z as Avatar, Hn as BRIDGE_UI_DEFAULT_GLOBAL, v as BUTTON_GROUP_INJECTION_KEY, $ as Badge, ee as BaseField, ae as Breadcrumb, ie as BreadcrumbItem, bt as BridgeUIProvider, b as Button, se as ButtonGroup, he as Calendar, ue as CalendarDate, fe as CalendarMonth, ye as CalendarRange, me as CalendarYear, xe as Card, Ce as Carousel, Te as CarouselSlide, ke as Checkbox, k as Chip, Ne as ColorField, Me as ColorPicker, Le as DateField, Ie as DatePicker, Ve as DateRangeField, Be as DateRangePicker, qe as DateTimeField, Ke as DateTimePicker, Ze as DateTimeRangeField, Xe as DateTimeRangePicker, ve as Divider, I as Drawer, $e as EmptyState, V as FieldOverlay, rt as FileUpload, nt as FileUploadItem, De as FormControl, M as FormField, at as Heading, h as Icon, j as Label, st as Link, U as List, W as ListItem, G as ListSection, J as Listbox, R as Menu, B as Modal, lt as NumberField, dt as OtpField, pt as Pagination, ht as PasswordField, _t as Popover, q as Progress, wt as RESIZABLE_INJECTION_KEY, yt as Radio, Ct as Rating, Et as Resizable, Ot as ResizableHandle, At as ResizablePanel, Ln as SEMANTIC_ICON_NAMES, jt as Select, Mt as SelectOption, Bt as Sidebar, Vt as SidebarInset, Ht as SidebarList, Gt as SidebarListItem, Kt as SidebarProvider, qt as SidebarTrigger, Yt as Skeleton, Zt as Slider, $t as Snackbar, tn as Spinner, rn as Step, on as Stepper, cn as Switch, ln as TABS_INJECTION_KEY, Mn as TOGGLE_GROUP_INJECTION_KEY, dn as Tab, pn as TabItem, hn as TabList, _n as TabPanel, yn as Tabs, w as Text, Cn as TextField, xn as Textarea, Dn as TimeField, Ge as TimePanel, En as TimePicker, jn as TimeRangeField, An as TimeRangePicker, Pn as ToggleGroup, In as ToggleItem, Wt as Tooltip, Vn as cn, xt as createBridgeUI, Rn as interpolateMessage, Un as mergeBridgeUIComponents, Wn as mergeBridgeUIGlobal, Gn as resolveBridgeUIOptions, zn as resolveMessage, Bn as selectPluralMessage, t as setDateAdapterForTests, r as setI18nAdapterForTests, o as setIconAdapterForTests, f as useAccordion, m as useAccordionItem, _ as useActionFooter, S as useAlert, Q as useBadge, te as useBaseField, ne as useBreadcrumb, re as useBreadcrumbItem, l as useBreakpoint, e as useBridgeUI, u as useBridgeUIComponent, d as useBridgeUIMergedRegistryClasses, y as useButton, oe as useButtonGroup, ce as useCalendar, le as useCalendarDate, de as useCalendarMonth, ge as useCalendarRange, pe as useCalendarYear, be as useCard, Se as useCarousel, we as useCarouselSlide, Oe as useCheckbox, O as useChip, Ae as useColorField, je as useColorPicker, n as useDateAdapter, Pe as useDateField, Fe as useDatePicker, Re as useDateRangeField, ze as useDateRangePicker, He as useDateTimeField, Ue as useDateTimePicker, Je as useDateTimeRangeField, Ye as useDateTimeRangePicker, _e as useDivider, F as useDrawer, Qe as useEmptyState, P as useFieldOverlay, et as useFileUpload, tt as useFileUploadItem, Ee as useFormControl, E as useFormField, it as useHeading, i as useI18nAdapter, s as useIconAdapter, A as useLabel, ot as useLink, H as useList, N as useListbox, D as useListboxNavigation, L as useMenu, z as useModal, ct as useNumberField, ut as useOtpField, ft as usePagination, mt as usePasswordField, gt as usePopover, K as useProgress, vt as useRadio, St as useRating, Tt as useResizable, Dt as useResizableHandle, kt as useResizablePanel, a as useResolveMessage, Nt as useSidebar, Pt as useSidebarInset, Ft as useSidebarList, It as useSidebarListItem, Lt as useSidebarProvider, Rt as useSidebarShell, zt as useSidebarTrigger, Jt as useSkeleton, Xt as useSlider, Qt as useSnackbar, en as useSpinner, nn as useStep, an as useStepper, sn as useSwitch, un as useTab, fn as useTabItem, mn as useTabList, gn as useTabPanel, vn as useTabs, C as useText, Sn as useTextField, bn as useTextarea, wn as useTimeField, We as useTimePanel, Tn as useTimePicker, On as useTimeRangeField, kn as useTimeRangePicker, Nn as useToggleGroup, Fn as useToggleItem, Ut as useTooltip };
|
package/docs/README.md
CHANGED
|
@@ -58,6 +58,7 @@ Component reference for **Vue**. This folder ships with the npm package.
|
|
|
58
58
|
- [OtpField](./components/OtpField.md)
|
|
59
59
|
- [Pagination](./components/Pagination.md)
|
|
60
60
|
- [PasswordField](./components/PasswordField.md)
|
|
61
|
+
- [Popover](./components/Popover.md)
|
|
61
62
|
- [Progress](./components/Progress.md)
|
|
62
63
|
- [Radio](./components/Radio.md)
|
|
63
64
|
- [Rating](./components/Rating.md)
|
package/docs/components/Menu.md
CHANGED
|
@@ -58,6 +58,10 @@ import { Menu } from "@bridge-ui/vue/Components/Menu";
|
|
|
58
58
|
</Menu>
|
|
59
59
|
```
|
|
60
60
|
|
|
61
|
+
Without a `trigger` slot no root element renders, so extra attributes are not applied: use `classes.content` / `customProps.content` to style or tag the menu panel.
|
|
62
|
+
|
|
63
|
+
Put an external button that toggles the menu inside the `anchorEl` element: pressing it then closes the menu instead of closing and reopening it.
|
|
64
|
+
|
|
61
65
|
## Props
|
|
62
66
|
|
|
63
67
|
| Prop | Type | Default | Description |
|