@vavt/react-ui 1.4.2 → 1.4.3
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/{MessageBox-C6NLihE1.cjs → MessageBox-BiSWjPH3.cjs} +1 -1
- package/dist/{MessageBox-C35_ifsL.js → MessageBox-DgBoAkV3.js} +1 -1
- package/dist/Modal-BbIpvT94.js +255 -0
- package/dist/Modal-CPL3TGSm.cjs +1 -0
- package/dist/cjs/MessageBox.cjs +1 -1
- package/dist/cjs/Modal.cjs +1 -1
- package/dist/cjs/global.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/register.cjs +1 -1
- package/dist/css/Modal.css +1 -1
- package/dist/es/MessageBox.mjs +1 -1
- package/dist/es/Modal.mjs +1 -1
- package/dist/es/global.mjs +1 -1
- package/dist/es/index.mjs +3 -3
- package/dist/es/register.mjs +1 -1
- package/dist/index.css +1 -1
- package/dist/{registry-C-Mo3vuy.cjs → registry-DRuhdXZS.cjs} +1 -1
- package/dist/{registry-BXGVMimF.js → registry-DUsYI8p5.js} +2 -2
- package/package.json +1 -1
- package/dist/Modal-6kNs-9QU.js +0 -240
- package/dist/Modal-BKvRyCXZ.cjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./state-BuUx1onZ.cjs"),t=require("./Button-qURrKHQ0.cjs"),n=require("./layer-DL1xVbJT.cjs"),r=require("./focus-D-h8CbGr.cjs"),i=require("./dialog-shell-B7mE8A1p.cjs"),a=require("./Modal-
|
|
1
|
+
const e=require("./state-BuUx1onZ.cjs"),t=require("./Button-qURrKHQ0.cjs"),n=require("./layer-DL1xVbJT.cjs"),r=require("./focus-D-h8CbGr.cjs"),i=require("./dialog-shell-B7mE8A1p.cjs"),a=require("./Modal-CPL3TGSm.cjs");let o=require("lucide-react"),s=require("react"),c=require("react/jsx-runtime"),l=require("react-dom/client");var u={info:o.Info,success:o.CircleCheck,warning:o.CircleAlert,error:o.CircleX},d={info:`primary`,success:`success`,warning:`warning`,error:`error`},f={[r.t]:!0},p=e=>(typeof e==`object`||typeof e==`function`)&&e!==null&&`then`in e&&typeof e.then==`function`,m=(0,s.forwardRef)((n,r)=>{let{open:i,defaultOpen:l=!1,title:m=`提示`,type:h=`info`,showCancelButton:g=!1,confirmButtonText:_=`确定`,confirmButtonLoadingText:v,cancelButtonText:y=`取消`,width:b=420,closeOnClickOverlay:x=!1,closeOnPressEscape:S=!0,showClose:C=!0,draggable:w=!1,className:T,children:E,onChange:D,onConfirm:O,onCancel:k,onClose:A,onConfirmError:j,...M}=n,N=e.t(n,`open`),[P,F]=e.n({value:!!i,defaultValue:l,controlled:N,onChange:D}),[I,L]=(0,s.useState)(!1),R=(0,s.useRef)(!1),z=e=>{R.current||(e===`cancel`?k?.():A?.(),F(!1))},B=async()=>{if(!R.current)try{let e=O?.();p(e)&&(R.current=!0,L(!0),await e),F(!1)}catch(e){j?.(e)}finally{R.current=!1,L(!1)}},V=u[h],H=[`vl-message-box`,`is-${h}`,T||``].filter(Boolean).join(` `);return(0,c.jsx)(a.t,{...M,ref:r,open:P,title:m,width:b,draggable:w,closeOnClickOverlay:!I&&x,closeOnPressEscape:!I&&S,showClose:!1,className:H,header:(0,c.jsxs)(`div`,{className:`vl-message-box__header`,children:[(0,c.jsx)(`div`,{className:`vl-message-box__title`,children:m}),C?(0,c.jsx)(`button`,{type:`button`,className:`vl-modal__close`,"aria-label":`关闭消息框`,disabled:I,onClick:()=>z(`close`),children:(0,c.jsx)(o.X,{size:20,"aria-hidden":`true`})}):null]}),footer:(0,c.jsxs)(`div`,{className:`vl-message-box__actions`,children:[g?(0,c.jsx)(t.t,{disabled:I,onClick:()=>z(`cancel`),children:y}):null,(0,c.jsx)(t.t,{...f,status:d[h],variant:`solid`,loading:I,loadingText:v,onClick:B,children:_})]}),onChange:e=>{e||z(`close`)},children:(0,c.jsxs)(`div`,{className:`vl-message-box__content`,children:[(0,c.jsx)(V,{className:`vl-message-box__icon`,"aria-hidden":`true`}),(0,c.jsx)(`div`,{className:`vl-message-box__message`,children:E})]})})});m.displayName=`VlMessageBox`;var h=new Set,g=(e,t={},r)=>typeof document>`u`?Promise.reject(Error(`VlMessageBox imperative APIs are only available in a browser environment.`)):new Promise((a,o)=>{let u=new Map;for(let e of[...i.r(),...h]){let t=u.get(e.base);(!t||e.offset>t.offset)&&u.set(e.base,e)}let d=[...u.values()],f=d.length>1?{base:`max(${d.map(n.i).join(`, `)})`,offset:0}:d[0],p=t.zIndex??(typeof t.style?.zIndex==`number`?t.style.zIndex:void 0),g=p===void 0?f?{...f,offset:f.offset+2}:{base:n.r.modal,offset:0,rank:n.n[n.r.modal]}:{base:p,offset:0};h.add(g);let _=document.createElement(`div`);_.className=`vl-message-box-container`,document.body.appendChild(_);let v=(0,l.createRoot)(_),y=()=>{let[n,i]=(0,s.useState)(!0);return(0,c.jsx)(m,{...t,open:n,showCancelButton:r,onChange:i,onConfirm:async()=>{await t.onConfirm?.(),a(`confirm`)},onCancel:()=>{t.onCancel?.(),o(`cancel`)},onClose:()=>{t.onClose?.(),o(`close`)},onAfterClose:()=>{try{t.onAfterClose?.()}finally{queueMicrotask(()=>{v.unmount(),_.remove(),h.delete(g)})}},children:e})};v.render(f?(0,c.jsx)(n.t,{layer:f,children:(0,c.jsx)(y,{})}):(0,c.jsx)(y,{}))}),_=Object.assign(m,{alert:(e,t)=>g(e,t,!1),confirm:(e,t)=>g(e,t,!0)});Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return _}});
|
|
@@ -3,7 +3,7 @@ import { t as n } from "./Button-CwkWSWau.js";
|
|
|
3
3
|
import { i as r, n as i, r as a, t as o } from "./layer-C1yCY0MO.js";
|
|
4
4
|
import { t as s } from "./focus-BDDJyKk3.js";
|
|
5
5
|
import { r as c } from "./dialog-shell-FS5nSlBm.js";
|
|
6
|
-
import { t as l } from "./Modal-
|
|
6
|
+
import { t as l } from "./Modal-BbIpvT94.js";
|
|
7
7
|
import { CircleAlert as u, CircleCheck as d, CircleX as f, Info as p, X as m } from "lucide-react";
|
|
8
8
|
import { forwardRef as h, useRef as g, useState as _ } from "react";
|
|
9
9
|
import { jsx as v, jsxs as y } from "react/jsx-runtime";
|
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
import { t as e } from "./effect-nifYL_rH.js";
|
|
2
|
+
import { n as t, t as n } from "./state-BSDh-Ob2.js";
|
|
3
|
+
import { n as r } from "./refs-D5IYOBaf.js";
|
|
4
|
+
import { t as i } from "./content-Dllrr-7G.js";
|
|
5
|
+
import { t as a } from "./client-pj_wzx28.js";
|
|
6
|
+
import { n as o, t as s } from "./number-BN2jHM6Z.js";
|
|
7
|
+
import { t as ee } from "./id-CHixuHb7.js";
|
|
8
|
+
import { a as te, r as ne, t as re } from "./layer-C1yCY0MO.js";
|
|
9
|
+
import { i as ie, n as ae, t as oe } from "./dialog-shell-FS5nSlBm.js";
|
|
10
|
+
import { t as se } from "./Scrollbar-BdMGZrYi.js";
|
|
11
|
+
import { X as ce } from "lucide-react";
|
|
12
|
+
import { forwardRef as c, useCallback as l, useEffect as u, useMemo as le, useRef as d, useState as ue } from "react";
|
|
13
|
+
import { jsx as f, jsxs as de } from "react/jsx-runtime";
|
|
14
|
+
//#region components/Modal/Modal.tsx
|
|
15
|
+
var fe = .25, pe = 0, me = (e) => {
|
|
16
|
+
if (typeof e == "number") return Number.isFinite(e) ? e : 0;
|
|
17
|
+
if (typeof e == "string") {
|
|
18
|
+
let t = e.trim();
|
|
19
|
+
if (t.endsWith("vh")) {
|
|
20
|
+
let e = parseFloat(t);
|
|
21
|
+
return Number.isFinite(e) ? window.innerHeight * e / 100 : 0;
|
|
22
|
+
}
|
|
23
|
+
if (t.endsWith("px")) {
|
|
24
|
+
let e = parseFloat(t);
|
|
25
|
+
return Number.isFinite(e) ? e : 0;
|
|
26
|
+
}
|
|
27
|
+
let n = parseFloat(t);
|
|
28
|
+
return Number.isFinite(n) ? n : 0;
|
|
29
|
+
}
|
|
30
|
+
return 0;
|
|
31
|
+
}, p = c((c, p) => {
|
|
32
|
+
let { open: he, defaultOpen: ge = !1, title: m, width: _e = 520, offsetY: h = pe, center: g = !1, mask: ve = !0, closeOnClickOverlay: ye = !0, closeOnPressEscape: be = !0, showClose: _ = !0, lockScroll: xe = !0, destroyOnClose: v = !1, draggable: y = !0, fullscreen: b = !1, zIndex: Se, header: x, footer: S, className: Ce, style: C, children: we, onClick: Te, onChange: Ee, onOpen: w, onClose: T, onAfterClose: De, "aria-label": Oe, "aria-labelledby": ke, "aria-describedby": Ae, ...je } = c, E = a(), Me = typeof C?.zIndex == "number" ? C.zIndex : void 0, D = te({
|
|
33
|
+
defaultZIndex: ne.modal,
|
|
34
|
+
zIndex: Se ?? Me,
|
|
35
|
+
withMask: !0
|
|
36
|
+
}), O = d(null), Ne = le(() => r(O, p), [p]), Pe = n(c, "open"), [k, A] = t({
|
|
37
|
+
value: !!he,
|
|
38
|
+
defaultValue: ge,
|
|
39
|
+
controlled: Pe,
|
|
40
|
+
onChange: Ee
|
|
41
|
+
}), [Fe, j] = ue(!1), M = d({
|
|
42
|
+
x: 0,
|
|
43
|
+
y: 0
|
|
44
|
+
}), N = d(!1), P = d(!1), F = d({
|
|
45
|
+
x: 0,
|
|
46
|
+
y: 0
|
|
47
|
+
}), I = d(null), L = d(!1), R = d(null), z = ee("vl-modal-title"), B = l(() => A(!1), [A]), { isTopLayer: V } = ie({
|
|
48
|
+
active: E && k,
|
|
49
|
+
layer: D.layer,
|
|
50
|
+
containerRef: O,
|
|
51
|
+
closeOnPressEscape: be,
|
|
52
|
+
lockScroll: xe,
|
|
53
|
+
onRequestClose: B
|
|
54
|
+
}), H = l((e) => {
|
|
55
|
+
O.current && (O.current.style.visibility = e ? "visible" : "hidden");
|
|
56
|
+
}, []), U = l((e, t) => {
|
|
57
|
+
M.current = {
|
|
58
|
+
x: e,
|
|
59
|
+
y: t
|
|
60
|
+
}, O.current && (O.current.style.left = `${e}px`, O.current.style.top = `${t}px`);
|
|
61
|
+
}, []), W = l((e, t) => {
|
|
62
|
+
let n = e.offsetWidth, r = e.offsetHeight;
|
|
63
|
+
return {
|
|
64
|
+
width: n,
|
|
65
|
+
height: r,
|
|
66
|
+
maxX: Math.max(t, window.innerWidth - n - t),
|
|
67
|
+
maxY: Math.max(t, window.innerHeight - r - t)
|
|
68
|
+
};
|
|
69
|
+
}, []), G = l(() => {
|
|
70
|
+
let e = O.current;
|
|
71
|
+
if (!e || typeof window > "u") return;
|
|
72
|
+
if (b) {
|
|
73
|
+
U(0, 0), N.current = !1;
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
let { width: t, height: n, maxX: r, maxY: i } = W(e, 12), a = (g ? (window.innerHeight - n) / 2 : window.innerHeight * fe) + me(h);
|
|
77
|
+
U(Math.round(s((window.innerWidth - t) / 2, 12, r)), Math.round(s(a, 12, i)));
|
|
78
|
+
}, [
|
|
79
|
+
g,
|
|
80
|
+
b,
|
|
81
|
+
W,
|
|
82
|
+
h,
|
|
83
|
+
U
|
|
84
|
+
]), K = l(() => {
|
|
85
|
+
let e = O.current;
|
|
86
|
+
if (!e) return;
|
|
87
|
+
let { maxX: t, maxY: n } = W(e, 12);
|
|
88
|
+
U(Math.round(s(M.current.x, 12, t)), Math.round(s(M.current.y, 12, n)));
|
|
89
|
+
}, [W, U]), q = l(() => {
|
|
90
|
+
k && (b || !N.current ? G() : K());
|
|
91
|
+
}, [
|
|
92
|
+
k,
|
|
93
|
+
b,
|
|
94
|
+
G,
|
|
95
|
+
K
|
|
96
|
+
]), J = l((e, t) => {
|
|
97
|
+
let n = O.current;
|
|
98
|
+
if (!n || b) return;
|
|
99
|
+
let { maxX: r, maxY: i } = W(n, 12), a = s(e - F.current.x, 12, r), o = s(t - F.current.y, 12, i);
|
|
100
|
+
U(Math.round(a), Math.round(o)), N.current = !0;
|
|
101
|
+
}, [
|
|
102
|
+
b,
|
|
103
|
+
W,
|
|
104
|
+
U
|
|
105
|
+
]), Y = d({
|
|
106
|
+
applyDragPosition: J,
|
|
107
|
+
syncPosition: q
|
|
108
|
+
});
|
|
109
|
+
e(() => {
|
|
110
|
+
Y.current = {
|
|
111
|
+
applyDragPosition: J,
|
|
112
|
+
syncPosition: q
|
|
113
|
+
};
|
|
114
|
+
}, [J, q]);
|
|
115
|
+
let Ie = l((e) => {
|
|
116
|
+
P.current && Y.current.applyDragPosition(e.clientX, e.clientY);
|
|
117
|
+
}, []), X = l(() => {
|
|
118
|
+
R.current?.abort(), R.current = null, I.current?.(), I.current = null;
|
|
119
|
+
}, []), Z = l(() => {
|
|
120
|
+
P.current && (P.current = !1, j(!1), X(), Y.current.syncPosition());
|
|
121
|
+
}, [X]), Le = (e) => {
|
|
122
|
+
if (!y || b || !k || !V() || e.button !== 0 || e.target.closest(".vl-modal__close, .vl-modal__title, .vl-message-box__title, [class*='__title'], [data-drag-cancel], button, input, textarea, select, a")) return;
|
|
123
|
+
let t = O.current;
|
|
124
|
+
if (!t) return;
|
|
125
|
+
let n = window.getSelection();
|
|
126
|
+
n && n.rangeCount > 0 && n.removeAllRanges(), e.preventDefault();
|
|
127
|
+
let r = t.getBoundingClientRect();
|
|
128
|
+
F.current = {
|
|
129
|
+
x: e.clientX - r.left,
|
|
130
|
+
y: e.clientY - r.top
|
|
131
|
+
}, P.current = !0, j(!0), I.current = ae(), R.current = new AbortController();
|
|
132
|
+
let { signal: i } = R.current;
|
|
133
|
+
window.addEventListener("pointermove", Ie, { signal: i }), window.addEventListener("pointerup", Z, {
|
|
134
|
+
once: !0,
|
|
135
|
+
signal: i
|
|
136
|
+
});
|
|
137
|
+
};
|
|
138
|
+
u(() => {
|
|
139
|
+
let e = L.current;
|
|
140
|
+
k && !e ? w?.() : !k && e && T?.(), L.current = k;
|
|
141
|
+
}, [
|
|
142
|
+
k,
|
|
143
|
+
w,
|
|
144
|
+
T
|
|
145
|
+
]), e(() => {
|
|
146
|
+
!k || !E || (H(!1), b ? G() : !v && N.current ? K() : G(), H(!0));
|
|
147
|
+
}, [
|
|
148
|
+
k,
|
|
149
|
+
E,
|
|
150
|
+
b,
|
|
151
|
+
v,
|
|
152
|
+
G,
|
|
153
|
+
K,
|
|
154
|
+
U,
|
|
155
|
+
H
|
|
156
|
+
]), u(() => {
|
|
157
|
+
k || Z();
|
|
158
|
+
}, [k, Z]), u(() => {
|
|
159
|
+
let e = O.current;
|
|
160
|
+
if (!k || !E || !e) return;
|
|
161
|
+
let t = null, n = () => {
|
|
162
|
+
P.current || t !== null || (t = window.requestAnimationFrame(() => {
|
|
163
|
+
t = null, P.current || q();
|
|
164
|
+
}));
|
|
165
|
+
}, r = typeof ResizeObserver > "u" ? null : new ResizeObserver(n);
|
|
166
|
+
return r?.observe(e, { box: "border-box" }), window.addEventListener("resize", n, { passive: !0 }), () => {
|
|
167
|
+
r?.disconnect(), window.removeEventListener("resize", n), t !== null && window.cancelAnimationFrame(t);
|
|
168
|
+
};
|
|
169
|
+
}, [
|
|
170
|
+
k,
|
|
171
|
+
E,
|
|
172
|
+
q
|
|
173
|
+
]), u(() => () => {
|
|
174
|
+
X();
|
|
175
|
+
}, [X]);
|
|
176
|
+
let Re = () => {
|
|
177
|
+
ye && V() && B();
|
|
178
|
+
}, ze = (e) => {
|
|
179
|
+
e.stopPropagation(), Te?.(e);
|
|
180
|
+
}, Be = [
|
|
181
|
+
"vl-modal",
|
|
182
|
+
Fe ? "is-dragging" : "",
|
|
183
|
+
g ? "is-center" : "",
|
|
184
|
+
b ? "is-fullscreen" : "",
|
|
185
|
+
Ce || ""
|
|
186
|
+
].filter(Boolean).join(" "), Ve = ["vl-modal__header", y && !b ? "is-draggable" : ""].filter(Boolean).join(" "), Q = { ...C };
|
|
187
|
+
D.zIndex !== void 0 && (Q.zIndex = D.zIndex), b ? (Q.width = "100vw", Q.height = void 0) : Q.width = o(_e) ?? "520px";
|
|
188
|
+
let He = x ?? (m ? /* @__PURE__ */ f("div", {
|
|
189
|
+
id: z,
|
|
190
|
+
className: "vl-modal__title",
|
|
191
|
+
children: m
|
|
192
|
+
}) : null), $ = ke ?? (!x && m ? z : void 0), Ue = Oe ?? ($ ? void 0 : typeof m == "string" ? m : "对话框");
|
|
193
|
+
return /* @__PURE__ */ f(re, {
|
|
194
|
+
layer: D.layer,
|
|
195
|
+
children: /* @__PURE__ */ de(oe, {
|
|
196
|
+
clientReady: E,
|
|
197
|
+
open: k,
|
|
198
|
+
mask: ve,
|
|
199
|
+
destroyOnClose: v,
|
|
200
|
+
maskTransitionName: "vl-modal-mask",
|
|
201
|
+
transitionName: "vl-modal",
|
|
202
|
+
maskClassName: "vl-modal__mask",
|
|
203
|
+
panelClassName: Be,
|
|
204
|
+
panelStyle: Q,
|
|
205
|
+
maskStyle: D.maskZIndex === void 0 ? void 0 : { zIndex: D.maskZIndex },
|
|
206
|
+
panelRef: Ne,
|
|
207
|
+
role: "dialog",
|
|
208
|
+
ariaLabel: Ue,
|
|
209
|
+
ariaLabelledBy: $,
|
|
210
|
+
ariaDescribedBy: Ae,
|
|
211
|
+
onMaskClick: Re,
|
|
212
|
+
onPanelClick: ze,
|
|
213
|
+
onAfterLeave: () => {
|
|
214
|
+
Z(), v && (N.current = !1), De?.();
|
|
215
|
+
},
|
|
216
|
+
panelProps: je,
|
|
217
|
+
children: [
|
|
218
|
+
i(He) || _ ? /* @__PURE__ */ f("div", {
|
|
219
|
+
className: Ve,
|
|
220
|
+
onPointerDown: Le,
|
|
221
|
+
children: /* @__PURE__ */ de("div", {
|
|
222
|
+
className: "vl-modal__headerInner",
|
|
223
|
+
children: [/* @__PURE__ */ f("div", {
|
|
224
|
+
className: "vl-modal__headerMain",
|
|
225
|
+
children: He
|
|
226
|
+
}), _ ? /* @__PURE__ */ f("button", {
|
|
227
|
+
type: "button",
|
|
228
|
+
className: "vl-modal__close",
|
|
229
|
+
"aria-label": "关闭对话框",
|
|
230
|
+
onClick: B,
|
|
231
|
+
children: /* @__PURE__ */ f(ce, {
|
|
232
|
+
size: 20,
|
|
233
|
+
"aria-hidden": "true"
|
|
234
|
+
})
|
|
235
|
+
}) : null]
|
|
236
|
+
})
|
|
237
|
+
}) : null,
|
|
238
|
+
/* @__PURE__ */ f(se, {
|
|
239
|
+
className: "vl-modal__body",
|
|
240
|
+
children: we
|
|
241
|
+
}),
|
|
242
|
+
i(S) ? /* @__PURE__ */ f("div", {
|
|
243
|
+
className: "vl-modal__footer",
|
|
244
|
+
children: S
|
|
245
|
+
}) : null
|
|
246
|
+
]
|
|
247
|
+
})
|
|
248
|
+
});
|
|
249
|
+
});
|
|
250
|
+
p.displayName = "VlModal";
|
|
251
|
+
//#endregion
|
|
252
|
+
//#region components/Modal/index.ts
|
|
253
|
+
var he = p, ge = p;
|
|
254
|
+
//#endregion
|
|
255
|
+
export { he as n, ge as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./effect-BpNxm_06.cjs"),t=require("./state-BuUx1onZ.cjs"),n=require("./refs-DCqd87V8.cjs"),r=require("./content-DCGQZQp8.cjs"),i=require("./client-BkoqeUs3.cjs"),a=require("./number-B7qJF_ZY.cjs"),o=require("./id-CF0zOP1G.cjs"),s=require("./layer-DL1xVbJT.cjs"),c=require("./dialog-shell-B7mE8A1p.cjs"),ee=require("./Scrollbar-CEQT6Ao_.cjs");let te=require("lucide-react"),l=require("react"),u=require("react/jsx-runtime");var ne=.25,re=0,ie=e=>{if(typeof e==`number`)return Number.isFinite(e)?e:0;if(typeof e==`string`){let t=e.trim();if(t.endsWith(`vh`)){let e=parseFloat(t);return Number.isFinite(e)?window.innerHeight*e/100:0}if(t.endsWith(`px`)){let e=parseFloat(t);return Number.isFinite(e)?e:0}let n=parseFloat(t);return Number.isFinite(n)?n:0}return 0},d=(0,l.forwardRef)((d,f)=>{let{open:p,defaultOpen:ae=!1,title:m,width:oe=520,offsetY:h=re,center:g=!1,mask:se=!0,closeOnClickOverlay:ce=!0,closeOnPressEscape:le=!0,showClose:_=!0,lockScroll:ue=!0,destroyOnClose:v=!1,draggable:y=!0,fullscreen:b=!1,zIndex:de,header:fe,footer:x,className:pe,style:S,children:me,onClick:he,onChange:ge,onOpen:C,onClose:w,onAfterClose:_e,"aria-label":ve,"aria-labelledby":ye,"aria-describedby":be,...xe}=d,T=i.t(),Se=typeof S?.zIndex==`number`?S.zIndex:void 0,E=s.a({defaultZIndex:s.r.modal,zIndex:de??Se,withMask:!0}),D=(0,l.useRef)(null),Ce=(0,l.useMemo)(()=>n.n(D,f),[f]),we=t.t(d,`open`),[O,k]=t.n({value:!!p,defaultValue:ae,controlled:we,onChange:ge}),[Te,A]=(0,l.useState)(!1),j=(0,l.useRef)({x:0,y:0}),M=(0,l.useRef)(!1),N=(0,l.useRef)(!1),P=(0,l.useRef)({x:0,y:0}),F=(0,l.useRef)(null),I=(0,l.useRef)(!1),L=(0,l.useRef)(null),R=o.t(`vl-modal-title`),z=(0,l.useCallback)(()=>k(!1),[k]),{isTopLayer:B}=c.i({active:T&&O,layer:E.layer,containerRef:D,closeOnPressEscape:le,lockScroll:ue,onRequestClose:z}),V=(0,l.useCallback)(e=>{D.current&&(D.current.style.visibility=e?`visible`:`hidden`)},[]),H=(0,l.useCallback)((e,t)=>{j.current={x:e,y:t},D.current&&(D.current.style.left=`${e}px`,D.current.style.top=`${t}px`)},[]),U=(0,l.useCallback)((e,t)=>{let n=e.offsetWidth,r=e.offsetHeight;return{width:n,height:r,maxX:Math.max(t,window.innerWidth-n-t),maxY:Math.max(t,window.innerHeight-r-t)}},[]),W=(0,l.useCallback)(()=>{let e=D.current;if(!e||typeof window>`u`)return;if(b){H(0,0),M.current=!1;return}let{width:t,height:n,maxX:r,maxY:i}=U(e,12),o=(g?(window.innerHeight-n)/2:window.innerHeight*ne)+ie(h);H(Math.round(a.t((window.innerWidth-t)/2,12,r)),Math.round(a.t(o,12,i)))},[g,b,U,h,H]),G=(0,l.useCallback)(()=>{let e=D.current;if(!e)return;let{maxX:t,maxY:n}=U(e,12);H(Math.round(a.t(j.current.x,12,t)),Math.round(a.t(j.current.y,12,n)))},[U,H]),K=(0,l.useCallback)(()=>{O&&(b||!M.current?W():G())},[O,b,W,G]),q=(0,l.useCallback)((e,t)=>{let n=D.current;if(!n||b)return;let{maxX:r,maxY:i}=U(n,12),o=a.t(e-P.current.x,12,r),s=a.t(t-P.current.y,12,i);H(Math.round(o),Math.round(s)),M.current=!0},[b,U,H]),J=(0,l.useRef)({applyDragPosition:q,syncPosition:K});e.t(()=>{J.current={applyDragPosition:q,syncPosition:K}},[q,K]);let Ee=(0,l.useCallback)(e=>{N.current&&J.current.applyDragPosition(e.clientX,e.clientY)},[]),Y=(0,l.useCallback)(()=>{L.current?.abort(),L.current=null,F.current?.(),F.current=null},[]),X=(0,l.useCallback)(()=>{N.current&&(N.current=!1,A(!1),Y(),J.current.syncPosition())},[Y]),De=e=>{if(!y||b||!O||!B()||e.button!==0||e.target.closest(`.vl-modal__close, .vl-modal__title, .vl-message-box__title, [class*='__title'], [data-drag-cancel], button, input, textarea, select, a`))return;let t=D.current;if(!t)return;let n=window.getSelection();n&&n.rangeCount>0&&n.removeAllRanges(),e.preventDefault();let r=t.getBoundingClientRect();P.current={x:e.clientX-r.left,y:e.clientY-r.top},N.current=!0,A(!0),F.current=c.n(),L.current=new AbortController;let{signal:i}=L.current;window.addEventListener(`pointermove`,Ee,{signal:i}),window.addEventListener(`pointerup`,X,{once:!0,signal:i})};(0,l.useEffect)(()=>{let e=I.current;O&&!e?C?.():!O&&e&&w?.(),I.current=O},[O,C,w]),e.t(()=>{!O||!T||(V(!1),b?W():!v&&M.current?G():W(),V(!0))},[O,T,b,v,W,G,H,V]),(0,l.useEffect)(()=>{O||X()},[O,X]),(0,l.useEffect)(()=>{let e=D.current;if(!O||!T||!e)return;let t=null,n=()=>{N.current||t!==null||(t=window.requestAnimationFrame(()=>{t=null,N.current||K()}))},r=typeof ResizeObserver>`u`?null:new ResizeObserver(n);return r?.observe(e,{box:`border-box`}),window.addEventListener(`resize`,n,{passive:!0}),()=>{r?.disconnect(),window.removeEventListener(`resize`,n),t!==null&&window.cancelAnimationFrame(t)}},[O,T,K]),(0,l.useEffect)(()=>()=>{Y()},[Y]);let Oe=()=>{ce&&B()&&z()},ke=e=>{e.stopPropagation(),he?.(e)},Ae=[`vl-modal`,Te?`is-dragging`:``,g?`is-center`:``,b?`is-fullscreen`:``,pe||``].filter(Boolean).join(` `),je=[`vl-modal__header`,y&&!b?`is-draggable`:``].filter(Boolean).join(` `),Z={...S};E.zIndex!==void 0&&(Z.zIndex=E.zIndex),b?(Z.width=`100vw`,Z.height=void 0):Z.width=a.n(oe)??`520px`;let Q=fe??(m?(0,u.jsx)(`div`,{id:R,className:`vl-modal__title`,children:m}):null),$=ye??(!fe&&m?R:void 0),Me=ve??($?void 0:typeof m==`string`?m:`对话框`);return(0,u.jsx)(s.t,{layer:E.layer,children:(0,u.jsxs)(c.t,{clientReady:T,open:O,mask:se,destroyOnClose:v,maskTransitionName:`vl-modal-mask`,transitionName:`vl-modal`,maskClassName:`vl-modal__mask`,panelClassName:Ae,panelStyle:Z,maskStyle:E.maskZIndex===void 0?void 0:{zIndex:E.maskZIndex},panelRef:Ce,role:`dialog`,ariaLabel:Me,ariaLabelledBy:$,ariaDescribedBy:be,onMaskClick:Oe,onPanelClick:ke,onAfterLeave:()=>{X(),v&&(M.current=!1),_e?.()},panelProps:xe,children:[r.t(Q)||_?(0,u.jsx)(`div`,{className:je,onPointerDown:De,children:(0,u.jsxs)(`div`,{className:`vl-modal__headerInner`,children:[(0,u.jsx)(`div`,{className:`vl-modal__headerMain`,children:Q}),_?(0,u.jsx)(`button`,{type:`button`,className:`vl-modal__close`,"aria-label":`关闭对话框`,onClick:z,children:(0,u.jsx)(te.X,{size:20,"aria-hidden":`true`})}):null]})}):null,(0,u.jsx)(ee.t,{className:`vl-modal__body`,children:me}),r.t(x)?(0,u.jsx)(`div`,{className:`vl-modal__footer`,children:x}):null]})})});d.displayName=`VlModal`;var f=d,p=d;Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return p}});
|
package/dist/cjs/MessageBox.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("../MessageBox-
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("../MessageBox-BiSWjPH3.cjs");exports.VlMessageBox=e.t,exports.default=e.t;
|
package/dist/cjs/Modal.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("../Modal-
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("../Modal-CPL3TGSm.cjs");exports.VlModal=e.n,exports.default=e.t;
|
package/dist/cjs/global.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../registry-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../registry-DRuhdXZS.cjs");exports.globalComponents=e.t,exports.registerGlobalComponents=e.n;
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../Alert-tPSJmCXK.cjs"),t=require("../Anchor-CmuV1Ump.cjs"),n=require("../Announcement-BUvNHscy.cjs"),r=require("../Transition-X_89ga-e.cjs"),i=require("../Badge-BkqoSV-F.cjs"),a=require("../Button-qURrKHQ0.cjs"),o=require("../Card-BkZhLXQ5.cjs"),s=require("../Checkbox-CzNGP2tH.cjs"),c=require("../Col-CvoVGKUn.cjs"),l=require("../Input-BbJ4Q_xu.cjs"),u=require("../Tabs-BZ0Zc0bL.cjs"),d=require("../NumberInput-Dp1vTDkW.cjs"),f=require("../Cron-vQ7RSsws.cjs"),p=require("../Dropdown-Chx8SZPS.cjs"),m=require("../DatePicker-DFTqHT8i.cjs"),h=require("../DateTimePicker-McwH-cWl.cjs"),g=require("../Divider-BnmUNmy2.cjs"),_=require("../Drawer-YWO6-KLG.cjs"),v=require("../Empty-Dny96c3p.cjs"),y=require("../Form-CyCbST4e.cjs"),b=require("../Tooltip-z6u7ChKj.cjs"),x=require("../Loading-BSqhKOle.cjs"),S=require("../Scrollbar-CEQT6Ao_.cjs"),C=require("../Modal-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../Alert-tPSJmCXK.cjs"),t=require("../Anchor-CmuV1Ump.cjs"),n=require("../Announcement-BUvNHscy.cjs"),r=require("../Transition-X_89ga-e.cjs"),i=require("../Badge-BkqoSV-F.cjs"),a=require("../Button-qURrKHQ0.cjs"),o=require("../Card-BkZhLXQ5.cjs"),s=require("../Checkbox-CzNGP2tH.cjs"),c=require("../Col-CvoVGKUn.cjs"),l=require("../Input-BbJ4Q_xu.cjs"),u=require("../Tabs-BZ0Zc0bL.cjs"),d=require("../NumberInput-Dp1vTDkW.cjs"),f=require("../Cron-vQ7RSsws.cjs"),p=require("../Dropdown-Chx8SZPS.cjs"),m=require("../DatePicker-DFTqHT8i.cjs"),h=require("../DateTimePicker-McwH-cWl.cjs"),g=require("../Divider-BnmUNmy2.cjs"),_=require("../Drawer-YWO6-KLG.cjs"),v=require("../Empty-Dny96c3p.cjs"),y=require("../Form-CyCbST4e.cjs"),b=require("../Tooltip-z6u7ChKj.cjs"),x=require("../Loading-BSqhKOle.cjs"),S=require("../Scrollbar-CEQT6Ao_.cjs"),C=require("../Modal-CPL3TGSm.cjs"),w=require("../MessageBox-BiSWjPH3.cjs"),T=require("../Notification-D6m4qHKz.cjs"),E=require("../Select-Rx6AHue2.cjs"),D=require("../Pagination-D3ok8N9k.cjs"),O=require("../Progress-DTAjlgwZ.cjs"),k=require("./Radio.cjs"),A=require("./Row.cjs"),j=require("../Sidebar-2KVVRUEM.cjs"),M=require("../Slider-CU9OS2HB.cjs"),N=require("../Space-DJGRG2rt.cjs"),P=require("../Switch-CpXDMcPW.cjs"),F=require("../Table-Dv2qxs8q.cjs"),I=require("../Tag-4iZGcfrg.cjs"),L=require("../Textarea-CEhAvE10.cjs"),R=require("../Timeline-ROggEQnD.cjs"),z=require("../TimePicker-BCU7D6uD.cjs"),B=require("../Upload-wHEEoe1c.cjs"),V=require("../registry-DRuhdXZS.cjs");exports.VlAlert=e.n,exports.VlAnchor=t.n,exports.VlAnnouncement=n.n,exports.VlBadge=i.n,exports.VlButton=a.n,exports.VlButtonGroup=a.r,exports.VlCard=o.n,exports.VlCheckbox=s.n,exports.VlCheckboxGroup=s.r,exports.VlCol=c.n,exports.VlCron=f.n,exports.VlDatePicker=m.n,exports.VlDateTimePicker=h.n,exports.VlDivider=g.n,exports.VlDrawer=_.n,exports.VlDropdown=p.n,exports.VlEmpty=v.n,exports.VlForm=y.t,exports.VlFormItem=y.n,exports.VlInput=l.n,exports.VlLoading=x.n,exports.VlMessageBox=w.t,exports.VlModal=C.n,exports.VlNotification=T.t,exports.VlNumberInput=d.n,exports.VlPagination=D.n,exports.VlProgress=O.n,exports.VlRadio=k.VlRadio,exports.VlRadioGroup=k.VlRadioGroup,exports.VlRow=A.VlRow,exports.VlScrollbar=S.n,exports.VlSelect=E.n,exports.VlSidebar=j.n,exports.VlSlider=M.n,exports.VlSpace=N.n,exports.VlSwitch=P.n,exports.VlTable=F.n,exports.VlTabs=u.n,exports.VlTag=I.n,exports.VlTextarea=L.n,exports.VlTimePicker=z.n,exports.VlTimeline=R.n,exports.VlTooltip=b.n,exports.VlTransition=r.n,exports.VlUpload=B.n,exports.globalComponents=V.t,exports.registerGlobalComponents=V.n;
|
package/dist/cjs/register.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../registry-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../registry-DRuhdXZS.cjs");require("./global.cjs"),typeof window<`u`&&e.n(),exports.globalComponents=e.t,exports.registerGlobalComponents=e.n;
|
package/dist/css/Modal.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--vl-modal-mask-bg:var(--vl-color-bg-mask);--vl-modal-border:var(--vl-overlay-border);--vl-modal-content-bg:var(--vl-overlay-bg);--vl-modal-shadow:var(--vl-overlay-shadow);--vl-modal-control-bg:var(--vl-color-bg-surface);--vl-modal-control-border:var(--vl-color-border);--vl-modal-control-border-hover:var(--vl-color-border-dark);--vl-modal-control-border-focus:var(--vl-color-brand-primary-text);--vl-modal-action-bg:var(--vl-color-bg-surface);--vl-modal-action-border:var(--vl-color-border);--vl-modal-action-hover-bg:var(--vl-color-bg-hover);--vl-modal-action-hover-border:var(--vl-color-border-dark);--vl-modal-close-hover-bg:var(--vl-color-bg-hover)}:root[data-theme=dark]{--vl-modal-mask-bg:var(--vl-color-bg-mask);--vl-modal-border:var(--vl-overlay-border);--vl-modal-content-bg:var(--vl-color-bg-elevated);--vl-modal-shadow:var(--vl-overlay-shadow);--vl-modal-control-bg:var(--vl-color-bg-surface);--vl-modal-control-border:var(--vl-color-border);--vl-modal-control-border-hover:var(--vl-color-border-dark);--vl-modal-control-border-focus:var(--vl-color-brand-primary-text);--vl-modal-action-bg:var(--vl-color-bg-surface);--vl-modal-action-border:var(--vl-color-border);--vl-modal-action-hover-bg:var(--vl-color-bg-hover);--vl-modal-action-hover-border:var(--vl-color-border-dark);--vl-modal-close-hover-bg:var(--vl-color-bg-hover)}.vl-modal__mask{z-index:calc(var(--vl-z-modal) - 1);background:var(--vl-modal-mask-bg);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);position:fixed;inset:0}.vl-modal{--vl-control-bg:var(--vl-modal-control-bg);--vl-control-hover-bg:var(--vl-modal-control-bg);--vl-control-border:var(--vl-modal-control-border);--vl-control-border-hover:var(--vl-modal-control-border-hover);--vl-control-border-focus:var(--vl-modal-control-border-focus);--vl-button-default-bg:var(--vl-modal-action-bg);--vl-button-default-border:var(--vl-modal-action-border);--vl-button-default-hover-bg:var(--vl-modal-action-hover-bg);--vl-button-default-hover-text:var(--vl-color-text-primary);--vl-button-default-hover-border:var(--vl-modal-action-hover-border);background-color:var(--vl-modal-content-bg);border:1px solid var(--vl-modal-border);border-radius:var(--vl-radius-lg);box-shadow:var(--vl-modal-shadow);z-index:var(--vl-z-modal);max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);color:var(--vl-color-text-primary);font-size:var(--vl-font-size-md);line-height:var(--vl-line-height-normal);border-style:solid;border-width:1px;border-color:var(--vl-modal-border);outline:none;flex-direction:column;display:flex;position:fixed;overflow:hidden}.vl-modal:focus-visible{border-color:var(--vl-color-brand-primary-text)}.vl-modal.is-dragging,.vl-modal.is-dragging .vl-modal__header,.vl-modal.is-dragging .vl-modal__title{cursor:grabbing}.vl-modal.is-fullscreen{border-radius:0;width:100vw;max-width:100vw;height:
|
|
1
|
+
:root{--vl-modal-mask-bg:var(--vl-color-bg-mask);--vl-modal-border:var(--vl-overlay-border);--vl-modal-content-bg:var(--vl-overlay-bg);--vl-modal-shadow:var(--vl-overlay-shadow);--vl-modal-control-bg:var(--vl-color-bg-surface);--vl-modal-control-border:var(--vl-color-border);--vl-modal-control-border-hover:var(--vl-color-border-dark);--vl-modal-control-border-focus:var(--vl-color-brand-primary-text);--vl-modal-action-bg:var(--vl-color-bg-surface);--vl-modal-action-border:var(--vl-color-border);--vl-modal-action-hover-bg:var(--vl-color-bg-hover);--vl-modal-action-hover-border:var(--vl-color-border-dark);--vl-modal-close-hover-bg:var(--vl-color-bg-hover)}:root[data-theme=dark]{--vl-modal-mask-bg:var(--vl-color-bg-mask);--vl-modal-border:var(--vl-overlay-border);--vl-modal-content-bg:var(--vl-color-bg-elevated);--vl-modal-shadow:var(--vl-overlay-shadow);--vl-modal-control-bg:var(--vl-color-bg-surface);--vl-modal-control-border:var(--vl-color-border);--vl-modal-control-border-hover:var(--vl-color-border-dark);--vl-modal-control-border-focus:var(--vl-color-brand-primary-text);--vl-modal-action-bg:var(--vl-color-bg-surface);--vl-modal-action-border:var(--vl-color-border);--vl-modal-action-hover-bg:var(--vl-color-bg-hover);--vl-modal-action-hover-border:var(--vl-color-border-dark);--vl-modal-close-hover-bg:var(--vl-color-bg-hover)}.vl-modal__mask{z-index:calc(var(--vl-z-modal) - 1);background:var(--vl-modal-mask-bg);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);position:fixed;inset:0}.vl-modal{--vl-control-bg:var(--vl-modal-control-bg);--vl-control-hover-bg:var(--vl-modal-control-bg);--vl-control-border:var(--vl-modal-control-border);--vl-control-border-hover:var(--vl-modal-control-border-hover);--vl-control-border-focus:var(--vl-modal-control-border-focus);--vl-button-default-bg:var(--vl-modal-action-bg);--vl-button-default-border:var(--vl-modal-action-border);--vl-button-default-hover-bg:var(--vl-modal-action-hover-bg);--vl-button-default-hover-text:var(--vl-color-text-primary);--vl-button-default-hover-border:var(--vl-modal-action-hover-border);background-color:var(--vl-modal-content-bg);border:1px solid var(--vl-modal-border);border-radius:var(--vl-radius-lg);box-shadow:var(--vl-modal-shadow);z-index:var(--vl-z-modal);box-sizing:border-box;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);color:var(--vl-color-text-primary);font-size:var(--vl-font-size-md);line-height:var(--vl-line-height-normal);border-style:solid;border-width:1px;border-color:var(--vl-modal-border);outline:none;flex-direction:column;display:flex;position:fixed;overflow:hidden}.vl-modal:focus-visible{border-color:var(--vl-color-brand-primary-text)}.vl-modal.is-dragging,.vl-modal.is-dragging .vl-modal__header,.vl-modal.is-dragging .vl-modal__title{cursor:grabbing}.vl-modal.is-fullscreen{border-radius:0;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh}.vl-modal__header{padding:var(--vl-space-3) var(--vl-space-4);flex:none}.vl-modal__header.is-draggable{cursor:grab;-webkit-user-select:none;user-select:none}.vl-modal__headerInner{align-items:center;gap:var(--vl-space-3);display:flex}.vl-modal__headerMain{flex:1;min-width:0}.vl-modal__title{width:fit-content;max-width:100%;font-size:var(--vl-font-size-lg);font-weight:var(--vl-font-weight-semibold);line-height:var(--vl-line-height-tight);white-space:nowrap;text-overflow:ellipsis;-webkit-user-select:text;user-select:text;cursor:text;overflow:hidden}.vl-modal__close{appearance:none;color:var(--vl-color-text-secondary);border-radius:var(--vl-radius-sm);cursor:pointer;width:32px;height:32px;transition:color var(--vl-duration-fast) var(--vl-easing-ease), background-color var(--vl-duration-fast) var(--vl-easing-ease);background:0 0;border:0;outline:none;flex-shrink:0;justify-content:center;align-items:center;display:inline-flex}.vl-modal__close:hover{color:var(--vl-color-text-primary);background-color:var(--vl-modal-close-hover-bg)}.vl-modal__close:active{color:var(--vl-color-text-secondary)}.vl-modal__close:focus-visible{background:var(--vl-color-bg-hover);color:var(--vl-color-text-primary)}.vl-modal__close svg{width:1.5em;height:1.5em}.vl-modal__body{flex:1;min-width:0;min-height:0;overflow:hidden}.vl-modal__body.vl-scrollbar{flex-direction:column;block-size:0;display:flex}.vl-modal__body>.vl-scrollbar__viewport{min-height:0;block-size:auto;padding:var(--vl-space-4);overscroll-behavior-y:contain;flex:auto}.vl-modal.is-center .vl-modal__body{text-align:center}.vl-modal.is-center .vl-modal__footer{justify-content:center}.vl-modal__footer{padding:var(--vl-space-3) var(--vl-space-4);justify-content:flex-end;align-items:center;gap:var(--vl-space-2);background-color:var(--vl-modal-content-bg);flex-wrap:wrap;flex:none;min-width:0;display:flex}.vl-modal-mask-enter-active{transition:opacity var(--vl-duration-normal) var(--vl-easing-emphasized)}.vl-modal-mask-leave-active{transition:opacity var(--vl-duration-fast) var(--vl-easing-exit)}.vl-modal-mask-enter-from,.vl-modal-mask-leave-to{opacity:0}.vl-modal-mask-enter-to,.vl-modal-mask-leave-from{opacity:1}.vl-modal-enter-active{transition:opacity var(--vl-duration-fast) var(--vl-easing-standard), transform var(--vl-duration-normal) var(--vl-easing-emphasized);will-change:transform, opacity}.vl-modal-leave-active{transition:opacity var(--vl-duration-fast) var(--vl-easing-exit), transform var(--vl-duration-fast) var(--vl-easing-exit);will-change:transform, opacity}.vl-modal-enter-from{opacity:0;transform:translateY(6px)scale(.96)}.vl-modal-leave-to{opacity:0;transform:translateY(4px)scale(.98)}.vl-modal-enter-to,.vl-modal-leave-from{opacity:1;transform:translateY(0)scale(1)}.vl-modal.is-fullscreen.vl-modal-enter-from{transform:translateY(8px)}.vl-modal.is-fullscreen.vl-modal-leave-to{transform:translateY(4px)}
|
package/dist/es/MessageBox.mjs
CHANGED
package/dist/es/Modal.mjs
CHANGED
package/dist/es/global.mjs
CHANGED
package/dist/es/index.mjs
CHANGED
|
@@ -22,8 +22,8 @@ import { n as x, t as S } from "../Form-Fe4b1pS1.js";
|
|
|
22
22
|
import { n as C } from "../Tooltip-BbbIT5nt.js";
|
|
23
23
|
import { n as w } from "../Loading-BAKnIASq.js";
|
|
24
24
|
import { n as T } from "../Scrollbar-BdMGZrYi.js";
|
|
25
|
-
import { n as E } from "../Modal-
|
|
26
|
-
import { t as D } from "../MessageBox-
|
|
25
|
+
import { n as E } from "../Modal-BbIpvT94.js";
|
|
26
|
+
import { t as D } from "../MessageBox-DgBoAkV3.js";
|
|
27
27
|
import { t as O } from "../Notification-CJraaZIi.js";
|
|
28
28
|
import { n as k } from "../Select-GleCzXQB.js";
|
|
29
29
|
import { n as A } from "../Pagination-BrG1pKYw.js";
|
|
@@ -40,5 +40,5 @@ import { n as V } from "../Textarea-CA6Vzu7t.js";
|
|
|
40
40
|
import { n as H } from "../Timeline-euWvUS4e.js";
|
|
41
41
|
import { n as U } from "../TimePicker-BVZbkBvJ.js";
|
|
42
42
|
import { n as W } from "../Upload-DZ6VaM7r.js";
|
|
43
|
-
import { n as G, t as K } from "../registry-
|
|
43
|
+
import { n as G, t as K } from "../registry-DUsYI8p5.js";
|
|
44
44
|
export { e as VlAlert, t as VlAnchor, n as VlAnnouncement, i as VlBadge, a as VlButton, o as VlButtonGroup, s as VlCard, c as VlCheckbox, l as VlCheckboxGroup, u as VlCol, m as VlCron, g as VlDatePicker, _ as VlDateTimePicker, v as VlDivider, y as VlDrawer, h as VlDropdown, b as VlEmpty, S as VlForm, x as VlFormItem, d as VlInput, w as VlLoading, D as VlMessageBox, E as VlModal, O as VlNotification, p as VlNumberInput, A as VlPagination, j as VlProgress, M as VlRadio, N as VlRadioGroup, P as VlRow, T as VlScrollbar, k as VlSelect, F as VlSidebar, I as VlSlider, L as VlSpace, R as VlSwitch, z as VlTable, f as VlTabs, B as VlTag, V as VlTextarea, U as VlTimePicker, H as VlTimeline, C as VlTooltip, r as VlTransition, W as VlUpload, K as globalComponents, G as registerGlobalComponents };
|
package/dist/es/register.mjs
CHANGED