Skip to content

Commit c7b7dcf

Browse files
authored
DS - storybook center stories & group patterns (#5847)
* center stories and make patterns grouping * remove align center
1 parent 0cd21dc commit c7b7dcf

15 files changed

+25
-18
lines changed

shared/aries-core/.storybook/preview.mjs

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react';
22
import { hpe } from 'grommet-theme-hpe';
3-
import { Grommet } from 'grommet';
3+
import { Grommet, Box } from 'grommet';
44
import { useIsDarkMode } from './darkModeHooks';
55

66
export default {
@@ -11,14 +11,21 @@ export default {
1111
const mode = isDark ? 'dark' : 'light';
1212

1313
return (
14-
<Grommet full theme={hpe} themeMode={mode} background={context.globals.background?.value}>
15-
<Story />
14+
<Grommet
15+
full
16+
theme={hpe}
17+
themeMode={mode}
18+
background={context.globals.background?.value}
19+
>
20+
<Box pad="large" fill>
21+
<Story />
22+
</Box>
1623
</Grommet>
1724
);
1825
},
1926
],
2027
parameters: {
21-
layout: 'fullscreen',
28+
layout: 'centered',
2229
actions: {
2330
disable: true,
2431
},

shared/aries-core/src/stories/codeBlocks.stories.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import React from 'react';
44
import { CodeBlockExample } from 'apps/docs/src/examples/templates/code-blocks/CodeBlocks';
55

66
const meta = {
7-
title: 'Code Blocks',
7+
title: 'Patterns/Code Blocks',
88
component: CodeBlockExample,
99
parameters: {
1010
layout: 'centered',

shared/aries-core/src/stories/dashboards.stories.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { ThreeColumnDashboard } from 'apps/docs/src/examples/templates/dashboard
66
import { TwoColumnDashboard } from 'apps/docs/src/examples/templates/dashboards/TwoColumnDashboard';
77

88
const meta = {
9-
title: 'Dashboards',
9+
title: 'Patterns/Dashboards',
1010
parameters: {
1111
layout: 'fullscreen',
1212
},

shared/aries-core/src/stories/dataTableCustomization.stories.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { ColumnSettingsExample } from 'apps/docs/src/examples/templates/table-cu
55
import { TableCustomizationExample } from 'apps/docs/src/examples/templates/table-customization/components/TableCustomizationExample';
66

77
const meta = {
8-
title: 'DataTable Customization',
8+
title: 'Patterns/DataTable Customization',
99
parameters: {
1010
layout: 'centered',
1111
},

shared/aries-core/src/stories/emptyState.stories.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { LayerEmptyState } from 'apps/docs/src/examples/templates/empty-state/La
99
import { PageEmptyState } from 'apps/docs/src/examples/templates/empty-state/PageEmptyState';
1010

1111
const meta = {
12-
title: 'Empty State',
12+
title: 'Patterns/Empty State',
1313
};
1414

1515
export default meta;

shared/aries-core/src/stories/filtering.stories.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { FilteringLists } from 'apps/docs/src/examples/templates/filtering/Filte
77
import { QuickFilterToolbar } from 'apps/docs/src/examples/templates/filtering/QuickFilterToolbar';
88

99
const meta = {
10-
title: 'Filtering',
10+
title: 'Patterns/Filtering',
1111
};
1212

1313
export default meta;

shared/aries-core/src/stories/forms.stories.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import { CharacterCounterExample } from 'apps/docs/src/examples/templates/forms/
1515
import { ChangePasswordExample } from 'apps/docs/src/examples/templates/forms/ChangePasswordExample';
1616

1717
const meta = {
18-
title: 'Forms',
18+
title: 'Patterns/Forms',
1919
};
2020

2121
export default meta;

shared/aries-core/src/stories/globalNotifications.stories.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { BannerNotificationWarning } from 'apps/docs/src/examples/templates/glob
99
import { BannerNotificationWarningClose } from 'apps/docs/src/examples/templates/global-banner-notifications/Examples/BannerNotificationWarningClose';
1010

1111
const meta = {
12-
title: 'Global Notifications',
12+
title: 'Patterns/Global Notifications',
1313
};
1414

1515
export default meta;

shared/aries-core/src/stories/inlineNotifications.stories.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { PromotionExample } from 'apps/docs/src/examples/templates/inline-notifi
88
import { StatusUpdateExample } from 'apps/docs/src/examples/templates/inline-notifications/StatusUpdateExample';
99

1010
const meta = {
11-
title: 'Inline Notifications',
11+
title: 'Patterns/Inline Notifications',
1212
};
1313

1414
export default meta;

shared/aries-core/src/stories/lists.stories.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { ListOrderExample } from 'apps/docs/src/examples/templates/list-views/Li
1010
import { ListScreenExample } from 'apps/docs/src/examples/templates/list-views/ListScreenExample';
1111

1212
const meta = {
13-
title: 'Lists',
13+
title: 'Patterns/Lists',
1414
};
1515

1616
export default meta;

0 commit comments

Comments
 (0)