@rezcom/rez-components 0.0.46 → 0.0.48

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,11 +8,11 @@
8
8
  // Content
9
9
  children: Snippet;
10
10
 
11
- // Height of the child div
12
- childHeight?: string;
11
+ // Any other classes for the child component
12
+ class?: string;
13
13
  }
14
14
 
15
- const { background, children, childHeight = 'h-full' }: HeroProps = $props();
15
+ const { background, children, class: childClass = 'h-full' }: HeroProps = $props();
16
16
  </script>
17
17
 
18
18
  <main class="relative h-max overflow-hidden">
@@ -20,7 +20,7 @@
20
20
  {@render background()}
21
21
  </div>
22
22
  <div
23
- class={`${childHeight} relative z-0 flex flex-col items-center justify-center p-4 text-center`}
23
+ class={`${childClass} relative z-0 flex flex-col items-center justify-center p-4 text-center`}
24
24
  >
25
25
  {@render children()}
26
26
  </div>
@@ -2,7 +2,7 @@ import type { Snippet } from 'svelte';
2
2
  interface HeroProps {
3
3
  background: Snippet;
4
4
  children: Snippet;
5
- childHeight?: string;
5
+ class?: string;
6
6
  }
7
7
  declare const Hero: import("svelte").Component<HeroProps, {}, "">;
8
8
  type Hero = ReturnType<typeof Hero>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rezcom/rez-components",
3
- "version": "0.0.46",
3
+ "version": "0.0.48",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build && npm run prepack",