Skip to content

Commit

Permalink
Feat: Storybook: Improve component organisation - Typography - Issue #…
Browse files Browse the repository at this point in the history
…66275 (#66633)

* Group the components in storybook based on sitemap provided

* Fix the experimental id for components in storybook

* Revert the unwanted changes in PR

* Add the missing folder on conflicts resolve

---------

Co-authored-by: Lena Morita <[email protected]>
Co-authored-by: hbhalodia <[email protected]>
Co-authored-by: mirka <[email protected]>
Co-authored-by: tyxla <[email protected]>
Co-authored-by: jameskoster <[email protected]>
  • Loading branch information
6 people authored Nov 12, 2024
1 parent 2313836 commit 2a3e379
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 6 deletions.
3 changes: 2 additions & 1 deletion packages/components/src/heading/stories/index.story.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ import { Heading } from '..';

const meta: Meta< typeof Heading > = {
component: Heading,
title: 'Components (Experimental)/Heading',
title: 'Components (Experimental)/Typography/Heading',
id: 'components-experimental-heading',
argTypes: {
as: { control: { type: 'text' } },
color: { control: { type: 'color' } },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ import TextHighlight from '..';

const meta: Meta< typeof TextHighlight > = {
component: TextHighlight,
title: 'Components/TextHighlight',
title: 'Components/Typography/TextHighlight',
id: 'components-texthighlight',
parameters: {
controls: {
expanded: true,
Expand Down
3 changes: 2 additions & 1 deletion packages/components/src/text/stories/index.story.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ import { Text } from '../component';

const meta: Meta< typeof Text > = {
component: Text,
title: 'Components (Experimental)/Text',
title: 'Components (Experimental)/Typography/Text',
id: 'components-experimental-text',
argTypes: {
as: { control: { type: 'text' } },
color: { control: { type: 'color' } },
Expand Down
3 changes: 2 additions & 1 deletion packages/components/src/truncate/stories/index.story.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ import { Truncate } from '..';

const meta: Meta< typeof Truncate > = {
component: Truncate,
title: 'Components (Experimental)/Truncate',
title: 'Components (Experimental)/Typography/Truncate',
id: 'components-experimental-truncate',
argTypes: {
children: { control: { type: 'text' } },
as: { control: { type: 'text' } },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { VisuallyHidden } from '..';

const meta: Meta< typeof VisuallyHidden > = {
component: VisuallyHidden,
title: 'Components/Utilities/VisuallyHidden',
title: 'Components/Typography/VisuallyHidden',
id: 'components-visuallyhidden',
argTypes: {
children: { control: { type: null } },
Expand Down
3 changes: 2 additions & 1 deletion storybook/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,11 @@ export const parameters = {
'Feedback',
'Navigation',
'Overlays',
'Typography',
'Utilities',
],
'Components (Experimental)',
[ 'Navigation', 'Overlays' ],
[ 'Navigation', 'Overlays', 'Typography' ],
'Icons',
],
},
Expand Down

0 comments on commit 2a3e379

Please sign in to comment.