@wishbone-media/spark 0.50.0 → 0.51.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wishbone-media/spark",
3
- "version": "0.50.0",
3
+ "version": "0.51.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -6,7 +6,7 @@
6
6
  <slot name="header" />
7
7
  </div>
8
8
 
9
- <div :class="[props.padded ? props.paddedClass : '', 'min-h-0 flex-1']">
9
+ <div :class="[props.padded ? props.paddedClass : '', 'min-h-0 flex-1', props.bodyClass]">
10
10
  <slot />
11
11
  </div>
12
12
 
@@ -27,5 +27,14 @@ const props = defineProps({
27
27
  type: String,
28
28
  default: 'p-5',
29
29
  },
30
+
31
+ // Extra classes for the body wrapper, e.g. 'flex flex-col' so slot content
32
+ // can use flex-1/min-h-0 for bounded-height (internally scrolling) layouts.
33
+ // The wrapper is a plain block by default; child flex-item utilities are
34
+ // inert without this.
35
+ bodyClass: {
36
+ type: String,
37
+ default: '',
38
+ },
30
39
  })
31
40
  </script>