@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.
@@ -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 b, createSlots as ee, withCtx as y, createElementVNode as v, createElementBlock as n, mergeProps as l, renderSlot as r, createCommentVNode as a, toDisplayString as R, normalizeProps as te, guardReactiveProps as oe, Fragment as ie, normalizeStyle as se, normalizeClass as le, resolveDynamicComponent as T, createTextVNode as ne, createVNode as ae, mergeModels as A } 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 N } 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"], Ee = {
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__ */ A({
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__ */ A(["escapeKeyDown", "pointerDownOutside"], ["update:open"]),
41
- setup(i, { emit: V }) {
42
- const m = i, k = V, u = J(i, "open"), E = re.smaller(m.breakpointMobile), $ = Q(), f = `dialog-title-${$}`, h = `dialog-content-${$}`, S = `dialog-body-${$}`, s = 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
45
  "aria-controls": u.value ? h : void 0
46
- })), z = g(() => m.title?.as ?? "h2"), L = g(() => `${m.width}px`), U = W(), w = g(() => m.divider ?? !!U.icon), C = M("triggerRef"), I = M("contentRef");
47
- be({
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: F, unlockScroll: Z } = ce(), O = ve(() => I.value), p = ye(), q = g(
54
- () => m.zIndex === "auto" ? p.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" && (k("escapeKeyDown", e), e.defaultPrevented || P());
60
+ e.key === "Escape" && (k("escapeKeyDown", e), e.defaultPrevented || _());
61
61
  }
62
- function H(e) {
63
- k("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 && !E.value), { visible: j, dataState: _ } = ge(
66
- X,
67
- N,
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(), F(), O.activate({ focusDelayMs: N }), document.addEventListener("keydown", D);
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
- Z(), p.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(I, (e) => {
82
- p.registerElement(e), B?.(), B = e ? ue(e, H, {
82
+ return T(I, (e) => {
83
+ B?.(), B = e ? ce(e, j, {
83
84
  ignore: () => p.elementsAbove()
84
85
  }) : void 0;
85
- }), x(() => {
86
+ }), ee(() => {
86
87
  B?.(), document.removeEventListener("keydown", D), O.deactivate();
87
- }), (e, d) => t(E) ? (o(), b(t(me), {
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 ? f : void 0,
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
- }, ee({
98
+ }, te({
98
99
  default: y(() => [
99
- v("div", $e, [
100
- e.$slots.icon || i.title?.text && !e.$slots.title ? (o(), n("div", he, [
101
- e.$slots.icon ? (o(), n("span", l({
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(s)("icon")), [
105
+ }, t(l)("icon")), [
105
106
  r(e.$slots, "icon", {}, void 0, !0)
106
- ], 16)) : a("", !0),
107
- i.title?.text && !e.$slots.title ? (o(), n("div", l({
107
+ ], 16)) : n("", !0),
108
+ i.title?.text && !e.$slots.title ? (o(), a("div", s({
108
109
  key: 1,
109
- id: f,
110
+ id: m,
110
111
  class: "dialog-mobile__title"
111
- }, t(s)("title")), R(i.title.text), 17)) : a("", !0)
112
- ])) : a("", !0),
113
- w.value ? (o(), n("div", we)) : a("", !0),
114
- v("div", l({ class: "dialog-mobile__content" }, t(s)("body")), [
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(), n("div", l({
119
+ e.$slots.actions ? (o(), a("div", s({
119
120
  key: 2,
120
121
  class: "dialog-mobile__actions"
121
- }, t(s)("actions")), [
122
+ }, t(l)("actions")), [
122
123
  r(e.$slots, "actions", {}, void 0, !0)
123
- ], 16)) : a("", !0)
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", te(oe(c)), void 0, !0)
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(), n(ie, { key: 1 }, [
136
- e.$slots.trigger ? (o(), n("span", l({
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(s)("trigger"), {
142
+ }, t(l)("trigger"), {
142
143
  onClick: d[3] || (d[3] = (c) => u.value = !0)
143
144
  }), [
144
- r(e.$slots, "trigger", { props: K.value }, void 0, !0)
145
- ], 16)) : a("", !0),
146
- t(j) ? (o(), b(fe, { key: 1 }, {
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: q.value })
153
+ style: se({ zIndex: X.value })
151
154
  }, [
152
- v("div", l({
155
+ v("div", s({
153
156
  class: "overlay dialog-overlay",
154
- "data-state": t(_)
155
- }, t(s)("overlay")), null, 16, Ie),
156
- v("div", l({
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": f,
163
- "aria-describedby": e.$slots.default ? S : void 0,
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: L.value }
167
- }, { ...e.$attrs, ...t(s)("content") }), [
169
+ style: { width: F.value }
170
+ }, { ...e.$attrs, ...t(l)("content") }), [
168
171
  v("div", {
169
- class: le(["dialog-content__header", {
172
+ class: ae(["dialog-content__header", {
170
173
  "dialog-content__header--divided": w.value
171
174
  }])
172
175
  }, [
173
- v("div", De, [
174
- e.$slots.icon ? (o(), n("span", l({
176
+ v("div", Be, [
177
+ e.$slots.icon ? (o(), a("span", s({
175
178
  key: 0,
176
179
  class: "dialog-content__icon"
177
- }, t(s)("icon")), [
180
+ }, t(l)("icon")), [
178
181
  r(e.$slots, "icon", {}, void 0, !0)
179
- ], 16)) : a("", !0),
180
- i.title?.text ? (o(), b(T(z.value), l({
182
+ ], 16)) : n("", !0),
183
+ i.title?.text ? (o(), b(N(R.value), s({
181
184
  key: 1,
182
- id: f,
185
+ id: m,
183
186
  class: ["dialog-content__title", {
184
187
  "dialog-content__title--with-icon": e.$slots.icon
185
188
  }]
186
- }, t(s)("title")), {
189
+ }, t(l)("title")), {
187
190
  default: y(() => [
188
- ne(R(i.title.text), 1)
191
+ ne(A(i.title.text), 1)
189
192
  ]),
190
193
  _: 1
191
- }, 16, ["class"])) : e.$slots.title ? (o(), b(T(z.value), l({
194
+ }, 16, ["class"])) : e.$slots.title ? (o(), b(N(R.value), s({
192
195
  key: 2,
193
- id: f,
196
+ id: m,
194
197
  class: ["dialog-content__title", {
195
198
  "dialog-content__title--with-icon": e.$slots.icon
196
199
  }]
197
- }, t(s)("title")), {
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(ke, { key: 3 }, {
205
+ }, 16, ["class"])) : (o(), b($e, { key: 3 }, {
203
206
  default: y(() => [
204
- v("h2", { id: f }, "Диалоговое окно")
207
+ v("h2", { id: m }, "Диалоговое окно")
205
208
  ]),
206
209
  _: 1
207
210
  }))
208
211
  ]),
209
- i.closeButton?.enabled ? (o(), n("button", l({
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(s)("close"), {
217
+ }, t(l)("close"), {
215
218
  onClick: d[4] || (d[4] = (c) => u.value = !1)
216
219
  }), [
217
- ae(t(de), { size: 20 })
218
- ], 16, Be)) : a("", !0)
220
+ de(t(re), { size: 20 })
221
+ ], 16, Ee)) : n("", !0)
219
222
  ], 2),
220
- w.value ? (o(), n("div", Ee)) : a("", !0),
221
- v("div", l({
222
- id: S,
223
+ w.value ? (o(), a("div", Se)) : n("", !0),
224
+ v("div", s({
225
+ id: z,
223
226
  class: "dialog-content__wrapper"
224
- }, t(s)("body")), [
227
+ }, t(l)("body")), [
225
228
  r(e.$slots, "default", {}, void 0, !0)
226
229
  ], 16),
227
- e.$slots.actions ? (o(), n("div", l({
230
+ e.$slots.actions ? (o(), a("div", s({
228
231
  key: 1,
229
232
  class: "dialog-content__actions"
230
- }, t(s)("actions")), [
233
+ }, t(l)("actions")), [
231
234
  r(e.$slots, "actions", {}, void 0, !0)
232
- ], 16)) : a("", !0)
233
- ], 16, Oe)
235
+ ], 16)) : n("", !0)
236
+ ], 16, De)
234
237
  ], 4)
235
238
  ]),
236
239
  _: 3
237
- })) : a("", !0)
240
+ })) : n("", !0)
238
241
  ], 64));
239
242
  }
240
243
  });
241
244
  export {
242
- Fe as default
245
+ Ze as default
243
246
  };
@@ -1 +1 @@
1
- .drawer-trigger[data-v-4d3b35ae]{display:contents}.drawer-layer[data-v-4d3b35ae]{position:relative}.drawer-content[data-v-4d3b35ae]{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-4d3b35ae]{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-4d3b35ae]{animation:slideLeftIn var(--animation-duration) ease-in-out}.drawer-content--left[data-state=closed][data-v-4d3b35ae]{animation:slideLeftOut var(--animation-duration) ease-in-out}.drawer-content--right[data-v-4d3b35ae]{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-4d3b35ae]{animation:slideRightIn var(--animation-duration) ease-in-out}.drawer-content--right[data-state=closed][data-v-4d3b35ae]{animation:slideRightOut var(--animation-duration) ease-in-out}.drawer-content--top[data-v-4d3b35ae]{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-4d3b35ae]{animation:slideTopIn var(--animation-duration) ease-in-out}.drawer-content--top[data-state=closed][data-v-4d3b35ae]{animation:slideTopOut var(--animation-duration) ease-in-out}.drawer-content--bottom[data-v-4d3b35ae]{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-4d3b35ae]{animation:slideBottomIn var(--animation-duration) ease-in-out}.drawer-content--bottom[data-state=closed][data-v-4d3b35ae]{animation:slideBottomOut var(--animation-duration) ease-in-out}.drawer-content__header[data-v-4d3b35ae]{flex:none;justify-content:space-between;align-items:flex-start;gap:12px;width:100%;margin-bottom:16px;display:flex}.drawer-content__title[data-v-4d3b35ae]{flex:1 1 0;min-width:0;font-weight:500}.drawer-content__close[data-v-4d3b35ae]{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-4d3b35ae]:focus-visible{outline:2px solid var(--theme-primary-500);outline-offset:2px}.drawer-content__close svg[data-v-4d3b35ae]{width:20px;height:20px;color:var(--color-secondary-400);transition:color .3s ease-in-out}.drawer-content__close[data-v-4d3b35ae]:hover{cursor:pointer}.drawer-content__close:hover svg[data-v-4d3b35ae]{color:var(--color-secondary-500);transition:color .3s ease-in-out}.drawer-content__divider[data-v-4d3b35ae]{background-color:var(--theme-secondary-250);flex:none;width:100%;height:1px;margin-top:-4px;margin-bottom:12px}.drawer-content__wrapper[data-v-4d3b35ae]{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-4d3b35ae]::-webkit-scrollbar{width:8px;height:0}.drawer-content__wrapper[data-v-4d3b35ae]::-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-4d3b35ae]::-webkit-scrollbar-track{background:var(--theme-neutral-surface-icon);border-radius:4px}.drawer-content__wrapper[data-v-4d3b35ae]::-webkit-scrollbar-corner{background:0 0}.drawer-content__actions[data-v-4d3b35ae]{flex:none;justify-content:flex-end;align-items:center;gap:8px;width:100%;margin-top:32px;display:flex}.drawer-mobile[data-v-4d3b35ae]{flex-direction:column;gap:16px;width:100%;display:flex}.drawer-mobile__title[data-v-4d3b35ae]{color:var(--theme-neutral-text-title);font-size:1.125rem;font-weight:500;line-height:1.5}.drawer-mobile__divider[data-v-4d3b35ae]{background-color:var(--theme-secondary-250);width:100%;height:1px;margin-top:-4px}.drawer-mobile__content[data-v-4d3b35ae]{flex-direction:column;gap:12px;display:flex}.drawer-mobile__actions[data-v-4d3b35ae]{flex-direction:column-reverse;gap:8px;width:100%;display:flex}.drawer-mobile__actions[data-v-4d3b35ae] 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-4d3b35ae"]]);
5
+ const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-39891433"]]);
6
6
  export {
7
- m as default
7
+ p as default
8
8
  };