@profitliga/ui 2.0.5 → 2.0.7

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