@functionalcms/svelte-components 2.0.4 → 2.0.6
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/dist/components/Header.svelte +3 -2
- package/dist/components/Header.svelte.d.ts +3 -0
- package/dist/components/Logo.svelte +1 -1
- package/dist/components/Logo.svelte.d.ts +3 -0
- package/dist/components/SimpleFooter.svelte +6 -4
- package/dist/components/SimpleFooter.svelte.d.ts +2 -0
- package/dist/index.d.ts +1 -2
- package/dist/index.js +4 -2
- package/package.json +1 -1
|
@@ -5,6 +5,7 @@ import { Position } from "./Position";
|
|
|
5
5
|
export let companyName;
|
|
6
6
|
export let pages = [];
|
|
7
7
|
export let authentication = false;
|
|
8
|
+
export let logoUrl;
|
|
8
9
|
export let logoPosition = Position.Left;
|
|
9
10
|
const selectVisible = (pages2, visiblity) => pages2.filter(
|
|
10
11
|
(page) => page?.visiblity === Visiblity.Always || page?.visiblity === visiblity
|
|
@@ -18,7 +19,7 @@ $:
|
|
|
18
19
|
<header>
|
|
19
20
|
<Header>
|
|
20
21
|
{#if logoPosition == Position.Left}
|
|
21
|
-
<Logo slot="logoright" {companyName} />
|
|
22
|
+
<Logo slot="logoright" {logoUrl} {companyName} />
|
|
22
23
|
{/if}
|
|
23
24
|
<HeaderNav>
|
|
24
25
|
{#each visibleNavItems as page}
|
|
@@ -30,7 +31,7 @@ $:
|
|
|
30
31
|
{/each}
|
|
31
32
|
</HeaderNav>
|
|
32
33
|
{#if logoPosition == Position.Right}
|
|
33
|
-
<Logo slot="logoright" {companyName} />
|
|
34
|
+
<Logo slot="logoright" {logoUrl} {companyName} />
|
|
34
35
|
{/if}
|
|
35
36
|
</Header>
|
|
36
37
|
</header>
|
|
@@ -2,13 +2,15 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* @type {string}
|
|
4
4
|
*/
|
|
5
|
-
export let companyName = ""
|
|
5
|
+
export let companyName = ""
|
|
6
6
|
/**
|
|
7
7
|
* @type {string}
|
|
8
8
|
*/
|
|
9
|
-
export let motto = ""
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
export let motto = ""
|
|
10
|
+
/**
|
|
11
|
+
* @type {string}
|
|
12
|
+
*/
|
|
13
|
+
export let logoUrl: string
|
|
12
14
|
</script>
|
|
13
15
|
|
|
14
16
|
<footer class="footer">
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
/** @typedef {typeof __propDef.events} SimpleFooterEvents */
|
|
3
3
|
/** @typedef {typeof __propDef.slots} SimpleFooterSlots */
|
|
4
4
|
export default class SimpleFooter extends SvelteComponent<{
|
|
5
|
+
logoUrl: string;
|
|
5
6
|
companyName?: string | undefined;
|
|
6
7
|
motto?: string | undefined;
|
|
7
8
|
}, {
|
|
@@ -14,6 +15,7 @@ export type SimpleFooterSlots = typeof __propDef.slots;
|
|
|
14
15
|
import { SvelteComponent } from "svelte";
|
|
15
16
|
declare const __propDef: {
|
|
16
17
|
props: {
|
|
18
|
+
logoUrl: string;
|
|
17
19
|
companyName?: string | undefined;
|
|
18
20
|
motto?: string | undefined;
|
|
19
21
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ import Box from './components/Box.svelte';
|
|
|
2
2
|
import Hero from './components/Hero.svelte';
|
|
3
3
|
import Header from './components/Header.svelte';
|
|
4
4
|
import SimpleFooter from './components/SimpleFooter.svelte';
|
|
5
|
-
import { authStore } from './authStore.js';
|
|
6
5
|
import { Visiblity, HeaderNavigationItem } from './components/HeaderNavigationItem.js';
|
|
7
6
|
import { Position } from './components/Position.js';
|
|
8
|
-
export { Box, Hero, Header, SimpleFooter,
|
|
7
|
+
export { Box, Hero, Header, SimpleFooter, Visiblity, HeaderNavigationItem, Position };
|
package/dist/index.js
CHANGED
|
@@ -3,7 +3,9 @@ import Box from './components/Box.svelte';
|
|
|
3
3
|
import Hero from './components/Hero.svelte';
|
|
4
4
|
import Header from './components/Header.svelte';
|
|
5
5
|
import SimpleFooter from './components/SimpleFooter.svelte';
|
|
6
|
-
import { authStore } from './authStore.js'
|
|
6
|
+
// import { authStore } from './authStore.js'
|
|
7
7
|
import { Visiblity, HeaderNavigationItem } from './components/HeaderNavigationItem.js';
|
|
8
8
|
import { Position } from './components/Position.js';
|
|
9
|
-
export { Box, Hero, Header, SimpleFooter,
|
|
9
|
+
export { Box, Hero, Header, SimpleFooter,
|
|
10
|
+
// authStore,
|
|
11
|
+
Visiblity, HeaderNavigationItem, Position };
|