Skip to content

Commit 72166fb

Browse files
committed
next batch of updates
1 parent d8d4a9f commit 72166fb

File tree

42 files changed

+215
-166
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+215
-166
lines changed

packages/styleguide/src/lib/Atoms/Animations/About.mdx

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ import { Meta } from '@storybook/blocks';
22

33
import { AboutHeader, TableOfContents } from '~styleguide/blocks';
44

5+
import { parameters as expandInCollapseOutParameters } from './ExpandInCollapseOut/ExpandInCollapseOut.mdx';
6+
import { parameters as rotationParameters } from './Rotation/Rotation.mdx';
7+
58
export const parameters = {
69
id: 'Atoms/Animations',
710
title: 'Animations',
@@ -17,17 +20,16 @@ Animations should not be the click target of actions, but rather the container f
1720
<TableOfContents
1821
links={[
1922
{
20-
id: '/Atoms/Animations/Rotation',
21-
subtitle: 'A container that can rotate its children.',
22-
title: 'Rotation',
23-
status: 'current',
23+
id: `Atoms/${parameters.title}/${rotationParameters.title}`,
24+
subtitle: rotationParameters.subtitle,
25+
title: rotationParameters.title,
26+
status: rotationParameters.status,
2427
},
2528
{
26-
id: '/Atoms/Animations/ExpandInCollapseOut',
27-
subtitle:
28-
'A container that applies an expand and collapse animation to its children.',
29-
title: 'ExpandInCollapseOut',
30-
status: 'current',
29+
id: `Atoms/${parameters.title}/${expandInCollapseOutParameters.title}`,
30+
subtitle: expandInCollapseOutParameters.subtitle,
31+
title: expandInCollapseOutParameters.title,
32+
status: expandInCollapseOutParameters.status,
3133
},
3234
]}
3335
/>

packages/styleguide/src/lib/Atoms/Animations/ExpandInCollapseOut/ExpandInCollapseOut.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { ComponentHeader } from '~styleguide/blocks';
55
import * as ExpandInCollapseOut from './ExpandInCollapseOut.stories';
66

77
export const parameters = {
8+
title: 'ExpandInCollapseOut',
89
subtitle: `A container that applies an expand and collapse animation to its children.`,
910
status: 'current',
1011
source: {

packages/styleguide/src/lib/Atoms/Animations/Rotation/Rotation.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { ComponentHeader } from '~styleguide/blocks';
55
import * as RotationStories from './Rotation.stories';
66

77
export const parameters = {
8+
title: 'Rotation',
89
subtitle: 'A container that can rotate its children.',
910
status: 'current',
1011
source: {

packages/styleguide/src/lib/Atoms/Buttons/About.mdx

Lines changed: 31 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@ import { Meta } from '@storybook/blocks';
22

33
import { AboutHeader, TableOfContents } from '~styleguide/blocks';
44

5+
import { parameters as buttonParameters } from './Button/Button.mdx';
6+
import { parameters as ctaButtonParameters } from './CTAButton/CTAButton.mdx';
7+
import { parameters as fillButtonParameters } from './FillButton/FillButton.mdx';
8+
import { parameters as iconButtonParameters } from './IconButton/IconButton.mdx';
9+
import { parameters as strokeButtonParameters } from './StrokeButton/StrokeButton.mdx';
10+
import { parameters as textButtonParameters } from './TextButton/TextButton.mdx';
11+
512
export const parameters = {
613
id: 'Atoms/Buttons',
714
title: 'Buttons',
@@ -15,44 +22,40 @@ export const parameters = {
1522
<TableOfContents
1623
links={[
1724
{
18-
id: 'Atoms/Buttons/Button',
19-
subtitle: 'Button atoms for specfic use cases.',
20-
title: 'Button',
21-
status: 'current',
25+
id: `Atoms/${parameters.title}/${buttonParameters.title}`,
26+
subtitle: buttonParameters.subtitle,
27+
title: buttonParameters.title,
28+
status: buttonParameters.status,
2229
},
2330
{
24-
id: 'Atoms/Buttons/CTAButton',
25-
subtitle:
26-
'A "Call to Action" button that is used to prompt users to take a specific action.',
27-
title: 'CTAButton',
28-
status: 'current',
31+
id: `Atoms/${parameters.title}/${ctaButtonParameters.title}`,
32+
subtitle: ctaButtonParameters.subtitle,
33+
title: ctaButtonParameters.title,
34+
status: ctaButtonParameters.status,
2935
},
3036
{
31-
id: 'Atoms/Buttons/FillButton',
32-
subtitle:
33-
'A button that has a solid background color and is used for primary actions.',
34-
title: 'FillButton',
35-
status: 'current',
37+
id: `Atoms/${parameters.title}/${fillButtonParameters.title}`,
38+
subtitle: fillButtonParameters.subtitle,
39+
title: fillButtonParameters.title,
40+
status: fillButtonParameters.status,
3641
},
3742
{
38-
id: 'Atoms/Buttons/StrokeButton',
39-
subtitle:
40-
'A button that has a outline around its text and is used for secondary actions.',
41-
title: 'StrokeButton',
42-
status: 'current',
43+
id: `Atoms/${parameters.title}/${strokeButtonParameters.title}`,
44+
subtitle: strokeButtonParameters.subtitle,
45+
title: strokeButtonParameters.title,
46+
status: strokeButtonParameters.status,
4347
},
4448
{
45-
id: 'Atoms/Buttons/TextButton',
46-
subtitle:
47-
'A button that usually only has text and is used for tertiary actions.',
48-
title: 'TextButton',
49-
status: 'current',
49+
id: `Atoms/${parameters.title}/${textButtonParameters.title}`,
50+
subtitle: textButtonParameters.subtitle,
51+
title: textButtonParameters.title,
52+
status: textButtonParameters.status,
5053
},
5154
{
52-
id: 'Atoms/Buttons/IconButton',
53-
subtitle: 'A button that displays a clickable icon.',
54-
title: 'IconButton',
55-
status: 'current',
55+
id: `Atoms/${parameters.title}/${iconButtonParameters.title}`,
56+
subtitle: iconButtonParameters.subtitle,
57+
title: iconButtonParameters.title,
58+
status: iconButtonParameters.status,
5659
},
5760
]}
5861
/>

packages/styleguide/src/lib/Atoms/Buttons/Button/Button.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { ComponentHeader, LinkTo } from '~styleguide/blocks';
55
import * as ButtonStories from './Button.stories';
66

77
export const parameters = {
8+
title: 'Button',
89
subtitle: `Button atoms for specfic use cases.`,
910
design: {
1011
type: 'figma',

packages/styleguide/src/lib/Atoms/Buttons/CTAButton/CTAButton.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { ComponentHeader } from '~styleguide/blocks';
55
import * as CTAButtonStories from './CTAButton.stories';
66

77
export const parameters = {
8+
title: 'CTAButton',
89
subtitle: `A "Call to Action" button that is used to prompt users to take a specific action.`,
910
design: {
1011
type: 'figma',

packages/styleguide/src/lib/Atoms/Buttons/FillButton/FillButton.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { ComponentHeader } from '~styleguide/blocks';
55
import * as FillButtonStories from './FillButton.stories';
66

77
export const parameters = {
8+
title: 'FillButton',
89
subtitle: `A button that has a solid background color and is used for primary actions.`,
910
design: {
1011
type: 'figma',

packages/styleguide/src/lib/Atoms/Buttons/IconButton/IconButton.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { ComponentHeader, LinkTo } from '~styleguide/blocks';
55
import * as IconButtonStories from './IconButton.stories';
66

77
export const parameters = {
8+
title: 'IconButton',
89
subtitle: `A button that displays a clickable icon.`,
910
design: {
1011
type: 'figma',

packages/styleguide/src/lib/Atoms/Buttons/StrokeButton/StrokeButton.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { ComponentHeader } from '~styleguide/blocks';
55
import * as StrokeButtonStories from './StrokeButton.stories';
66

77
export const parameters = {
8+
title: 'StrokeButton',
89
subtitle: `A button that has a outline around its text and is used for secondary actions.`,
910
design: {
1011
type: 'figma',

packages/styleguide/src/lib/Atoms/Buttons/TextButton/TextButton.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { ComponentHeader } from '~styleguide/blocks';
55
import * as TextButtonStories from './TextButton.stories';
66

77
export const parameters = {
8+
title: 'TextButton',
89
subtitle: `A button that usually only has text and is used for tertiary actions.`,
910
design: {
1011
type: 'figma',

0 commit comments

Comments
 (0)