From 31f082bdaca3f99ff2d5dd3d217d64b582428818 Mon Sep 17 00:00:00 2001 From: Stephanie Smith Date: Fri, 2 Aug 2024 17:08:18 -0700 Subject: [PATCH 1/6] adding JumpMenu component --- apps/vue-storybook/.storybook/preview.ts | 3 +- .../NavDropdownToggle/NavDropdownToggle.vue | 11 ++- .../NavJumpMenu/NavJumpMenu.stories.js | 53 +++++++++++++ .../components/NavJumpMenu/NavJumpMenu.vue | 71 +++++++++++++++++ .../NavJumpMenu/NavJumpMenuContent.vue | 78 +++++++++++++++++++ .../NavSecondary/NavSecondary.stories.js | 11 ++- .../components/NavSecondary/NavSecondary.vue | 55 ++++++++++--- .../NavSecondary/NavSecondaryDropdown.vue | 61 ++++++++++++--- .../NavSecondaryDropdownContent.vue | 6 +- .../NavSecondary/NavSecondaryLink.vue | 45 ++++++++--- packages/vue/src/interfaces.ts | 6 +- 11 files changed, 362 insertions(+), 38 deletions(-) create mode 100644 packages/vue/src/components/NavJumpMenu/NavJumpMenu.stories.js create mode 100644 packages/vue/src/components/NavJumpMenu/NavJumpMenu.vue create mode 100644 packages/vue/src/components/NavJumpMenu/NavJumpMenuContent.vue diff --git a/apps/vue-storybook/.storybook/preview.ts b/apps/vue-storybook/.storybook/preview.ts index ee3a5ef3..4afb70bc 100644 --- a/apps/vue-storybook/.storybook/preview.ts +++ b/apps/vue-storybook/.storybook/preview.ts @@ -122,7 +122,8 @@ const preview: Preview = { ['Overview', 'WWW'], 'Footers', ['Overview', 'WWW'], - 'Secondary Navigation' + 'Secondary Navigation', + 'Jump Menu' ], 'Global Layout', [ diff --git a/packages/vue/src/components/NavDropdownToggle/NavDropdownToggle.vue b/packages/vue/src/components/NavDropdownToggle/NavDropdownToggle.vue index 479feadd..19ac6492 100644 --- a/packages/vue/src/components/NavDropdownToggle/NavDropdownToggle.vue +++ b/packages/vue/src/components/NavDropdownToggle/NavDropdownToggle.vue @@ -1,7 +1,7 @@ + diff --git a/packages/vue/src/components/NavJumpMenu/NavJumpMenuContent.vue b/packages/vue/src/components/NavJumpMenu/NavJumpMenuContent.vue new file mode 100644 index 00000000..adb870ae --- /dev/null +++ b/packages/vue/src/components/NavJumpMenu/NavJumpMenuContent.vue @@ -0,0 +1,78 @@ + + + + diff --git a/packages/vue/src/components/NavSecondary/NavSecondary.stories.js b/packages/vue/src/components/NavSecondary/NavSecondary.stories.js index 678449a9..206adf51 100644 --- a/packages/vue/src/components/NavSecondary/NavSecondary.stories.js +++ b/packages/vue/src/components/NavSecondary/NavSecondary.stories.js @@ -1,7 +1,7 @@ import NavSecondary from './NavSecondary.vue' export default { - title: 'Navigation/Secondary Navigation/NavSecondary', + title: 'Navigation/Secondary Navigation', component: NavSecondary, excludeStories: /.*Data$/, parameters: { @@ -19,6 +19,11 @@ export const NavSecondaryData = { } export const BaseStory = { - name: 'NavSecondary', - args: { breadcrumb: NavSecondaryData.breadcrumb } + name: 'Secondary Navigation', + args: { + breadcrumb: NavSecondaryData.breadcrumb + } +} +export const Inverted = { + args: { breadcrumb: NavSecondaryData.breadcrumb, invert: true } } diff --git a/packages/vue/src/components/NavSecondary/NavSecondary.vue b/packages/vue/src/components/NavSecondary/NavSecondary.vue index 706e27cc..608690b9 100644 --- a/packages/vue/src/components/NavSecondary/NavSecondary.vue +++ b/packages/vue/src/components/NavSecondary/NavSecondary.vue @@ -6,9 +6,12 @@ class="NavSecondary" :class="{ 'has-intro': hasIntro }" > -
+