-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* adding JumpMenu component * fixing links in jump menu * adding eventBus * adding show/hide effects to jump menu * finishing mobile jump menu * fixing vue-build errors
- Loading branch information
1 parent
5490398
commit e143636
Showing
29 changed files
with
534 additions
and
72 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
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
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
47 changes: 47 additions & 0 deletions
47
packages/vue/src/components/NavJumpMenu/NavJumpMenu.stories.js
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,47 @@ | ||
import NavJumpMenu from './NavJumpMenu.vue' | ||
|
||
export default { | ||
title: 'Navigation/Jump Menu', | ||
component: NavJumpMenu, | ||
tags: ['!autodocs'], | ||
excludeStories: /.*Data$/ | ||
} | ||
|
||
const JumpLinksData = [ | ||
{ | ||
title: 'Heading title', | ||
path: '#heading_title' | ||
}, | ||
{ | ||
title: 'Heading title', | ||
path: '#heading_title' | ||
}, | ||
{ | ||
title: 'Heading title', | ||
path: '#heading_title' | ||
}, | ||
{ | ||
title: 'Heading title', | ||
path: '#heading_title' | ||
}, | ||
{ | ||
title: 'Heading title', | ||
path: '#heading_title' | ||
} | ||
] | ||
export const BaseStory = { | ||
name: 'Jump Menu', | ||
args: { | ||
title: 'Page Title', | ||
jumpLinks: JumpLinksData, | ||
invert: true | ||
} | ||
} | ||
|
||
export const Light = { | ||
args: { | ||
title: 'Page Title', | ||
jumpLinks: JumpLinksData, | ||
invert: false | ||
} | ||
} |
Oops, something went wrong.