@makolabs/ripple 0.0.1-dev.28 → 0.0.1-dev.29

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.
@@ -8,6 +8,7 @@
8
8
  message,
9
9
  color = Color.DEFAULT,
10
10
  onclose,
11
+ footer,
11
12
  class: className = ''
12
13
  }: AlertProps = $props();
13
14
 
@@ -36,7 +37,7 @@
36
37
  {#if onclose}
37
38
  <button
38
39
  type="button"
39
- class="flex-shrink-0 cursor-pointer rounded-md p-1 hover:bg-default-200/20"
40
+ class="hover:bg-default-200/20 flex-shrink-0 cursor-pointer rounded-md p-1"
40
41
  onclick={handleClose}
41
42
  aria-label="Close alert"
42
43
  >
@@ -50,4 +51,7 @@
50
51
  </button>
51
52
  {/if}
52
53
  </div>
54
+ {#if footer}
55
+ {@render footer()}
56
+ {/if}
53
57
  </div>
package/dist/index.d.ts CHANGED
@@ -150,6 +150,7 @@ export type AlertProps = {
150
150
  color?: VariantColors;
151
151
  class?: string;
152
152
  onclose?: () => void;
153
+ footer?: Snippet;
153
154
  };
154
155
  export type StatsCardProps = {
155
156
  label?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@makolabs/ripple",
3
- "version": "0.0.1-dev.28",
3
+ "version": "0.0.1-dev.29",
4
4
  "description": "Simple Svelte 5 powered component library ✨",
5
5
  "repository": {
6
6
  "type": "git",