Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ export const parameters = {
[
'Introduction',
'Utils',
[
'CopyToClipboard',
['Documentation', 'Live', 'Without style', 'Class based'],
],
'Form',
[
'Autocomplete',
Expand Down Expand Up @@ -67,16 +71,17 @@ export const parameters = {
'Tooltip',
['Documentation', 'Live', 'Class based'],
],
'Layout',
[
'Breadcrumb',
['Documentation', 'Live', 'Without style', 'Class based'],
'CopyToClipboard',
['Documentation', 'Live', 'Without style', 'Class based'],
'Details',
['Documentation', 'Live', 'Without style', 'Class based'],
'Tabs',
['Documentation', 'Live', 'Without style', 'Class based'],
'Table',
['Documentation', 'Live', 'Without style', 'Class based'],
],
'Typography',
[
'Abbreviate',
Expand Down
2 changes: 1 addition & 1 deletion stories/Breadcrumb/Classbased.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import './style.css';
* Feel free to use your own css to style the formInput as you prefer.
*/
export default {
title: 'DCXLibrary/Breadcrumb/Class based',
title: 'DCXLibrary/Layout/Breadcrumb/Class based',
component: Breadcrumb,
parameters: {
options: {
Expand Down
2 changes: 1 addition & 1 deletion stories/Breadcrumb/Documentation.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Meta, Canvas, ArgTypes } from '@storybook/blocks';
import * as BreadcrumbStories from './UnStyled.stories.js';

<Meta title="DCXLibrary/Breadcrumb/Documentation" />
<Meta title="DCXLibrary/Layout/Breadcrumb/Documentation" />

# Breadcrumb

Expand Down
2 changes: 1 addition & 1 deletion stories/Breadcrumb/Live.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Breadcrumb } from '../../src/breadcrumb';
import BreadcrumbLive from '../liveEdit/BreadcrumbLive';

export default {
title: 'DCXLibrary/Breadcrumb/Live',
title: 'DCXLibrary/Layout/Breadcrumb/Live',
component: Breadcrumb,

parameters: {
Expand Down
2 changes: 1 addition & 1 deletion stories/Breadcrumb/UnStyled.stories.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Breadcrumb, BreadcrumbItem } from '../../src/breadcrumb';

export default {
title: 'DCXLibrary/Breadcrumb/Without style',
title: 'DCXLibrary/Layout/Breadcrumb/Without style',
component: Breadcrumb,
parameters: {
options: {
Expand Down
2 changes: 1 addition & 1 deletion stories/CopyToClipboard/ClassBased.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import './style.css';
* An example of 'styled' CopyToClipboard
*/
export default {
title: 'DCXLibrary/CopyToClipboard/Class based',
title: 'DCXLibrary/Utils/CopyToClipboard/Class based',
component: CopyToClipboard,
parameters: {
options: {
Expand Down
2 changes: 1 addition & 1 deletion stories/CopyToClipboard/Documentation.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Meta, Canvas, ArgTypes } from '@storybook/blocks';
import * as CopyToClipboardStories from './UnStyled.stories';

<Meta title="DCXLibrary/CopyToClipboard/Documentation" />
<Meta title="DCXLibrary/Utils/CopyToClipboard/Documentation" />

# CopyToClipboard

Expand Down
2 changes: 1 addition & 1 deletion stories/CopyToClipboard/Live.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { CopyToClipboard } from '../../src/copyToClipboard/CopyToClipboard';
import CopyToClipboardLive from '../liveEdit/CopyToClipboardLive';

export default {
title: 'DCXLibrary/CopyToClipboard/Live',
title: 'DCXLibrary/Utils/CopyToClipboard/Live',
component: CopyToClipboard,

parameters: {
Expand Down
2 changes: 1 addition & 1 deletion stories/CopyToClipboard/UnStyled.stories.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { CopyToClipboard } from '../../src/copyToClipboard/CopyToClipboard';
import React, {useState, useRef} from 'react';
export default {
title: 'DCXLibrary/CopyToClipboard/Without style',
title: 'DCXLibrary/Utils/CopyToClipboard/Without style',
component: CopyToClipboard,
parameters: {
options: {
Expand Down
2 changes: 1 addition & 1 deletion stories/Details/ClassBased.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Details } from '../../src/details/Details';
* In this section the Details component is used with styling from GOV.UK. Feel free to use your own css and style the Details component as you prefer
*/
export default {
title: 'DCXLibrary/Details/Class based',
title: 'DCXLibrary/Layout/Details/Class based',
component: Details,
parameters: {
options: {
Expand Down
2 changes: 1 addition & 1 deletion stories/Details/Documentation.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Meta, Canvas, ArgTypes } from '@storybook/addon-docs';
import * as DetailsStories from './UnStyled.stories';

<Meta title="DCXLibrary/Details/Documentation" />
<Meta title="DCXLibrary/Layout/Details/Documentation" />

# Details

Expand Down
2 changes: 1 addition & 1 deletion stories/Details/Live.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Details } from '../../src/details/Details';
import DetailsLive from '../liveEdit/DetailsLive';

export default {
title: 'DCXLibrary/Details/Live',
title: 'DCXLibrary/Layout/Details/Live',
component: Details,

parameters: {
Expand Down
2 changes: 1 addition & 1 deletion stories/Details/UnStyled.stories.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Details } from '../../src/details/Details';

export default {
title: 'DCXLibrary/Details/Without style',
title: 'DCXLibrary/Layout/Details/Without style',
component: Details,
parameters: {
options: {
Expand Down
2 changes: 1 addition & 1 deletion stories/TabGroup/ClassBased.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import "./style.css";
* Feel free to use your own css to style the formInput as you prefer.
*/
export default {
title: 'DCXLibrary/Tabs/Class based',
title: 'DCXLibrary/Layout/Tabs/Class based',
component: TabGroup,
parameters: {
options: {
Expand Down
2 changes: 1 addition & 1 deletion stories/TabGroup/Documentation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Tab } from '../../src/tabGroup/components/Tab';
import * as TabGroupStories from './UnStyled.stories';

<Meta
title="DCXLibrary/Tabs/Documentation"
title="DCXLibrary/Layout/Tabs/Documentation"
component={TabGroup}
parameters={{
viewMode: 'docs',
Expand Down
2 changes: 1 addition & 1 deletion stories/TabGroup/Live.stories.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { TabGroup } from '../../src/tabGroup';
import TabGroupLive from '../liveEdit/TabGroupLive';
export default {
title: 'DCXLibrary/Tabs/Live',
title: 'DCXLibrary/Layout/Tabs/Live',
component: TabGroup,

parameters: {
Expand Down
2 changes: 1 addition & 1 deletion stories/TabGroup/UnStyled.stories.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { TabGroup, Tab } from '../../src/tabGroup';

export default {
title: 'DCXLibrary/Tabs/Without style',
title: 'DCXLibrary/Layout/Tabs/Without style',
component: TabGroup,
parameters: {
options: {
Expand Down
2 changes: 1 addition & 1 deletion stories/Table/ClassBased.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import './tableStyle.css';
* In this section we're using the Table component providing the **material style** passing the relative `className`. Feel free to use your own css and style the Table as you prefer
*/
export default {
title: 'DCXLibrary/Table/Class based',
title: 'DCXLibrary/Layout/Table/Class based',
component: Table,
parameters: {
options: {
Expand Down
2 changes: 1 addition & 1 deletion stories/Table/Documentation.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Meta, Canvas, ArgTypes } from '@storybook/addon-docs';
import * as TableStories from './UnStyled.stories';

<Meta title="DCXLibrary/Table/Documentation" />
<Meta title="DCXLibrary/Layout/Table/Documentation" />

# Table

Expand Down
2 changes: 1 addition & 1 deletion stories/Table/Live.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Table } from '../../src/table/Table';
import TableLive from '../liveEdit/TableLive';

export default {
title: 'DCXLibrary/Table/Live',
title: 'DCXLibrary/Layout/Table/Live',
component: Table,

parameters: {
Expand Down
2 changes: 1 addition & 1 deletion stories/Table/UnStyled.stories.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Table } from '../../src/table/Table';

export default {
title: 'DCXLibrary/Table/Without style',
title: 'DCXLibrary/Layout/Table/Without style',
component: Table,
parameters: {
options: {
Expand Down