@makolabs/ripple 1.0.5 → 1.0.6

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.
@@ -11,7 +11,11 @@
11
11
  size,
12
12
  hideCloseButton = false,
13
13
  class: className = '',
14
- contentClass = '',
14
+ contentclass: contentClassName = '',
15
+ bodyclass: bodyClassName = '',
16
+ titleclass: titleClassName = '',
17
+ headerclass: headerClassName = '',
18
+ backdropclass: backdropClassName = '',
15
19
  children,
16
20
  footer
17
21
  }: ModalProps = $props();
@@ -45,25 +49,25 @@
45
49
  </script>
46
50
 
47
51
  {#if open}
48
- <div class={styles.base()} role="dialog" aria-modal="true">
52
+ <div class="{styles.base()} {className}" role="dialog" aria-modal="true">
49
53
  <!-- Backdrop -->
50
54
  <div
51
- class={styles.backdrop()}
55
+ class="{styles.backdrop()} {backdropClassName}"
52
56
  onclick={handleBackdropClick}
53
57
  transition:fade={{ duration: 200 }}
54
58
  role="presentation"></div>
55
59
 
56
60
  <!-- Modal Container -->
57
61
  <div
58
- class="{styles.container()} {contentClass || className}"
62
+ class="{styles.container()} {contentClassName}"
59
63
  transition:scale={{ duration: 200, easing: quintOut, start: 0.95 }}
60
64
  >
61
65
  <!-- Header -->
62
66
  {#if title || !hideCloseButton}
63
- <header class={styles.header()}>
67
+ <header class="{styles.header()} {headerClassName}">
64
68
  <div class="flex-1">
65
69
  {#if title}
66
- <h2 class={styles.title()}>{title}</h2>
70
+ <h2 class="{styles.title()} {titleClassName}">{title}</h2>
67
71
  {/if}
68
72
  {#if description}
69
73
  <p class={styles.description()}>{description}</p>
@@ -92,7 +96,7 @@
92
96
 
93
97
  <!-- Body -->
94
98
  {#if children}
95
- <div class={styles.body()}>
99
+ <div class="{styles.body()} {bodyClassName}">
96
100
  {@render children()}
97
101
  </div>
98
102
  {/if}
@@ -102,7 +102,11 @@ export type ModalProps = {
102
102
  size?: VariantSizes;
103
103
  hideCloseButton?: boolean;
104
104
  class?: string;
105
- contentClass?: string;
105
+ contentclass?: string;
106
+ bodyclass?: string;
107
+ titleclass?: string;
108
+ headerclass?: string;
109
+ backdropclass?: string;
106
110
  children?: Snippet;
107
111
  footer?: Snippet;
108
112
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@makolabs/ripple",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "Simple Svelte 5 powered component library ✨",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "repository": {