-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3786fa2
commit f2408cc
Showing
22 changed files
with
222 additions
and
144 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
'use strict'; | ||
|
||
module.exports = { | ||
extends: 'recommended', | ||
extends: 'stylistic', | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
{{! Copyright 2021, Verizon Media. Licensed under the terms of the MIT license. See accompanying LICENSE.md file for terms. }} | ||
<div | ||
class='menu {{this.alignContentClass}} {{this.isActiveClass}} {{this.class}}' | ||
class="menu {{this.alignContentClass}} {{this.isActiveClass}} {{this.class}}" | ||
...attributes | ||
{{on 'mouseenter' this.toggleIsActive}} | ||
{{on 'mouseleave' this.toggleIsActive}} | ||
{{on "mouseenter" this.toggleIsActive}} | ||
{{on "mouseleave" this.toggleIsActive}} | ||
> | ||
{{yield (hash Trigger=(component 'denali-menu/trigger' triggerClass=this.triggerClass))}} | ||
{{yield (hash Trigger=(component "denali-menu/trigger" class=this.triggerClass))}} | ||
{{#if this.isActive}} | ||
{{yield (hash Content=(component 'denali-menu/content'))}} | ||
{{yield (hash Content=(component "denali-menu/content" class=this.contentClass))}} | ||
{{/if}} | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{{! Copyright 2020, Verizon Media. Licensed under the terms of the MIT license. See accompanying LICENSE.md file for terms. }} | ||
<div class="menu-content" ...attributes> | ||
<div class="menu-content {{this.class}}" ...attributes> | ||
{{yield}} | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/** | ||
* Copyright 2021, Yahoo | ||
* Licensed under the terms of the MIT license. See accompanying LICENSE.md file for terms. | ||
*/ | ||
import Component from '@glimmer/component'; | ||
import { arg } from 'ember-arg-types'; | ||
import { string } from 'prop-types'; | ||
|
||
export default class DenaliMenuTriggerComponent extends Component { | ||
@arg(string) class = ''; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
{{! Copyright 2021, Verizon Media. Licensed under the terms of the MIT license. See accompanying LICENSE.md file for terms. }} | ||
{{! template-lint-disable link-href-attributes}} | ||
<span class='menu-trigger link {{this.triggerClass}}' ...attributes> | ||
<div class="menu-trigger {{this.class}}" ...attributes> | ||
{{yield}} | ||
</span> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
/** | ||
* Copyright 2020, Verizon Media | ||
* Copyright 2020, Yahoo | ||
* Licensed under the terms of the MIT license. See accompanying LICENSE.md file for terms. | ||
*/ | ||
import Component from '@glimmer/component'; | ||
import { arg } from 'ember-arg-types'; | ||
import { string } from 'prop-types'; | ||
|
||
export default class DenaliMenuTriggerComponent extends Component { | ||
@arg(string) triggerClass = ''; | ||
@arg(string) class = ''; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,30 @@ | ||
{{! Copyright 2020, Verizon Media. Licensed under the terms of the MIT license. See accompanying LICENSE.md file for terms. }} | ||
<span | ||
class='tag | ||
class="tag | ||
{{this.isActiveClass}} | ||
{{this.isDisabledClass}} | ||
{{this.isOutlinedClass}} | ||
{{this.isSmallClass}} | ||
{{this.hasIconFront}} | ||
{{this.hasIconBack}}' | ||
{{this.hasIconBack}}" | ||
...attributes | ||
> | ||
{{#if this.iconFront}} | ||
{{! template-lint-disable no-invalid-interactive }} | ||
<i | ||
class='d-icon d-{{this.iconFront}} {{this.iconFrontClass}}' | ||
role={{if @onIconFrontClick 'button'}} | ||
{{on 'click' this.onIconFrontClick}} | ||
class="d-icon d-{{this.iconFront}} {{this.iconFrontClass}}" | ||
role={{if @onIconFrontClick "button"}} | ||
{{on "click" this.onIconFrontClick}} | ||
></i> | ||
{{/if}} | ||
|
||
{{yield}} | ||
|
||
{{#if this.iconBack}} | ||
<i | ||
class='d-icon d-{{this.iconBack}} {{this.iconBackClass}}' | ||
role={{if @onIconBackClick 'button'}} | ||
{{on 'click' this.onIconBackClick}} | ||
class="d-icon d-{{this.iconBack}} {{this.iconBackClass}}" | ||
role={{if @onIconBackClick "button"}} | ||
{{on "click" this.onIconBackClick}} | ||
></i> | ||
{{/if}} | ||
</span> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,23 @@ | ||
<DenaliNavbar @isResponsive={{true}} as |Nav|> | ||
<Nav.Left as |Left|> | ||
<Left.Logo @src='https://denali.design/assets/images/denali-logo.png' /> | ||
<Left.Logo @src="https://denali.design/images/denali-logo-white-solid.png" /> | ||
</Nav.Left> | ||
<Nav.Right as |Right|> | ||
<a href='https://github.com/denali-design/denali-ember'> | ||
<Right.Icon @icon='github' @name='GitHub' /> | ||
</a> | ||
<Right.Menu as |Menu|> | ||
<Menu.Trigger> | ||
Menu | ||
<DenaliIcon @size="small" @icon="arrowhead-down" /> | ||
</Menu.Trigger> | ||
|
||
<Menu.Content> | ||
<DenaliLink href="https://denali-design.github.io/denali-ember/">Denali Ember Storybook</DenaliLink> | ||
<DenaliLink href="https://denali-design.github.io/denali-css/">Denali CSS Storybook</DenaliLink> | ||
</Menu.Content> | ||
</Right.Menu> | ||
|
||
<DenaliLink href="https://github.com/denali-design/denali-ember"> | ||
<Right.Icon @icon="github" @name="GitHub" /> | ||
</DenaliLink> | ||
</Nav.Right> | ||
</DenaliNavbar> | ||
{{outlet}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.