chore(components): add untracked files

This commit is contained in:
Adan Ulloa 2020-01-22 10:06:29 -06:00
commit afae0931e6
4 changed files with 1264 additions and 593 deletions

View file

@ -5,18 +5,20 @@
import { cx } from '../../../lib';
import Menu20 from 'carbon-icons-svelte/lib/Menu20';
import Icon from '../../Icon/Icon.svelte';
import { fly } from "svelte/transition";
import { fly } from 'svelte/transition';
import { closeIcon } from '../constants';
$: iconProps = !isOpen ? {
class: undefined,
skeleton: false,
render: Menu20,
title: 'Open Menu',
tabIndex: 0,
focusable: false,
style: undefined
} : closeIcon;
$: iconProps = !isOpen
? {
class: undefined,
skeleton: false,
render: Menu20,
title: 'Open Menu',
tabIndex: 0,
focusable: false,
style: undefined
}
: closeIcon;
</script>
<button
@ -25,6 +27,6 @@
class={cx('--header__action', '--header__menu-trigger', '--header__menu-toggle')}
title="Open menu"
type="button"
on:click={() => isOpen = !isOpen}>
on:click={() => (isOpen = !isOpen)}>
<Icon {...iconProps} />
</button>