spoko-design-system 1.15.0 → 1.16.1

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,15 @@
1
+ ## [1.16.1](https://github.com/polo-blue/sds/compare/v1.16.0...v1.16.1) (2025-12-07)
2
+
3
+ ### Bug Fixes
4
+
5
+ * **jumbotron:** restore original PostSplit padding and layout ([f4a7dea](https://github.com/polo-blue/sds/commit/f4a7dea75b5d10586f42a0d2cb0e5dade961d134))
6
+
7
+ ## [1.16.0](https://github.com/polo-blue/sds/compare/v1.15.0...v1.16.0) (2025-12-07)
8
+
9
+ ### Features
10
+
11
+ * **Jumbotron:** add small prop to Hero variant ([70f9280](https://github.com/polo-blue/sds/commit/70f9280a4ed8d167cd3ae16ceaebb544a99de85e))
12
+
1
13
  ## [1.15.0](https://github.com/polo-blue/sds/compare/v1.14.2...v1.15.0) (2025-12-07)
2
14
 
3
15
  ### 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.1",
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"
@@ -52,15 +52,15 @@ export const jumbotronShortcuts = [
52
52
 
53
53
  // Post Split variant
54
54
  ['jumbotron-split-wrapper', 'w-full'],
55
- ['jumbotron-split-container', 'mx-auto'],
55
+ ['jumbotron-split-container', 'xl:container mx-auto px-3.5 md:px-0'],
56
56
  ['jumbotron-split-header', 'w-full justify-center text-white z-2 mt-auto md:(grid grid-cols-2) pb-4 mb-8'],
57
- ['jumbotron-split-content', 'pl-4 pr-8 py-5 xl:(py-0 pl-0) flex flex-wrap'],
57
+ ['jumbotron-split-content', 'pl-4 pr-8 py-5 xl:(py-0 pl-0) flex flex-wrap ml-auto'],
58
58
  [
59
59
  'jumbotron-split-title',
60
60
  'font-headlight text-3xl md:(text-4xl mb-3) xl:text-11 mt-1 order-2 line-clamp-3 pb-1 w-full',
61
61
  ],
62
- ['jumbotron-split-meta', 'order-4 flex items-center text-gray-100'],
62
+ ['jumbotron-split-meta', 'order-3 flex items-center text-gray-100'],
63
63
  ['jumbotron-split-image-wrapper', 'relative -mb-8 md:(mt-4 -ml-4 mr-4) xl:(ml-0 mr-0)'],
64
- ['jumbotron-split-image', 'relative shadow-xl overflow-hidden md:ml-auto'],
64
+ ['jumbotron-split-image', 'relative shadow-xl md:max-h-112 overflow-hidden'],
65
65
  ['jumbotron-split-img', 'object-cover'],
66
66
  ];