Skip to content

Commit

Permalink
chore: remove src/lib directories; add fonts to all storybooks
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamKelley committed May 16, 2024
1 parent 2c53e9c commit 29ea4d1
Show file tree
Hide file tree
Showing 21 changed files with 70 additions and 76 deletions.
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"
/>
File renamed without changes.
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 {};
File renamed without changes.
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: {},
};

0 comments on commit 29ea4d1

Please sign in to comment.