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

feat: Storybook autodocs #1329

Closed
wants to merge 1 commit into from
Closed
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
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ node_modules
dist
dist-ssr
*.local
**/*.css
**/*.css.map
**/**/*.css
**/**/*.css.map

# Editor directories and files
.vscode/*
Expand Down
3 changes: 2 additions & 1 deletion .storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export default {
'@storybook/addon-viewport'
],
docs: {
defaultName: 'Documentation'
defaultName: 'Documentation',
autodocs: 'tag'
}
};
14 changes: 0 additions & 14 deletions .storybook/preview.ts

This file was deleted.

27 changes: 27 additions & 0 deletions .storybook/preview.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import { Preview } from '@storybook/react';
import { Title, Subtitle, Description, Controls, Stories } from '@storybook/blocks';

const preview: Preview = {
parameters: {
actions: { argTypesRegex: '^on[A-Z].*' },
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/,
}
},
docs: {
page: () => (
<>
<Title />
<Subtitle />
<Description />
<Stories />
<Controls />
</>
)
}
}
}

export default preview;
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<p align="center">
<a href="https://components.lapidist.net/" target="_blank" rel="noopener">



<a href="https://components.lapidist.net/" target="_blank" rel="noopener">
<img width="120" src="https://lapidist.net/logo.svg" alt="Lapidist Logo"/>
</a>
</p>
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@
"files": [
"dist"
],
"main": "./dist/lapidist.umd.js",
"module": "./dist/lapidist.es.js",
"main": "./dist/components.umd.js",
"module": "./dist/components.es.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"import": "./dist/lapidist.es.js",
"require": "./dist/lapidist.umd.js"
"import": "./dist/components.es.js",
"require": "./dist/components.umd.js"
},
"./style.css": {
"import": "./dist/style.css",
Expand Down
93 changes: 0 additions & 93 deletions src/components/Box/Box.mdx

This file was deleted.

145 changes: 0 additions & 145 deletions src/components/Box/__snapshots__/Box.spec.tsx.snap

This file was deleted.

Loading