From b79567f932d8ace51dd96f3cb4ce1aa2ba289df5 Mon Sep 17 00:00:00 2001 From: Marcus Feitoza Date: Sat, 18 Apr 2020 12:44:24 -0300 Subject: [PATCH] docs(uishell): replace with header --- src/components/UIShell/UIShell.Story.svelte | 72 ++++++++++++--------- src/components/UIShell/UIShell.stories.js | 30 +++++++-- 2 files changed, 65 insertions(+), 37 deletions(-) diff --git a/src/components/UIShell/UIShell.Story.svelte b/src/components/UIShell/UIShell.Story.svelte index 9dcf8573..16c1245c 100644 --- a/src/components/UIShell/UIShell.Story.svelte +++ b/src/components/UIShell/UIShell.Story.svelte @@ -1,7 +1,6 @@ -{#if story === 'with-nav'} - +{#if story === 'base'} +
+{:else if story === 'with-header-and-nav'} +
@@ -121,20 +123,29 @@ - -{:else if story === 'with-actions'} - +
+{:else if story === 'with-utilities'} +
-

Settings

+ + Settings +
- -

Notifications

+ + + Notifications + - +
+
+{:else if story === 'with-switcher'} +
+ + Switcher subject 1 Switecher item 1 @@ -147,27 +158,24 @@ - +
{:else if story === 'with-sidenav'} - - - - - - - - - - - - - - - - - - - -{:else} - +
+ + + + + + + + + + + + + + + + + {/if} diff --git a/src/components/UIShell/UIShell.stories.js b/src/components/UIShell/UIShell.stories.js index e8b66ea1..4cf5c5a3 100644 --- a/src/components/UIShell/UIShell.stories.js +++ b/src/components/UIShell/UIShell.stories.js @@ -3,27 +3,47 @@ import Component from './UIShell.Story.svelte'; export default { title: 'UIShell', decorators: [withKnobs] }; -export const WithNav = () => ({ +export const Base = () => ({ Component, props: { - story: 'with-nav', + story: 'base', href: text('The link href (href)', '#'), company: text('Company name', 'IBM'), platformName: text('Platform name', 'Platform Name') } }); -export const WithActions = () => ({ +export const WithHeaderAndNav = () => ({ Component, props: { - story: 'with-actions', + story: 'with-header-and-nav', href: text('The link href (href)', '#'), company: text('Company name', 'IBM'), platformName: text('Platform name', 'Platform Name') } }); -export const WithActionsAndSidenav = () => ({ +export const WithUtilities = () => ({ + Component, + props: { + story: 'with-utilities', + href: text('The link href (href)', '#'), + company: text('Company name', 'IBM'), + platformName: text('Platform name', 'Platform Name') + } +}); + +export const WithSwitcher = () => ({ + Component, + props: { + story: 'with-switcher', + href: text('The link href (href)', '#'), + company: text('Company name', 'IBM'), + platformName: text('Platform name', 'Platform Name') + } +}); + +export const WithSidenav = () => ({ Component, props: { story: 'with-sidenav',