@functionalcms/svelte-components 3.0.4 → 3.0.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.
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
<script>import {
|
|
2
|
-
import { Orientation, Placement } from "../Styling.js";
|
|
1
|
+
<script>import { Orientation, Placement } from "../Styling.js";
|
|
3
2
|
import ColumnMenu from "./NavigationItems.svelte";
|
|
4
3
|
import { HeaderNavigationItem, defaultCss } from "./Menu.js";
|
|
5
4
|
import { mergedClasses } from "../CssHelper.js";
|
|
5
|
+
import Button from "../agnostic/Button/Button.svelte";
|
|
6
6
|
export let css = defaultCss;
|
|
7
7
|
export let contentPosition = Placement.End;
|
|
8
8
|
export let orientation = Orientation.Column;
|
|
@@ -25,4 +25,4 @@ $: buttonCss = mergedClasses(cssClasses.buttonCss);
|
|
|
25
25
|
<div aria-expanded={expanded}>
|
|
26
26
|
<ColumnMenu {localPages} {orientation} css={cssClasses} />
|
|
27
27
|
</div>
|
|
28
|
-
{/if}
|
|
28
|
+
{/if}
|
|
@@ -1,20 +1,15 @@
|
|
|
1
|
-
<script>import
|
|
1
|
+
<script>import Card from "../agnostic/Card/Card.svelte";
|
|
2
2
|
import { AlignItmes, Justify, Orientation } from "../Styling.js";
|
|
3
3
|
export let items = [];
|
|
4
4
|
export let css = "";
|
|
5
5
|
export let justify = Justify.Between;
|
|
6
6
|
export let alignItems = AlignItmes.Center;
|
|
7
7
|
export let orientation = Orientation.DynamicRow;
|
|
8
|
-
$: galleryKlasses = [
|
|
9
|
-
"flex",
|
|
10
|
-
css,
|
|
11
|
-
`${orientation}`,
|
|
12
|
-
`${justify}`,
|
|
13
|
-
`${alignItems}`
|
|
14
|
-
].filter((c) => c).join(" ");
|
|
8
|
+
$: galleryKlasses = ["flex", css, `${orientation}`, `${justify}`, `${alignItems}`].filter((c) => c).join(" ");
|
|
15
9
|
</script>
|
|
10
|
+
|
|
16
11
|
<Card css={galleryKlasses}>
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
{/each}
|
|
12
|
+
{#each items as item}
|
|
13
|
+
<slot {item}></slot>
|
|
14
|
+
{/each}
|
|
20
15
|
</Card>
|