@functionalcms/svelte-components 2.38.1 → 2.38.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.
- package/dist/components/Link.svelte +3 -2
- package/dist/components/menu/CollapsibleMenu.svelte +2 -8
- package/dist/components/menu/CollapsibleMenu.svelte.d.ts +1 -1
- package/dist/components/menu/DynamicMenu.svelte +1 -1
- package/dist/components/menu/DynamicMenu.svelte.d.ts +1 -1
- package/dist/components/menu/HamburgerMenu.svelte +1 -1
- package/dist/components/menu/HamburgerMenu.svelte.d.ts +1 -1
- package/dist/components/menu/NavigationItems.svelte +5 -5
- package/dist/components/menu/NavigationItems.svelte.d.ts +1 -1
- package/package.json +1 -1
|
@@ -290,6 +290,7 @@ on the side padding. As such, these have a good bit less then regular buttons. *
|
|
|
290
290
|
flex-direction: row;
|
|
291
291
|
}</style>
|
|
292
292
|
<script>import { AlignItmes, ComponentSize, Justify, Orientation } from "./Styling.js";
|
|
293
|
+
import { mergedClasses } from "./CssHelper.js";
|
|
293
294
|
export let css = "";
|
|
294
295
|
export let href = "";
|
|
295
296
|
export let isPrimary = false;
|
|
@@ -310,7 +311,7 @@ export let orientation = Orientation.Row;
|
|
|
310
311
|
export let role = "";
|
|
311
312
|
$: isSmall = size === ComponentSize.Small;
|
|
312
313
|
$: isLarge = size === ComponentSize.Large;
|
|
313
|
-
$: klasses =
|
|
314
|
+
$: klasses = mergedClasses(
|
|
314
315
|
isPrimary ? "btn-primary" : "",
|
|
315
316
|
isDisabled ? "disabled" : "",
|
|
316
317
|
isBordered ? "btn-bordered" : "",
|
|
@@ -329,7 +330,7 @@ $: klasses = [
|
|
|
329
330
|
`${justify}`,
|
|
330
331
|
`${alignItems}`,
|
|
331
332
|
css ? css : "btn"
|
|
332
|
-
|
|
333
|
+
);
|
|
333
334
|
</script>
|
|
334
335
|
<a class={klasses} href={href} role={role}>
|
|
335
336
|
<slot />
|
|
@@ -3,7 +3,7 @@ import { Orientation, Placement } from "../Styling.js";
|
|
|
3
3
|
import ColumnMenu from "./NavigationItems.svelte";
|
|
4
4
|
import { HeaderNavigationItem, defaultCss } from "./Menu.js";
|
|
5
5
|
import { mergedClasses } from "../CssHelper.js";
|
|
6
|
-
export let css;
|
|
6
|
+
export let css = defaultCss;
|
|
7
7
|
export let contentPosition = Placement.End;
|
|
8
8
|
export let orientation = Orientation.Column;
|
|
9
9
|
export let localPages = [];
|
|
@@ -25,10 +25,4 @@ $: buttonCss = mergedClasses(cssClasses.buttonCss);
|
|
|
25
25
|
<div aria-expanded={expanded}>
|
|
26
26
|
<ColumnMenu {localPages} {orientation} css={cssClasses} />
|
|
27
27
|
</div>
|
|
28
|
-
{/if}
|
|
29
|
-
|
|
30
|
-
<style>
|
|
31
|
-
div {
|
|
32
|
-
margin: var(--fluid-8);
|
|
33
|
-
}
|
|
34
|
-
</style>
|
|
28
|
+
{/if}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { isAuthenticated } from "./authentication.js";
|
|
3
3
|
import { page } from "$app/stores";
|
|
4
4
|
import { mergedClasses } from "../CssHelper.js";
|
|
5
|
-
export let css;
|
|
5
|
+
export let css = defaultCss;
|
|
6
6
|
const cssClasses = { ...defaultCss, ...css };
|
|
7
7
|
export let localPages = [];
|
|
8
8
|
$: pagesVisiblity = isAuthenticated($page);
|
|
@@ -4,7 +4,7 @@ import { Drawer, Button } from "agnostic-svelte";
|
|
|
4
4
|
import { Orientation, Placement } from "../Styling.js";
|
|
5
5
|
import ColumnMenu from "./NavigationItems.svelte";
|
|
6
6
|
import { mergedClasses } from "../CssHelper.js";
|
|
7
|
-
export let css;
|
|
7
|
+
export let css = defaultCss;
|
|
8
8
|
export let noBorder = false;
|
|
9
9
|
export let placement = Placement.Start;
|
|
10
10
|
export let localPages = [];
|
|
@@ -3,7 +3,7 @@ import { Orientation } from "../Styling.js";
|
|
|
3
3
|
import Link from "../Link.svelte";
|
|
4
4
|
import { page } from "$app/stores";
|
|
5
5
|
import { mergedClasses } from "../CssHelper.js";
|
|
6
|
-
export let css;
|
|
6
|
+
export let css = defaultCss;
|
|
7
7
|
export let localPages = [];
|
|
8
8
|
export let orientation = Orientation.Column;
|
|
9
9
|
export let includeSubpagesForSelect = true;
|
|
@@ -14,9 +14,9 @@ const linkCss = mergedClasses(cssClasses.link);
|
|
|
14
14
|
|
|
15
15
|
<ul class={containerCss} role="menu" aria-roledescription="">
|
|
16
16
|
{#each localPages as pageItem}
|
|
17
|
-
<li aria-current={isSelected(includeSubpagesForSelect, $page, pageItem)} role="presentation">
|
|
17
|
+
<li aria-current={isSelected(includeSubpagesForSelect, $page, pageItem)} class={linkCss} role="presentation">
|
|
18
18
|
<span class="screenreader-only">Navigate to {pageItem.name}</span>
|
|
19
|
-
<Link href={pageItem.path}
|
|
19
|
+
<Link href={pageItem.path} role="menuItem">
|
|
20
20
|
{pageItem.name}
|
|
21
21
|
</Link>
|
|
22
22
|
</li>
|
|
@@ -24,7 +24,7 @@ const linkCss = mergedClasses(cssClasses.link);
|
|
|
24
24
|
</ul>
|
|
25
25
|
|
|
26
26
|
<style>
|
|
27
|
-
ul {
|
|
27
|
+
/* ul {
|
|
28
28
|
background: var(--functional-menu-background);
|
|
29
29
|
margin: var(--functional-menu-margin);
|
|
30
30
|
padding: var(--functional-menu-padding);
|
|
@@ -65,5 +65,5 @@ const linkCss = mergedClasses(cssClasses.link);
|
|
|
65
65
|
border-bottom: var(--functional-menu-item-selected-border-bottom);
|
|
66
66
|
border-left: var(--functional-menu-item-selected-border-left);
|
|
67
67
|
border-radius: var(--functional-menu-item-selected-radius, var(--functional-radius));
|
|
68
|
-
}
|
|
68
|
+
} */
|
|
69
69
|
</style>
|