@functionalcms/svelte-components 2.11.2 → 2.11.5

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.
@@ -7,17 +7,29 @@
7
7
 
8
8
  <script>import {} from "./ShowItem";
9
9
  import { Card } from "agnostic-svelte";
10
- export let hasDivider = false;
11
10
  export let items = [];
11
+ export let galleryCss = "";
12
+ export let cardCss = "";
13
+ $:
14
+ galleryKlasses = [
15
+ "flex",
16
+ "flex-row-dynamic",
17
+ galleryCss
18
+ ].filter((c) => c).join(" ");
19
+ $:
20
+ cardKlasses = [
21
+ "box",
22
+ cardCss
23
+ ].filter((c) => c).join(" ");
12
24
  </script>
13
- <div class="flex flex-row-dynamic">
25
+ <Card css={galleryKlasses}>
14
26
  {#each items as item}
15
- <Card css="box">
27
+ <Card css={cardKlasses}>
16
28
  <a href={item?.path}>
17
29
  <img src={item?.image} alt={item.title} />
18
30
  <h2>{item.title}</h2>
19
- <p>{item.title}</p>
31
+ <p>{item.short}</p>
20
32
  </a>
21
33
  </Card>
22
34
  {/each}
23
- </div>
35
+ </Card>
@@ -2,8 +2,9 @@ import { SvelteComponent } from "svelte";
2
2
  import { type ShowItem } from './ShowItem';
3
3
  declare const __propDef: {
4
4
  props: {
5
- hasDivider?: boolean | undefined;
6
5
  items?: ShowItem[] | undefined;
6
+ galleryCss?: string | undefined;
7
+ cardCss?: string | undefined;
7
8
  };
8
9
  events: {
9
10
  [evt: string]: CustomEvent<any>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@functionalcms/svelte-components",
3
- "version": "2.11.2",
3
+ "version": "2.11.5",
4
4
  "watch": {
5
5
  "build": {
6
6
  "patterns": [