breaking(ui-shell): remove GlobalHeader, SideNav folders (#1223)

* breaking(ui-shell): remove GlobalHeader/SideNav folders

* Run "yarn build:docs"
This commit is contained in:
metonym 2022-04-02 11:46:55 -07:00 committed by GitHub
commit 62735d6275
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
34 changed files with 56 additions and 56 deletions

View file

@ -0,0 +1,54 @@
<script>
/** Set to `true` to select the current link */
export let isSelected = false;
/**
* Specify the `href` attribute
* @type {string}
*/
export let href = undefined;
/**
* Specify the text
* @type {string}
*/
export let text = undefined;
/**
* Specify the icon to render
* @type {typeof import("svelte").SvelteComponent}
*/
export let icon = undefined;
/** Obtain a reference to the HTML anchor element */
export let ref = null;
</script>
<li class:bx--side-nav__item="{true}">
<a
bind:this="{ref}"
aria-current="{isSelected ? 'page' : undefined}"
href="{href}"
rel="{$$restProps.target === '_blank' ? 'noopener noreferrer' : undefined}"
class:bx--side-nav__link="{true}"
class:bx--side-nav__link--current="{isSelected}"
{...$$restProps}
on:click
>
{#if $$slots.icon || icon}
<div
class:bx--side-nav__icon="{true}"
class:bx--side-nav__icon--small="{true}"
>
<slot name="icon">
<svelte:component this="{icon}" />
</slot>
</div>
{/if}
<span class:bx--side-nav__link-text="{true}">
<slot>
{text}
</slot>
</span>
</a>
</li>