Skip to content

Commit

Permalink
Add parent categories to stories (#119)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lisa18289 authored Jan 23, 2024
1 parent 964eaef commit a8f9d2d
Show file tree
Hide file tree
Showing 31 changed files with 31 additions and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { Image } from "@/components/Image";
import { dummyText } from "@/lib/dev/dummyText";

const meta: Meta<typeof Avatar> = {
title: "Avatar",
title: "Content/Avatar",
component: Avatar,
render: (props) => (
<Avatar {...props}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import defaultMeta from "./Default.stories";

const meta: Meta<typeof Avatar> = {
...defaultMeta,
title: "Avatar/Variants",
title: "Content/Avatar/Variants",
};
export default meta;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { Icon } from "@/components/Icon";
import { Text } from "@/components/Text";

const meta: Meta<typeof Badge> = {
title: "Badge",
title: "Status/Badge",
component: Badge,
argTypes: {
variant: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { dummyText } from "@/lib/dev/dummyText";

const meta: Meta<typeof Badge> = {
...defaultMeta,
title: "Badge/EdgeCases",
title: "Status/Badge/EdgeCases",
};
export default meta;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import React from "react";

const meta: Meta<typeof Badge> = {
...defaultMeta,
title: "Badge/Variants",
title: "Status/Badge/Variants",
};
export default meta;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { Text } from "@/components/Text";
import { action } from "@storybook/addon-actions";

const meta: Meta<typeof Button> = {
title: "Button",
title: "Buttons/Button",
component: Button,
args: {
onPress: action("onPress"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import defaultMeta from "./Default.stories";

const meta: Meta<typeof Button> = {
...defaultMeta,
title: "Button/Edge Cases",
title: "Buttons/Button/Edge Cases",
};
export default meta;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import defaultMeta from "./Default.stories";

const meta: Meta<typeof Button> = {
...defaultMeta,
title: "Button/Variants",
title: "Buttons/Button/Variants",
};

export default meta;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import React from "react";
import { action } from "@storybook/addon-actions";

const meta: Meta<typeof Checkbox> = {
title: "Checkbox",
title: "Forms/Checkbox",
component: Checkbox,
args: {
onChange: action("onChange"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import defaultMeta from "./Default.stories";
import { dummyText } from "@/lib/dev/dummyText";

const meta: Meta<typeof Checkbox> = {
title: "Checkbox/EdgeCases",
title: "Forms/Checkbox/EdgeCases",
...defaultMeta,
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Content from "../Content";
import React from "react";

const meta: Meta<typeof Content> = {
title: "Content",
title: "Content/Content",
component: Content,
argTypes: {
elementType: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Heading from "../Heading";
import React from "react";

const meta: Meta<typeof Heading> = {
title: "Heading",
title: "Content/Heading",
component: Heading,
argTypes: {
level: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import defaultMeta from "./Default.stories";

const meta: Meta<typeof Heading> = {
...defaultMeta,
title: "Heading/Levels",
title: "Content/Heading/Levels",
component: Heading,
};
export default meta;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { faStar } from "@fortawesome/free-regular-svg-icons/faStar";
import React from "react";

const meta: Meta<typeof Icon> = {
title: "Icon",
title: "Content/Icon",
component: Icon,
args: {
fontSize: 32,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import React from "react";
import { dummyText } from "@/lib/dev/dummyText";

const meta: Meta<typeof Image> = {
title: "Image",
title: "Content/Image",
component: Image,
render: (props) => <Image {...props} alt="Gopher" src={dummyText.imageSrc} />,
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Initials from "../Initials";
import React from "react";

const meta: Meta<typeof Initials> = {
title: "Initials",
title: "Content/Initials",
component: Initials,
render: (props) => <Initials {...props}>Max Mustermann</Initials>,
parameters: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import defaultMeta from "./Default.stories";

const meta: Meta<typeof Initials> = {
...defaultMeta,
title: "Initials/Variants",
title: "Content/Initials/Variants",
};
export default meta;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Label from "../Label";
import React from "react";

const meta: Meta<typeof Label> = {
title: "Label",
title: "Content/Label",
component: Label,
render: (props) => <Label {...props}>Label</Label>,
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { action } from "@storybook/addon-actions";
import React from "react";

const meta: Meta<typeof Link> = {
title: "Link",
title: "Navigation/Link",
component: Link,
args: {
onPress: action("onPress"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { Text } from "@/components/Text";
import { Navigation, NavigationItem } from "@/components/Navigation";

const meta: Meta<typeof Navigation> = {
title: "Navigation",
title: "Navigation/Navigation",
component: Navigation,
parameters: {
controls: { exclude: ["className"] },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { Icon } from "@/components/Icon";
import { faEnvelope } from "@fortawesome/free-regular-svg-icons";

const meta: Meta<typeof Note> = {
title: "Note",
title: "Status/Note",
component: Note,
argTypes: {
variant: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import defaultMeta from "./Default.stories";

const meta: Meta<typeof Note> = {
...defaultMeta,
title: "Note/Edge Cases",
title: "Status/Note/Edge Cases",
};

export default meta;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import defaultMeta from "./Default.stories";

const meta: Meta<typeof Note> = {
...defaultMeta,
title: "Note/Variants",
title: "Status/Note/Variants",
};

export default meta;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { action } from "@storybook/addon-actions";
import { FieldError } from "@/components/FieldError";

const meta: Meta<typeof RadioGroup> = {
title: "RadioGroup",
title: "Forms/RadioGroup",
component: RadioGroup,
args: {
onChange: action("onChange"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { dummyText } from "@/lib/dev/dummyText";
import defaultMeta from "./Default.stories";

const meta: Meta<typeof RadioGroup> = {
title: "RadioGroup/EdgeCases",
title: "Forms/RadioGroup/EdgeCases",
...defaultMeta,
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { Meta, StoryObj } from "@storybook/react";
import StatusIcon from "../StatusIcon";

const meta: Meta<typeof StatusIcon> = {
title: "StatusIcon",
title: "Status/StatusIcon",
component: StatusIcon,
argTypes: {
variant: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import React from "react";
import { action } from "@storybook/addon-actions";

const meta: Meta<typeof Switch> = {
title: "Switch",
title: "Forms/Switch",
component: Switch,
args: {
onChange: action("onChange"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import defaultMeta from "./Default.stories";

const meta: Meta<typeof Switch> = {
...defaultMeta,
title: "Switch/Edge Cases",
title: "Forms/Switch/Edge Cases",
};

export default meta;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import defaultMeta from "./Default.stories";

const meta: Meta<typeof Switch> = {
...defaultMeta,
title: "Switch/Variants",
title: "Forms/Switch/Variants",
args: { defaultSelected: true },
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Text from "../Text";
import React from "react";

const meta: Meta<typeof Text> = {
title: "Text",
title: "Content/Text",
component: Text,
argTypes: {
elementType: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { Button } from "@/components/Button";
import { FieldError } from "@/components/FieldError";

const meta: Meta<typeof TextField> = {
title: "TextField",
title: "Forms/TextField",
component: TextField,
render: (props) => (
<TextField onChange={action("onChange")} {...props}>
Expand Down

2 comments on commit a8f9d2d

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage report for ./packages/components/

St.
Category Percentage Covered / Total
🟢 Statements 98.04% 100/102
🟢 Branches 93.75% 30/32
🟢 Functions 100% 27/27
🟢 Lines 98.04% 100/102

Test suite run success

51 tests passing in 9 suites.

Report generated by 🧪jest coverage report action from a8f9d2d

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage report for ./packages/components/

St.
Category Percentage Covered / Total
🟢 Statements 98.04% 100/102
🟢 Branches 93.75% 30/32
🟢 Functions 100% 27/27
🟢 Lines 98.04% 100/102

Test suite run success

51 tests passing in 9 suites.

Report generated by 🧪jest coverage report action from a8f9d2d

Please sign in to comment.