@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";
@@ -56,7 +56,7 @@
56
56
  --color-dismiss-border: var(--color-${theme}-500);
57
57
  --color-dismiss-border-dark: var(--color-${theme}-500);
58
58
  `
59
- : ""}
59
+ : ``}
60
60
  transition:slide={{ duration }}
61
61
  >
62
62
  <div class={twMerge("content", "flex-1 px-4 py-3", classContent)}>
@@ -133,7 +133,11 @@
133
133
 
134
134
  let _iconFns = $derived({ ...notificationsDefaultIcons, ...iconFns });
135
135
 
136
- const maybeIcon = (n: Notification) => (n.iconFn ?? _iconFns?.[n.type])?.();
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marianmeres/stuic",
3
- "version": "2.1.17",
3
+ "version": "2.1.19",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build && npm run prepack",