@profitliga/ui 2.0.6 → 2.0.8
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/v2/AlertDialog/AlertDialog.css +1 -1
- package/dist/components/v2/AlertDialog/AlertDialog.vue.d.ts +2 -0
- package/dist/components/v2/AlertDialog/AlertDialog.vue.js +2 -2
- package/dist/components/v2/AlertDialog/AlertDialog.vue2.js +79 -77
- package/dist/components/v2/BottomSheet/BottomSheet.css +1 -1
- package/dist/components/v2/BottomSheet/BottomSheet.vue.d.ts +2 -0
- package/dist/components/v2/BottomSheet/BottomSheet.vue.js +2 -2
- package/dist/components/v2/BottomSheet/BottomSheet.vue2.js +62 -59
- package/dist/components/v2/Dialog/Dialog.css +1 -1
- package/dist/components/v2/Dialog/Dialog.vue.d.ts +2 -0
- package/dist/components/v2/Dialog/Dialog.vue.js +1 -1
- package/dist/components/v2/Dialog/Dialog.vue2.js +102 -99
- package/dist/components/v2/Drawer/Drawer.css +1 -1
- package/dist/components/v2/Drawer/Drawer.vue.d.ts +2 -0
- package/dist/components/v2/Drawer/Drawer.vue.js +2 -2
- package/dist/components/v2/Drawer/Drawer.vue2.js +95 -92
- package/dist/utils/breakpoints.util.d.ts +17 -0
- package/dist/utils/breakpoints.util.js +13 -10
- package/dist/utils/onClickOutside.util.js +27 -21
- package/package.json +1 -1
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { X as
|
|
3
|
-
import { breakpoints as
|
|
4
|
-
import { onClickOutside as
|
|
5
|
-
import { useBodyScroll as
|
|
6
|
-
import { useFocusTrap as
|
|
1
|
+
import { defineComponent as Q, useModel as W, useId as Y, computed as g, useSlots as x, useTemplateRef as E, watch as T, onBeforeUnmount as ee, unref as t, openBlock as o, createBlock as b, createSlots as te, withCtx as y, createElementVNode as v, createElementBlock as a, mergeProps as s, renderSlot as r, createCommentVNode as n, toDisplayString as A, normalizeProps as oe, guardReactiveProps as ie, Fragment as le, normalizeStyle as se, normalizeClass as ae, resolveDynamicComponent as N, createTextVNode as ne, createVNode as de, mergeModels as V } from "vue";
|
|
2
|
+
import { X as re } from "@lucide/vue";
|
|
3
|
+
import { breakpoints as ue } from "../../../utils/breakpoints.util.js";
|
|
4
|
+
import { onClickOutside as ce } from "../../../utils/onClickOutside.util.js";
|
|
5
|
+
import { useBodyScroll as ve } from "../../../utils/useBodyScroll.util.js";
|
|
6
|
+
import { useFocusTrap as fe } from "../../../utils/useFocusTrap.util.js";
|
|
7
7
|
import me from "../BottomSheet/BottomSheet.vue.js";
|
|
8
|
-
import { ANIMATION_DURATION_MS as
|
|
9
|
-
import
|
|
10
|
-
import { useDelayedVisibility as
|
|
11
|
-
import { useLayerZIndex as
|
|
12
|
-
import { useTestId as
|
|
13
|
-
import { useTriggerAria as
|
|
14
|
-
import
|
|
15
|
-
const
|
|
8
|
+
import { ANIMATION_DURATION_MS as K } from "../shared/animation.const.js";
|
|
9
|
+
import ge from "../shared/Portal.vue.js";
|
|
10
|
+
import { useDelayedVisibility as ye } from "../shared/useDelayedVisibility.util.js";
|
|
11
|
+
import { useLayerZIndex as pe } from "../shared/useLayerZIndex.util.js";
|
|
12
|
+
import { useTestId as be } from "../shared/useTestId.util.js";
|
|
13
|
+
import { useTriggerAria as ke } from "../shared/useTriggerAria.util.js";
|
|
14
|
+
import $e from "../shared/VisuallyHidden.vue.js";
|
|
15
|
+
const he = { class: "dialog-mobile" }, we = {
|
|
16
16
|
key: 0,
|
|
17
17
|
class: "dialog-mobile__header"
|
|
18
|
-
},
|
|
18
|
+
}, Ie = {
|
|
19
19
|
key: 1,
|
|
20
20
|
class: "dialog-mobile__divider"
|
|
21
|
-
},
|
|
21
|
+
}, Oe = ["data-state"], De = ["aria-describedby", "data-state"], Be = { class: "dialog-content__heading" }, Ee = ["aria-label"], Se = {
|
|
22
22
|
key: 0,
|
|
23
23
|
class: "dialog-content__divider"
|
|
24
|
-
},
|
|
24
|
+
}, Ze = /* @__PURE__ */ Q({
|
|
25
25
|
inheritAttrs: !1,
|
|
26
26
|
__name: "Dialog",
|
|
27
|
-
props: /* @__PURE__ */
|
|
27
|
+
props: /* @__PURE__ */ V({
|
|
28
28
|
title: { default: void 0 },
|
|
29
29
|
closeButton: { default: () => ({ enabled: !0 }) },
|
|
30
30
|
width: { default: 500 },
|
|
@@ -37,90 +37,91 @@ const $e = { class: "dialog-mobile" }, he = {
|
|
|
37
37
|
open: { type: Boolean, default: !1 },
|
|
38
38
|
openModifiers: {}
|
|
39
39
|
}),
|
|
40
|
-
emits: /* @__PURE__ */
|
|
41
|
-
setup(i, { emit:
|
|
42
|
-
const
|
|
40
|
+
emits: /* @__PURE__ */ V(["escapeKeyDown", "pointerDownOutside"], ["update:open"]),
|
|
41
|
+
setup(i, { emit: L }) {
|
|
42
|
+
const f = i, k = L, u = W(i, "open"), S = ue.smaller(f.breakpointMobile), $ = Y(), m = `dialog-title-${$}`, h = `dialog-content-${$}`, z = `dialog-body-${$}`, l = be(() => f.testId), U = g(() => ({
|
|
43
43
|
"aria-haspopup": "dialog",
|
|
44
44
|
"aria-expanded": u.value,
|
|
45
45
|
"aria-controls": u.value ? h : void 0
|
|
46
|
-
})),
|
|
47
|
-
|
|
46
|
+
})), R = g(() => f.title?.as ?? "h2"), F = g(() => `${f.width}px`), Z = x(), w = g(() => f.divider ?? !!Z.icon), C = E("triggerRef"), I = E("contentRef"), P = E("layerRef");
|
|
47
|
+
ke({
|
|
48
48
|
host: () => C.value,
|
|
49
49
|
isOpen: () => u.value,
|
|
50
50
|
contentId: () => h,
|
|
51
51
|
hasPopup: () => "dialog"
|
|
52
52
|
});
|
|
53
|
-
const { lockScroll:
|
|
54
|
-
() =>
|
|
53
|
+
const { lockScroll: q, unlockScroll: H } = ve(), O = fe(() => I.value), p = pe(), X = g(
|
|
54
|
+
() => f.zIndex === "auto" ? p.zIndex.value : f.zIndex
|
|
55
55
|
);
|
|
56
|
-
function
|
|
56
|
+
function _() {
|
|
57
57
|
u.value = !1;
|
|
58
58
|
}
|
|
59
59
|
function D(e) {
|
|
60
|
-
e.key === "Escape" && (k("escapeKeyDown", e), e.defaultPrevented ||
|
|
60
|
+
e.key === "Escape" && (k("escapeKeyDown", e), e.defaultPrevented || _());
|
|
61
61
|
}
|
|
62
|
-
function
|
|
63
|
-
k("pointerDownOutside", e), !
|
|
62
|
+
function j(e) {
|
|
63
|
+
k("pointerDownOutside", e), !f.disableOutsidePointerEvents && !e.defaultPrevented && _();
|
|
64
64
|
}
|
|
65
|
-
const
|
|
66
|
-
|
|
67
|
-
|
|
65
|
+
const G = g(() => u.value && !S.value), { visible: J, dataState: M } = ye(
|
|
66
|
+
G,
|
|
67
|
+
K,
|
|
68
68
|
{
|
|
69
69
|
onOpen: () => {
|
|
70
|
-
p.acquire(),
|
|
70
|
+
p.acquire(), q(), O.activate({ focusDelayMs: K }), document.addEventListener("keydown", D);
|
|
71
71
|
},
|
|
72
72
|
onCloseStart: () => {
|
|
73
73
|
O.deactivate(), document.removeEventListener("keydown", D);
|
|
74
74
|
},
|
|
75
75
|
onCloseEnd: () => {
|
|
76
|
-
|
|
76
|
+
H(), p.release();
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
);
|
|
80
|
+
T(P, (e) => p.registerElement(e));
|
|
80
81
|
let B;
|
|
81
|
-
return
|
|
82
|
-
|
|
82
|
+
return T(I, (e) => {
|
|
83
|
+
B?.(), B = e ? ce(e, j, {
|
|
83
84
|
ignore: () => p.elementsAbove()
|
|
84
85
|
}) : void 0;
|
|
85
|
-
}),
|
|
86
|
+
}), ee(() => {
|
|
86
87
|
B?.(), document.removeEventListener("keydown", D), O.deactivate();
|
|
87
|
-
}), (e, d) => t(
|
|
88
|
+
}), (e, d) => t(S) ? (o(), b(t(me), {
|
|
88
89
|
key: 0,
|
|
89
90
|
open: u.value,
|
|
90
91
|
"onUpdate:open": d[0] || (d[0] = (c) => u.value = c),
|
|
91
92
|
"z-index": i.zIndex,
|
|
92
93
|
"disable-outside-pointer-events": i.disableOutsidePointerEvents,
|
|
93
|
-
"labelled-by": i.title?.text && !e.$slots.title ?
|
|
94
|
+
"labelled-by": i.title?.text && !e.$slots.title ? m : void 0,
|
|
94
95
|
"test-id": i.testId,
|
|
95
96
|
onEscapeKeyDown: d[1] || (d[1] = (c) => k("escapeKeyDown", c)),
|
|
96
97
|
onPointerDownOutside: d[2] || (d[2] = (c) => k("pointerDownOutside", c))
|
|
97
|
-
},
|
|
98
|
+
}, te({
|
|
98
99
|
default: y(() => [
|
|
99
|
-
v("div",
|
|
100
|
-
e.$slots.icon || i.title?.text && !e.$slots.title ? (o(),
|
|
101
|
-
e.$slots.icon ? (o(),
|
|
100
|
+
v("div", he, [
|
|
101
|
+
e.$slots.icon || i.title?.text && !e.$slots.title ? (o(), a("div", we, [
|
|
102
|
+
e.$slots.icon ? (o(), a("span", s({
|
|
102
103
|
key: 0,
|
|
103
104
|
class: "dialog-mobile__icon"
|
|
104
|
-
}, t(
|
|
105
|
+
}, t(l)("icon")), [
|
|
105
106
|
r(e.$slots, "icon", {}, void 0, !0)
|
|
106
|
-
], 16)) :
|
|
107
|
-
i.title?.text && !e.$slots.title ? (o(),
|
|
107
|
+
], 16)) : n("", !0),
|
|
108
|
+
i.title?.text && !e.$slots.title ? (o(), a("div", s({
|
|
108
109
|
key: 1,
|
|
109
|
-
id:
|
|
110
|
+
id: m,
|
|
110
111
|
class: "dialog-mobile__title"
|
|
111
|
-
}, t(
|
|
112
|
-
])) :
|
|
113
|
-
w.value ? (o(),
|
|
114
|
-
v("div",
|
|
112
|
+
}, t(l)("title")), A(i.title.text), 17)) : n("", !0)
|
|
113
|
+
])) : n("", !0),
|
|
114
|
+
w.value ? (o(), a("div", Ie)) : n("", !0),
|
|
115
|
+
v("div", s({ class: "dialog-mobile__content" }, t(l)("body")), [
|
|
115
116
|
r(e.$slots, "title", {}, void 0, !0),
|
|
116
117
|
r(e.$slots, "default", {}, void 0, !0)
|
|
117
118
|
], 16),
|
|
118
|
-
e.$slots.actions ? (o(),
|
|
119
|
+
e.$slots.actions ? (o(), a("div", s({
|
|
119
120
|
key: 2,
|
|
120
121
|
class: "dialog-mobile__actions"
|
|
121
|
-
}, t(
|
|
122
|
+
}, t(l)("actions")), [
|
|
122
123
|
r(e.$slots, "actions", {}, void 0, !0)
|
|
123
|
-
], 16)) :
|
|
124
|
+
], 16)) : n("", !0)
|
|
124
125
|
])
|
|
125
126
|
]),
|
|
126
127
|
_: 2
|
|
@@ -128,116 +129,118 @@ const $e = { class: "dialog-mobile" }, he = {
|
|
|
128
129
|
e.$slots.trigger ? {
|
|
129
130
|
name: "trigger",
|
|
130
131
|
fn: y((c) => [
|
|
131
|
-
r(e.$slots, "trigger",
|
|
132
|
+
r(e.$slots, "trigger", oe(ie(c)), void 0, !0)
|
|
132
133
|
]),
|
|
133
134
|
key: "0"
|
|
134
135
|
} : void 0
|
|
135
|
-
]), 1032, ["open", "z-index", "disable-outside-pointer-events", "labelled-by", "test-id"])) : (o(),
|
|
136
|
-
e.$slots.trigger ? (o(),
|
|
136
|
+
]), 1032, ["open", "z-index", "disable-outside-pointer-events", "labelled-by", "test-id"])) : (o(), a(le, { key: 1 }, [
|
|
137
|
+
e.$slots.trigger ? (o(), a("span", s({
|
|
137
138
|
key: 0,
|
|
138
139
|
ref_key: "triggerRef",
|
|
139
140
|
ref: C,
|
|
140
141
|
class: "dialog-trigger"
|
|
141
|
-
}, t(
|
|
142
|
+
}, t(l)("trigger"), {
|
|
142
143
|
onClick: d[3] || (d[3] = (c) => u.value = !0)
|
|
143
144
|
}), [
|
|
144
|
-
r(e.$slots, "trigger", { props:
|
|
145
|
-
], 16)) :
|
|
146
|
-
t(
|
|
145
|
+
r(e.$slots, "trigger", { props: U.value }, void 0, !0)
|
|
146
|
+
], 16)) : n("", !0),
|
|
147
|
+
t(J) ? (o(), b(ge, { key: 1 }, {
|
|
147
148
|
default: y(() => [
|
|
148
149
|
v("div", {
|
|
150
|
+
ref_key: "layerRef",
|
|
151
|
+
ref: P,
|
|
149
152
|
class: "dialog-layer",
|
|
150
|
-
style: se({ zIndex:
|
|
153
|
+
style: se({ zIndex: X.value })
|
|
151
154
|
}, [
|
|
152
|
-
v("div",
|
|
155
|
+
v("div", s({
|
|
153
156
|
class: "overlay dialog-overlay",
|
|
154
|
-
"data-state": t(
|
|
155
|
-
}, t(
|
|
156
|
-
v("div",
|
|
157
|
+
"data-state": t(M)
|
|
158
|
+
}, t(l)("overlay")), null, 16, Oe),
|
|
159
|
+
v("div", s({
|
|
157
160
|
id: h,
|
|
158
161
|
ref_key: "contentRef",
|
|
159
162
|
ref: I,
|
|
160
163
|
role: "dialog",
|
|
161
164
|
"aria-modal": "true",
|
|
162
|
-
"aria-labelledby":
|
|
163
|
-
"aria-describedby": e.$slots.default ?
|
|
164
|
-
"data-state": t(
|
|
165
|
+
"aria-labelledby": m,
|
|
166
|
+
"aria-describedby": e.$slots.default ? z : void 0,
|
|
167
|
+
"data-state": t(M),
|
|
165
168
|
class: "dialog-content",
|
|
166
|
-
style: { width:
|
|
167
|
-
}, { ...e.$attrs, ...t(
|
|
169
|
+
style: { width: F.value }
|
|
170
|
+
}, { ...e.$attrs, ...t(l)("content") }), [
|
|
168
171
|
v("div", {
|
|
169
|
-
class:
|
|
172
|
+
class: ae(["dialog-content__header", {
|
|
170
173
|
"dialog-content__header--divided": w.value
|
|
171
174
|
}])
|
|
172
175
|
}, [
|
|
173
|
-
v("div",
|
|
174
|
-
e.$slots.icon ? (o(),
|
|
176
|
+
v("div", Be, [
|
|
177
|
+
e.$slots.icon ? (o(), a("span", s({
|
|
175
178
|
key: 0,
|
|
176
179
|
class: "dialog-content__icon"
|
|
177
|
-
}, t(
|
|
180
|
+
}, t(l)("icon")), [
|
|
178
181
|
r(e.$slots, "icon", {}, void 0, !0)
|
|
179
|
-
], 16)) :
|
|
180
|
-
i.title?.text ? (o(), b(
|
|
182
|
+
], 16)) : n("", !0),
|
|
183
|
+
i.title?.text ? (o(), b(N(R.value), s({
|
|
181
184
|
key: 1,
|
|
182
|
-
id:
|
|
185
|
+
id: m,
|
|
183
186
|
class: ["dialog-content__title", {
|
|
184
187
|
"dialog-content__title--with-icon": e.$slots.icon
|
|
185
188
|
}]
|
|
186
|
-
}, t(
|
|
189
|
+
}, t(l)("title")), {
|
|
187
190
|
default: y(() => [
|
|
188
|
-
ne(
|
|
191
|
+
ne(A(i.title.text), 1)
|
|
189
192
|
]),
|
|
190
193
|
_: 1
|
|
191
|
-
}, 16, ["class"])) : e.$slots.title ? (o(), b(
|
|
194
|
+
}, 16, ["class"])) : e.$slots.title ? (o(), b(N(R.value), s({
|
|
192
195
|
key: 2,
|
|
193
|
-
id:
|
|
196
|
+
id: m,
|
|
194
197
|
class: ["dialog-content__title", {
|
|
195
198
|
"dialog-content__title--with-icon": e.$slots.icon
|
|
196
199
|
}]
|
|
197
|
-
}, t(
|
|
200
|
+
}, t(l)("title")), {
|
|
198
201
|
default: y(() => [
|
|
199
202
|
r(e.$slots, "title", {}, void 0, !0)
|
|
200
203
|
]),
|
|
201
204
|
_: 3
|
|
202
|
-
}, 16, ["class"])) : (o(), b(
|
|
205
|
+
}, 16, ["class"])) : (o(), b($e, { key: 3 }, {
|
|
203
206
|
default: y(() => [
|
|
204
|
-
v("h2", { id:
|
|
207
|
+
v("h2", { id: m }, "Диалоговое окно")
|
|
205
208
|
]),
|
|
206
209
|
_: 1
|
|
207
210
|
}))
|
|
208
211
|
]),
|
|
209
|
-
i.closeButton?.enabled ? (o(),
|
|
212
|
+
i.closeButton?.enabled ? (o(), a("button", s({
|
|
210
213
|
key: 0,
|
|
211
214
|
type: "button",
|
|
212
215
|
class: "dialog-content__close",
|
|
213
216
|
"aria-label": i.closeButton.label ?? "Закрыть"
|
|
214
|
-
}, t(
|
|
217
|
+
}, t(l)("close"), {
|
|
215
218
|
onClick: d[4] || (d[4] = (c) => u.value = !1)
|
|
216
219
|
}), [
|
|
217
|
-
|
|
218
|
-
], 16,
|
|
220
|
+
de(t(re), { size: 20 })
|
|
221
|
+
], 16, Ee)) : n("", !0)
|
|
219
222
|
], 2),
|
|
220
|
-
w.value ? (o(),
|
|
221
|
-
v("div",
|
|
222
|
-
id:
|
|
223
|
+
w.value ? (o(), a("div", Se)) : n("", !0),
|
|
224
|
+
v("div", s({
|
|
225
|
+
id: z,
|
|
223
226
|
class: "dialog-content__wrapper"
|
|
224
|
-
}, t(
|
|
227
|
+
}, t(l)("body")), [
|
|
225
228
|
r(e.$slots, "default", {}, void 0, !0)
|
|
226
229
|
], 16),
|
|
227
|
-
e.$slots.actions ? (o(),
|
|
230
|
+
e.$slots.actions ? (o(), a("div", s({
|
|
228
231
|
key: 1,
|
|
229
232
|
class: "dialog-content__actions"
|
|
230
|
-
}, t(
|
|
233
|
+
}, t(l)("actions")), [
|
|
231
234
|
r(e.$slots, "actions", {}, void 0, !0)
|
|
232
|
-
], 16)) :
|
|
233
|
-
], 16,
|
|
235
|
+
], 16)) : n("", !0)
|
|
236
|
+
], 16, De)
|
|
234
237
|
], 4)
|
|
235
238
|
]),
|
|
236
239
|
_: 3
|
|
237
|
-
})) :
|
|
240
|
+
})) : n("", !0)
|
|
238
241
|
], 64));
|
|
239
242
|
}
|
|
240
243
|
});
|
|
241
244
|
export {
|
|
242
|
-
|
|
245
|
+
Ze as default
|
|
243
246
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.drawer-trigger[data-v-
|
|
1
|
+
.drawer-trigger[data-v-39891433]{display:contents}.drawer-layer[data-v-39891433]{position:relative}.drawer-content[data-v-39891433]{box-sizing:border-box;background-color:var(--theme-neutral-0);z-index:1002;flex-direction:column;padding:24px;display:flex;position:fixed;box-shadow:0 2px 5px #3a3a3a40}.drawer-content--left[data-v-39891433]{border-radius:0 12px 12px 0;max-width:90vw;height:100%;top:0;bottom:0;left:0}.drawer-content--left[data-state=open][data-v-39891433]{animation:slideLeftIn var(--animation-duration) ease-in-out}.drawer-content--left[data-state=closed][data-v-39891433]{animation:slideLeftOut var(--animation-duration) ease-in-out}.drawer-content--right[data-v-39891433]{border-radius:12px 0 0 12px;max-width:90vw;height:100%;top:0;bottom:0;right:0}.drawer-content--right[data-state=open][data-v-39891433]{animation:slideRightIn var(--animation-duration) ease-in-out}.drawer-content--right[data-state=closed][data-v-39891433]{animation:slideRightOut var(--animation-duration) ease-in-out}.drawer-content--top[data-v-39891433]{border-radius:0 0 12px 12px;width:100%;max-height:90dvh;top:0;left:0;right:0}.drawer-content--top[data-state=open][data-v-39891433]{animation:slideTopIn var(--animation-duration) ease-in-out}.drawer-content--top[data-state=closed][data-v-39891433]{animation:slideTopOut var(--animation-duration) ease-in-out}.drawer-content--bottom[data-v-39891433]{border-radius:12px 12px 0 0;width:100%;max-height:90dvh;bottom:0;left:0;right:0}.drawer-content--bottom[data-state=open][data-v-39891433]{animation:slideBottomIn var(--animation-duration) ease-in-out}.drawer-content--bottom[data-state=closed][data-v-39891433]{animation:slideBottomOut var(--animation-duration) ease-in-out}.drawer-content__header[data-v-39891433]{flex:none;justify-content:space-between;align-items:flex-start;gap:12px;width:100%;margin-bottom:16px;display:flex}.drawer-content__title[data-v-39891433]{flex:1 1 0;min-width:0;font-weight:500}.drawer-content__close[data-v-39891433]{background:0 0;border:none;justify-content:center;align-items:center;width:20px;min-width:20px;height:20px;margin-left:auto;padding:0;display:flex}.drawer-content__close[data-v-39891433]:focus-visible{outline:2px solid var(--theme-primary-500);outline-offset:2px}.drawer-content__close svg[data-v-39891433]{width:20px;height:20px;color:var(--color-secondary-400);transition:color .3s ease-in-out}.drawer-content__close[data-v-39891433]:hover{cursor:pointer}.drawer-content__close:hover svg[data-v-39891433]{color:var(--color-secondary-500);transition:color .3s ease-in-out}.drawer-content__divider[data-v-39891433]{background-color:var(--theme-secondary-250);flex:none;width:100%;height:1px;margin-top:-4px;margin-bottom:12px}.drawer-content__wrapper[data-v-39891433]{box-sizing:content-box;scrollbar-width:thin;scrollbar-color:var(--theme-neutral-icon-primary) var(--theme-neutral-surface-icon);flex-direction:column;flex:1 1 0;justify-content:flex-start;align-items:flex-start;gap:12px;width:100%;min-height:0;display:flex;overflow-y:auto}.drawer-content__wrapper[data-v-39891433]::-webkit-scrollbar{width:8px;height:0}.drawer-content__wrapper[data-v-39891433]::-webkit-scrollbar-thumb{background-color:var(--theme-neutral-icon-primary);background-clip:padding-box;border:1px solid #0000;border-radius:999px}.drawer-content__wrapper[data-v-39891433]::-webkit-scrollbar-track{background:var(--theme-neutral-surface-icon);border-radius:4px}.drawer-content__wrapper[data-v-39891433]::-webkit-scrollbar-corner{background:0 0}.drawer-content__actions[data-v-39891433]{flex:none;justify-content:flex-end;align-items:center;gap:8px;width:100%;margin-top:32px;display:flex}.drawer-mobile[data-v-39891433]{flex-direction:column;gap:16px;width:100%;display:flex}.drawer-mobile__title[data-v-39891433]{color:var(--theme-neutral-text-title);font-size:1.125rem;font-weight:500;line-height:1.5}.drawer-mobile__divider[data-v-39891433]{background-color:var(--theme-secondary-250);width:100%;height:1px;margin-top:-4px}.drawer-mobile__content[data-v-39891433]{flex-direction:column;gap:12px;display:flex}.drawer-mobile__actions[data-v-39891433]{flex-direction:column-reverse;gap:8px;width:100%;display:flex}.drawer-mobile__actions[data-v-39891433] button{width:100%}
|
|
@@ -31,6 +31,7 @@ declare function __VLS_template(): {
|
|
|
31
31
|
};
|
|
32
32
|
refs: {
|
|
33
33
|
triggerRef: HTMLSpanElement;
|
|
34
|
+
layerRef: HTMLDivElement;
|
|
34
35
|
contentRef: HTMLDivElement;
|
|
35
36
|
};
|
|
36
37
|
rootEl: any;
|
|
@@ -60,6 +61,7 @@ declare const __VLS_component: DefineComponent<__VLS_PublicProps, {
|
|
|
60
61
|
beforeClose: (reason: TDrawerCloseReason) => boolean | Promise<boolean>;
|
|
61
62
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
62
63
|
triggerRef: HTMLSpanElement;
|
|
64
|
+
layerRef: HTMLDivElement;
|
|
63
65
|
contentRef: HTMLDivElement;
|
|
64
66
|
}, any>;
|
|
65
67
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
@@ -2,7 +2,7 @@ import './Drawer.css';
|
|
|
2
2
|
import o from "./Drawer.vue2.js";
|
|
3
3
|
/* empty css */
|
|
4
4
|
import r from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
-
const
|
|
5
|
+
const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-39891433"]]);
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
p as default
|
|
8
8
|
};
|