@vavt/react-ui 1.2.1 → 1.2.2
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/Notification-CJraaZIi.js +197 -0
- package/dist/Notification-D6m4qHKz.cjs +1 -0
- package/dist/cjs/Notification.cjs +1 -0
- package/dist/cjs/global.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/register.cjs +1 -1
- package/dist/css/Notification.css +1 -0
- package/dist/es/Notification.mjs +3 -0
- package/dist/es/global.mjs +1 -1
- package/dist/es/index.mjs +18 -17
- package/dist/es/register.mjs +1 -1
- package/dist/index.css +1 -1
- package/dist/{registry-C8ZL-n-l.js → registry-BUQSQSwB.js} +35 -33
- package/dist/registry-DF1N2ITX.cjs +1 -0
- package/dist/style/Notification.cjs +8 -0
- package/dist/style/Notification.mjs +8 -0
- package/dist/types/Notification/Notification.d.cts +4 -0
- package/dist/types/Notification/Notification.d.ts +4 -0
- package/dist/types/Notification/host.d.cts +9 -0
- package/dist/types/Notification/host.d.ts +9 -0
- package/dist/types/Notification/index.d.cts +5 -0
- package/dist/types/Notification/index.d.ts +5 -0
- package/dist/types/Notification/service.d.cts +5 -0
- package/dist/types/Notification/service.d.ts +5 -0
- package/dist/types/Notification/type.d.cts +55 -0
- package/dist/types/Notification/type.d.ts +55 -0
- package/dist/types/global.d.cts +2 -0
- package/dist/types/global.d.ts +2 -0
- package/dist/types/index.d.cts +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/registry.d.cts +1 -0
- package/dist/types/registry.d.ts +1 -0
- package/package.json +1 -1
- package/dist/registry-BqfLh5B_.cjs +0 -1
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
import { t as e } from "./icon-Cbvuv4yF.js";
|
|
2
|
+
import { t } from "./effect-nifYL_rH.js";
|
|
3
|
+
import { n, t as r } from "./state-BSDh-Ob2.js";
|
|
4
|
+
import { t as i } from "./Transition-DiO4GsP3.js";
|
|
5
|
+
import { CircleAlert as a, CircleCheck as o, CircleX as s, Info as c, X as l } from "lucide-react";
|
|
6
|
+
import { forwardRef as u, useCallback as d, useEffect as f, useRef as p, useState as m } from "react";
|
|
7
|
+
import { jsx as h, jsxs as g } from "react/jsx-runtime";
|
|
8
|
+
import { createPortal as _ } from "react-dom";
|
|
9
|
+
import { createRoot as v } from "react-dom/client";
|
|
10
|
+
//#region components/Notification/host.ts
|
|
11
|
+
var y = /* @__PURE__ */ new Map(), b = (e) => {
|
|
12
|
+
let t = y.get(e);
|
|
13
|
+
if (!t || !document.body.contains(t.element)) {
|
|
14
|
+
let n = document.createElement("div");
|
|
15
|
+
n.className = `vl-notification-host is-${e}`, document.body.appendChild(n), t = {
|
|
16
|
+
element: n,
|
|
17
|
+
users: 0
|
|
18
|
+
}, y.set(e, t);
|
|
19
|
+
}
|
|
20
|
+
t.users += 1;
|
|
21
|
+
let n = t;
|
|
22
|
+
return {
|
|
23
|
+
element: n.element,
|
|
24
|
+
release: () => {
|
|
25
|
+
--n.users, !(n.users > 0) && (n.element.remove(), y.get(e) === n && y.delete(e));
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
}, x = {
|
|
29
|
+
info: c,
|
|
30
|
+
success: o,
|
|
31
|
+
warning: a,
|
|
32
|
+
error: s
|
|
33
|
+
}, S = u((a, o) => {
|
|
34
|
+
let { open: s, defaultOpen: c = !1, title: u, status: v = "info", icon: y, placement: S = "top-right", duration: C = 4500, closable: w = !0, pauseOnHover: T = !0, pauseOnFocus: ee = !0, closeOnPressEscape: te = !0, action: E, onChange: D, onClose: O, onAfterClose: k, onMouseEnter: A, onMouseLeave: j, onFocusCapture: M, onBlurCapture: N, onKeyDown: P, role: F = v === "error" || v === "warning" ? "alert" : "status", className: I, children: L, ...R } = a, [z, B] = n({
|
|
35
|
+
value: !!s,
|
|
36
|
+
defaultValue: c,
|
|
37
|
+
controlled: r(a, "open"),
|
|
38
|
+
onChange: D
|
|
39
|
+
}), [V, H] = m(null), [U, W] = m(!1), [G, K] = m(!1), [ne, re] = m(!0), q = p(C), J = p(!1), Y = p({
|
|
40
|
+
open: z,
|
|
41
|
+
onClose: O
|
|
42
|
+
});
|
|
43
|
+
t(() => {
|
|
44
|
+
Y.current = {
|
|
45
|
+
open: z,
|
|
46
|
+
onClose: O
|
|
47
|
+
};
|
|
48
|
+
}), t(() => {
|
|
49
|
+
z && (J.current = !1);
|
|
50
|
+
}, [z]);
|
|
51
|
+
let X = d(() => {
|
|
52
|
+
!Y.current.open || J.current || (J.current = !0, B(!1), Y.current.onClose?.());
|
|
53
|
+
}, [B]);
|
|
54
|
+
f(() => {
|
|
55
|
+
let e = b(S);
|
|
56
|
+
return H(e.element), e.release;
|
|
57
|
+
}, [S]), f(() => {
|
|
58
|
+
let e = () => re(!document.hidden);
|
|
59
|
+
return e(), document.addEventListener("visibilitychange", e), () => document.removeEventListener("visibilitychange", e);
|
|
60
|
+
}, []), f(() => {
|
|
61
|
+
q.current = C, z || (W(!1), K(!1));
|
|
62
|
+
}, [z, C]);
|
|
63
|
+
let Z = !ne || T && U || ee && G;
|
|
64
|
+
if (f(() => {
|
|
65
|
+
if (!V || !z || C <= 0 || Z) return;
|
|
66
|
+
let e = Date.now(), t = window.setTimeout(X, q.current);
|
|
67
|
+
return () => {
|
|
68
|
+
window.clearTimeout(t), q.current = Math.max(0, q.current - (Date.now() - e));
|
|
69
|
+
};
|
|
70
|
+
}, [
|
|
71
|
+
V,
|
|
72
|
+
z,
|
|
73
|
+
C,
|
|
74
|
+
Z,
|
|
75
|
+
X
|
|
76
|
+
]), !V) return null;
|
|
77
|
+
let Q = y === void 0 ? x[v] : y, $ = u != null && u !== !1;
|
|
78
|
+
return _(/* @__PURE__ */ h(i, {
|
|
79
|
+
show: z,
|
|
80
|
+
name: "vl-notification-fade",
|
|
81
|
+
onAfterLeave: k,
|
|
82
|
+
children: /* @__PURE__ */ g("div", {
|
|
83
|
+
...R,
|
|
84
|
+
ref: o,
|
|
85
|
+
className: [
|
|
86
|
+
"vl-notification",
|
|
87
|
+
`is-${v}`,
|
|
88
|
+
$ ? "has-title" : "",
|
|
89
|
+
I || ""
|
|
90
|
+
].filter(Boolean).join(" "),
|
|
91
|
+
role: F,
|
|
92
|
+
"aria-atomic": R["aria-atomic"] ?? !0,
|
|
93
|
+
"aria-hidden": !z || R["aria-hidden"] || void 0,
|
|
94
|
+
onMouseEnter: (e) => {
|
|
95
|
+
W(!0), A?.(e);
|
|
96
|
+
},
|
|
97
|
+
onMouseLeave: (e) => {
|
|
98
|
+
W(!1), j?.(e);
|
|
99
|
+
},
|
|
100
|
+
onFocusCapture: (e) => {
|
|
101
|
+
K(!0), M?.(e);
|
|
102
|
+
},
|
|
103
|
+
onBlurCapture: (e) => {
|
|
104
|
+
e.currentTarget.contains(e.relatedTarget) || K(!1), N?.(e);
|
|
105
|
+
},
|
|
106
|
+
onKeyDown: (e) => {
|
|
107
|
+
P?.(e), !(e.defaultPrevented || e.key !== "Escape" || !te) && (e.stopPropagation(), X());
|
|
108
|
+
},
|
|
109
|
+
children: [
|
|
110
|
+
Q ? e(Q, "vl-notification__icon") : null,
|
|
111
|
+
/* @__PURE__ */ g("div", {
|
|
112
|
+
className: "vl-notification__body",
|
|
113
|
+
children: [
|
|
114
|
+
$ ? /* @__PURE__ */ h("div", {
|
|
115
|
+
className: "vl-notification__title",
|
|
116
|
+
children: u
|
|
117
|
+
}) : null,
|
|
118
|
+
L === void 0 ? null : /* @__PURE__ */ h("div", {
|
|
119
|
+
className: "vl-notification__content",
|
|
120
|
+
children: L
|
|
121
|
+
}),
|
|
122
|
+
E ? /* @__PURE__ */ h("div", {
|
|
123
|
+
className: "vl-notification__action",
|
|
124
|
+
children: E
|
|
125
|
+
}) : null
|
|
126
|
+
]
|
|
127
|
+
}),
|
|
128
|
+
w ? /* @__PURE__ */ h("button", {
|
|
129
|
+
type: "button",
|
|
130
|
+
className: "vl-notification__close",
|
|
131
|
+
"aria-label": "关闭通知",
|
|
132
|
+
title: "关闭通知",
|
|
133
|
+
disabled: !z,
|
|
134
|
+
onClick: X,
|
|
135
|
+
children: /* @__PURE__ */ h(l, { "aria-hidden": "true" })
|
|
136
|
+
}) : null
|
|
137
|
+
]
|
|
138
|
+
})
|
|
139
|
+
}), V);
|
|
140
|
+
});
|
|
141
|
+
S.displayName = "VlNotification";
|
|
142
|
+
//#endregion
|
|
143
|
+
//#region components/Notification/service.tsx
|
|
144
|
+
var C = /* @__PURE__ */ new Set(), w = (e) => {
|
|
145
|
+
if (typeof document > "u") throw Error("VlNotification imperative APIs are only available in a browser environment.");
|
|
146
|
+
let { content: t, onClose: n, onAfterClose: r, ...i } = e, a = document.createElement("div");
|
|
147
|
+
a.className = "vl-notification-container", document.body.appendChild(a);
|
|
148
|
+
let o = v(a), s = !0, c = !1, l = !1, u = () => {
|
|
149
|
+
l || (l = !0, C.delete(f), queueMicrotask(() => {
|
|
150
|
+
o.unmount(), a.remove(), r?.();
|
|
151
|
+
}));
|
|
152
|
+
}, d = () => {
|
|
153
|
+
o.render(/* @__PURE__ */ h(S, {
|
|
154
|
+
...i,
|
|
155
|
+
ref: (e) => {
|
|
156
|
+
e && (c = !0);
|
|
157
|
+
},
|
|
158
|
+
open: s,
|
|
159
|
+
onChange: () => f.close(),
|
|
160
|
+
onAfterClose: u,
|
|
161
|
+
children: t
|
|
162
|
+
}));
|
|
163
|
+
}, f = { close: () => {
|
|
164
|
+
if (!(!s || l)) {
|
|
165
|
+
s = !1, C.delete(f);
|
|
166
|
+
try {
|
|
167
|
+
n?.();
|
|
168
|
+
} finally {
|
|
169
|
+
c ? d() : u();
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
} };
|
|
173
|
+
return C.add(f), d(), f;
|
|
174
|
+
}, T = Object.assign(S, {
|
|
175
|
+
open: w,
|
|
176
|
+
info: (e) => w({
|
|
177
|
+
...e,
|
|
178
|
+
status: "info"
|
|
179
|
+
}),
|
|
180
|
+
success: (e) => w({
|
|
181
|
+
...e,
|
|
182
|
+
status: "success"
|
|
183
|
+
}),
|
|
184
|
+
warning: (e) => w({
|
|
185
|
+
...e,
|
|
186
|
+
status: "warning"
|
|
187
|
+
}),
|
|
188
|
+
error: (e) => w({
|
|
189
|
+
...e,
|
|
190
|
+
status: "error"
|
|
191
|
+
}),
|
|
192
|
+
closeAll: () => {
|
|
193
|
+
[...C].forEach((e) => e.close());
|
|
194
|
+
}
|
|
195
|
+
});
|
|
196
|
+
//#endregion
|
|
197
|
+
export { T as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./icon-DRLyKu8p.cjs"),t=require("./effect-BpNxm_06.cjs"),n=require("./state-BuUx1onZ.cjs"),r=require("./Transition-X_89ga-e.cjs");let i=require("lucide-react"),a=require("react"),o=require("react/jsx-runtime"),s=require("react-dom"),c=require("react-dom/client");var l=new Map,u=e=>{let t=l.get(e);if(!t||!document.body.contains(t.element)){let n=document.createElement(`div`);n.className=`vl-notification-host is-${e}`,document.body.appendChild(n),t={element:n,users:0},l.set(e,t)}t.users+=1;let n=t;return{element:n.element,release:()=>{--n.users,!(n.users>0)&&(n.element.remove(),l.get(e)===n&&l.delete(e))}}},d={info:i.Info,success:i.CircleCheck,warning:i.CircleAlert,error:i.CircleX},f=(0,a.forwardRef)((c,l)=>{let{open:f,defaultOpen:p=!1,title:m,status:h=`info`,icon:g,placement:_=`top-right`,duration:v=4500,closable:y=!0,pauseOnHover:b=!0,pauseOnFocus:x=!0,closeOnPressEscape:S=!0,action:C,onChange:w,onClose:T,onAfterClose:E,onMouseEnter:D,onMouseLeave:O,onFocusCapture:k,onBlurCapture:A,onKeyDown:j,role:M=h===`error`||h===`warning`?`alert`:`status`,className:N,children:P,...F}=c,[I,L]=n.n({value:!!f,defaultValue:p,controlled:n.t(c,`open`),onChange:w}),[R,z]=(0,a.useState)(null),[B,V]=(0,a.useState)(!1),[H,U]=(0,a.useState)(!1),[W,G]=(0,a.useState)(!0),K=(0,a.useRef)(v),q=(0,a.useRef)(!1),J=(0,a.useRef)({open:I,onClose:T});t.t(()=>{J.current={open:I,onClose:T}}),t.t(()=>{I&&(q.current=!1)},[I]);let Y=(0,a.useCallback)(()=>{!J.current.open||q.current||(q.current=!0,L(!1),J.current.onClose?.())},[L]);(0,a.useEffect)(()=>{let e=u(_);return z(e.element),e.release},[_]),(0,a.useEffect)(()=>{let e=()=>G(!document.hidden);return e(),document.addEventListener(`visibilitychange`,e),()=>document.removeEventListener(`visibilitychange`,e)},[]),(0,a.useEffect)(()=>{K.current=v,I||(V(!1),U(!1))},[I,v]);let X=!W||b&&B||x&&H;if((0,a.useEffect)(()=>{if(!R||!I||v<=0||X)return;let e=Date.now(),t=window.setTimeout(Y,K.current);return()=>{window.clearTimeout(t),K.current=Math.max(0,K.current-(Date.now()-e))}},[R,I,v,X,Y]),!R)return null;let Z=g===void 0?d[h]:g,Q=m!=null&&m!==!1;return(0,s.createPortal)((0,o.jsx)(r.t,{show:I,name:`vl-notification-fade`,onAfterLeave:E,children:(0,o.jsxs)(`div`,{...F,ref:l,className:[`vl-notification`,`is-${h}`,Q?`has-title`:``,N||``].filter(Boolean).join(` `),role:M,"aria-atomic":F[`aria-atomic`]??!0,"aria-hidden":!I||F[`aria-hidden`]||void 0,onMouseEnter:e=>{V(!0),D?.(e)},onMouseLeave:e=>{V(!1),O?.(e)},onFocusCapture:e=>{U(!0),k?.(e)},onBlurCapture:e=>{e.currentTarget.contains(e.relatedTarget)||U(!1),A?.(e)},onKeyDown:e=>{j?.(e),!(e.defaultPrevented||e.key!==`Escape`||!S)&&(e.stopPropagation(),Y())},children:[Z?e.t(Z,`vl-notification__icon`):null,(0,o.jsxs)(`div`,{className:`vl-notification__body`,children:[Q?(0,o.jsx)(`div`,{className:`vl-notification__title`,children:m}):null,P===void 0?null:(0,o.jsx)(`div`,{className:`vl-notification__content`,children:P}),C?(0,o.jsx)(`div`,{className:`vl-notification__action`,children:C}):null]}),y?(0,o.jsx)(`button`,{type:`button`,className:`vl-notification__close`,"aria-label":`关闭通知`,title:`关闭通知`,disabled:!I,onClick:Y,children:(0,o.jsx)(i.X,{"aria-hidden":`true`})}):null]})}),R)});f.displayName=`VlNotification`;var p=new Set,m=e=>{if(typeof document>`u`)throw Error(`VlNotification imperative APIs are only available in a browser environment.`);let{content:t,onClose:n,onAfterClose:r,...i}=e,a=document.createElement(`div`);a.className=`vl-notification-container`,document.body.appendChild(a);let s=(0,c.createRoot)(a),l=!0,u=!1,d=!1,m=()=>{d||(d=!0,p.delete(g),queueMicrotask(()=>{s.unmount(),a.remove(),r?.()}))},h=()=>{s.render((0,o.jsx)(f,{...i,ref:e=>{e&&(u=!0)},open:l,onChange:()=>g.close(),onAfterClose:m,children:t}))},g={close:()=>{if(!(!l||d)){l=!1,p.delete(g);try{n?.()}finally{u?h():m()}}}};return p.add(g),h(),g},h=Object.assign(f,{open:m,info:e=>m({...e,status:`info`}),success:e=>m({...e,status:`success`}),warning:e=>m({...e,status:`warning`}),error:e=>m({...e,status:`error`}),closeAll:()=>{[...p].forEach(e=>e.close())}});Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return h}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("../Notification-D6m4qHKz.cjs");exports.VlNotification=e.t,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-DF1N2ITX.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-D0hZE2sM.cjs"),r=require("../Button-qURrKHQ0.cjs"),i=require("../Card-BkZhLXQ5.cjs"),a=require("../Checkbox-CzNGP2tH.cjs"),o=require("../Col-qcq7T83y.cjs"),s=require("../Transition-X_89ga-e.cjs"),c=require("../Input-C9ESmbJ7.cjs"),l=require("../Tabs-BZ0Zc0bL.cjs"),u=require("../NumberInput-Dp1vTDkW.cjs"),d=require("../Cron-MhbYMEeJ.cjs"),f=require("../Dropdown-PHqXNiAZ.cjs"),p=require("../DatePicker-Bj709smn.cjs"),m=require("../DateTimePicker-ZSScsk-j.cjs"),h=require("../Divider-BnmUNmy2.cjs"),g=require("../Drawer-DcbgMkub.cjs"),_=require("../Empty-Dny96c3p.cjs"),v=require("../Form-BkyDHPEI.cjs"),y=require("../Tooltip-DDjGLjoV.cjs"),b=require("../Loading-C2pY-4fA.cjs"),x=require("../Scrollbar-CEQT6Ao_.cjs"),S=require("../Modal-DPxZEr2v.cjs"),C=require("../MessageBox-D7Ib1f7K.cjs"),w=require("../Select-C6O0tmM_.cjs"),
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../Alert-tPSJmCXK.cjs"),t=require("../Anchor-CmuV1Ump.cjs"),n=require("../Announcement-D0hZE2sM.cjs"),r=require("../Button-qURrKHQ0.cjs"),i=require("../Card-BkZhLXQ5.cjs"),a=require("../Checkbox-CzNGP2tH.cjs"),o=require("../Col-qcq7T83y.cjs"),s=require("../Transition-X_89ga-e.cjs"),c=require("../Input-C9ESmbJ7.cjs"),l=require("../Tabs-BZ0Zc0bL.cjs"),u=require("../NumberInput-Dp1vTDkW.cjs"),d=require("../Cron-MhbYMEeJ.cjs"),f=require("../Dropdown-PHqXNiAZ.cjs"),p=require("../DatePicker-Bj709smn.cjs"),m=require("../DateTimePicker-ZSScsk-j.cjs"),h=require("../Divider-BnmUNmy2.cjs"),g=require("../Drawer-DcbgMkub.cjs"),_=require("../Empty-Dny96c3p.cjs"),v=require("../Form-BkyDHPEI.cjs"),y=require("../Tooltip-DDjGLjoV.cjs"),b=require("../Loading-C2pY-4fA.cjs"),x=require("../Scrollbar-CEQT6Ao_.cjs"),S=require("../Modal-DPxZEr2v.cjs"),C=require("../MessageBox-D7Ib1f7K.cjs"),w=require("../Notification-D6m4qHKz.cjs"),T=require("../Select-C6O0tmM_.cjs"),E=require("../Pagination-DatEegaF.cjs"),D=require("../Progress-DTAjlgwZ.cjs"),O=require("./Radio.cjs"),k=require("./Row.cjs"),A=require("../Sidebar-BPXVnP7y.cjs"),j=require("../Slider-CU9OS2HB.cjs"),M=require("../Space-DJGRG2rt.cjs"),N=require("../Switch-CpXDMcPW.cjs"),P=require("../Table-BNGO_7Rx.cjs"),F=require("../Tag-4iZGcfrg.cjs"),I=require("../Textarea-CEhAvE10.cjs"),L=require("../Timeline-ROggEQnD.cjs"),R=require("../TimePicker-DoGbwfkU.cjs"),z=require("../Upload-wHEEoe1c.cjs"),B=require("../registry-DF1N2ITX.cjs");exports.VlAlert=e.n,exports.VlAnchor=t.n,exports.VlAnnouncement=n.n,exports.VlButton=r.n,exports.VlButtonGroup=r.r,exports.VlCard=i.n,exports.VlCheckbox=a.n,exports.VlCheckboxGroup=a.r,exports.VlCol=o.n,exports.VlCron=d.n,exports.VlDatePicker=p.n,exports.VlDateTimePicker=m.n,exports.VlDivider=h.n,exports.VlDrawer=g.n,exports.VlDropdown=f.n,exports.VlEmpty=_.n,exports.VlForm=v.t,exports.VlFormItem=v.n,exports.VlInput=c.n,exports.VlLoading=b.n,exports.VlMessageBox=C.t,exports.VlModal=S.n,exports.VlNotification=w.t,exports.VlNumberInput=u.n,exports.VlPagination=E.n,exports.VlProgress=D.n,exports.VlRadio=O.VlRadio,exports.VlRadioGroup=O.VlRadioGroup,exports.VlRow=k.VlRow,exports.VlScrollbar=x.n,exports.VlSelect=T.n,exports.VlSidebar=A.n,exports.VlSlider=j.n,exports.VlSpace=M.n,exports.VlSwitch=N.n,exports.VlTable=P.n,exports.VlTabs=l.n,exports.VlTag=F.n,exports.VlTextarea=I.n,exports.VlTimePicker=R.n,exports.VlTimeline=L.n,exports.VlTooltip=y.n,exports.VlTransition=s.n,exports.VlUpload=z.n,exports.globalComponents=B.t,exports.registerGlobalComponents=B.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-DF1N2ITX.cjs");require("./global.cjs"),typeof window<`u`&&e.n(),exports.globalComponents=e.t,exports.registerGlobalComponents=e.n;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.vl-notification-host{--vl-notification-enter-x:24px;z-index:var(--vl-z-toast);gap:var(--vl-space-3);box-sizing:border-box;width:384px;max-width:100%;max-height:100dvh;padding:var(--vl-space-4);pointer-events:none;flex-direction:column;display:flex;position:fixed;overflow:hidden auto}.vl-notification-host:empty{display:none}.vl-notification-host.is-top-right,.vl-notification-host.is-top-left{top:0}.vl-notification-host.is-bottom-right,.vl-notification-host.is-bottom-left{flex-direction:column-reverse;bottom:0}.vl-notification-host.is-top-right,.vl-notification-host.is-bottom-right{right:0}.vl-notification-host.is-top-left,.vl-notification-host.is-bottom-left{--vl-notification-enter-x:-24px;left:0}.vl-notification{background-color:var(--vl-color-bg-surface);border:1px solid var(--vl-color-border-light);border-radius:var(--vl-radius-md);box-shadow:var(--vl-shadow-md);--vl-notification-accent:var(--vl-color-info-text);align-items:flex-start;gap:var(--vl-space-3);box-sizing:border-box;width:100%;min-width:0;padding:var(--vl-space-4);color:var(--vl-color-text-primary);font-size:var(--vl-font-size-md);line-height:var(--vl-line-height-normal);overflow-wrap:anywhere;pointer-events:auto;flex:none;display:flex;position:relative}.vl-notification.is-success{--vl-notification-accent:var(--vl-color-success-text)}.vl-notification.is-warning{--vl-notification-accent:var(--vl-color-warning-text)}.vl-notification.is-error{--vl-notification-accent:var(--vl-color-danger-text)}.vl-notification__icon{width:20px;height:20px;color:var(--vl-notification-accent);flex:none;margin-top:1px}.vl-notification__body{flex:auto;min-width:0}.vl-notification__title{font-weight:var(--vl-font-weight-semibold)}.vl-notification__title+.vl-notification__content{margin-top:var(--vl-space-1)}.vl-notification__content{color:var(--vl-color-text-secondary)}.vl-notification__action{gap:var(--vl-space-2);margin-top:var(--vl-space-3);flex-wrap:wrap;display:flex}.vl-notification__close{border-radius:var(--vl-radius-sm);width:28px;height:28px;color:var(--vl-color-text-secondary);cursor:pointer;background:0 0;border:0;outline:none;flex:none;justify-content:center;align-items:center;margin:-3px -4px 0 0;padding:0;display:inline-flex}.vl-notification__close:hover,.vl-notification__close:focus-visible{background:var(--vl-color-bg-hover);color:var(--vl-color-text-primary)}.vl-notification__close svg{width:16px;height:16px}.vl-notification-fade-enter-active,.vl-notification-fade-leave-active{transition:opacity var(--vl-duration-medium) var(--vl-easing-standard), transform var(--vl-duration-medium) var(--vl-easing-emphasized)}.vl-notification-fade-enter-from,.vl-notification-fade-leave-to{opacity:0;transform:translateX(var(--vl-notification-enter-x))}@media (prefers-reduced-motion:reduce){.vl-notification-fade-enter-active,.vl-notification-fade-leave-active{transition:none}.vl-notification-fade-enter-from,.vl-notification-fade-leave-to{transform:none}}
|
package/dist/es/global.mjs
CHANGED
package/dist/es/index.mjs
CHANGED
|
@@ -23,20 +23,21 @@ import { n as C } from "../Loading-CL0wUgYK.js";
|
|
|
23
23
|
import { n as w } from "../Scrollbar-BdMGZrYi.js";
|
|
24
24
|
import { n as T } from "../Modal-Du7aVdWl.js";
|
|
25
25
|
import { t as E } from "../MessageBox-DDP6UWFU.js";
|
|
26
|
-
import {
|
|
27
|
-
import { n as O } from "../
|
|
28
|
-
import { n as k } from "../
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import { n as P } from "../
|
|
33
|
-
import { n as F } from "../
|
|
34
|
-
import { n as I } from "../
|
|
35
|
-
import { n as L } from "../
|
|
36
|
-
import { n as R } from "../
|
|
37
|
-
import { n as z } from "../
|
|
38
|
-
import { n as B } from "../
|
|
39
|
-
import { n as V } from "../
|
|
40
|
-
import { n as H } from "../
|
|
41
|
-
import { n as U
|
|
42
|
-
|
|
26
|
+
import { t as D } from "../Notification-CJraaZIi.js";
|
|
27
|
+
import { n as O } from "../Select-BHWa_6Q2.js";
|
|
28
|
+
import { n as k } from "../Pagination-CpbboRbF.js";
|
|
29
|
+
import { n as A } from "../Progress-D2C6LCml.js";
|
|
30
|
+
import { VlRadio as j, VlRadioGroup as M } from "./Radio.mjs";
|
|
31
|
+
import { VlRow as N } from "./Row.mjs";
|
|
32
|
+
import { n as P } from "../Sidebar-u980T-QB.js";
|
|
33
|
+
import { n as F } from "../Slider-CKU03SsT.js";
|
|
34
|
+
import { n as I } from "../Space-gnVH7rEt.js";
|
|
35
|
+
import { n as L } from "../Switch-CqTFvp-k.js";
|
|
36
|
+
import { n as R } from "../Table-Cfs3XJgN.js";
|
|
37
|
+
import { n as z } from "../Tag-TeYTDdHt.js";
|
|
38
|
+
import { n as B } from "../Textarea-CA6Vzu7t.js";
|
|
39
|
+
import { n as V } from "../Timeline-euWvUS4e.js";
|
|
40
|
+
import { n as H } from "../TimePicker-CYlcUTTM.js";
|
|
41
|
+
import { n as U } from "../Upload-DZ6VaM7r.js";
|
|
42
|
+
import { n as W, t as G } from "../registry-BUQSQSwB.js";
|
|
43
|
+
export { e as VlAlert, t as VlAnchor, n as VlAnnouncement, r as VlButton, i as VlButtonGroup, a as VlCard, o as VlCheckbox, s as VlCheckboxGroup, c as VlCol, p as VlCron, h as VlDatePicker, g as VlDateTimePicker, _ as VlDivider, v as VlDrawer, m as VlDropdown, y as VlEmpty, x as VlForm, b as VlFormItem, u as VlInput, C as VlLoading, E as VlMessageBox, T as VlModal, D as VlNotification, f as VlNumberInput, k as VlPagination, A as VlProgress, j as VlRadio, M as VlRadioGroup, N as VlRow, w as VlScrollbar, O as VlSelect, P as VlSidebar, F as VlSlider, I as VlSpace, L as VlSwitch, R as VlTable, d as VlTabs, z as VlTag, B as VlTextarea, H as VlTimePicker, V as VlTimeline, S as VlTooltip, l as VlTransition, U as VlUpload, G as globalComponents, W as registerGlobalComponents };
|
package/dist/es/register.mjs
CHANGED