Skip to content

Commit 44751b1

Browse files
pomfridaclaude
andauthored
docs: organize EDS 2.0 component navigation (#4398)
* fix(storybook): organize EDS 2.0 component navigation structure Flatten hierarchy and group components under Inputs: - Icon (root level) - Inputs/Button, Checkbox, Field, Input, Radio, Switch, TextField Updates storySort to ensure alphabetical ordering within Inputs folder. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * fix: keep Selection Controls folder for Checkbox, Radio, Switch Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 91a8626 commit 44751b1

5 files changed

Lines changed: 6 additions & 6 deletions

File tree

packages/eds-core-react/.storybook/preview.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ const preview = {
77
parameters: {
88
options: {
99
storySort: {
10-
method: '',
10+
method: 'alphabetical',
1111
order: [
1212
'Introduction',
1313
'EdsProvider',
1414
'EDS 2.0 (beta)',
15-
['About', '*'],
15+
['About', 'Icon', 'Inputs'],
1616
'Data Display',
1717
'Feedback',
1818
'Inputs',

packages/eds-core-react/src/components/next/Button/Button.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import page from './Button.docs.mdx'
88
type StoryArgs = React.ComponentProps<typeof Button>
99

1010
const meta: Meta<StoryArgs> = {
11-
title: 'EDS 2.0 (beta)/Button',
11+
title: 'EDS 2.0 (beta)/Inputs/Button',
1212
component: Button,
1313
parameters: {
1414
docs: {

packages/eds-core-react/src/components/next/Field/Field.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import type { FieldProps } from './Field.types'
77
import { useFieldIds } from './useFieldIds'
88

99
const meta: Meta<typeof Field> = {
10-
title: 'EDS 2.0 (beta)/Inputs/Form/Field',
10+
title: 'EDS 2.0 (beta)/Inputs/Field',
1111
component: Field,
1212
tags: ['beta'],
1313
decorators: [

packages/eds-core-react/src/components/next/Input/Input.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { Button } from '../../Button'
99
import page from './Input.docs.mdx'
1010

1111
const meta: Meta<typeof Input> = {
12-
title: 'EDS 2.0 (beta)/Input',
12+
title: 'EDS 2.0 (beta)/Inputs/Input',
1313
component: Input,
1414
tags: ['beta'],
1515
args: {

packages/eds-core-react/src/components/next/TextField/TextField.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { Stack } from './../../../../.storybook/components'
77
import { Icon } from '../Icon'
88

99
const meta: Meta<typeof TextField> = {
10-
title: 'EDS 2.0 (beta)/TextField',
10+
title: 'EDS 2.0 (beta)/Inputs/TextField',
1111
component: TextField,
1212
tags: ['beta'],
1313
args: {

0 commit comments

Comments
 (0)