spoko-design-system 1.15.0 → 1.16.0

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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## [1.16.0](https://github.com/polo-blue/sds/compare/v1.15.0...v1.16.0) (2025-12-07)
2
+
3
+ ### Features
4
+
5
+ * **Jumbotron:** add small prop to Hero variant ([70f9280](https://github.com/polo-blue/sds/commit/70f9280a4ed8d167cd3ae16ceaebb544a99de85e))
6
+
1
7
  ## [1.15.0](https://github.com/polo-blue/sds/compare/v1.14.2...v1.15.0) (2025-12-07)
2
8
 
3
9
  ### Features
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spoko-design-system",
3
- "version": "1.15.0",
3
+ "version": "1.16.0",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "main": "./index.ts",
@@ -82,7 +82,7 @@ const commonProps = {
82
82
  )
83
83
  }
84
84
 
85
- {variant === 'hero' && <HeroVariant {...commonProps} description={description} info={info} />}
85
+ {variant === 'hero' && <HeroVariant {...commonProps} description={description} info={info} small={small} />}
86
86
 
87
87
  {variant === 'post' && <PostVariant {...commonProps} author={author} date={date} categories={categories} />}
88
88
 
@@ -6,9 +6,13 @@ interface Props {
6
6
  description?: string;
7
7
  info?: string;
8
8
  backgroundClass?: string;
9
+ small?: boolean;
9
10
  }
10
11
 
11
- const { title = '', image, description, info, backgroundClass } = Astro.props;
12
+ const { title = '', image, description, info, backgroundClass, small = false } = Astro.props;
13
+
14
+ // Height classes based on small prop
15
+ const heightClass = small ? 'py-6 min-h-32' : 'py-8 h-56 sm:h-72 md:max-h-72';
12
16
  ---
13
17
 
14
18
  <div class={`relative w-full ${backgroundClass}`}>
@@ -21,7 +25,7 @@ const { title = '', image, description, info, backgroundClass } = Astro.props;
21
25
  )
22
26
  }
23
27
 
24
- <div class="xl:container mx-auto px-3.5 md:px-8 py-8 h-56 sm:h-72 md:max-h-72 items-center flex">
28
+ <div class:list={['xl:container mx-auto px-3.5 md:px-8 items-center flex', heightClass]}>
25
29
  <header class="relative z-10 text-white">
26
30
  <h1
27
31
  class="font-headlight text-3xl sm:text-4xl md:text-5xl xl:text-6xl mt-1 line-clamp-3 leading-tight"