@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
|
@@ -4,38 +4,38 @@ import { computed as i, onScopeDispose as a, provide as o, ref as s, useAttrs as
|
|
|
4
4
|
import { get as d, isEqual as f } from "es-toolkit/compat";
|
|
5
5
|
import { getResizableCursor as p, getResizableHandleAria as m, getResizableItemIndexes as h, getResizableLayoutFromKey as g, getResizablePointerDelta as _, isResizablePanelCollapsed as v, resizeResizableLayout as y, resizeResizablePanel as b, resolveResizableLayout as x, resolveResizablePanelConstraints as S, sortResizableItemsByDocumentOrder as ee } from "@bridge-ui/core/Domain";
|
|
6
6
|
import { resizableOrientationProps as te } from "@bridge-ui/core/Tokens";
|
|
7
|
-
import { cn as ne, mergeBridgeUILayeredClasses as C, splitComponentProps as
|
|
7
|
+
import { cn as ne, mergeBridgeUILayeredClasses as C, splitComponentProps as re } from "@bridge-ui/core/Utils";
|
|
8
8
|
// src/Components/Resizable/composables/useResizable.ts
|
|
9
|
-
var
|
|
9
|
+
var ie = [
|
|
10
10
|
"classes",
|
|
11
11
|
"disabled",
|
|
12
12
|
"orientation",
|
|
13
13
|
"keyboardStep"
|
|
14
14
|
];
|
|
15
|
-
function
|
|
15
|
+
function w(e) {
|
|
16
16
|
return e ? getComputedStyle(e).direction === "rtl" : !1;
|
|
17
17
|
}
|
|
18
|
-
function
|
|
19
|
-
let O =
|
|
18
|
+
function T(T, E, D) {
|
|
19
|
+
let O = l(), k = c(), A = `bridge-resizable${O}`, j = s([]), M = s(null), N = s({}), P = s(null), F = {}, I = /* @__PURE__ */ new Map(), L = /* @__PURE__ */ new Map(), R = null, z = i(() => re({
|
|
20
20
|
props: {
|
|
21
|
-
...
|
|
22
|
-
...
|
|
21
|
+
...k,
|
|
22
|
+
...T
|
|
23
23
|
},
|
|
24
|
-
bridgeKeys:
|
|
25
|
-
})), { merged:
|
|
26
|
-
libDefaults:
|
|
24
|
+
bridgeKeys: ie
|
|
25
|
+
})), { merged: B, entry: V } = t({
|
|
26
|
+
libDefaults: E,
|
|
27
27
|
componentName: "Resizable",
|
|
28
|
-
props: () =>
|
|
29
|
-
}),
|
|
30
|
-
entry:
|
|
31
|
-
props: () =>
|
|
32
|
-
}),
|
|
33
|
-
function
|
|
34
|
-
let e = [...Array.from(
|
|
28
|
+
props: () => z.value.componentProps
|
|
29
|
+
}), H = n({
|
|
30
|
+
entry: V,
|
|
31
|
+
props: () => z.value.componentProps
|
|
32
|
+
}), U = i(() => C(te, V.value?.tokens?.orientation)), W = i(() => B.value.orientation === "vertical" ? "vertical" : "horizontal"), G = i(() => d(U.value, W.value)), K = i(() => h(j.value)), q = i(() => K.value.panelIds);
|
|
33
|
+
function J() {
|
|
34
|
+
let e = [...Array.from(I, ([e, t]) => ({
|
|
35
35
|
id: e,
|
|
36
36
|
kind: "panel",
|
|
37
37
|
element: t().element
|
|
38
|
-
})), ...Array.from(
|
|
38
|
+
})), ...Array.from(L, ([e, t]) => ({
|
|
39
39
|
id: e,
|
|
40
40
|
kind: "handle",
|
|
41
41
|
element: t().element
|
|
@@ -45,49 +45,49 @@ function D(D, re, ie) {
|
|
|
45
45
|
}));
|
|
46
46
|
f(j.value, t) || (j.value = t);
|
|
47
47
|
}
|
|
48
|
-
function
|
|
49
|
-
return
|
|
50
|
-
|
|
48
|
+
function ae(e, t) {
|
|
49
|
+
return I.set(e, t), J(), () => {
|
|
50
|
+
I.delete(e), J();
|
|
51
51
|
};
|
|
52
52
|
}
|
|
53
|
-
function
|
|
54
|
-
return
|
|
55
|
-
|
|
53
|
+
function oe(e, t) {
|
|
54
|
+
return L.set(e, t), J(), () => {
|
|
55
|
+
L.delete(e), J();
|
|
56
56
|
};
|
|
57
57
|
}
|
|
58
58
|
function Y(e) {
|
|
59
|
-
return e.map((e) =>
|
|
59
|
+
return e.map((e) => I.get(e)?.().constraints ?? {});
|
|
60
60
|
}
|
|
61
61
|
function X(e) {
|
|
62
|
-
return e.map((e) =>
|
|
62
|
+
return e.map((e) => N.value[e] ?? 0);
|
|
63
63
|
}
|
|
64
|
-
u(
|
|
64
|
+
u(q, (e) => {
|
|
65
65
|
let t = e.map((e) => {
|
|
66
|
-
let t =
|
|
66
|
+
let t = I.get(e)?.(), n = t?.constraints ?? {};
|
|
67
67
|
return t?.collapsed && n.collapsible ? {
|
|
68
68
|
...n,
|
|
69
69
|
defaultSize: n.collapsedSize ?? 0
|
|
70
70
|
} : n;
|
|
71
|
-
}), n = x(t, e.map((e) =>
|
|
72
|
-
f(
|
|
71
|
+
}), n = x(t, e.map((e) => N.value[e])), r = Object.fromEntries(e.map((e, t) => [e, n[t] ?? 0]));
|
|
72
|
+
f(N.value, r) || (N.value = r);
|
|
73
73
|
});
|
|
74
74
|
function Z(e, t) {
|
|
75
|
-
let n =
|
|
75
|
+
let n = q.value, r = N.value, i = Y(n), a = !1;
|
|
76
76
|
n.forEach((n, o) => {
|
|
77
77
|
let s = r[n], c = e[o] ?? 0, l = t?.[o] ?? s;
|
|
78
|
-
(s === void 0 || Math.abs(s - c) > 1e-6) && (a = !0), l !== void 0 && !v(i[o], l) && v(i[o], c) && (
|
|
79
|
-
}), a && (
|
|
78
|
+
(s === void 0 || Math.abs(s - c) > 1e-6) && (a = !0), l !== void 0 && !v(i[o], l) && v(i[o], c) && (F[n] = l);
|
|
79
|
+
}), a && (N.value = Object.fromEntries(n.map((t, n) => [t, e[n] ?? 0])), D?.("layoutChange", e));
|
|
80
80
|
}
|
|
81
81
|
function Q(e) {
|
|
82
|
-
let t =
|
|
83
|
-
return t === void 0 || t < 0 || t >=
|
|
82
|
+
let t = K.value.handleIndexes[e];
|
|
83
|
+
return t === void 0 || t < 0 || t >= q.value.length - 1 ? null : t;
|
|
84
84
|
}
|
|
85
|
-
function
|
|
86
|
-
let n =
|
|
85
|
+
function $(e, t) {
|
|
86
|
+
let n = M.value, r = Q(e);
|
|
87
87
|
if (!n || r === null) return;
|
|
88
|
-
|
|
89
|
-
let i =
|
|
90
|
-
m.style.userSelect = "none", m.style.cursor = p(a),
|
|
88
|
+
R?.();
|
|
89
|
+
let i = q.value, a = W.value, o = a === "vertical", s = n.getBoundingClientRect(), c = w(n), l = X(i), u = Y(i), d = o ? t.clientY : t.clientX, f = o ? s.height : s.width, m = document.body, h = m.style.cursor, g = m.style.userSelect;
|
|
90
|
+
m.style.userSelect = "none", m.style.cursor = p(a), P.value = e;
|
|
91
91
|
let v = (e) => {
|
|
92
92
|
let t = _({
|
|
93
93
|
rtl: c,
|
|
@@ -103,30 +103,30 @@ function D(D, re, ie) {
|
|
|
103
103
|
panels: u
|
|
104
104
|
}), l);
|
|
105
105
|
}, b = () => {
|
|
106
|
-
window.removeEventListener("pointermove", v), window.removeEventListener("pointerup", b), window.removeEventListener("pointercancel", b), m.style.cursor = h, m.style.userSelect = g,
|
|
106
|
+
window.removeEventListener("pointermove", v), window.removeEventListener("pointerup", b), window.removeEventListener("pointercancel", b), m.style.cursor = h, m.style.userSelect = g, R = null, P.value = null;
|
|
107
107
|
};
|
|
108
|
-
window.addEventListener("pointermove", v), window.addEventListener("pointerup", b), window.addEventListener("pointercancel", b),
|
|
108
|
+
window.addEventListener("pointermove", v), window.addEventListener("pointerup", b), window.addEventListener("pointercancel", b), R = b;
|
|
109
109
|
}
|
|
110
110
|
a(() => {
|
|
111
|
-
|
|
111
|
+
R?.();
|
|
112
112
|
});
|
|
113
|
-
function
|
|
113
|
+
function se(e, t) {
|
|
114
114
|
let n = Q(e);
|
|
115
115
|
if (n === null) return !1;
|
|
116
|
-
let r =
|
|
116
|
+
let r = q.value, i = r[n] ?? "", a = g({
|
|
117
117
|
key: t,
|
|
118
118
|
handleIndex: n,
|
|
119
119
|
layout: X(r),
|
|
120
|
-
rtl:
|
|
120
|
+
rtl: w(M.value),
|
|
121
121
|
panels: Y(r),
|
|
122
|
-
orientation:
|
|
123
|
-
expandedSize:
|
|
124
|
-
step:
|
|
122
|
+
orientation: W.value,
|
|
123
|
+
expandedSize: F[i],
|
|
124
|
+
step: B.value.keyboardStep
|
|
125
125
|
});
|
|
126
126
|
return a ? (Z(a), !0) : !1;
|
|
127
127
|
}
|
|
128
|
-
function
|
|
129
|
-
let t =
|
|
128
|
+
function ce(e) {
|
|
129
|
+
let t = q.value, n = t.indexOf(e), r = Y(t), i = r[n];
|
|
130
130
|
if (n < 0 || !i?.collapsible) return;
|
|
131
131
|
let a = X(t);
|
|
132
132
|
v(i, a[n]) || Z(b({
|
|
@@ -136,10 +136,10 @@ function D(D, re, ie) {
|
|
|
136
136
|
size: S(i).collapsedSize
|
|
137
137
|
}));
|
|
138
138
|
}
|
|
139
|
-
function
|
|
140
|
-
let t =
|
|
139
|
+
function le(e) {
|
|
140
|
+
let t = q.value, n = t.indexOf(e), r = Y(t), i = r[n], a = X(t);
|
|
141
141
|
if (n < 0 || !v(i, a[n])) return;
|
|
142
|
-
let { minSize: o } = S(i), s =
|
|
142
|
+
let { minSize: o } = S(i), s = F[e] ?? i?.defaultSize ?? 100 / Math.max(t.length, 1);
|
|
143
143
|
Z(b({
|
|
144
144
|
index: n,
|
|
145
145
|
layout: a,
|
|
@@ -147,48 +147,48 @@ function D(D, re, ie) {
|
|
|
147
147
|
size: Math.max(o, s)
|
|
148
148
|
}));
|
|
149
149
|
}
|
|
150
|
-
function
|
|
150
|
+
function ue(e) {
|
|
151
151
|
let t = Q(e);
|
|
152
152
|
if (t === null) return null;
|
|
153
|
-
let n =
|
|
153
|
+
let n = q.value, r = n[t] ?? "";
|
|
154
154
|
return {
|
|
155
155
|
index: t,
|
|
156
|
-
controls:
|
|
156
|
+
controls: I.get(r)?.().elementId,
|
|
157
157
|
aria: m(X(n), Y(n), t)
|
|
158
158
|
};
|
|
159
159
|
}
|
|
160
|
-
let
|
|
161
|
-
startDrag:
|
|
162
|
-
expandPanel:
|
|
163
|
-
id:
|
|
164
|
-
collapsePanel:
|
|
165
|
-
registerPanel:
|
|
166
|
-
resizeFromKey:
|
|
167
|
-
getHandleState:
|
|
168
|
-
registerHandle:
|
|
169
|
-
layout:
|
|
170
|
-
orientation:
|
|
171
|
-
orientationItem:
|
|
172
|
-
draggingHandleId:
|
|
173
|
-
disabled:
|
|
160
|
+
let de = i(() => ({
|
|
161
|
+
startDrag: $,
|
|
162
|
+
expandPanel: le,
|
|
163
|
+
id: A,
|
|
164
|
+
collapsePanel: ce,
|
|
165
|
+
registerPanel: ae,
|
|
166
|
+
resizeFromKey: se,
|
|
167
|
+
getHandleState: ue,
|
|
168
|
+
registerHandle: oe,
|
|
169
|
+
layout: N.value,
|
|
170
|
+
orientation: W.value,
|
|
171
|
+
orientationItem: G.value,
|
|
172
|
+
draggingHandleId: P.value,
|
|
173
|
+
disabled: B.value.disabled === !0
|
|
174
174
|
}));
|
|
175
|
-
o(r,
|
|
176
|
-
let
|
|
177
|
-
id:
|
|
178
|
-
"data-orientation":
|
|
179
|
-
"data-dragging":
|
|
175
|
+
o(r, de);
|
|
176
|
+
let fe = i(() => e({}, z.value.inheritedAttrs, {
|
|
177
|
+
id: A,
|
|
178
|
+
"data-orientation": W.value,
|
|
179
|
+
"data-dragging": P.value ? "" : void 0,
|
|
180
180
|
class: ne({
|
|
181
|
-
[d(
|
|
182
|
-
[d(
|
|
181
|
+
[d(G.value, "root") ?? ""]: !0,
|
|
182
|
+
[d(H.value, "root") ?? ""]: !0
|
|
183
183
|
})
|
|
184
184
|
}));
|
|
185
185
|
return {
|
|
186
|
-
layout:
|
|
187
|
-
rootRef:
|
|
188
|
-
dragging: i(() =>
|
|
189
|
-
panelIds:
|
|
190
|
-
rootBind:
|
|
191
|
-
orientation:
|
|
186
|
+
layout: N,
|
|
187
|
+
rootRef: M,
|
|
188
|
+
dragging: i(() => P.value !== null),
|
|
189
|
+
panelIds: q,
|
|
190
|
+
rootBind: fe,
|
|
191
|
+
orientation: W
|
|
192
192
|
};
|
|
193
193
|
}
|
|
194
|
-
export {
|
|
194
|
+
export { T as useResizable };
|
|
@@ -17,8 +17,8 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {}, {
|
|
|
17
17
|
"onLeave-complete"?: (() => any) | undefined;
|
|
18
18
|
}>, {
|
|
19
19
|
teleportTo: false | string;
|
|
20
|
-
progressbar: boolean;
|
|
21
20
|
position: import('@bridge-ui/core/Utils').MergeProps<import('@bridge-ui/core/Tokens').SnackbarPosition, import('./snackbar.types').SnackbarPositionOverrides>;
|
|
21
|
+
progressbar: boolean;
|
|
22
22
|
closeButton: boolean;
|
|
23
23
|
duration: false | number;
|
|
24
24
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
@@ -5,7 +5,7 @@ import { useSnackbar as r } from "./composables/useSnackbar.js";
|
|
|
5
5
|
import { Teleport as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createTextVNode as u, createVNode as d, defineComponent as f, guardReactiveProps as p, mergeModels as m, mergeProps as h, normalizeClass as g, normalizeProps as _, openBlock as v, renderSlot as y, toDisplayString as b, unref as x, useModel as S, useSlots as ee, withCtx as C } from "vue";
|
|
6
6
|
import { cn as w } from "@bridge-ui/core/Utils";
|
|
7
7
|
// src/Components/Snackbar/Snackbar.vue?vue&type=script&setup=true&lang.ts
|
|
8
|
-
var T = { class: "w-full max-w-sm pointer-events-auto" }, E = ["src"], D = { class: "flex ml-4 shrink-0" }, O = ["aria-label"], k = ["src"], A = { class: "flex ml-4 shrink-0" }, j = ["aria-label"], M = /*@__PURE__*/ f({
|
|
8
|
+
var T = { class: "w-full max-w-sm pointer-events-auto" }, E = ["src"], D = { class: "flex items-center ml-4 shrink-0" }, O = ["aria-label"], k = ["src"], A = { class: "flex items-center ml-4 shrink-0" }, j = ["aria-label"], M = /*@__PURE__*/ f({
|
|
9
9
|
inheritAttrs: !1,
|
|
10
10
|
__name: "Snackbar",
|
|
11
11
|
props: /*@__PURE__*/ m({
|
|
@@ -72,14 +72,15 @@ var T = { class: "w-full max-w-sm pointer-events-auto" }, E = ["src"], D = { cla
|
|
|
72
72
|
to: ne.value
|
|
73
73
|
}, [l("div", _(p(x(te))), [l("div", T, [l("div", h({ ref: x(W) }, x(B), { class: x(w)(x(B).class, { flex: $.value }) }), [
|
|
74
74
|
l("div", _(p(x(U)($.value))), [l("div", { class: g({
|
|
75
|
-
"flex
|
|
76
|
-
"
|
|
75
|
+
"w-full flex": $.value,
|
|
76
|
+
"flex items-start": !$.value && !x(M).trailing,
|
|
77
|
+
"flex items-center": !$.value && !!x(M).trailing
|
|
77
78
|
}) }, [
|
|
78
79
|
X.value ? (v(), c("div", {
|
|
79
80
|
key: 0,
|
|
80
81
|
class: g(["shrink-0", {
|
|
81
|
-
"
|
|
82
|
-
"
|
|
82
|
+
"pt-0.5": !!x(L).img,
|
|
83
|
+
"w-6": !!x(M).icon || !x(L).img && !!x(q)
|
|
83
84
|
}])
|
|
84
85
|
}, [
|
|
85
86
|
y(e.$slots, "icon"),
|
|
@@ -87,7 +88,7 @@ var T = { class: "w-full max-w-sm pointer-events-auto" }, E = ["src"], D = { cla
|
|
|
87
88
|
key: 0,
|
|
88
89
|
alt: "",
|
|
89
90
|
src: x(L).img,
|
|
90
|
-
class: "w-10 h-10 rounded-full"
|
|
91
|
+
class: "w-10 h-10 rounded-full object-cover"
|
|
91
92
|
}, null, 8, E)) : s("", !0),
|
|
92
93
|
!x(M).icon && !x(L).img && x(q) ? (v(), o(x(t), h({ key: 1 }, x(z), { icon: x(q) }), null, 16, ["icon"])) : s("", !0)
|
|
93
94
|
], 2)) : s("", !0),
|
|
@@ -106,11 +107,7 @@ var T = { class: "w-full max-w-sm pointer-events-auto" }, E = ["src"], D = { cla
|
|
|
106
107
|
default: C(() => [y(e.$slots, "description", {}, () => [u(b(x(L).description), 1)])]),
|
|
107
108
|
_: 3
|
|
108
109
|
}, 16)) : s("", !0),
|
|
109
|
-
y(e.$slots, "default")
|
|
110
|
-
x(M).actions ? (v(), c("div", {
|
|
111
|
-
key: 2,
|
|
112
|
-
class: g(["flex mt-3 gap-x-3", x(L).classes?.actions])
|
|
113
|
-
}, [y(e.$slots, "actions")], 2)) : s("", !0)
|
|
110
|
+
y(e.$slots, "default")
|
|
114
111
|
], 2),
|
|
115
112
|
l("div", D, [y(e.$slots, "trailing"), x(L).closeButton === !1 ? s("", !0) : (v(), c("button", {
|
|
116
113
|
key: 0,
|
|
@@ -122,7 +119,10 @@ var T = { class: "w-full max-w-sm pointer-events-auto" }, E = ["src"], D = { cla
|
|
|
122
119
|
size: "lg",
|
|
123
120
|
icon: "clear"
|
|
124
121
|
})], 8, O))])
|
|
125
|
-
], 2)
|
|
122
|
+
], 2), x(M).actions ? (v(), c("div", {
|
|
123
|
+
key: 0,
|
|
124
|
+
class: g(["flex mt-3 gap-x-3", x(L).classes?.actions])
|
|
125
|
+
}, [y(e.$slots, "actions")], 2)) : s("", !0)], 16),
|
|
126
126
|
y(e.$slots, "right"),
|
|
127
127
|
x(G) ? (v(), c("div", _(h({ key: 0 }, x(K))), null, 16)) : s("", !0)
|
|
128
128
|
], 16)])], 16)], 8, ["to"])) : x(R) ? (v(), c("div", h({
|
|
@@ -130,14 +130,15 @@ var T = { class: "w-full max-w-sm pointer-events-auto" }, E = ["src"], D = { cla
|
|
|
130
130
|
ref: x(W)
|
|
131
131
|
}, x(B), { class: x(w)(x(B).class, { flex: $.value }) }), [
|
|
132
132
|
l("div", _(p(x(U)($.value))), [l("div", { class: g({
|
|
133
|
-
"flex
|
|
134
|
-
"
|
|
133
|
+
"w-full flex": $.value,
|
|
134
|
+
"flex items-start": !$.value && !x(M).trailing,
|
|
135
|
+
"flex items-center": !$.value && !!x(M).trailing
|
|
135
136
|
}) }, [
|
|
136
137
|
X.value ? (v(), c("div", {
|
|
137
138
|
key: 0,
|
|
138
139
|
class: g(["shrink-0", {
|
|
139
|
-
"
|
|
140
|
-
"
|
|
140
|
+
"pt-0.5": !!x(L).img,
|
|
141
|
+
"w-6": !!x(M).icon || !x(L).img && !!x(q)
|
|
141
142
|
}])
|
|
142
143
|
}, [
|
|
143
144
|
y(e.$slots, "icon"),
|
|
@@ -145,7 +146,7 @@ var T = { class: "w-full max-w-sm pointer-events-auto" }, E = ["src"], D = { cla
|
|
|
145
146
|
key: 0,
|
|
146
147
|
alt: "",
|
|
147
148
|
src: x(L).img,
|
|
148
|
-
class: "w-10 h-10 rounded-full"
|
|
149
|
+
class: "w-10 h-10 rounded-full object-cover"
|
|
149
150
|
}, null, 8, k)) : s("", !0),
|
|
150
151
|
!x(M).icon && !x(L).img && x(q) ? (v(), o(x(t), h({ key: 1 }, x(z), { icon: x(q) }), null, 16, ["icon"])) : s("", !0)
|
|
151
152
|
], 2)) : s("", !0),
|
|
@@ -164,11 +165,7 @@ var T = { class: "w-full max-w-sm pointer-events-auto" }, E = ["src"], D = { cla
|
|
|
164
165
|
default: C(() => [y(e.$slots, "description", {}, () => [u(b(x(L).description), 1)])]),
|
|
165
166
|
_: 3
|
|
166
167
|
}, 16)) : s("", !0),
|
|
167
|
-
y(e.$slots, "default")
|
|
168
|
-
x(M).actions ? (v(), c("div", {
|
|
169
|
-
key: 2,
|
|
170
|
-
class: g(["flex mt-3 gap-x-3", x(L).classes?.actions])
|
|
171
|
-
}, [y(e.$slots, "actions")], 2)) : s("", !0)
|
|
168
|
+
y(e.$slots, "default")
|
|
172
169
|
], 2),
|
|
173
170
|
l("div", A, [y(e.$slots, "trailing"), x(L).closeButton === !1 ? s("", !0) : (v(), c("button", {
|
|
174
171
|
key: 0,
|
|
@@ -180,7 +177,10 @@ var T = { class: "w-full max-w-sm pointer-events-auto" }, E = ["src"], D = { cla
|
|
|
180
177
|
size: "lg",
|
|
181
178
|
icon: "clear"
|
|
182
179
|
})], 8, j))])
|
|
183
|
-
], 2)
|
|
180
|
+
], 2), x(M).actions ? (v(), c("div", {
|
|
181
|
+
key: 0,
|
|
182
|
+
class: g(["flex mt-3 gap-x-3", x(L).classes?.actions])
|
|
183
|
+
}, [y(e.$slots, "actions")], 2)) : s("", !0)], 16),
|
|
184
184
|
y(e.$slots, "right"),
|
|
185
185
|
x(G) ? (v(), c("div", _(h({ key: 0 }, x(K))), null, 16)) : s("", !0)
|
|
186
186
|
], 16)) : s("", !0);
|