Skip to content

Commit 6a714e2

Browse files
committed
Organize storybook stories
1 parent 6032a10 commit 6a714e2

15 files changed

Lines changed: 1139 additions & 825 deletions

packages/oxygen-ui-docs/.storybook/preview.js

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,36 @@ const preview = {
170170

171171
options: {
172172
storySort: {
173-
order: ['Welcome', 'Inputs', 'DataDisplay', '*', 'Theming', 'Animations', 'Utils', 'MUI X'],
173+
order: [
174+
'Welcome',
175+
'App Elements', [
176+
'App Shell',
177+
'Header',
178+
'User Menu',
179+
'Sidebar',
180+
'Footer',
181+
'Page Content',
182+
'Page Title',
183+
'*'
184+
],
185+
'Tables',
186+
'Inputs',
187+
'Data Display',
188+
'*',
189+
'Theming',
190+
'Animations',
191+
'Templates', [
192+
'Overview',
193+
'*',
194+
],
195+
'Utils', [
196+
'*',
197+
'useTheme',
198+
'useThemeContent',
199+
'useMediaQuery',
200+
],
201+
'MUI X'
202+
],
174203
},
175204
},
176205

packages/oxygen-ui-docs/stories/AppElements/CodeBlock.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import { Stack, Typography } from '@wso2/oxygen-ui';
2222
import React from 'react';
2323

2424
const meta: Meta<typeof CodeBlock> = {
25-
title: 'App Elements/CodeBlock',
25+
title: 'App Elements/Code Block',
2626
component: CodeBlock,
2727
tags: ['autodocs'],
2828
parameters: {

packages/oxygen-ui-docs/stories/AppElements/FormElements.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ import { PencilIcon, GitBranchIcon, BoxIcon } from '@wso2/oxygen-ui-icons-react'
3838
* Built using MUI components with Form wrappers for consistent styling.
3939
*/
4040
const meta: Meta = {
41-
title: 'App Elements/FormElements',
41+
title: 'App Elements/Form Elements',
4242
parameters: {
4343
layout: 'padded',
4444
docs: {

packages/oxygen-ui-docs/stories/AppElements/NotificationBanner.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import { NotificationBanner, Box, Button } from '@wso2/oxygen-ui';
2525
* important announcements or notifications at the top of the application.
2626
*/
2727
const meta: Meta<typeof NotificationBanner> = {
28-
title: 'App Elements/NotificationBanner',
28+
title: 'App Elements/Notification Banner',
2929
component: NotificationBanner,
3030
tags: ['autodocs'],
3131
parameters: {

packages/oxygen-ui-docs/stories/AppElements/NotificationPanel.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ import {
3535
* headers, tabs, action buttons, and notification lists.
3636
*/
3737
const meta: Meta<typeof NotificationPanel> = {
38-
title: 'App Elements/NotificationPanel',
38+
title: 'App Elements/Notification Panel',
3939
component: NotificationPanel,
4040
tags: ['autodocs'],
4141
parameters: {

packages/oxygen-ui-docs/stories/MUI X/DataGrid.stories.tsx renamed to packages/oxygen-ui-docs/stories/DataDisplay/DataGrid.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import { DataGrid } from '@wso2/oxygen-ui';
2323
const { DataGrid: DataGridComponent } = DataGrid;
2424

2525
const meta: Meta<typeof DataGridComponent> = {
26-
title: 'MUI X/DataGrid',
26+
title: 'Data Display/DataGrid',
2727
component: DataGridComponent,
2828
parameters: {
2929
layout: 'centered',

packages/oxygen-ui-docs/stories/MUI X/TreeView.stories.tsx renamed to packages/oxygen-ui-docs/stories/DataDisplay/TreeView.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const { SimpleTreeView, TreeItem } = TreeView;
2828
* Read more at: https://mui.com/x/react-tree-view/
2929
*/
3030
const meta: Meta<typeof SimpleTreeView> = {
31-
title: 'MUI X/TreeView',
31+
title: 'Data Display/TreeView',
3232
component: SimpleTreeView,
3333
parameters: {
3434
layout: 'centered',

0 commit comments

Comments
 (0)