@functionalcms/svelte-components 2.28.1 → 2.29.0

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.
@@ -310,7 +310,6 @@ export let orientation = Orientation.Row;
310
310
  $: isSmall = size === ComponentSize.Small;
311
311
  $: isLarge = size === ComponentSize.Large;
312
312
  $: klasses = [
313
- "btn",
314
313
  isPrimary ? "btn-primary" : "",
315
314
  isDisabled ? "disabled" : "",
316
315
  isBordered ? "btn-bordered" : "",
@@ -328,7 +327,7 @@ $: klasses = [
328
327
  `${orientation}`,
329
328
  `${justify}`,
330
329
  `${alignItems}`,
331
- css ? css : ""
330
+ css ? css : "btn"
332
331
  ].filter((c) => c).join(" ");
333
332
  </script>
334
333
  <svelte:options customElement="active-link" />
@@ -2,7 +2,9 @@
2
2
  import { page } from "$app/stores";
3
3
  import { isSelected } from "./MenuFunctions.js";
4
4
  import { Orientation } from "../Styling.js";
5
+ import Link from "../Link.svelte";
5
6
  export let css = "";
7
+ export let linkCss = "";
6
8
  export let localPages = [];
7
9
  export let orientation = Orientation.Column;
8
10
  export let includeSubpagesForSelect = false;
@@ -13,9 +15,12 @@ const klasses = ["flex", orientation, css ? css : ""].filter((c) => c).join(" ")
13
15
  {#each localPages as pageItem}
14
16
  <li aria-current={isSelected(includeSubpagesForSelect, $page, pageItem)}>
15
17
  <span class="screenreader-only">Navigate to {pageItem.name}</span>
16
- <a on:click={pageItem.action} href={pageItem.path}>
18
+ <Link href={pageItem.path} css={linkCss}>
17
19
  {pageItem.name}
18
- </a>
20
+ </Link>
21
+ <!-- <a on:click={pageItem.action} href={pageItem.path}>
22
+ {pageItem.name}
23
+ </a> -->
19
24
  </li>
20
25
  {/each}
21
26
  </ul>
@@ -4,6 +4,7 @@ import { Orientation } from '../Styling.js';
4
4
  declare const __propDef: {
5
5
  props: {
6
6
  css?: string;
7
+ linkCss?: string;
7
8
  localPages?: Array<HeaderNavigationItem>;
8
9
  orientation?: Orientation;
9
10
  includeSubpagesForSelect?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@functionalcms/svelte-components",
3
- "version": "2.28.1",
3
+ "version": "2.29.0",
4
4
  "watch": {
5
5
  "build": {
6
6
  "patterns": [