@functionalcms/svelte-components 2.11.1 → 2.11.4
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.
|
@@ -6,20 +6,30 @@
|
|
|
6
6
|
</style>
|
|
7
7
|
|
|
8
8
|
<script>import {} from "./ShowItem";
|
|
9
|
-
|
|
10
|
-
export let
|
|
9
|
+
import { Card } from "agnostic-svelte";
|
|
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(" ");
|
|
11
24
|
</script>
|
|
12
|
-
<
|
|
13
|
-
{#each
|
|
14
|
-
<Card css=
|
|
15
|
-
<a href={
|
|
16
|
-
<img src={
|
|
17
|
-
<h2>{
|
|
18
|
-
<p>{
|
|
25
|
+
<Card css={galleryKlasses}>
|
|
26
|
+
{#each items as item}
|
|
27
|
+
<Card css={cardKlasses}>
|
|
28
|
+
<a href={item?.path}>
|
|
29
|
+
<img src={item?.image} alt={item.title} />
|
|
30
|
+
<h2>{item.title}</h2>
|
|
31
|
+
<p>{item.title}</p>
|
|
19
32
|
</a>
|
|
20
33
|
</Card>
|
|
21
|
-
{#if hasDivider}
|
|
22
|
-
<Divider isVertical size="large" />
|
|
23
|
-
{/if}
|
|
24
34
|
{/each}
|
|
25
|
-
</
|
|
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
|
-
|
|
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/dist/index.d.ts
CHANGED
|
@@ -8,8 +8,8 @@ import SimpleFooter from './components/SimpleFooter.svelte';
|
|
|
8
8
|
import Spacer from './components/Spacer.svelte';
|
|
9
9
|
import Well from './components/Well.svelte';
|
|
10
10
|
import Link from './components/Link.svelte';
|
|
11
|
-
import { ShowItem } from './components/presentation/ShowItem.js';
|
|
12
11
|
import Gallery from './components/presentation/Gallery.svelte';
|
|
12
|
+
import { ShowItem } from './components/presentation/ShowItem.js';
|
|
13
13
|
import { title, suffix } from './stores/title.js';
|
|
14
14
|
import { pages } from './stores/pages.js';
|
|
15
15
|
import { metaDescription, metaKeywords } from './stores/meta.js';
|
package/dist/index.js
CHANGED
|
@@ -9,8 +9,8 @@ import SimpleFooter from './components/SimpleFooter.svelte';
|
|
|
9
9
|
import Spacer from './components/Spacer.svelte';
|
|
10
10
|
import Well from './components/Well.svelte';
|
|
11
11
|
import Link from './components/Link.svelte';
|
|
12
|
-
import { ShowItem } from './components/presentation/ShowItem.js';
|
|
13
12
|
import Gallery from './components/presentation/Gallery.svelte';
|
|
13
|
+
import { ShowItem } from './components/presentation/ShowItem.js';
|
|
14
14
|
import { title, suffix } from './stores/title.js';
|
|
15
15
|
import { pages } from './stores/pages.js';
|
|
16
16
|
import { metaDescription, metaKeywords } from './stores/meta.js';
|