@marianmeres/stuic 2.1.17 → 2.1.19
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.
|
@@ -39,6 +39,9 @@ export class AlertConfirmPromptStack {
|
|
|
39
39
|
o.labelCancel ??= this.defaults.labelCancel;
|
|
40
40
|
o.iconFn ??= this.defaults.iconFn;
|
|
41
41
|
o.title ??= ucf(`${o.type || ""}`);
|
|
42
|
+
o.CmpButtonOk ??= this.defaults.CmpButtonOk;
|
|
43
|
+
o.CmpButtonCancel ??= this.defaults.CmpButtonCancel;
|
|
44
|
+
o.CmpButtonCustom ??= this.defaults.CmpButtonCustom;
|
|
42
45
|
// variant defaults to info
|
|
43
46
|
if (!["info", "success", "warn", "error"].includes(o?.variant)) {
|
|
44
47
|
o.variant = "info";
|
|
@@ -133,7 +133,11 @@
|
|
|
133
133
|
|
|
134
134
|
let _iconFns = $derived({ ...notificationsDefaultIcons, ...iconFns });
|
|
135
135
|
|
|
136
|
-
const maybeIcon = (n: Notification) =>
|
|
136
|
+
const maybeIcon = (n: Notification) => {
|
|
137
|
+
if (n.iconFn === false) return "";
|
|
138
|
+
if (typeof n.iconFn === "function") return n.iconFn();
|
|
139
|
+
return (_iconFns?.[n.type] as any)?.();
|
|
140
|
+
};
|
|
137
141
|
|
|
138
142
|
const _classWrapX = `
|
|
139
143
|
fixed z-50 flex flex-row inset-0
|