Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove src/lib directories; add fonts to all storybooks #751

Merged
merged 1 commit into from
May 16, 2024
Merged
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
2 changes: 1 addition & 1 deletion libs/storybook-host/.storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { nxViteTsPaths } from '@nx/vite/plugins/nx-tsconfig-paths.plugin';
import { mergeConfig } from 'vite';

const config: StorybookConfig = {
stories: ['../src/lib/**/*.@(mdx|stories.@(js|jsx|ts|tsx))'],
stories: ['../src/**/*.@(mdx|stories.@(js|jsx|ts|tsx))'],
addons: [
'@storybook/addon-essentials',
'@storybook/addon-mdx-gfm',
Expand Down
6 changes: 6 additions & 0 deletions libs/storybook-host/.storybook/preview-head.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Inter:[email protected]&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap"
rel="stylesheet"
/>
2 changes: 1 addition & 1 deletion libs/storybook-host/src/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from './lib/storybook-host';
export {};
2 changes: 1 addition & 1 deletion packages/components/.storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { StorybookConfig } from '@storybook/react-vite';

const config: StorybookConfig = {
stories: ['../src/lib/**/*.@(mdx|stories.@(js|jsx|ts|tsx))'],
stories: ['../src/**/*.@(mdx|stories.@(js|jsx|ts|tsx))'],
addons: ['@storybook/addon-essentials', '@chromatic-com/storybook'],
framework: {
name: '@storybook/react-vite',
Expand Down
6 changes: 6 additions & 0 deletions packages/components/.storybook/preview-head.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Inter:[email protected]&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap"
rel="stylesheet"
/>
9 changes: 9 additions & 0 deletions packages/components/src/README.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{/* README.mdx */}

import { Meta } from '@storybook/blocks';

<Meta title="About" component={null} />

# `@prenda/components`

The package for Prenda Design System (PDS) components.
2 changes: 1 addition & 1 deletion packages/components/src/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from './lib/components';
export {};
10 changes: 0 additions & 10 deletions packages/components/src/lib/components.spec.tsx

This file was deleted.

13 changes: 0 additions & 13 deletions packages/components/src/lib/components.stories.tsx

This file was deleted.

12 changes: 0 additions & 12 deletions packages/components/src/lib/components.tsx

This file was deleted.

14 changes: 14 additions & 0 deletions packages/components/src/sample.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import type { Meta, StoryObj } from '@storybook/react';

const Sample = () => null;

const meta: Meta<typeof Sample> = {
component: Sample,
title: 'Sample',
};
export default meta;
type Story = StoryObj<typeof Sample>;

export const Primary: Story = {
args: {},
};
2 changes: 1 addition & 1 deletion packages/icons/.storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { StorybookConfig } from '@storybook/react-vite';

const config: StorybookConfig = {
stories: ['../src/lib/**/*.@(mdx|stories.@(js|jsx|ts|tsx))'],
stories: ['../src/**/*.@(mdx|stories.@(js|jsx|ts|tsx))'],
addons: ['@storybook/addon-essentials', '@chromatic-com/storybook'],
framework: {
name: '@storybook/react-vite',
Expand Down
6 changes: 6 additions & 0 deletions packages/icons/.storybook/preview-head.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Inter:[email protected]&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap"
rel="stylesheet"
/>
9 changes: 9 additions & 0 deletions packages/icons/src/README.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{/* README.mdx */}

import { Meta } from '@storybook/blocks';

<Meta title="About" component={null} />

# `@prenda/icons`

The package for Prenda Design System (PDS) icons.
2 changes: 1 addition & 1 deletion packages/icons/src/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from './lib/icons';
export {};
10 changes: 0 additions & 10 deletions packages/icons/src/lib/icons.spec.tsx

This file was deleted.

13 changes: 0 additions & 13 deletions packages/icons/src/lib/icons.stories.tsx

This file was deleted.

12 changes: 0 additions & 12 deletions packages/icons/src/lib/icons.tsx

This file was deleted.

14 changes: 14 additions & 0 deletions packages/icons/src/sample.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import type { Meta, StoryObj } from '@storybook/react';

const Sample = () => null;

const meta: Meta<typeof Sample> = {
component: Sample,
title: 'Sample',
};
export default meta;
type Story = StoryObj<typeof Sample>;

export const Primary: Story = {
args: {},
};