Skip to content
Closed
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
15 changes: 15 additions & 0 deletions packages/react/src/components/AILabel/AILabel.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,16 @@ import './ailabel-story.scss';
export default {
title: 'Components/AILabel',
component: AILabel,
argTypes: {
theme: {
options: ['white', 'g10', 'g90', 'g100'],
control: { type: 'select' },
description: 'The theme to apply to the component.',
},
},
args: {
theme: 'g10',
},
parameters: {
docs: {
page: mdx,
Expand Down Expand Up @@ -293,6 +303,11 @@ ExplainabilityPopover.argTypes = {
},
description: 'Playground only - toggle to show the callout toolbar',
},
theme: {
options: ['white', 'g10', 'g90', 'g100'],
control: { type: 'select' },
description: 'The theme to apply to the component.',
},
align: {
options: [
'top',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,16 @@ export default {
page: mdx,
},
},
args: {
theme: 'g10',
},
argTypes: {
theme: {
options: ['white', 'g10', 'g90', 'g100'],
control: { type: 'select' },
description: 'The theme to apply to the component.',
},
},
};

const propsSkeleton = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ export default {
page: mdx,
},
},
args: {
theme: 'g10',
},
};

const sharedArgTypes = {
Expand Down Expand Up @@ -54,6 +57,11 @@ const sharedArgTypes = {
options: ['sm', 'md', 'lg'],
control: { type: 'select' },
},
theme: {
options: ['white', 'g10', 'g90', 'g100'],
control: { type: 'select' },
description: 'The theme to apply to the component.',
},
};

export const Default = (args) => (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,16 @@ export default {
page: mdx,
},
},
args: {
theme: 'g10',
},
argTypes: {
theme: {
options: ['white', 'g10', 'g90', 'g100'],
control: { type: 'select' },
description: 'The theme to apply to the component.',
},
},
};

export const Default = (args) => {
Expand Down Expand Up @@ -67,4 +77,9 @@ Default.argTypes = {
category: 'AspectRatio',
},
},
theme: {
options: ['white', 'g10', 'g90', 'g100'],
control: { type: 'select' },
description: 'The theme to apply to the component.',
},
};
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,21 @@ export default {
page: mdx,
},
},
args: {
theme: 'g10',
},
};

const sharedArgTypes = {
size: {
options: ['sm', 'md'],
control: { type: 'select' },
},
theme: {
options: ['white', 'g10', 'g90', 'g100'],
control: { type: 'select' },
description: 'The theme to apply to the component.',
},
};

export const Default = (args) => (
Expand Down
8 changes: 8 additions & 0 deletions packages/react/src/components/Button/Button.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,14 @@ export default {
as: {
control: false,
},
theme: {
options: ['white', 'g10', 'g90', 'g100'],
control: { type: 'select' },
description: 'The theme to apply to the component.',
},
},
args: {
theme: 'g10',
},
parameters: {
docs: {
Expand Down
10 changes: 10 additions & 0 deletions packages/react/src/components/ChatButton/ChatButton.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,16 @@ export default {
title: 'Preview/preview__ChatButton',
component: ChatButton,
parameters: {},
args: {
theme: 'g10',
},
argTypes: {
theme: {
options: ['white', 'g10', 'g90', 'g100'],
control: { type: 'select' },
description: 'The theme to apply to the component.',
},
},
};

export const Default = () => (
Expand Down
6 changes: 6 additions & 0 deletions packages/react/src/components/Checkbox/Checkbox.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ const sharedArgs = {
invalidText: 'Invalid message goes here',
warn: false,
warnText: 'Warning message goes here',
theme: 'g10',
};

const sharedArgTypes = {
Expand Down Expand Up @@ -99,6 +100,11 @@ const sharedArgTypes = {
control: 'select',
options: ['horizontal', 'vertical'],
},
theme: {
options: ['white', 'g10', 'g90', 'g100'],
control: { type: 'select' },
description: 'The theme to apply to the component.',
},
};

export const Default = (args) => (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,16 @@ import mdx from './ClassPrefix.mdx';
export default {
title: 'Components/ClassPrefix',
component: ClassPrefix,
argTypes: {
theme: {
options: ['white', 'g10', 'g90', 'g100'],
control: { type: 'select' },
description: 'The theme to apply to the component.',
},
},
args: {
theme: 'g10',
},
parameters: {
docs: {
page: mdx,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,14 @@ export default {
disable: true,
},
},
theme: {
options: ['white', 'g10', 'g90', 'g100'],
control: { type: 'select' },
description: 'The theme to apply to the component.',
},
},
args: {
theme: 'g10',
},
};

Expand Down
8 changes: 8 additions & 0 deletions packages/react/src/components/ComboBox/ComboBox.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ export default {
title: 'Components/ComboBox',
component: ComboBox,
argTypes: {
theme: {
options: ['white', 'g10', 'g90', 'g100'],
control: { type: 'select' },
description: 'The theme to apply to the component.',
},
size: {
options: ['sm', 'md', 'lg'],
control: { type: 'select' },
Expand All @@ -57,6 +62,9 @@ export default {
},
onChange: { action: 'onChange' },
},
args: {
theme: 'g10',
},
parameters: {
docs: {
page: mdx,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,16 @@ export default {
MenuItem,
MenuItemDivider,
},
argTypes: {
theme: {
options: ['white', 'g10', 'g90', 'g100'],
control: { type: 'select' },
description: 'The theme to apply to the component.',
},
},
args: {
theme: 'g10',
},
parameters: {
docs: {
page: mdx,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,16 @@ export default {
ModalBody,
ModalFooter,
},
argTypes: {
theme: {
options: ['white', 'g10', 'g90', 'g100'],
control: { type: 'select' },
description: 'The theme to apply to the component.',
},
},
args: {
theme: 'g10',
},
parameters: {
docs: {
page: mdx,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,16 @@ export default {
title: 'Components/ContainedList',
component: ContainedList,
subcomponents: { ContainedListItem },
argTypes: {
theme: {
options: ['white', 'g10', 'g90', 'g100'],
control: { type: 'select' },
description: 'The theme to apply to the component.',
},
},
args: {
theme: 'g10',
},
parameters: {
docs: {
page: mdx,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,14 @@ export default {
disable: true,
},
},
theme: {
options: ['white', 'g10', 'g90', 'g100'],
control: { type: 'select' },
description: 'The theme to apply to the component.',
},
},
args: {
theme: 'g10',
},
parameters: {
docs: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,16 @@ export default {
page: mdx,
},
},
args: {
theme: 'g10',
},
argTypes: {
theme: {
options: ['white', 'g10', 'g90', 'g100'],
control: { type: 'select' },
description: 'The theme to apply to the component.',
},
},
};

const Text = () => (
Expand Down
10 changes: 10 additions & 0 deletions packages/react/src/components/CopyButton/CopyButton.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,16 @@ import mdx from './CopyButton.mdx';
export default {
title: 'Components/CopyButton',
component: CopyButton,
argTypes: {
theme: {
options: ['white', 'g10', 'g90', 'g100'],
control: { type: 'select' },
description: 'The theme to apply to the component.',
},
},
args: {
theme: 'g10',
},
parameters: {
docs: {
page: mdx,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,26 +20,6 @@ const {

import mdx from '../DataTable.mdx';
import './datatable-story.scss';

export default {
title: 'Components/DataTable/Basic',
component: DataTable,
subcomponents: {
TableContainer,
Table,
TableHead,
TableRow,
TableHeader,
TableBody,
TableCell,
},
parameters: {
docs: {
page: mdx,
},
},
};

const sharedArgTypes = {
size: {
control: 'select',
Expand All @@ -59,15 +39,41 @@ const sharedArgTypes = {
control: 'boolean',
description: 'Add zebra striping to rows',
},
theme: {
options: ['white', 'g10', 'g90', 'g100'],
control: { type: 'select' },
description: 'The theme to apply to the component.',
},
};

const sharedArgs = {
size: 'lg',
stickyHeader: false,
useStaticWidth: false,
useZebraStyles: false,
theme: 'g10',
};

export default {
title: 'Components/DataTable/Basic',
component: DataTable,
subcomponents: {
TableContainer,
Table,
TableHead,
TableRow,
TableHeader,
TableBody,
TableCell,
},
parameters: {
docs: {
page: mdx,
},
},
args: sharedArgs,
argTypes: sharedArgTypes,
};
export const Default = (args) => {
const rows = [
{
Expand Down
Loading