@functionalcms/svelte-components 2.0.5 → 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.
@@ -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>
@@ -12,6 +12,9 @@ declare const __propDef: {
12
12
  /**
13
13
  * @type {Readonly<bool>}
14
14
  */ authentication?: boolean | undefined;
15
+ /**
16
+ * @type {string}
17
+ */ logoUrl: string;
15
18
  /**
16
19
  * @type {Position}
17
20
  */ logoPosition?: Position | undefined;
@@ -1,6 +1,6 @@
1
1
  <script>import { Position } from "./Position";
2
- import logoUrl from "../images/logo.png";
3
2
  export let companyName;
3
+ export let logoUrl;
4
4
  </script>
5
5
 
6
6
  <div>
@@ -4,6 +4,9 @@ declare const __propDef: {
4
4
  /**
5
5
  * @type {string}
6
6
  */ companyName: string;
7
+ /**
8
+ * @type {string}
9
+ */ logoUrl: string;
7
10
  };
8
11
  events: {
9
12
  [evt: string]: CustomEvent<any>;
@@ -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
- import logoUrl from '../images/logo_footer.png'
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@functionalcms/svelte-components",
3
- "version": "2.0.5",
3
+ "version": "2.0.6",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build && npm run package",