Skip to content

Commit d21ed0c

Browse files
committed
docs: organize components into groups
1 parent 32b52fe commit d21ed0c

File tree

31 files changed

+34
-3
lines changed

31 files changed

+34
-3
lines changed

packages/component-library/src/AppShell/index.stories.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import { NotFoundPage } from "../NotFoundPage/index.jsx";
99
import { AppBody as AppShellComponent } from "./index.jsx";
1010

1111
const meta = {
12+
title: "layouts & pages/AppShell",
1213
component: AppShellComponent,
1314
subcomponents: { ErrorPage, NoResults, NotFoundPage },
1415
globals: {

packages/component-library/src/Badge/index.stories.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { Badge as BadgeComponent, SIZES, STYLES, VARIANTS } from "./index.jsx";
44
import styles from "./index.stories.module.scss";
55

66
const meta = {
7+
title: "building blocks/Badge",
78
component: BadgeComponent,
89
argTypes: {
910
children: {

packages/component-library/src/Breadcrumbs/index.stories.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import type { Meta, StoryObj } from "@storybook/react";
33
import { Breadcrumbs as BreadcrumbsComponent } from "./index.jsx";
44

55
const meta = {
6+
title: "navigation & menus/Breadcrumbs",
67
component: BreadcrumbsComponent,
78
argTypes: {
89
label: {

packages/component-library/src/Button/index.stories.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { Button as ButtonComponent, VARIANTS, SIZES } from "./index.jsx";
44
import { iconControl } from "../icon-control.jsx";
55

66
const meta = {
7+
title: "forms & controls/Button",
78
component: ButtonComponent,
89
argTypes: {
910
children: {

packages/component-library/src/Card/index.stories.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import { Card as CardComponent, VARIANTS } from "./index.jsx";
88
import styles from "./index.stories.module.scss";
99

1010
const meta = {
11+
title: "building blocks/Card",
1112
component: CardComponent,
1213
globals: {
1314
background: "primary",

packages/component-library/src/CopyButton/index.stories.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import type { Meta, StoryObj } from "@storybook/react";
33
import { CopyButton as CopyButtonComponent } from "./index.jsx";
44

55
const meta = {
6+
title: "forms & controls/CopyButton",
67
component: CopyButtonComponent,
78
argTypes: {
89
text: {

packages/component-library/src/CrossfadeTabPanels/index.stories.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
import type { Meta, StoryObj } from "@storybook/react";
22

3-
import { CrossfadeTabPanels as CrossfadeTabPanelsComponent } from "./index.jsx";
43
import { TabList } from "../TabList/index.jsx";
54
import { Tabs } from "../unstyled/Tabs/index.jsx";
5+
import { CrossfadeTabPanels as CrossfadeTabPanelsComponent } from "./index.jsx";
66
import styles from "./index.stories.module.scss";
77

88
const meta = {
9+
title: "navigation & menus/CrossfadeTabPanels",
910
component: CrossfadeTabPanelsComponent,
1011
parameters: {
1112
docs: {

packages/component-library/src/DropdownCaretDown/index.stories.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import type { Meta, StoryObj } from "@storybook/react";
33
import { DropdownCaretDown as DropdownCaretDownComponent } from "./index.jsx";
44

55
const meta = {
6+
title: "building blocks/DropdownCaretDown",
67
component: DropdownCaretDownComponent,
78
argTypes: {
89
width: {

packages/component-library/src/EntityList/index.stories.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { EntityList as EntityListComponent } from "./index.jsx";
55
import styles from "./index.stories.module.scss";
66

77
const meta = {
8+
title: "data & tables/EntityList",
89
component: EntityListComponent,
910
argTypes: {
1011
label: {

packages/component-library/src/ErrorPage/index.stories.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { fn } from "@storybook/test";
44
import { ErrorPage as ErrorPageComponent } from "./index.jsx";
55

66
const meta = {
7+
title: "layouts & pages/ErrorPage",
78
component: ErrorPageComponent,
89
parameters: {
910
layout: "fullscreen",

packages/component-library/src/Footer/index.stories.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import type { Meta, StoryObj } from "@storybook/react";
33
import { Footer as FooterComponent } from "./index.jsx";
44

55
const meta = {
6+
title: "navigation & menus/Footer",
67
component: FooterComponent,
78
parameters: {
89
layout: "fullscreen",

packages/component-library/src/Header/index.stories.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import { MainNavTabs } from "../MainNavTabs/index.jsx";
88
import { Header as HeaderComponent } from "./index.jsx";
99

1010
const meta = {
11+
title: "navigation & menus/Header",
1112
component: HeaderComponent,
1213
decorators: [
1314
(Story) => (

packages/component-library/src/InfoBox/index.stories.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { iconControl } from "../icon-control.jsx";
66
import styles from "./index.stories.module.scss";
77

88
const meta = {
9+
title: "overlays & dialogs/InfoBox",
910
component: InfoBoxComponent,
1011
argTypes: {
1112
variant: {

packages/component-library/src/Link/index.stories.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import type { Meta, StoryObj } from "@storybook/react";
33
import { Link as LinkComponent } from "./index.jsx";
44

55
const meta = {
6+
title: "building blocks/Link",
67
component: LinkComponent,
78
argTypes: {
89
children: {

packages/component-library/src/MainNavTabs/index.stories.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { Tabs } from "../unstyled/Tabs/index.jsx";
44
import { MainNavTabs as MainNavTabsComponent } from "./index.jsx";
55

66
const meta = {
7+
title: "navigation & menus/MainNavTabs",
78
component: MainNavTabsComponent,
89
argTypes: {
910
tabs: {

packages/component-library/src/Meter/index.stories.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { Meter as MeterComponent } from "./index.jsx";
44
import styles from "./index.stories.module.scss";
55

66
const meta = {
7+
title: "data & tables/Meter",
78
component: MeterComponent,
89
argTypes: {
910
value: {

packages/component-library/src/MobileNavTabs/index.stories.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import type { Meta, StoryObj } from "@storybook/react";
33
import { MobileNavTabs as MobileNavTabsComponent } from "./index.jsx";
44

55
const meta = {
6+
title: "navigation & menus/MobileNavTabs",
67
component: MobileNavTabsComponent,
78
parameters: {
89
layout: "padded",

packages/component-library/src/NoResults/index.stories.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { iconControl } from "../icon-control.jsx";
66
import { NoResults as NoResultsComponent } from "./index.jsx";
77

88
const meta = {
9+
title: "layouts & pages/NoResults",
910
component: NoResultsComponent,
1011
parameters: {
1112
layout: "fullscreen",

packages/component-library/src/NotFoundPage/index.stories.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import type { Meta, StoryObj } from "@storybook/react";
33
import { NotFoundPage as NotFoundPageComponent } from "./index.jsx";
44

55
const meta = {
6+
title: "layouts & pages/NotFoundPage",
67
component: NotFoundPageComponent,
78
parameters: {
89
layout: "fullscreen",

packages/component-library/src/Paginator/index.stories.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import type { Meta, StoryObj } from "@storybook/react";
33
import { Paginator as PaginatorComponent } from "./index.jsx";
44

55
const meta = {
6+
title: "data & tables/Paginator",
67
component: PaginatorComponent,
78
parameters: {
89
layout: "padded",

packages/component-library/src/SearchInput/index.stories.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { SearchInput as SearchInputComponent, SIZES } from "./index.jsx";
66
import styles from "./index.stories.module.scss";
77

88
const meta = {
9+
title: "forms & controls/SearchInput",
910
component: SearchInputComponent,
1011
argTypes: {
1112
label: {

packages/component-library/src/Select/index.stories.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import styles from "./index.stories.module.scss";
1010
// eslint-disable-next-line @typescript-eslint/no-unused-vars
1111
const { children, beforeIcon, ...argTypes } = buttonMeta.argTypes;
1212
const meta = {
13+
title: "forms & controls/Select",
1314
component: SelectComponent,
1415
argTypes: {
1516
...argTypes,

packages/component-library/src/SingleToggleGroup/index.stories.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { SingleToggleGroup as SingleToggleGroupComponent } from "./index.jsx";
66
import styles from "./index.stories.module.scss";
77

88
const meta = {
9+
title: "forms & controls/SingleToggleGroup",
910
component: SingleToggleGroupComponent,
1011
argTypes: {
1112
items: {

packages/component-library/src/Skeleton/index.stories.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import type { Meta, StoryObj } from "@storybook/react";
33
import { Skeleton as SkeletonComponent } from "./index.jsx";
44

55
const meta = {
6+
title: "loading/Skeleton",
67
component: SkeletonComponent,
78
argTypes: {
89
label: {

packages/component-library/src/Spinner/index.stories.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import type { Meta, StoryObj } from "@storybook/react";
33
import { Spinner as SpinnerComponent } from "./index.jsx";
44

55
const meta = {
6+
title: "loading/Spinner",
67
component: SpinnerComponent,
78
argTypes: {
89
label: {

packages/component-library/src/StatCard/index.stories.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ const cardMetaArgTypes = () => {
1313
};
1414

1515
const meta = {
16+
title: "data & tables/StatCard",
1617
component: StatCardComponent,
1718
parameters: {
1819
layout: "padded",

packages/component-library/src/Status/index.stories.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
import type { Meta, StoryObj } from "@storybook/react";
22

33
import {
4-
Status as StatusComponent,
5-
VARIANTS,
64
SIZES,
5+
Status as StatusComponent,
76
STYLES,
7+
VARIANTS,
88
} from "./index.jsx";
99
import styles from "./index.stories.module.scss";
1010

1111
const meta = {
12+
title: "building blocks/Status",
1213
component: StatusComponent,
1314
argTypes: {
1415
children: {

packages/component-library/src/Switch/index.stories.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { Switch as SwitchComponent } from "./index.jsx";
66
import styles from "./index.stories.module.scss";
77

88
const meta = {
9+
title: "forms & controls/Switch",
910
component: SwitchComponent,
1011
argTypes: {
1112
isDisabled: {

packages/component-library/src/TabList/index.stories.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { Tabs as UnstyledTabs } from "../unstyled/Tabs/index.jsx";
44
import { TabList as TabListComponent } from "./index.jsx";
55

66
const meta = {
7+
title: "navigation & menus/TabList",
78
component: TabListComponent,
89
argTypes: {
910
items: {

packages/component-library/src/Table/index.stories.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import { Table as TableComponent, type ColumnConfig, type RowConfig, type SortDe
1111
import styles from "./index.stories.module.scss";
1212

1313
const meta = {
14+
title: "data & tables/Table",
1415
component: TableComponent,
1516
parameters: {
1617
layout: "padded",

packages/component-library/src/Term/index.stories.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import type { Meta, StoryObj } from "@storybook/react";
33
import { Term as TermComponent } from "./index.jsx";
44

55
const meta = {
6+
title: "typography/Term",
67
component: TermComponent,
78
argTypes: {
89
children: {

0 commit comments

Comments
 (0)