first commit on the UIShell

This commit is contained in:
adan.ulloa 2020-01-02 12:04:41 -06:00 committed by Adan Ulloa
commit 93b912240f
13 changed files with 492 additions and 0 deletions

View file

@ -0,0 +1,41 @@
<script>
export let href = undefined;
export let text = undefined;
export let subMenu = undefined;
import { cx } from '../../../lib';
import UIShellSubmenu from './UIShellNavSubmenu.svelte';
</script>
{#if href}
<li>
<a
class={cx('--header__menu-item')}
role="menuitem"
tabindex="0"
on:click
on:mouseover
on:mouseenter
on:mouseleave
on:keyup
on:keydown
on:focus
on:blur
{href}>
<span class={cx('--text-truncate--end')}>{text}</span>
</a>
</li>
{:else}
<UIShellSubmenu
{href}
{text}
{subMenu}
on:click
on:mouseover
on:mouseenter
on:mouseleave
on:keyup
on:keydown
on:focus
on:blur />
{/if}