@vokril/ui-solid 0.33.5 → 0.35.0
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/CHANGELOG.md +39 -0
- package/README.md +40 -0
- package/dist/Alert-DCIet3Ol.cjs +1 -0
- package/dist/Alert-DyBaU25r.js +59 -0
- package/dist/Badge-BXLrs2z-.cjs +1 -0
- package/dist/Badge-BguTObKo.js +99 -0
- package/dist/CommandPalette-3wKYPO9u.cjs +2 -0
- package/dist/CommandPalette-BnZwM7DE.js +4130 -0
- package/dist/PageSkeleton-3f-2SBNK.cjs +30 -0
- package/dist/{PageSkeleton-BRuqaDzr.js → PageSkeleton-lfENszyc.js} +516 -569
- package/dist/{StatusBarNotificationBell-DE1jIaBt.js → StatusBarNotificationBell-GbkAwC4w.js} +4242 -4154
- package/dist/StatusBarNotificationBell-fegn26_s.cjs +53 -0
- package/dist/_internal/contract/browser/workspace.d.cts +5 -0
- package/dist/_internal/contract/browser/workspace.d.ts +5 -0
- package/dist/_internal/contract/notification.d.cts +30 -4
- package/dist/_internal/contract/notification.d.ts +30 -4
- package/dist/_internal/contract/notificationCatalog.d.cts +15 -1
- package/dist/_internal/contract/notificationCatalog.d.ts +15 -1
- package/dist/feedback/index.cjs +1 -1
- package/dist/feedback/index.js +38 -36
- package/dist/index.cjs +1 -1
- package/dist/index.js +430 -428
- package/dist/notificationCatalog-DmwTAO09.cjs +1 -0
- package/dist/notificationCatalog-otJ1LHFH.js +72 -0
- package/dist/notifications/createNotificationPreviewRuntime.d.cts +1 -0
- package/dist/notifications/createNotificationPreviewRuntime.d.ts +1 -0
- package/dist/notifications/fireNotification.d.cts +14 -7
- package/dist/notifications/fireNotification.d.ts +14 -7
- package/dist/notifications/index.cjs +1 -1
- package/dist/notifications/index.js +2 -2
- package/dist/notifications/nativeEngine.d.cts +8 -1
- package/dist/notifications/nativeEngine.d.ts +8 -1
- package/dist/notifications/notificationService.d.cts +2 -1
- package/dist/notifications/notificationService.d.ts +2 -1
- package/dist/notifications/notifications.notifications.d.cts +0 -1
- package/dist/notifications/notifications.notifications.d.ts +0 -1
- package/dist/notifications/toast.d.cts +19 -3
- package/dist/notifications/toast.d.ts +19 -3
- package/dist/notifications/toastFilterPolicy.d.cts +15 -1
- package/dist/notifications/toastFilterPolicy.d.ts +15 -1
- package/dist/overlay/ConfirmDialog.d.cts +36 -0
- package/dist/overlay/ConfirmDialog.d.ts +36 -0
- package/dist/overlay/dialogNudge.d.cts +16 -0
- package/dist/overlay/dialogNudge.d.ts +16 -0
- package/dist/overlay/index.cjs +1 -1
- package/dist/overlay/index.js +1 -1
- package/dist/server/Alert-DWGobTUk.js +45 -0
- package/dist/server/Alert-DulmzLv9.cjs +1 -0
- package/dist/server/Badge-C1Jn--DR.js +68 -0
- package/dist/server/Badge-wsDCVlA8.cjs +1 -0
- package/dist/server/CommandPalette-B3EE1iMo.js +3376 -0
- package/dist/server/CommandPalette-DKURJBBZ.cjs +1 -0
- package/dist/server/PageSkeleton-CP8EmxyS.cjs +30 -0
- package/dist/server/{PageSkeleton-CFs7AdTA.js → PageSkeleton-HhO6CRZ8.js} +392 -431
- package/dist/server/{StatusBarNotificationBell-y5cPAlMY.js → StatusBarNotificationBell-BfBGKXDG.js} +4256 -4168
- package/dist/server/StatusBarNotificationBell-CB919YAX.cjs +52 -0
- package/dist/server/feedback/index.cjs +1 -1
- package/dist/server/feedback/index.js +38 -36
- package/dist/server/index.cjs +1 -1
- package/dist/server/index.js +294 -292
- package/dist/server/notificationCatalog-BKcY-o-R.js +57 -0
- package/dist/server/notificationCatalog-DR3ZggWn.cjs +1 -0
- package/dist/server/notifications/index.cjs +1 -1
- package/dist/server/notifications/index.js +2 -2
- package/dist/server/overlay/index.cjs +1 -1
- package/dist/server/overlay/index.js +1 -1
- package/dist/solid/notifications/NotificationItem.jsx +4 -3
- package/dist/solid/notifications/catalogAdapter.js +8 -9
- package/dist/solid/notifications/createNotificationPreviewRuntime.js +34 -18
- package/dist/solid/notifications/fireNotification.js +9 -5
- package/dist/solid/notifications/notificationOverlaySnapshot.js +1 -0
- package/dist/solid/notifications/notificationService.js +1 -0
- package/dist/solid/notifications/notifications.notifications.js +8 -0
- package/dist/solid/notifications/toast.js +70 -31
- package/dist/solid/notifications/toastFilterPolicy.js +8 -0
- package/dist/solid/overlay/ConfirmDialog.jsx +54 -10
- package/dist/solid/overlay/ConfirmDialog.module.css.js +6 -0
- package/dist/solid/overlay/DangerousActionDialog.jsx +8 -3
- package/dist/solid/overlay/DangerousActionDialog.module.css.js +1 -0
- package/dist/solid/overlay/dialogNudge.js +18 -0
- package/dist/style.css +1 -1
- package/dist/ui.css +1 -1
- package/package.json +1 -1
- package/dist/CommandPalette-BKa5pT_B.js +0 -4029
- package/dist/CommandPalette-Bq5ydWBA.cjs +0 -2
- package/dist/PageSkeleton-Cz2bckO4.cjs +0 -30
- package/dist/StatusBarNotificationBell-CLrNtOO9.cjs +0 -50
- package/dist/notificationCatalog-CRERhjp6.js +0 -168
- package/dist/notificationCatalog-DqTkd7M6.cjs +0 -1
- package/dist/server/CommandPalette-BU9QCOyy.cjs +0 -1
- package/dist/server/CommandPalette-Dj08M64T.js +0 -3305
- package/dist/server/PageSkeleton-D0KOKLsb.cjs +0 -30
- package/dist/server/StatusBarNotificationBell-fLacxZ0X.cjs +0 -49
- package/dist/server/notificationCatalog-CEDltsJS.cjs +0 -1
- package/dist/server/notificationCatalog-Cl1dH4aJ.js +0 -122
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("solid-js/web"),o=require("solid-js"),c="vk_badge_H207K",l="vk_icon_pYYcO",u="vk_dot_rH6r0",d="vk_sm_wGIZ-",_="vk_minWidth_COglg",v="vk_uppercase_VXoV8",f="vk_toneNeutral_X8HW3",g="vk_toneBrand_yGkjl",m="vk_toneInfo_wp-9H",b="vk_toneSuccess_VG8jt",k="vk_toneWarning_zPFLO",S="vk_toneDanger_cRUoq",h="vk_soft_8b-4T",z="vk_outline_gFFWD",$="vk_collapsible_DMKBX",A="vk_label_veC9k",n={badge:c,icon:l,dot:u,sm:d,minWidth:_,uppercase:v,toneNeutral:f,toneBrand:g,toneInfo:m,toneSuccess:b,toneWarning:k,toneDanger:S,soft:h,outline:z,collapsible:$,label:A};var p=["<span",' aria-hidden="true">',"</span>"],W=["<span",' aria-hidden="true"></span>'],N=["<span",">","</span>"],y=["<span",' style="','"',">","","","</span>"];const w={neutral:n.toneNeutral,brand:n.toneBrand,info:n.toneInfo,success:n.toneSuccess,warning:n.toneWarning,danger:n.toneDanger},x={soft:n.soft,outline:n.outline};function B(t){o.createUniqueId();const i=()=>t.tooltip!==void 0?typeof t.tooltip=="function"?t.tooltip():t.tooltip:t.title;o.createMemo(()=>({content:i(),placement:t.tooltipPlacement})),o.onCleanup(()=>{});const a=()=>[n.badge,w[t.tone??"neutral"],x[t.variant??"soft"],t.size==="sm"?n.sm:void 0,t.uppercase?n.uppercase:void 0,t.minWidth?n.minWidth:void 0,t.collapsible===!0?n.collapsible:void 0,t.class].filter(r=>!!r).join(" ");return e.ssr(y,e.ssrAttribute("class",e.escape(a(),!0),!1),e.ssrStyle(t.style),e.ssrAttribute("title",e.escape(t.title,!0),!1),e.escape(e.createComponent(o.Show,{get when(){return t.icon!==void 0},get children(){return e.ssr(p,e.ssrAttribute("class",e.escape(n.icon,!0),!1),e.escape(t.icon))}})),e.escape(e.createComponent(o.Show,{get when(){return e.memo(()=>t.collapsible===!0)()&&t.icon===void 0},get children(){return e.ssr(W,e.ssrAttribute("class",e.escape(n.dot,!0),!1))}})),e.escape(e.createComponent(o.Show,{get when(){return t.collapsible===!0},get fallback(){return t.children},get children(){return e.ssr(N,e.ssrAttribute("class",e.escape(n.label,!0),!1),e.escape(t.children))}})))}const D="vk_track_8sxq6",C="vk_size2xs_PFVQU",M="vk_sizeXs_uv795",I="vk_sizeSm_PXflS",X="vk_sizeMd_D7fn9",L="vk_fill_WzdHy",q="vk_toneBrand_Tv6r-",H="vk_toneSuccess_zqjLa",P="vk_toneWarning_xuA11",T="vk_toneDanger_eWHhk",O="vk_toneNeutral_-Ko2R",V="vk_indeterminate_94QkD",s={track:D,size2xs:C,sizeXs:M,sizeSm:I,sizeMd:X,fill:L,toneBrand:q,toneSuccess:H,toneWarning:P,toneDanger:T,toneNeutral:O,indeterminate:V};var j=['<div class="','" role="progressbar"',"><span",' style="','"></span></div>'];const F={brand:s.toneBrand,success:s.toneSuccess,warning:s.toneWarning,danger:s.toneDanger,neutral:s.toneNeutral},E={"2xs":s.size2xs,xs:s.sizeXs,sm:s.sizeSm,md:s.sizeMd};function G(t){const i=()=>{if(t.indeterminate)return 0;const r=t.max??100;return r<=0?0:Math.max(0,Math.min(100,t.value/r*100))},a=()=>t.indeterminate===!0;return e.ssr(j,`${e.escape(s.track,!0)} ${e.escape(E[t.size??"md"],!0)} ${e.escape(F[t.tone??"brand"],!0)} ${a()?e.escape(s.indeterminate,!0):""} ${e.escape(t.class??"",!0)}`,e.ssrAttribute("aria-valuenow",a()?e.escape(void 0,!0):e.escape(Math.round(i()),!0),!1)+e.ssrAttribute("aria-valuemin",a()?e.escape(void 0,!0):0,!1)+e.ssrAttribute("aria-valuemax",a()?e.escape(void 0,!0):100,!1)+e.ssrAttribute("aria-busy",a()?"true":e.escape(void 0,!0),!1)+e.ssrAttribute("aria-label",e.escape(t.ariaLabel,!0),!1),e.ssrAttribute("class",e.escape(s.fill,!0),!1),e.ssrStyle(a()?void 0:{"--progress-pct":`${i()}%`}))}function K(t,i){return{...t,category:t.category??t.id.split(".")[0]??"general",build:i}}function R(t,i,a){return{id:t,notification:i,resolve:r=>i.build(a,r)}}exports.Badge=B;exports.Progress=G;exports.defineNotification=K;exports.defineNotificationScenario=R;
|
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
import { ssr as l, ssrAttribute as a, escape as t, ssrStyle as d, createComponent as c, memo as _ } from "solid-js/web";
|
|
2
|
-
import { createUniqueId as v, createMemo as f, onCleanup as m, Show as u } from "solid-js";
|
|
3
|
-
const g = "vk_badge_H207K", k = "vk_icon_pYYcO", b = "vk_dot_rH6r0", S = "vk_sm_wGIZ-", z = "vk_minWidth_COglg", h = "vk_uppercase_VXoV8", $ = "vk_toneNeutral_X8HW3", W = "vk_toneBrand_yGkjl", x = "vk_toneInfo_wp-9H", N = "vk_toneSuccess_VG8jt", y = "vk_toneWarning_zPFLO", B = "vk_toneDanger_cRUoq", D = "vk_soft_8b-4T", w = "vk_outline_gFFWD", M = "vk_collapsible_DMKBX", A = "vk_label_veC9k", n = {
|
|
4
|
-
badge: g,
|
|
5
|
-
icon: k,
|
|
6
|
-
dot: b,
|
|
7
|
-
sm: S,
|
|
8
|
-
minWidth: z,
|
|
9
|
-
uppercase: h,
|
|
10
|
-
toneNeutral: $,
|
|
11
|
-
toneBrand: W,
|
|
12
|
-
toneInfo: x,
|
|
13
|
-
toneSuccess: N,
|
|
14
|
-
toneWarning: y,
|
|
15
|
-
toneDanger: B,
|
|
16
|
-
soft: D,
|
|
17
|
-
outline: w,
|
|
18
|
-
collapsible: M,
|
|
19
|
-
label: A
|
|
20
|
-
};
|
|
21
|
-
var C = ["<span", ' aria-hidden="true">', "</span>"], I = ["<span", ' aria-hidden="true"></span>'], X = ["<span", ">", "</span>"], L = ["<span", ' style="', '"', ">", "", "", "</span>"];
|
|
22
|
-
const H = {
|
|
23
|
-
neutral: n.toneNeutral,
|
|
24
|
-
brand: n.toneBrand,
|
|
25
|
-
info: n.toneInfo,
|
|
26
|
-
success: n.toneSuccess,
|
|
27
|
-
warning: n.toneWarning,
|
|
28
|
-
danger: n.toneDanger
|
|
29
|
-
}, P = {
|
|
30
|
-
soft: n.soft,
|
|
31
|
-
outline: n.outline
|
|
32
|
-
};
|
|
33
|
-
function te(e) {
|
|
34
|
-
v();
|
|
35
|
-
const o = () => e.tooltip !== void 0 ? typeof e.tooltip == "function" ? e.tooltip() : e.tooltip : e.title;
|
|
36
|
-
return f(() => ({
|
|
37
|
-
content: o(),
|
|
38
|
-
placement: e.tooltipPlacement
|
|
39
|
-
})), m(() => {
|
|
40
|
-
}), l(L, a("class", t([n.badge, H[e.tone ?? "neutral"], P[e.variant ?? "soft"], e.size === "sm" ? n.sm : void 0, e.uppercase ? n.uppercase : void 0, e.minWidth ? n.minWidth : void 0, e.collapsible === !0 ? n.collapsible : void 0, e.class].filter((r) => !!r).join(" "), !0), !1), d(e.style), a("title", t(e.title, !0), !1), t(c(u, {
|
|
41
|
-
get when() {
|
|
42
|
-
return e.icon !== void 0;
|
|
43
|
-
},
|
|
44
|
-
get children() {
|
|
45
|
-
return l(C, a("class", t(n.icon, !0), !1), t(e.icon));
|
|
46
|
-
}
|
|
47
|
-
})), t(c(u, {
|
|
48
|
-
get when() {
|
|
49
|
-
return _(() => e.collapsible === !0)() && e.icon === void 0;
|
|
50
|
-
},
|
|
51
|
-
get children() {
|
|
52
|
-
return l(I, a("class", t(n.dot, !0), !1));
|
|
53
|
-
}
|
|
54
|
-
})), t(c(u, {
|
|
55
|
-
get when() {
|
|
56
|
-
return e.collapsible === !0;
|
|
57
|
-
},
|
|
58
|
-
get fallback() {
|
|
59
|
-
return e.children;
|
|
60
|
-
},
|
|
61
|
-
get children() {
|
|
62
|
-
return l(X, a("class", t(n.label, !0), !1), t(e.children));
|
|
63
|
-
}
|
|
64
|
-
})));
|
|
65
|
-
}
|
|
66
|
-
const T = "vk_track_8sxq6", O = "vk_size2xs_PFVQU", V = "vk_sizeXs_uv795", j = "vk_sizeSm_PXflS", q = "vk_sizeMd_D7fn9", F = "vk_fill_WzdHy", E = "vk_toneBrand_Tv6r-", G = "vk_toneSuccess_zqjLa", K = "vk_toneWarning_xuA11", R = "vk_toneDanger_eWHhk", U = "vk_toneNeutral_-Ko2R", Q = "vk_indeterminate_94QkD", s = {
|
|
67
|
-
track: T,
|
|
68
|
-
size2xs: O,
|
|
69
|
-
sizeXs: V,
|
|
70
|
-
sizeSm: j,
|
|
71
|
-
sizeMd: q,
|
|
72
|
-
fill: F,
|
|
73
|
-
toneBrand: E,
|
|
74
|
-
toneSuccess: G,
|
|
75
|
-
toneWarning: K,
|
|
76
|
-
toneDanger: R,
|
|
77
|
-
toneNeutral: U,
|
|
78
|
-
indeterminate: Q
|
|
79
|
-
};
|
|
80
|
-
var Y = ['<div class="', '" role="progressbar"', "><span", ' style="', '"></span></div>'];
|
|
81
|
-
const Z = {
|
|
82
|
-
brand: s.toneBrand,
|
|
83
|
-
success: s.toneSuccess,
|
|
84
|
-
warning: s.toneWarning,
|
|
85
|
-
danger: s.toneDanger,
|
|
86
|
-
neutral: s.toneNeutral
|
|
87
|
-
}, J = {
|
|
88
|
-
"2xs": s.size2xs,
|
|
89
|
-
xs: s.sizeXs,
|
|
90
|
-
sm: s.sizeSm,
|
|
91
|
-
md: s.sizeMd
|
|
92
|
-
};
|
|
93
|
-
function ne(e) {
|
|
94
|
-
const o = () => {
|
|
95
|
-
if (e.indeterminate) return 0;
|
|
96
|
-
const r = e.max ?? 100;
|
|
97
|
-
return r <= 0 ? 0 : Math.max(0, Math.min(100, e.value / r * 100));
|
|
98
|
-
}, i = () => e.indeterminate === !0;
|
|
99
|
-
return l(Y, `${t(s.track, !0)} ${t(J[e.size ?? "md"], !0)} ${t(Z[e.tone ?? "brand"], !0)} ${i() ? t(s.indeterminate, !0) : ""} ${t(e.class ?? "", !0)}`, a("aria-valuenow", i() ? t(void 0, !0) : t(Math.round(o()), !0), !1) + a("aria-valuemin", i() ? t(void 0, !0) : 0, !1) + a("aria-valuemax", i() ? t(void 0, !0) : 100, !1) + a("aria-busy", i() ? "true" : t(void 0, !0), !1) + a("aria-label", t(e.ariaLabel, !0), !1), a("class", t(s.fill, !0), !1), d(i() ? void 0 : {
|
|
100
|
-
"--progress-pct": `${o()}%`
|
|
101
|
-
}));
|
|
102
|
-
}
|
|
103
|
-
function se(e, o) {
|
|
104
|
-
return {
|
|
105
|
-
...e,
|
|
106
|
-
category: e.category ?? e.id.split(".")[0] ?? "general",
|
|
107
|
-
build: o
|
|
108
|
-
};
|
|
109
|
-
}
|
|
110
|
-
function ae(e, o, i) {
|
|
111
|
-
return {
|
|
112
|
-
id: e,
|
|
113
|
-
notification: o,
|
|
114
|
-
resolve: (r) => o.build(i, r)
|
|
115
|
-
};
|
|
116
|
-
}
|
|
117
|
-
export {
|
|
118
|
-
te as B,
|
|
119
|
-
ne as P,
|
|
120
|
-
ae as a,
|
|
121
|
-
se as d
|
|
122
|
-
};
|