@marianmeres/stuic 2.1.12 → 2.1.14

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.
@@ -65,6 +65,7 @@
65
65
  classNotifContent?: string;
66
66
  classNotifButton?: string;
67
67
  classNotifButtonX?: string;
68
+ buttonXStrokeWidth?: 0.5 | 1 | 1.5 | 2 | 2.5 | 3 | 3.5 | 4;
68
69
  //
69
70
  classProgress?: string;
70
71
  classProgressBar?: string;
@@ -104,6 +105,7 @@
104
105
  classNotifContent,
105
106
  classNotifButton,
106
107
  classNotifButtonX,
108
+ buttonXStrokeWidth = 1.5,
107
109
  //
108
110
  classProgress,
109
111
  classProgressBar,
@@ -129,7 +131,7 @@
129
131
  return { Cmp: null, props: null };
130
132
  };
131
133
 
132
- let _iconFns = $derived({ ...iconFns, ...notificationsDefaultIcons });
134
+ let _iconFns = $derived({ ...notificationsDefaultIcons, ...iconFns });
133
135
 
134
136
  const maybeIcon = (n: Notification) => n.iconFn ?? _iconFns?.[n.type];
135
137
 
@@ -281,7 +283,7 @@
281
283
  >
282
284
  <X
283
285
  class={twMerge("x", _classNotifButtonX, classNotifButtonX)}
284
- strokeWidth={1.5}
286
+ strokeWidth={buttonXStrokeWidth}
285
287
  />
286
288
  </button>
287
289
  {/if}
@@ -22,6 +22,7 @@ declare const Notifications: import("svelte").Component<{
22
22
  classNotifContent?: string;
23
23
  classNotifButton?: string;
24
24
  classNotifButtonX?: string;
25
+ buttonXStrokeWidth?: 0.5 | 1 | 1.5 | 2 | 2.5 | 3 | 3.5 | 4;
25
26
  classProgress?: string;
26
27
  classProgressBar?: string;
27
28
  forceAsHtml?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marianmeres/stuic",
3
- "version": "2.1.12",
3
+ "version": "2.1.14",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build && npm run prepack",