diff --git a/packages/storybook/src/css-stories/page-content.stories.tsx b/packages/storybook/src/css-stories/page-content.stories.tsx new file mode 100644 index 00000000..4d6674bb --- /dev/null +++ b/packages/storybook/src/css-stories/page-content.stories.tsx @@ -0,0 +1,55 @@ +/* @license CC0-1.0 */ + +import { Meta, StoryObj } from '@storybook/react'; +import { Heading1, PageContent, Paragraph } from '@utrecht/component-library-react/dist/css-module'; + +const PageContentStory = ({ children, main }) => ( + + {main &&
{main}
} + {children} +
+); + +const meta = { + title: 'CSS Component/Page content', + id: 'css-page-content', + component: PageContent, + argTypes: { + children: { + description: 'Page content', + }, + // main: { + // description: 'Main page content', + // }, + }, + args: { + children: [], + }, + tags: ['autodocs'], + parameters: { + docs: { + description: { + // component: readme, + }, + }, + }, +} satisfies Meta; + +export default meta; + +type Story = StoryObj; + +export const Default: Story = { + args: { + children: [ + Frameless, + + Herbruikbare componenten onafhankelijk van huisstijl, daar mag je ons voor wakker maken! Frameless heeft al aan + meerdere white-label design systems mogen werken en is trots op onze bijdrage aan NL Design System. Wij helpen + ook graag als technisch partner bij het bouwen van toegankelijke en gebruiksvriendelijke web applicaties. + , + ], + }, +}; + +// diff --git a/packages/storybook/src/css-stories/page.stories.tsx b/packages/storybook/src/css-stories/page.stories.tsx new file mode 100644 index 00000000..f95f9931 --- /dev/null +++ b/packages/storybook/src/css-stories/page.stories.tsx @@ -0,0 +1,44 @@ +/* @license CC0-1.0 */ + +import { Meta, StoryObj } from '@storybook/react'; +import { Page, PageContent } from '@utrecht/component-library-react/dist/css-module'; +// TODO for future version: add PageHeader + PageFooter? +// import { Page } from '@frameless/components-react'; // TODO: use frameless package instead + +const meta = { + title: 'CSS Component/Page', + id: 'css-page', + component: Page, + argTypes: { + children: { + description: 'Page content', + }, + }, + args: { + children: [], + }, + tags: ['autodocs'], + parameters: { + docs: { + description: { + // component: readme, + }, + }, + }, +} satisfies Meta; + +export default meta; + +type Story = StoryObj; + +export const Default: Story = { + args: { + children: [ + // Header area, + +
Content area
+
, + // Footer area, + ], + }, +}; diff --git a/packages/storybook/src/react-stories/page-content.stories.tsx b/packages/storybook/src/react-stories/page-content.stories.tsx new file mode 100644 index 00000000..10d47210 --- /dev/null +++ b/packages/storybook/src/react-stories/page-content.stories.tsx @@ -0,0 +1,47 @@ +/* @license CC0-1.0 */ + +import { Meta, StoryObj } from '@storybook/react'; +import { Heading1, PageContent, Paragraph } from '@utrecht/component-library-react/dist/css-module'; + +const PageContentStory = ({ children }) => {children}; + +const meta = { + title: 'React Component/Page content', + id: 'react-page-content', + component: PageContentStory, + argTypes: { + children: { + description: 'Page content', + }, + }, + args: { + children: [], + }, + tags: ['autodocs'], + parameters: { + docs: { + description: { + // component: readme, + }, + }, + }, +} satisfies Meta; + +export default meta; + +type Story = StoryObj; + +export const Default: Story = { + args: { + children: [ + Frameless, + + Herbruikbare componenten onafhankelijk van huisstijl, daar mag je ons voor wakker maken! Frameless heeft al aan + meerdere white-label design systems mogen werken en is trots op onze bijdrage aan NL Design System. Wij helpen + ook graag als technisch partner bij het bouwen van toegankelijke en gebruiksvriendelijke web applicaties. + , + ], + }, +}; + +// diff --git a/packages/storybook/src/react-stories/page.stories.tsx b/packages/storybook/src/react-stories/page.stories.tsx new file mode 100644 index 00000000..04376393 --- /dev/null +++ b/packages/storybook/src/react-stories/page.stories.tsx @@ -0,0 +1,45 @@ +/* @license CC0-1.0 */ + +import { Meta, StoryObj } from '@storybook/react'; +import { Page, PageContent } from '@utrecht/component-library-react/dist/css-module'; +// TODO for future version: add PageHeader + PageFooter? +// import { Page } from '@frameless/components-react'; // TODO: use frameless package instead + +const meta = { + title: 'React Component/Page', + id: 'react-page', + component: Page, + argTypes: { + children: { + description: 'Page content', + }, + }, + args: { + children: [], + }, + tags: ['autodocs'], + parameters: { + docs: { + description: { + // component: readme, + }, + }, + }, +} satisfies Meta; + +export default meta; + +type Story = StoryObj; + +export const Default: Story = { + args: { + children: [ + // Header area, + +
Content area
+ {/* do we need this class? utrecht? frameless? at all? */} +
, + // Footer area, + ], + }, +};