-
Notifications
You must be signed in to change notification settings - Fork 61
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
cd5a71b
commit e200c93
Showing
6 changed files
with
197 additions
and
54 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
import { SidebarNavigationItem } from '@/src/lib/interfaces/page-info'; | ||
|
||
export const mockedSidebarNavigationConfigRoutes: SidebarNavigationItem[] = [ | ||
{ | ||
title: 'Page 1', | ||
path: 'page-1', | ||
ignoreLink: false, | ||
children: [ | ||
{ | ||
title: 'Page 1-1', | ||
path: 'page-1-1', | ||
children: [ | ||
{ | ||
title: 'Page 1-1-1', | ||
path: 'page-1-1-1', | ||
children: [], | ||
}, | ||
{ | ||
title: 'Page 1-1-2', | ||
path: 'page-1-1-2', | ||
children: [], | ||
}, | ||
], | ||
}, | ||
{ | ||
title: 'Page 1-2', | ||
path: 'page-1-2', | ||
children: [], | ||
}, | ||
], | ||
}, | ||
{ | ||
title: 'Page 2', | ||
path: 'page-2', | ||
ignoreLink: false, | ||
children: [], | ||
}, | ||
{ | ||
title: 'Page 3', | ||
path: 'page-3', | ||
ignoreLink: false, | ||
children: [ | ||
{ | ||
title: 'Page 3-1', | ||
path: 'page-3-1', | ||
children: [ | ||
{ | ||
title: 'Page 3-1-1', | ||
path: 'page-3-1-1', | ||
children: [], | ||
}, | ||
{ | ||
title: 'Page 3-1-2', | ||
path: 'page-3-1-2', | ||
children: [], | ||
}, | ||
], | ||
}, | ||
{ | ||
title: 'Page 3-2', | ||
path: 'page-3-2', | ||
children: [], | ||
}, | ||
], | ||
}, | ||
{ | ||
title: 'Page 4', | ||
path: 'page-4', | ||
ignoreLink: false, | ||
children: [], | ||
}, | ||
{ | ||
title: 'Page 5', | ||
path: 'page-5', | ||
ignoreLink: false, | ||
children: [], | ||
}, | ||
]; |
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
// Replace your-renderer with the renderer you are using (e.g., react, vue3, etc.) | ||
import type { Meta, StoryObj } from '@storybook/react'; | ||
|
||
import { mockedSidebarNavigationConfigRoutes } from '@/__mocks__/navigation/sidebarNavigationItems'; | ||
import { ArticlePagingNext } from './ArticlePagingNext'; | ||
|
||
const meta: Meta<typeof ArticlePagingNext> = { | ||
title: 'Components/Navigation/ArticlePagingNext', | ||
component: ArticlePagingNext, | ||
}; | ||
export default meta; | ||
|
||
type Story = StoryObj<typeof ArticlePagingNext>; | ||
|
||
export const Basic: Story = { | ||
parameters: { | ||
nextjs: { | ||
router: { | ||
basePath: '/test', | ||
}, | ||
}, | ||
}, | ||
args: { | ||
enabled: true, | ||
currentFileName: 'page-2', | ||
currentPath: '/example/page-2', | ||
config: { | ||
title: 'Test', | ||
description: 'Mocked content for storybook', | ||
heading: true, | ||
path: '/example', | ||
showRootAsSections: false, | ||
enableSearch: true, | ||
enableBreadcrumb: true, | ||
enableNextPrevious: true, | ||
routes: mockedSidebarNavigationConfigRoutes, | ||
}, | ||
}, | ||
}; |
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,16 @@ | ||
// Replace your-renderer with the renderer you are using (e.g., react, vue3, etc.) | ||
import type { Meta, StoryObj } from '@storybook/react'; | ||
|
||
import { Footer } from './Footer'; | ||
|
||
const meta: Meta<typeof Footer> = { | ||
title: 'Components/Navigation/Footer', | ||
component: Footer, | ||
}; | ||
export default meta; | ||
|
||
type Story = StoryObj<typeof Footer>; | ||
|
||
export const Basic: Story = { | ||
args: {}, | ||
}; |
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,31 @@ | ||
// Replace your-renderer with the renderer you are using (e.g., react, vue3, etc.) | ||
import type { Meta, StoryObj } from '@storybook/react'; | ||
|
||
import InPageNav from './InPageNav'; | ||
|
||
const meta: Meta<typeof InPageNav> = { | ||
title: 'Components/Navigation/InPageNav', | ||
component: InPageNav, | ||
}; | ||
export default meta; | ||
|
||
type Story = StoryObj<typeof InPageNav>; | ||
|
||
export const Basic: Story = { | ||
args: { | ||
titles: [ | ||
{ | ||
title: 'Title 1', | ||
id: 'title-1', | ||
}, | ||
{ | ||
title: 'Title 2', | ||
id: 'title-2', | ||
}, | ||
{ | ||
title: 'Title 3', | ||
id: 'title-3', | ||
}, | ||
], | ||
}, | ||
}; |
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,31 @@ | ||
// Replace your-renderer with the renderer you are using (e.g., react, vue3, etc.) | ||
import type { Meta, StoryObj } from '@storybook/react'; | ||
|
||
import InPageNavSmall from './InPageNavSmall'; | ||
|
||
const meta: Meta<typeof InPageNavSmall> = { | ||
title: 'Components/Navigation/InPageNavSmall', | ||
component: InPageNavSmall, | ||
}; | ||
export default meta; | ||
|
||
type Story = StoryObj<typeof InPageNavSmall>; | ||
|
||
export const Basic: Story = { | ||
args: { | ||
titles: [ | ||
{ | ||
title: 'Title 1', | ||
id: 'title-1', | ||
}, | ||
{ | ||
title: 'Title 2', | ||
id: 'title-2', | ||
}, | ||
{ | ||
title: 'Title 3', | ||
id: 'title-3', | ||
}, | ||
], | ||
}, | ||
}; |